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

Ledger Entry: XChainOwnedClaimID. More...

#include <XChainOwnedClaimID.h>

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

Public Member Functions

 XChainOwnedClaimID (std::shared_ptr< SLE const > sle)
 Construct a XChainOwnedClaimID ledger entry wrapper from an existing SLE object.
 
SF_ACCOUNT::type::value_type getAccount () const
 Get sfAccount (soeREQUIRED)
 
SF_XCHAIN_BRIDGE::type::value_type getXChainBridge () const
 Get sfXChainBridge (soeREQUIRED)
 
SF_UINT64::type::value_type getXChainClaimID () const
 Get sfXChainClaimID (soeREQUIRED)
 
SF_ACCOUNT::type::value_type getOtherChainSource () const
 Get sfOtherChainSource (soeREQUIRED)
 
STArray const & getXChainClaimAttestations () const
 Get sfXChainClaimAttestations (soeREQUIRED)
 
SF_AMOUNT::type::value_type getSignatureReward () const
 Get sfSignatureReward (soeREQUIRED)
 
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)
 
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 = ltXCHAIN_OWNED_CLAIM_ID
 

Protected Attributes

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

Detailed Description

Ledger Entry: XChainOwnedClaimID.

Type: ltXCHAIN_OWNED_CLAIM_ID (0x0071) RPC Name: xchain_owned_claim_id

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

Definition at line 27 of file XChainOwnedClaimID.h.

Constructor & Destructor Documentation

◆ XChainOwnedClaimID()

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

Construct a XChainOwnedClaimID 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 XChainOwnedClaimID.h.

Member Function Documentation

◆ getAccount()

SF_ACCOUNT::type::value_type xrpl::ledger_entries::XChainOwnedClaimID::getAccount ( ) const

Get sfAccount (soeREQUIRED)

Returns
The field value.

Definition at line 54 of file XChainOwnedClaimID.h.

◆ getXChainBridge()

SF_XCHAIN_BRIDGE::type::value_type xrpl::ledger_entries::XChainOwnedClaimID::getXChainBridge ( ) const

Get sfXChainBridge (soeREQUIRED)

Returns
The field value.

Definition at line 65 of file XChainOwnedClaimID.h.

◆ getXChainClaimID()

SF_UINT64::type::value_type xrpl::ledger_entries::XChainOwnedClaimID::getXChainClaimID ( ) const

Get sfXChainClaimID (soeREQUIRED)

Returns
The field value.

Definition at line 76 of file XChainOwnedClaimID.h.

◆ getOtherChainSource()

SF_ACCOUNT::type::value_type xrpl::ledger_entries::XChainOwnedClaimID::getOtherChainSource ( ) const

Get sfOtherChainSource (soeREQUIRED)

Returns
The field value.

Definition at line 87 of file XChainOwnedClaimID.h.

◆ getXChainClaimAttestations()

STArray const & xrpl::ledger_entries::XChainOwnedClaimID::getXChainClaimAttestations ( ) const

Get sfXChainClaimAttestations (soeREQUIRED)

Note
This is an untyped field (unknown).
Returns
The field value.

Definition at line 99 of file XChainOwnedClaimID.h.

◆ getSignatureReward()

SF_AMOUNT::type::value_type xrpl::ledger_entries::XChainOwnedClaimID::getSignatureReward ( ) const

Get sfSignatureReward (soeREQUIRED)

Returns
The field value.

Definition at line 110 of file XChainOwnedClaimID.h.

◆ getOwnerNode()

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

Get sfOwnerNode (soeREQUIRED)

Returns
The field value.

Definition at line 121 of file XChainOwnedClaimID.h.

◆ getPreviousTxnID()

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

Get sfPreviousTxnID (soeREQUIRED)

Returns
The field value.

Definition at line 132 of file XChainOwnedClaimID.h.

◆ getPreviousTxnLgrSeq()

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

Get sfPreviousTxnLgrSeq (soeREQUIRED)

Returns
The field value.

Definition at line 143 of file XChainOwnedClaimID.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::XChainOwnedClaimID::entryType = ltXCHAIN_OWNED_CLAIM_ID
staticconstexpr

Definition at line 30 of file XChainOwnedClaimID.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.