|
xrpld
|
Ledger Entry: MPToken. More...
#include <MPToken.h>


Public Member Functions | |
| MPToken (SLE::const_pointer sle) | |
| Construct a MPToken ledger entry wrapper from an existing SLE object. | |
| SF_ACCOUNT::type::value_type | getAccount () const |
| Get sfAccount (SoeRequired). | |
| SF_UINT192::type::value_type | getMPTokenIssuanceID () const |
| Get sfMPTokenIssuanceID (SoeRequired). | |
| protocol_autogen::Optional< SF_UINT64::type::value_type > | getMPTAmount () const |
| Get sfMPTAmount (SoeDefault). | |
| bool | hasMPTAmount () const |
| Check if sfMPTAmount is present. | |
| protocol_autogen::Optional< SF_UINT64::type::value_type > | getLockedAmount () const |
| Get sfLockedAmount (SoeOptional). | |
| bool | hasLockedAmount () const |
| Check if sfLockedAmount is present. | |
| SF_UINT64::type::value_type | getOwnerNode () const |
| Get sfOwnerNode (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_VL::type::value_type > | getConfidentialBalanceInbox () const |
| Get sfConfidentialBalanceInbox (SoeOptional). | |
| bool | hasConfidentialBalanceInbox () const |
| Check if sfConfidentialBalanceInbox is present. | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getConfidentialBalanceSpending () const |
| Get sfConfidentialBalanceSpending (SoeOptional). | |
| bool | hasConfidentialBalanceSpending () const |
| Check if sfConfidentialBalanceSpending is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getConfidentialBalanceVersion () const |
| Get sfConfidentialBalanceVersion (SoeDefault). | |
| bool | hasConfidentialBalanceVersion () const |
| Check if sfConfidentialBalanceVersion is present. | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getIssuerEncryptedBalance () const |
| Get sfIssuerEncryptedBalance (SoeOptional). | |
| bool | hasIssuerEncryptedBalance () const |
| Check if sfIssuerEncryptedBalance is present. | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getAuditorEncryptedBalance () const |
| Get sfAuditorEncryptedBalance (SoeOptional). | |
| bool | hasAuditorEncryptedBalance () const |
| Check if sfAuditorEncryptedBalance is present. | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getHolderEncryptionKey () const |
| Get sfHolderEncryptionKey (SoeOptional). | |
| bool | hasHolderEncryptionKey () const |
| Check if sfHolderEncryptionKey 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). | |
| bool | isFlag (std::uint32_t f) const |
| Check if a specific flag is set. | |
| SLE::const_pointer | getSle () const |
| Get the underlying SLE object. | |
Static Public Attributes | |
| static constexpr LedgerEntryType | entryType = ltMPTOKEN |
Protected Attributes | |
| SLE::const_pointer | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Type: ltMPTOKEN (0x007f) RPC Name: mptoken
Immutable wrapper around SLE providing type-safe field access. Use MPTokenBuilder to construct new ledger entries.
|
explicit |
Construct a MPToken ledger entry wrapper from an existing SLE object.
| std::runtime_error | if the ledger entry type doesn't match. |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscardinherited |
Validate the ledger entry.
Definition at line 40 of file LedgerEntryBase.h.
|
nodiscardinherited |
Get the ledger entry type.
Definition at line 57 of file LedgerEntryBase.h.
|
nodiscardinherited |
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.
|
nodiscardinherited |
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.
|
nodiscardinherited |
Check if the ledger entry has a ledger index.
Definition at line 100 of file LedgerEntryBase.h.
|
nodiscardinherited |
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.
|
nodiscardinherited |
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.
|
nodiscardinherited |
Check if a specific flag is set.
| f | The flag bitmask to check |
Definition at line 141 of file LedgerEntryBase.h.
|
nodiscardinherited |
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 155 of file LedgerEntryBase.h.
|
staticconstexpr |
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 162 of file LedgerEntryBase.h.