1#include <xrpl/ledger/detail/ApplyViewBase.h>
3#include <xrpl/basics/base_uint.h>
4#include <xrpl/ledger/ApplyView.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/protocol/Fees.h>
7#include <xrpl/protocol/Keylet.h>
8#include <xrpl/protocol/LedgerHeader.h>
9#include <xrpl/protocol/Rules.h>
10#include <xrpl/protocol/STLedgerEntry.h>
11#include <xrpl/protocol/XRPAmount.h>
33 return base_->header();
45 return base_->rules();
70 return base_->slesBegin();
76 return base_->slesEnd();
82 return base_->slesUpperBound(key);
88 return base_->txsBegin();
94 return base_->txsEnd();
100 return base_->txExists(key);
106 return base_->txRead(key);
std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > tx_type
Rules controlling protocol behavior.
std::shared_ptr< STLedgerEntry > const & ref
std::shared_ptr< STLedgerEntry > pointer
std::shared_ptr< STLedgerEntry const > const_pointer
void rawDestroyXRP(XRPAmount const &feeDrops) override
Destroy XRP.
void insert(SLE::ref sle) override
Insert a new state SLE.
ApplyFlags flags() const override
Returns the tx apply flags.
std::optional< key_type > succ(key_type const &key, std::optional< key_type > const &last=std::nullopt) const override
Return the key of the next state item.
std::unique_ptr< SlesType::iter_base > slesEnd() const override
SLE::pointer peek(Keylet const &k) override
Prepare to modify the SLE associated with key.
void rawInsert(SLE::ref sle) override
Unconditionally insert a state item.
void update(SLE::ref sle) override
Indicate changes to a peeked SLE.
std::unique_ptr< TxsType::iter_base > txsBegin() const override
bool open() const override
Returns true if this reflects an open ledger.
void rawReplace(SLE::ref sle) override
Unconditionally replace a state item.
LedgerHeader const & header() const override
Returns information about the ledger.
SLE::const_pointer read(Keylet const &k) const override
Return the state item associated with a key.
void erase(SLE::ref sle) override
Remove a peeked SLE.
Rules const & rules() const override
Returns the tx processing rules.
detail::ApplyStateTable items_
std::unique_ptr< SlesType::iter_base > slesBegin() const override
std::unique_ptr< SlesType::iter_base > slesUpperBound(uint256 const &key) const override
tx_type txRead(key_type const &key) const override
Read a transaction from the tx map.
Fees const & fees() const override
Returns the fees for the base ledger.
std::unique_ptr< TxsType::iter_base > txsEnd() const override
bool txExists(key_type const &key) const override
Returns true if a tx exists in the tx map.
void rawErase(SLE::ref sle) override
Delete an existing state item.
bool exists(Keylet const &k) const override
Determine if a state item exists.
Reflects the fee settings for a particular ledger.
A pair of SHAMap key and LedgerEntryType.