|
rippled
|
Ledger Entry: RippleState. More...
#include <RippleState.h>


Public Member Functions | |
| RippleState (std::shared_ptr< SLE const > sle) | |
| Construct a RippleState ledger entry wrapper from an existing SLE object. | |
| SF_AMOUNT::type::value_type | getBalance () const |
| Get sfBalance (soeREQUIRED) | |
| SF_AMOUNT::type::value_type | getLowLimit () const |
| Get sfLowLimit (soeREQUIRED) | |
| SF_AMOUNT::type::value_type | getHighLimit () const |
| Get sfHighLimit (soeREQUIRED) | |
| SF_UINT256::type::value_type | getPreviousTxnID () const |
| Get sfPreviousTxnID (soeREQUIRED) | |
| SF_UINT32::type::value_type | getPreviousTxnLgrSeq () const |
| Get sfPreviousTxnLgrSeq (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT64::type::value_type > | getLowNode () const |
| Get sfLowNode (soeOPTIONAL) | |
| bool | hasLowNode () const |
| Check if sfLowNode is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getLowQualityIn () const |
| Get sfLowQualityIn (soeOPTIONAL) | |
| bool | hasLowQualityIn () const |
| Check if sfLowQualityIn is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getLowQualityOut () const |
| Get sfLowQualityOut (soeOPTIONAL) | |
| bool | hasLowQualityOut () const |
| Check if sfLowQualityOut is present. | |
| protocol_autogen::Optional< SF_UINT64::type::value_type > | getHighNode () const |
| Get sfHighNode (soeOPTIONAL) | |
| bool | hasHighNode () const |
| Check if sfHighNode is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getHighQualityIn () const |
| Get sfHighQualityIn (soeOPTIONAL) | |
| bool | hasHighQualityIn () const |
| Check if sfHighQualityIn is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getHighQualityOut () const |
| Get sfHighQualityOut (soeOPTIONAL) | |
| bool | hasHighQualityOut () const |
| Check if sfHighQualityOut is present. | |
| bool | validate () const |
| Validate the ledger entry. | |
| LedgerEntryType | getType () const |
| Get the ledger entry type. | |
| uint256 const & | getKey () const |
| Get the key (index) of this ledger entry. | |
| std::optional< uint256 > | getLedgerIndex () const |
| Get the ledger index (sfLedgerIndex). | |
| bool | hasLedgerIndex () const |
| Check if the ledger entry has a ledger index. | |
| uint16_t | getLedgerEntryType () const |
| Get the ledger entry type field (sfLedgerEntryType). | |
| std::uint32_t | getFlags () const |
| Get the flags field (sfFlags). | |
| std::shared_ptr< SLE const > | getSle () const |
| Get the underlying SLE object. | |
Static Public Attributes | |
| static constexpr LedgerEntryType | entryType = ltRIPPLE_STATE |
Protected Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Ledger Entry: RippleState.
Type: ltRIPPLE_STATE (0x0072) RPC Name: state
Immutable wrapper around SLE providing type-safe field access. Use RippleStateBuilder to construct new ledger entries.
Definition at line 27 of file RippleState.h.
|
explicit |
Construct a RippleState ledger entry wrapper from an existing SLE object.
| std::runtime_error | if the ledger entry type doesn't match. |
Definition at line 36 of file RippleState.h.
| SF_AMOUNT::type::value_type xrpl::ledger_entries::RippleState::getBalance | ( | ) | const |
| SF_AMOUNT::type::value_type xrpl::ledger_entries::RippleState::getLowLimit | ( | ) | const |
| SF_AMOUNT::type::value_type xrpl::ledger_entries::RippleState::getHighLimit | ( | ) | const |
| SF_UINT256::type::value_type xrpl::ledger_entries::RippleState::getPreviousTxnID | ( | ) | const |
Get sfPreviousTxnID (soeREQUIRED)
Definition at line 87 of file RippleState.h.
| SF_UINT32::type::value_type xrpl::ledger_entries::RippleState::getPreviousTxnLgrSeq | ( | ) | const |
Get sfPreviousTxnLgrSeq (soeREQUIRED)
Definition at line 98 of file RippleState.h.
| protocol_autogen::Optional< SF_UINT64::type::value_type > xrpl::ledger_entries::RippleState::getLowNode | ( | ) | const |
Get sfLowNode (soeOPTIONAL)
Definition at line 109 of file RippleState.h.
| bool xrpl::ledger_entries::RippleState::hasLowNode | ( | ) | const |
Check if sfLowNode is present.
Definition at line 122 of file RippleState.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::RippleState::getLowQualityIn | ( | ) | const |
Get sfLowQualityIn (soeOPTIONAL)
Definition at line 133 of file RippleState.h.
| bool xrpl::ledger_entries::RippleState::hasLowQualityIn | ( | ) | const |
Check if sfLowQualityIn is present.
Definition at line 146 of file RippleState.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::RippleState::getLowQualityOut | ( | ) | const |
Get sfLowQualityOut (soeOPTIONAL)
Definition at line 157 of file RippleState.h.
| bool xrpl::ledger_entries::RippleState::hasLowQualityOut | ( | ) | const |
Check if sfLowQualityOut is present.
Definition at line 170 of file RippleState.h.
| protocol_autogen::Optional< SF_UINT64::type::value_type > xrpl::ledger_entries::RippleState::getHighNode | ( | ) | const |
Get sfHighNode (soeOPTIONAL)
Definition at line 181 of file RippleState.h.
| bool xrpl::ledger_entries::RippleState::hasHighNode | ( | ) | const |
Check if sfHighNode is present.
Definition at line 194 of file RippleState.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::RippleState::getHighQualityIn | ( | ) | const |
Get sfHighQualityIn (soeOPTIONAL)
Definition at line 205 of file RippleState.h.
| bool xrpl::ledger_entries::RippleState::hasHighQualityIn | ( | ) | const |
Check if sfHighQualityIn is present.
Definition at line 218 of file RippleState.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::RippleState::getHighQualityOut | ( | ) | const |
Get sfHighQualityOut (soeOPTIONAL)
Definition at line 229 of file RippleState.h.
| bool xrpl::ledger_entries::RippleState::hasHighQualityOut | ( | ) | const |
Check if sfHighQualityOut is present.
Definition at line 242 of file RippleState.h.
|
inherited |
Validate the ledger entry.
Definition at line 40 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type.
Definition at line 57 of file LedgerEntryBase.h.
|
inherited |
Get the key (index) of this ledger entry.
The key uniquely identifies this ledger entry in the ledger state.
Definition at line 70 of file LedgerEntryBase.h.
|
inherited |
Get the ledger index (sfLedgerIndex).
This field is OPTIONAL and represents the index of the ledger entry.
Definition at line 85 of file LedgerEntryBase.h.
|
inherited |
Check if the ledger entry has a ledger index.
Definition at line 100 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type field (sfLedgerEntryType).
This field is REQUIRED for all ledger entries and indicates the type of the ledger entry (e.g., AccountRoot, RippleState, Offer, etc.).
Definition at line 114 of file LedgerEntryBase.h.
|
inherited |
Get the flags field (sfFlags).
This field is REQUIRED for all ledger entries and contains type-specific flags that modify the behavior of the ledger entry.
Definition at line 128 of file LedgerEntryBase.h.
|
inherited |
Get the underlying SLE object.
Provides direct access to the wrapped serialized ledger entry object for cases where the type-safe accessors are insufficient.
Definition at line 142 of file LedgerEntryBase.h.
|
staticconstexpr |
Definition at line 30 of file RippleState.h.
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 149 of file LedgerEntryBase.h.