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>
16class XChainOwnedCreateAccountClaimIDBuilder;
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;
237 object_[sfPreviousTxnID] = value;
248 object_[sfPreviousTxnLgrSeq] = value;
void setFieldArray(SField const &field, STArray const &v)
Base class for type-safe ledger entry wrappers.
std::shared_ptr< SLE const > sle_
The underlying serialized ledger entry being wrapped.
Base class for all ledger entry builders.
Builder for XChainOwnedCreateAccountClaimID ledger entries.
XChainOwnedCreateAccountClaimIDBuilder & setAccount(std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
Ledger entry-specific field setters.
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(std::shared_ptr< SLE const > sle)
Construct a XChainOwnedCreateAccountClaimIDBuilder from an existing SLE object.
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)
XChainOwnedCreateAccountClaimID(std::shared_ptr< SLE const > sle)
Construct a XChainOwnedCreateAccountClaimID ledger entry wrapper from an existing SLE object.
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)
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.