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>
66 sub(boost::asio::yield_context yield,
67 std::shared_ptr<data::BackendInterface const>
const& backend,
68 SubscriberSharedPtr
const& subscriber,
80 pub(ripple::LedgerHeader
const& lgrInfo,
81 ripple::Fees
const& fees,
82 std::string
const& ledgerRange,
87 static boost::json::object
89 ripple::LedgerHeader
const& lgrInfo,
90 ripple::Fees
const& fees,
91 std::string
const& ledgerRange,
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:53
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
SingleFeedBase(util::async::AnyExecutionContext &executionCtx, std::string const &name)
Construct a new Single Feed Base object.
Definition SingleFeedBase.cpp:35
A type-erased execution context.
Definition AnyExecutionContext.hpp:41