rippled
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
xrpl::ledger_entries::MPTokenIssuance Class Reference

Ledger Entry: MPTokenIssuance. More...

#include <MPTokenIssuance.h>

Inheritance diagram for xrpl::ledger_entries::MPTokenIssuance:
Inheritance graph
[legend]
Collaboration diagram for xrpl::ledger_entries::MPTokenIssuance:
Collaboration graph
[legend]

Public Member Functions

 MPTokenIssuance (std::shared_ptr< SLE const > sle)
 Construct a MPTokenIssuance ledger entry wrapper from an existing SLE object.
 
SF_ACCOUNT::type::value_type getIssuer () const
 Get sfIssuer (soeREQUIRED)
 
SF_UINT32::type::value_type getSequence () const
 Get sfSequence (soeREQUIRED)
 
protocol_autogen::Optional< SF_UINT16::type::value_type > getTransferFee () const
 Get sfTransferFee (soeDEFAULT)
 
bool hasTransferFee () const
 Check if sfTransferFee is present.
 
SF_UINT64::type::value_type getOwnerNode () const
 Get sfOwnerNode (soeREQUIRED)
 
protocol_autogen::Optional< SF_UINT8::type::value_type > getAssetScale () const
 Get sfAssetScale (soeDEFAULT)
 
bool hasAssetScale () const
 Check if sfAssetScale is present.
 
protocol_autogen::Optional< SF_UINT64::type::value_type > getMaximumAmount () const
 Get sfMaximumAmount (soeOPTIONAL)
 
bool hasMaximumAmount () const
 Check if sfMaximumAmount is present.
 
SF_UINT64::type::value_type getOutstandingAmount () const
 Get sfOutstandingAmount (soeREQUIRED)
 
protocol_autogen::Optional< SF_UINT64::type::value_type > getLockedAmount () const
 Get sfLockedAmount (soeOPTIONAL)
 
bool hasLockedAmount () const
 Check if sfLockedAmount is present.
 
protocol_autogen::Optional< SF_VL::type::value_type > getMPTokenMetadata () const
 Get sfMPTokenMetadata (soeOPTIONAL)
 
bool hasMPTokenMetadata () const
 Check if sfMPTokenMetadata is present.
 
SF_UINT256::type::value_type getPreviousTxnID () const
 Get sfPreviousTxnID (soeREQUIRED)
 
SF_UINT32::type::value_type getPreviousTxnLgrSeq () const
 Get sfPreviousTxnLgrSeq (soeREQUIRED)
 
protocol_autogen::Optional< SF_UINT256::type::value_type > getDomainID () const
 Get sfDomainID (soeOPTIONAL)
 
bool hasDomainID () const
 Check if sfDomainID is present.
 
protocol_autogen::Optional< SF_UINT32::type::value_type > getMutableFlags () const
 Get sfMutableFlags (soeDEFAULT)
 
bool hasMutableFlags () const
 Check if sfMutableFlags 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< uint256getLedgerIndex () 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 = ltMPTOKEN_ISSUANCE
 

Protected Attributes

std::shared_ptr< SLE const > sle_
 The underlying serialized ledger entry being wrapped.
 

Detailed Description

Ledger Entry: MPTokenIssuance.

Type: ltMPTOKEN_ISSUANCE (0x007e) RPC Name: mpt_issuance

Immutable wrapper around SLE providing type-safe field access. Use MPTokenIssuanceBuilder to construct new ledger entries.

Definition at line 27 of file MPTokenIssuance.h.

Constructor & Destructor Documentation

◆ MPTokenIssuance()

xrpl::ledger_entries::MPTokenIssuance::MPTokenIssuance ( std::shared_ptr< SLE const >  sle)
explicit

Construct a MPTokenIssuance ledger entry wrapper from an existing SLE object.

Exceptions
std::runtime_errorif the ledger entry type doesn't match.

Definition at line 36 of file MPTokenIssuance.h.

Member Function Documentation

◆ getIssuer()

SF_ACCOUNT::type::value_type xrpl::ledger_entries::MPTokenIssuance::getIssuer ( ) const

Get sfIssuer (soeREQUIRED)

Returns
The field value.

Definition at line 54 of file MPTokenIssuance.h.

◆ getSequence()

SF_UINT32::type::value_type xrpl::ledger_entries::MPTokenIssuance::getSequence ( ) const

Get sfSequence (soeREQUIRED)

Returns
The field value.

Definition at line 65 of file MPTokenIssuance.h.

◆ getTransferFee()

protocol_autogen::Optional< SF_UINT16::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getTransferFee ( ) const

Get sfTransferFee (soeDEFAULT)

Returns
The field value, or std::nullopt if not present.

Definition at line 76 of file MPTokenIssuance.h.

◆ hasTransferFee()

bool xrpl::ledger_entries::MPTokenIssuance::hasTransferFee ( ) const

Check if sfTransferFee is present.

Returns
True if the field is present, false otherwise.

Definition at line 89 of file MPTokenIssuance.h.

◆ getOwnerNode()

SF_UINT64::type::value_type xrpl::ledger_entries::MPTokenIssuance::getOwnerNode ( ) const

Get sfOwnerNode (soeREQUIRED)

Returns
The field value.

Definition at line 100 of file MPTokenIssuance.h.

◆ getAssetScale()

protocol_autogen::Optional< SF_UINT8::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getAssetScale ( ) const

Get sfAssetScale (soeDEFAULT)

Returns
The field value, or std::nullopt if not present.

Definition at line 111 of file MPTokenIssuance.h.

◆ hasAssetScale()

bool xrpl::ledger_entries::MPTokenIssuance::hasAssetScale ( ) const

Check if sfAssetScale is present.

Returns
True if the field is present, false otherwise.

Definition at line 124 of file MPTokenIssuance.h.

◆ getMaximumAmount()

protocol_autogen::Optional< SF_UINT64::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getMaximumAmount ( ) const

Get sfMaximumAmount (soeOPTIONAL)

Returns
The field value, or std::nullopt if not present.

Definition at line 135 of file MPTokenIssuance.h.

◆ hasMaximumAmount()

bool xrpl::ledger_entries::MPTokenIssuance::hasMaximumAmount ( ) const

Check if sfMaximumAmount is present.

Returns
True if the field is present, false otherwise.

Definition at line 148 of file MPTokenIssuance.h.

◆ getOutstandingAmount()

SF_UINT64::type::value_type xrpl::ledger_entries::MPTokenIssuance::getOutstandingAmount ( ) const

Get sfOutstandingAmount (soeREQUIRED)

Returns
The field value.

Definition at line 159 of file MPTokenIssuance.h.

◆ getLockedAmount()

protocol_autogen::Optional< SF_UINT64::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getLockedAmount ( ) const

Get sfLockedAmount (soeOPTIONAL)

Returns
The field value, or std::nullopt if not present.

Definition at line 170 of file MPTokenIssuance.h.

◆ hasLockedAmount()

bool xrpl::ledger_entries::MPTokenIssuance::hasLockedAmount ( ) const

Check if sfLockedAmount is present.

Returns
True if the field is present, false otherwise.

Definition at line 183 of file MPTokenIssuance.h.

◆ getMPTokenMetadata()

protocol_autogen::Optional< SF_VL::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getMPTokenMetadata ( ) const

Get sfMPTokenMetadata (soeOPTIONAL)

Returns
The field value, or std::nullopt if not present.

Definition at line 194 of file MPTokenIssuance.h.

◆ hasMPTokenMetadata()

bool xrpl::ledger_entries::MPTokenIssuance::hasMPTokenMetadata ( ) const

Check if sfMPTokenMetadata is present.

Returns
True if the field is present, false otherwise.

Definition at line 207 of file MPTokenIssuance.h.

◆ getPreviousTxnID()

SF_UINT256::type::value_type xrpl::ledger_entries::MPTokenIssuance::getPreviousTxnID ( ) const

Get sfPreviousTxnID (soeREQUIRED)

Returns
The field value.

Definition at line 218 of file MPTokenIssuance.h.

◆ getPreviousTxnLgrSeq()

SF_UINT32::type::value_type xrpl::ledger_entries::MPTokenIssuance::getPreviousTxnLgrSeq ( ) const

Get sfPreviousTxnLgrSeq (soeREQUIRED)

Returns
The field value.

Definition at line 229 of file MPTokenIssuance.h.

◆ getDomainID()

protocol_autogen::Optional< SF_UINT256::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getDomainID ( ) const

Get sfDomainID (soeOPTIONAL)

Returns
The field value, or std::nullopt if not present.

Definition at line 240 of file MPTokenIssuance.h.

◆ hasDomainID()

bool xrpl::ledger_entries::MPTokenIssuance::hasDomainID ( ) const

Check if sfDomainID is present.

Returns
True if the field is present, false otherwise.

Definition at line 253 of file MPTokenIssuance.h.

◆ getMutableFlags()

protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::MPTokenIssuance::getMutableFlags ( ) const

Get sfMutableFlags (soeDEFAULT)

Returns
The field value, or std::nullopt if not present.

Definition at line 264 of file MPTokenIssuance.h.

◆ hasMutableFlags()

bool xrpl::ledger_entries::MPTokenIssuance::hasMutableFlags ( ) const

Check if sfMutableFlags is present.

Returns
True if the field is present, false otherwise.

Definition at line 277 of file MPTokenIssuance.h.

◆ validate()

bool xrpl::ledger_entries::LedgerEntryBase::validate ( ) const
inherited

Validate the ledger entry.

Returns
true if validation passes, false otherwise

Definition at line 40 of file LedgerEntryBase.h.

◆ getType()

LedgerEntryType xrpl::ledger_entries::LedgerEntryBase::getType ( ) const
inherited

Get the ledger entry type.

Returns
The type of this ledger entry

Definition at line 57 of file LedgerEntryBase.h.

◆ getKey()

uint256 const & xrpl::ledger_entries::LedgerEntryBase::getKey ( ) const
inherited

Get the key (index) of this ledger entry.

The key uniquely identifies this ledger entry in the ledger state.

Returns
A constant reference to the 256-bit key

Definition at line 70 of file LedgerEntryBase.h.

◆ getLedgerIndex()

std::optional< uint256 > xrpl::ledger_entries::LedgerEntryBase::getLedgerIndex ( ) const
inherited

Get the ledger index (sfLedgerIndex).

This field is OPTIONAL and represents the index of the ledger entry.

Returns
The ledger index if present, std::nullopt otherwise

Definition at line 85 of file LedgerEntryBase.h.

◆ hasLedgerIndex()

bool xrpl::ledger_entries::LedgerEntryBase::hasLedgerIndex ( ) const
inherited

Check if the ledger entry has a ledger index.

Returns
true if sfLedgerIndex is present, false otherwise

Definition at line 100 of file LedgerEntryBase.h.

◆ getLedgerEntryType()

uint16_t xrpl::ledger_entries::LedgerEntryBase::getLedgerEntryType ( ) const
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.).

Returns
The ledger entry type as a 16-bit unsigned integer

Definition at line 114 of file LedgerEntryBase.h.

◆ getFlags()

std::uint32_t xrpl::ledger_entries::LedgerEntryBase::getFlags ( ) const
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.

Returns
The flags value as a 32-bit unsigned integer

Definition at line 128 of file LedgerEntryBase.h.

◆ getSle()

std::shared_ptr< SLE const > xrpl::ledger_entries::LedgerEntryBase::getSle ( ) const
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.

Returns
A constant reference to the underlying SLE object

Definition at line 142 of file LedgerEntryBase.h.

Member Data Documentation

◆ entryType

constexpr LedgerEntryType xrpl::ledger_entries::MPTokenIssuance::entryType = ltMPTOKEN_ISSUANCE
staticconstexpr

Definition at line 30 of file MPTokenIssuance.h.

◆ sle_

std::shared_ptr<SLE const> xrpl::ledger_entries::LedgerEntryBase::sle_
protectedinherited

The underlying serialized ledger entry being wrapped.

Definition at line 149 of file LedgerEntryBase.h.