|
rippled
|
#include <Vault.h>


Public Member Functions | |
| Vault (std::shared_ptr< SLE const > sle) | |
| Construct a Vault ledger entry wrapper from an existing SLE object. | |
| SF_UINT256::type::value_type | getPreviousTxnID () const |
| Get sfPreviousTxnID (soeREQUIRED) | |
| SF_UINT32::type::value_type | getPreviousTxnLgrSeq () const |
| Get sfPreviousTxnLgrSeq (soeREQUIRED) | |
| SF_UINT32::type::value_type | getSequence () const |
| Get sfSequence (soeREQUIRED) | |
| SF_UINT64::type::value_type | getOwnerNode () const |
| Get sfOwnerNode (soeREQUIRED) | |
| SF_ACCOUNT::type::value_type | getOwner () const |
| Get sfOwner (soeREQUIRED) | |
| SF_ACCOUNT::type::value_type | getAccount () const |
| Get sfAccount (soeREQUIRED) | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getData () const |
| Get sfData (soeOPTIONAL) | |
| bool | hasData () const |
| Check if sfData is present. | |
| SF_ISSUE::type::value_type | getAsset () const |
| Get sfAsset (soeREQUIRED) | |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > | getAssetsTotal () const |
| Get sfAssetsTotal (soeDEFAULT) | |
| bool | hasAssetsTotal () const |
| Check if sfAssetsTotal is present. | |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > | getAssetsAvailable () const |
| Get sfAssetsAvailable (soeDEFAULT) | |
| bool | hasAssetsAvailable () const |
| Check if sfAssetsAvailable is present. | |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > | getAssetsMaximum () const |
| Get sfAssetsMaximum (soeDEFAULT) | |
| bool | hasAssetsMaximum () const |
| Check if sfAssetsMaximum is present. | |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > | getLossUnrealized () const |
| Get sfLossUnrealized (soeDEFAULT) | |
| bool | hasLossUnrealized () const |
| Check if sfLossUnrealized is present. | |
| SF_UINT192::type::value_type | getShareMPTID () const |
| Get sfShareMPTID (soeREQUIRED) | |
| SF_UINT8::type::value_type | getWithdrawalPolicy () const |
| Get sfWithdrawalPolicy (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT8::type::value_type > | getScale () const |
| Get sfScale (soeDEFAULT) | |
| bool | hasScale () const |
| Check if sfScale 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 = ltVAULT |
Protected Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Type: ltVAULT (0x0084) RPC Name: vault
Immutable wrapper around SLE providing type-safe field access. Use VaultBuilder to construct new ledger entries.
|
explicit |
Construct a Vault ledger entry wrapper from an existing SLE object.
| std::runtime_error | if the ledger entry type doesn't match. |
| SF_UINT256::type::value_type xrpl::ledger_entries::Vault::getPreviousTxnID | ( | ) | const |
| SF_UINT32::type::value_type xrpl::ledger_entries::Vault::getPreviousTxnLgrSeq | ( | ) | const |
| SF_UINT32::type::value_type xrpl::ledger_entries::Vault::getSequence | ( | ) | const |
| SF_UINT64::type::value_type xrpl::ledger_entries::Vault::getOwnerNode | ( | ) | const |
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::Vault::getOwner | ( | ) | const |
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::Vault::getAccount | ( | ) | const |
| protocol_autogen::Optional< SF_VL::type::value_type > xrpl::ledger_entries::Vault::getData | ( | ) | const |
Get sfData (soeOPTIONAL)
| bool xrpl::ledger_entries::Vault::hasData | ( | ) | const |
| SF_ISSUE::type::value_type xrpl::ledger_entries::Vault::getAsset | ( | ) | const |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > xrpl::ledger_entries::Vault::getAssetsTotal | ( | ) | const |
Get sfAssetsTotal (soeDEFAULT)
| bool xrpl::ledger_entries::Vault::hasAssetsTotal | ( | ) | const |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > xrpl::ledger_entries::Vault::getAssetsAvailable | ( | ) | const |
Get sfAssetsAvailable (soeDEFAULT)
| bool xrpl::ledger_entries::Vault::hasAssetsAvailable | ( | ) | const |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > xrpl::ledger_entries::Vault::getAssetsMaximum | ( | ) | const |
Get sfAssetsMaximum (soeDEFAULT)
| bool xrpl::ledger_entries::Vault::hasAssetsMaximum | ( | ) | const |
| protocol_autogen::Optional< SF_NUMBER::type::value_type > xrpl::ledger_entries::Vault::getLossUnrealized | ( | ) | const |
Get sfLossUnrealized (soeDEFAULT)
| bool xrpl::ledger_entries::Vault::hasLossUnrealized | ( | ) | const |
| SF_UINT192::type::value_type xrpl::ledger_entries::Vault::getShareMPTID | ( | ) | const |
| SF_UINT8::type::value_type xrpl::ledger_entries::Vault::getWithdrawalPolicy | ( | ) | const |
| protocol_autogen::Optional< SF_UINT8::type::value_type > xrpl::ledger_entries::Vault::getScale | ( | ) | const |
Get sfScale (soeDEFAULT)
| bool xrpl::ledger_entries::Vault::hasScale | ( | ) | const |
|
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 |
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 149 of file LedgerEntryBase.h.