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


Public Member Functions | |
| Sponsorship (SLE::const_pointer sle) | |
| Construct a Sponsorship 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_ACCOUNT::type::value_type | getOwner () const |
| Get sfOwner (SoeRequired). | |
| SF_ACCOUNT::type::value_type | getSponsee () const |
| Get sfSponsee (SoeRequired). | |
| protocol_autogen::Optional< SF_AMOUNT::type::value_type > | getFeeAmount () const |
| Get sfFeeAmount (SoeOptional). | |
| bool | hasFeeAmount () const |
| Check if sfFeeAmount is present. | |
| protocol_autogen::Optional< SF_AMOUNT::type::value_type > | getMaxFee () const |
| Get sfMaxFee (SoeOptional). | |
| bool | hasMaxFee () const |
| Check if sfMaxFee is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getRemainingOwnerCount () const |
| Get sfRemainingOwnerCount (SoeDefault). | |
| bool | hasRemainingOwnerCount () const |
| Check if sfRemainingOwnerCount is present. | |
| SF_UINT64::type::value_type | getOwnerNode () const |
| Get sfOwnerNode (SoeRequired). | |
| SF_UINT64::type::value_type | getSponseeNode () const |
| Get sfSponseeNode (SoeRequired). | |
| 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 = ltSPONSORSHIP |
Protected Attributes | |
| SLE::const_pointer | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Ledger Entry: Sponsorship.
Type: ltSPONSORSHIP (0x0090) RPC Name: sponsorship
Immutable wrapper around SLE providing type-safe field access. Use SponsorshipBuilder to construct new ledger entries.
Definition at line 27 of file Sponsorship.h.
|
explicit |
Construct a Sponsorship 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 Sponsorship.h.
|
nodiscard |
Get sfPreviousTxnID (SoeRequired).
Definition at line 54 of file Sponsorship.h.
|
nodiscard |
Get sfPreviousTxnLgrSeq (SoeRequired).
Definition at line 65 of file Sponsorship.h.
|
nodiscard |
|
nodiscard |
|
nodiscard |
Get sfFeeAmount (SoeOptional).
Definition at line 98 of file Sponsorship.h.
|
nodiscard |
Check if sfFeeAmount is present.
Definition at line 111 of file Sponsorship.h.
|
nodiscard |
Get sfMaxFee (SoeOptional).
Definition at line 122 of file Sponsorship.h.
|
nodiscard |
Check if sfMaxFee is present.
Definition at line 135 of file Sponsorship.h.
|
nodiscard |
Get sfRemainingOwnerCount (SoeDefault).
Definition at line 146 of file Sponsorship.h.
|
nodiscard |
Check if sfRemainingOwnerCount is present.
Definition at line 159 of file Sponsorship.h.
|
nodiscard |
Get sfOwnerNode (SoeRequired).
Definition at line 170 of file Sponsorship.h.
|
nodiscard |
Get sfSponseeNode (SoeRequired).
Definition at line 181 of file Sponsorship.h.
|
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 |
Definition at line 30 of file Sponsorship.h.
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 164 of file LedgerEntryBase.h.