4#include <xrpl/protocol/STLedgerEntry.h>
5#include <xrpl/protocol/STParsedJSON.h>
6#include <xrpl/protocol/jss.h>
7#include <xrpl/protocol_autogen/LedgerEntryBase.h>
8#include <xrpl/protocol_autogen/LedgerEntryBuilderBase.h>
9#include <xrpl/json/json_value.h>
42 throw std::runtime_error(
"Invalid ledger entry type for XChainOwnedCreateAccountClaimID");
53 SF_ACCOUNT::type::value_type
56 return this->
sle_->at(sfAccount);
64 SF_XCHAIN_BRIDGE::type::value_type
67 return this->
sle_->at(sfXChainBridge);
75 SF_UINT64::type::value_type
78 return this->
sle_->at(sfXChainAccountCreateCount);
90 return this->
sle_->getFieldArray(sfXChainCreateAccountAttestations);
98 SF_UINT64::type::value_type
101 return this->
sle_->at(sfOwnerNode);
109 SF_UINT256::type::value_type
112 return this->
sle_->at(sfPreviousTxnID);
120 SF_UINT32::type::value_type
123 return this->
sle_->at(sfPreviousTxnLgrSeq);
166 if (sle->at(sfLedgerEntryType) != ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID)
168 throw std::runtime_error(
"Invalid ledger entry type for XChainOwnedCreateAccountClaimID");
193 object_[sfXChainBridge] = value;
204 object_[sfXChainAccountCreateCount] = value;
215 object_.setFieldArray(sfXChainCreateAccountAttestations, value);
237 object_[sfPreviousTxnID] = value;
248 object_[sfPreviousTxnLgrSeq] = value;
std::shared_ptr< STLedgerEntry const > const_pointer
LedgerEntryBase(SLE::const_pointer sle)
Construct a ledger entry wrapper from an existing SLE object.
SLE::const_pointer sle_
The underlying serialized ledger entry being wrapped.
LedgerEntryBuilderBase()=default
Builder for XChainOwnedCreateAccountClaimID ledger entries.
XChainOwnedCreateAccountClaimIDBuilder & setAccount(std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
Ledger entry-specific field setters.
XChainOwnedCreateAccountClaimIDBuilder(SLE::const_pointer sle)
Construct a XChainOwnedCreateAccountClaimIDBuilder from an existing SLE object.
XChainOwnedCreateAccountClaimIDBuilder(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 &xChainAccountCreateCount, STArray const &xChainCreateAccountAttestations, 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 XChainOwnedCreateAccountClaimIDBuilder with required fields.
XChainOwnedCreateAccountClaimIDBuilder & setXChainAccountCreateCount(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfXChainAccountCreateCount (SoeRequired).
XChainOwnedCreateAccountClaimIDBuilder & setPreviousTxnID(std::decay_t< typename SF_UINT256::type::value_type > const &value)
Set sfPreviousTxnID (SoeRequired).
XChainOwnedCreateAccountClaimIDBuilder & setXChainCreateAccountAttestations(STArray const &value)
Set sfXChainCreateAccountAttestations (SoeRequired).
XChainOwnedCreateAccountClaimIDBuilder & setOwnerNode(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfOwnerNode (SoeRequired).
XChainOwnedCreateAccountClaimIDBuilder & setPreviousTxnLgrSeq(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfPreviousTxnLgrSeq (SoeRequired).
XChainOwnedCreateAccountClaimIDBuilder & setXChainBridge(std::decay_t< typename SF_XCHAIN_BRIDGE::type::value_type > const &value)
Set sfXChainBridge (SoeRequired).
XChainOwnedCreateAccountClaimID build(uint256 const &index)
Build and return the completed XChainOwnedCreateAccountClaimID wrapper.
Ledger Entry: XChainOwnedCreateAccountClaimID.
static constexpr LedgerEntryType entryType
SF_ACCOUNT::type::value_type getAccount() const
Get sfAccount (SoeRequired).
SF_XCHAIN_BRIDGE::type::value_type getXChainBridge() const
Get sfXChainBridge (SoeRequired).
SF_UINT32::type::value_type getPreviousTxnLgrSeq() const
Get sfPreviousTxnLgrSeq (SoeRequired).
SF_UINT64::type::value_type getXChainAccountCreateCount() const
Get sfXChainAccountCreateCount (SoeRequired).
STArray const & getXChainCreateAccountAttestations() const
Get sfXChainCreateAccountAttestations (SoeRequired).
XChainOwnedCreateAccountClaimID(SLE::const_pointer sle)
Construct a XChainOwnedCreateAccountClaimID ledger entry wrapper from an existing SLE object.
SF_UINT256::type::value_type getPreviousTxnID() const
Get sfPreviousTxnID (SoeRequired).
SF_UINT64::type::value_type getOwnerNode() const
Get sfOwnerNode (SoeRequired).
LedgerEntryType
Identifiers for on-ledger objects.