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);
76 pub(ripple::LedgerHeader
const& lgrInfo,
77 ripple::Fees
const& fees,
78 std::string
const& ledgerRange,
79 std::uint32_t txnCount);
82 static boost::json::object
84 ripple::LedgerHeader
const& lgrInfo,
85 ripple::Fees
const& fees,
86 std::string
const& ledgerRange,
87 std::uint32_t txnCount
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, std::uint32_t txnCount)
Publishes the ledger feed.
Definition LedgerFeed.cpp:92
boost::json::object sub(boost::asio::yield_context yield, std::shared_ptr< data::BackendInterface const > const &backend, SubscriberSharedPtr const &subscriber)
Subscribe the ledger feed.
Definition LedgerFeed.cpp:64
LedgerFeed(util::async::AnyExecutionContext &executionCtx)
Construct a new Ledger Feed object.
Definition LedgerFeed.hpp:52
Base class for single feed.
Definition SingleFeedBase.hpp:42
A type-erased execution context.
Definition AnyExecutionContext.hpp:41