22#include "data/BackendInterface.hpp"
23#include "feed/Types.hpp"
24#include "feed/impl/SingleFeedBase.hpp"
25#include "util/async/AnyExecutionContext.hpp"
27#include <boost/asio/io_context.hpp>
28#include <boost/asio/spawn.hpp>
29#include <boost/json/object.hpp>
30#include <boost/json/serialize.hpp>
31#include <xrpl/protocol/Fees.h>
32#include <xrpl/protocol/LedgerHeader.h>
64 sub(boost::asio::yield_context yield,
65 std::shared_ptr<data::BackendInterface const>
const& backend,
66 SubscriberSharedPtr
const& subscriber,
77 pub(ripple::LedgerHeader
const& lgrInfo,
78 ripple::Fees
const& fees,
79 std::string
const& ledgerRange,
84 static boost::json::object
86 ripple::LedgerHeader
const& lgrInfo,
87 ripple::Fees
const& fees,
88 std::string
const& ledgerRange,
Feed that publishes the ledger info. Example : {'type': 'ledgerClosed', 'ledger_index': 2647935,...
Definition LedgerFeed.hpp:46
void pub(ripple::LedgerHeader const &lgrInfo, ripple::Fees const &fees, std::string const &ledgerRange, uint32_t txnCount, uint32_t networkID)
Publishes the ledger feed.
Definition LedgerFeed.cpp:95
LedgerFeed(util::async::AnyExecutionContext &executionCtx)
Construct a new Ledger Feed object.
Definition LedgerFeed.hpp:52
boost::json::object sub(boost::asio::yield_context yield, std::shared_ptr< data::BackendInterface const > const &backend, SubscriberSharedPtr const &subscriber, uint32_t networkID)
Subscribe the ledger feed.
Definition LedgerFeed.cpp:66
Base class for single feed.
Definition SingleFeedBase.hpp:42
A type-erased execution context.
Definition AnyExecutionContext.hpp:41