20 #ifndef RIPPLE_LEDGER_APPLYSTATETABLE_H_INCLUDED
21 #define RIPPLE_LEDGER_APPLYSTATETABLE_H_INCLUDED
23 #include <ripple/basics/XRPAmount.h>
24 #include <ripple/beast/utility/Journal.h>
25 #include <ripple/ledger/OpenView.h>
26 #include <ripple/ledger/RawView.h>
27 #include <ripple/ledger/ReadView.h>
28 #include <ripple/protocol/TER.h>
29 #include <ripple/protocol/TxMeta.h>
A pair of SHAMap key and LedgerEntryType.
void insert(ReadView const &base, std::shared_ptr< SLE > const &sle)
Writable ledger view that accumulates state and tx changes.
void visit(ReadView const &base, std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func) const
ApplyStateTable & operator=(ApplyStateTable &&)=delete
bool exists(ReadView const &base, Keylet const &k) const
ApplyStateTable()=default
static void threadItem(TxMeta &meta, std::shared_ptr< SLE > const &to)
XRPAmount const & dropsDestroyed() const
void destroyXRP(XRPAmount const &fee)
XRPAmount dropsDestroyed_
void replace(ReadView const &base, std::shared_ptr< SLE > const &sle)
Interface for ledger entry changes.
void apply(RawView &to) const
void threadOwners(ReadView const &base, TxMeta &meta, std::shared_ptr< SLE const > const &sle, Mods &mods, beast::Journal j)
void erase(ReadView const &base, std::shared_ptr< SLE > const &sle)
void threadTx(ReadView const &base, TxMeta &meta, AccountID const &to, Mods &mods, beast::Journal j)
A generic endpoint for log messages.
std::shared_ptr< SLE const > read(ReadView const &base, Keylet const &k) const
void rawErase(ReadView const &base, std::shared_ptr< SLE > const &sle)
std::shared_ptr< SLE > getForMod(ReadView const &base, key_type const &key, Mods &mods, beast::Journal j)
ReadView::key_type key_type
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void update(ReadView const &base, std::shared_ptr< SLE > const &sle)
std::optional< key_type > succ(ReadView const &base, key_type const &key, std::optional< key_type > const &last) const
static bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
std::shared_ptr< SLE > peek(ReadView const &base, Keylet const &k)