3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/ledger/OpenView.h>
5#include <xrpl/ledger/RawView.h>
6#include <xrpl/ledger/ReadView.h>
7#include <xrpl/protocol/TER.h>
8#include <xrpl/protocol/TxMeta.h>
9#include <xrpl/protocol/XRPAmount.h>
A generic endpoint for log messages.
Writable ledger view that accumulates state and tx changes.
Interface for ledger entry changes.
std::shared_ptr< STLedgerEntry > const & ref
std::shared_ptr< STLedgerEntry > pointer
std::shared_ptr< STLedgerEntry const > const & const_ref
std::shared_ptr< STLedgerEntry const > const_pointer
ApplyStateTable()=default
SLE::const_pointer read(ReadView const &base, Keylet const &k) const
void destroyXRP(XRPAmount const &fee)
bool exists(ReadView const &base, Keylet const &k) const
std::map< key_type, std::pair< Action, SLE::pointer > > items_t
void replace(ReadView const &base, SLE::ref sle)
XRPAmount const & dropsDestroyed() const
void insert(ReadView const &base, SLE::ref sle)
void visit(ReadView const &base, std::function< void(uint256 const &key, bool isDelete, SLE::const_ref before, SLE::const_ref after)> const &func) const
SLE::pointer peek(ReadView const &base, Keylet const &k)
SLE::pointer getForMod(ReadView const &base, key_type const &key, Mods &mods, beast::Journal j)
std::optional< key_type > succ(ReadView const &base, key_type const &key, std::optional< key_type > const &last) const
void threadTx(ReadView const &base, TxMeta &meta, AccountID const &to, Mods &mods, beast::Journal j)
void threadOwners(ReadView const &base, TxMeta &meta, SLE::const_ref sle, Mods &mods, beast::Journal j)
ApplyStateTable & operator=(ApplyStateTable const &)=delete
void rawErase(ReadView const &base, SLE::ref sle)
void apply(RawView &to) const
void update(ReadView const &base, SLE::ref sle)
ApplyStateTable & operator=(ApplyStateTable &&)=delete
hash_map< key_type, SLE::pointer > Mods
XRPAmount dropsDestroyed_
static void threadItem(TxMeta &meta, SLE::ref to)
ApplyStateTable(ApplyStateTable const &)=delete
ApplyStateTable(ApplyStateTable &&)=default
void erase(ReadView const &base, SLE::ref sle)
ReadView::key_type key_type
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
std::unordered_map< Key, Value, Hash, Pred, Allocator > hash_map
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
TERSubset< CanCvtToTER > TER
A pair of SHAMap key and LedgerEntryType.