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

Builder for XChainOwnedClaimID ledger entries. More...

#include <XChainOwnedClaimID.h>

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

Public Member Functions

 XChainOwnedClaimIDBuilder (std::decay_t< typename SF_ACCOUNT::type::value_type > const &account, std::decay_t< typename SF_XCHAIN_BRIDGE::type::value_type > const &xChainBridge, std::decay_t< typename SF_UINT64::type::value_type > const &xChainClaimID, std::decay_t< typename SF_ACCOUNT::type::value_type > const &otherChainSource, STArray const &xChainClaimAttestations, std::decay_t< typename SF_AMOUNT::type::value_type > const &signatureReward, std::decay_t< typename SF_UINT64::type::value_type > const &ownerNode, std::decay_t< typename SF_UINT256::type::value_type > const &previousTxnID, std::decay_t< typename SF_UINT32::type::value_type > const &previousTxnLgrSeq)
 Construct a new XChainOwnedClaimIDBuilder with required fields.
 
 XChainOwnedClaimIDBuilder (std::shared_ptr< SLE const > sle)
 Construct a XChainOwnedClaimIDBuilder from an existing SLE object.
 
XChainOwnedClaimIDBuildersetAccount (std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
 Ledger entry-specific field setters.
 
XChainOwnedClaimIDBuildersetXChainBridge (std::decay_t< typename SF_XCHAIN_BRIDGE::type::value_type > const &value)
 Set sfXChainBridge (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetXChainClaimID (std::decay_t< typename SF_UINT64::type::value_type > const &value)
 Set sfXChainClaimID (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetOtherChainSource (std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
 Set sfOtherChainSource (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetXChainClaimAttestations (STArray const &value)
 Set sfXChainClaimAttestations (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetSignatureReward (std::decay_t< typename SF_AMOUNT::type::value_type > const &value)
 Set sfSignatureReward (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetOwnerNode (std::decay_t< typename SF_UINT64::type::value_type > const &value)
 Set sfOwnerNode (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetPreviousTxnID (std::decay_t< typename SF_UINT256::type::value_type > const &value)
 Set sfPreviousTxnID (soeREQUIRED)
 
XChainOwnedClaimIDBuildersetPreviousTxnLgrSeq (std::decay_t< typename SF_UINT32::type::value_type > const &value)
 Set sfPreviousTxnLgrSeq (soeREQUIRED)
 
XChainOwnedClaimID build (uint256 const &index)
 Build and return the completed XChainOwnedClaimID wrapper.
 
bool validate () const
 Validate the ledger entry.
 
XChainOwnedClaimIDBuildersetLedgerIndex (uint256 const &value)
 Set the ledger index.
 
XChainOwnedClaimIDBuildersetFlags (uint32_t value)
 Set the flags.
 

Protected Attributes

STObject object_
 

Detailed Description

Builder for XChainOwnedClaimID ledger entries.

Provides a fluent interface for constructing ledger entries with method chaining. Uses Json::Value internally for flexible ledger entry construction. Inherits common field setters from LedgerEntryBuilderBase.

Definition at line 156 of file XChainOwnedClaimID.h.

Constructor & Destructor Documentation

◆ XChainOwnedClaimIDBuilder() [1/2]

xrpl::ledger_entries::XChainOwnedClaimIDBuilder::XChainOwnedClaimIDBuilder ( std::decay_t< typename SF_ACCOUNT::type::value_type > const &  account,
std::decay_t< typename SF_XCHAIN_BRIDGE::type::value_type > const &  xChainBridge,
std::decay_t< typename SF_UINT64::type::value_type > const &  xChainClaimID,
std::decay_t< typename SF_ACCOUNT::type::value_type > const &  otherChainSource,
STArray const &  xChainClaimAttestations,
std::decay_t< typename SF_AMOUNT::type::value_type > const &  signatureReward,
std::decay_t< typename SF_UINT64::type::value_type > const &  ownerNode,
std::decay_t< typename SF_UINT256::type::value_type > const &  previousTxnID,
std::decay_t< typename SF_UINT32::type::value_type > const &  previousTxnLgrSeq 
)

Construct a new XChainOwnedClaimIDBuilder with required fields.

Parameters
accountThe sfAccount field value.
xChainBridgeThe sfXChainBridge field value.
xChainClaimIDThe sfXChainClaimID field value.
otherChainSourceThe sfOtherChainSource field value.
xChainClaimAttestationsThe sfXChainClaimAttestations field value.
signatureRewardThe sfSignatureReward field value.
ownerNodeThe sfOwnerNode field value.
previousTxnIDThe sfPreviousTxnID field value.
previousTxnLgrSeqThe sfPreviousTxnLgrSeq field value.

Definition at line 171 of file XChainOwnedClaimID.h.

◆ XChainOwnedClaimIDBuilder() [2/2]

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

Construct a XChainOwnedClaimIDBuilder from an existing SLE object.

Parameters
sleThe existing ledger entry to copy from.
Exceptions
std::runtime_errorif the ledger entry type doesn't match.

Definition at line 190 of file XChainOwnedClaimID.h.

Member Function Documentation

◆ setAccount()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setAccount ( std::decay_t< typename SF_ACCOUNT::type::value_type > const &  value)

Ledger entry-specific field setters.

Set sfAccount (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 206 of file XChainOwnedClaimID.h.

◆ setXChainBridge()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setXChainBridge ( std::decay_t< typename SF_XCHAIN_BRIDGE::type::value_type > const &  value)

Set sfXChainBridge (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 217 of file XChainOwnedClaimID.h.

◆ setXChainClaimID()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setXChainClaimID ( std::decay_t< typename SF_UINT64::type::value_type > const &  value)

Set sfXChainClaimID (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 228 of file XChainOwnedClaimID.h.

◆ setOtherChainSource()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setOtherChainSource ( std::decay_t< typename SF_ACCOUNT::type::value_type > const &  value)

Set sfOtherChainSource (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 239 of file XChainOwnedClaimID.h.

◆ setXChainClaimAttestations()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setXChainClaimAttestations ( STArray const &  value)

Set sfXChainClaimAttestations (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 250 of file XChainOwnedClaimID.h.

◆ setSignatureReward()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setSignatureReward ( std::decay_t< typename SF_AMOUNT::type::value_type > const &  value)

Set sfSignatureReward (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 261 of file XChainOwnedClaimID.h.

◆ setOwnerNode()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setOwnerNode ( std::decay_t< typename SF_UINT64::type::value_type > const &  value)

Set sfOwnerNode (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 272 of file XChainOwnedClaimID.h.

◆ setPreviousTxnID()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setPreviousTxnID ( std::decay_t< typename SF_UINT256::type::value_type > const &  value)

Set sfPreviousTxnID (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 283 of file XChainOwnedClaimID.h.

◆ setPreviousTxnLgrSeq()

XChainOwnedClaimIDBuilder & xrpl::ledger_entries::XChainOwnedClaimIDBuilder::setPreviousTxnLgrSeq ( std::decay_t< typename SF_UINT32::type::value_type > const &  value)

Set sfPreviousTxnLgrSeq (soeREQUIRED)

Returns
Reference to this builder for method chaining.

Definition at line 294 of file XChainOwnedClaimID.h.

◆ build()

XChainOwnedClaimID xrpl::ledger_entries::XChainOwnedClaimIDBuilder::build ( uint256 const &  index)

Build and return the completed XChainOwnedClaimID wrapper.

Parameters
indexThe ledger entry index.
Returns
The constructed ledger entry wrapper.

Definition at line 306 of file XChainOwnedClaimID.h.

◆ validate()

Validate the ledger entry.

Returns
true if validation passes, false otherwise

Definition at line 45 of file LedgerEntryBuilderBase.h.

◆ setLedgerIndex()

Set the ledger index.

Parameters
valueLedger index
Returns
Reference to the derived builder for method chaining.

Definition at line 62 of file LedgerEntryBuilderBase.h.

◆ setFlags()

Set the flags.

Parameters
valueFlags value
Returns
Reference to the derived builder for method chaining.

Definition at line 74 of file LedgerEntryBuilderBase.h.

Member Data Documentation

◆ object_

Definition at line 81 of file LedgerEntryBuilderBase.h.