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>
53 SF_ACCOUNT::type::value_type
56 return this->
sle_->at(sfAccount);
64 SF_AMOUNT::type::value_type
67 return this->
sle_->at(sfSignatureReward);
79 return this->
sle_->at(sfMinAccountCreateAmount);
91 return this->
sle_->isFieldPresent(sfMinAccountCreateAmount);
99 SF_XCHAIN_BRIDGE::type::value_type
102 return this->
sle_->at(sfXChainBridge);
110 SF_UINT64::type::value_type
113 return this->
sle_->at(sfXChainClaimID);
121 SF_UINT64::type::value_type
124 return this->
sle_->at(sfXChainAccountCreateCount);
132 SF_UINT64::type::value_type
135 return this->
sle_->at(sfXChainAccountClaimCount);
143 SF_UINT64::type::value_type
146 return this->
sle_->at(sfOwnerNode);
154 SF_UINT256::type::value_type
157 return this->
sle_->at(sfPreviousTxnID);
165 SF_UINT32::type::value_type
168 return this->
sle_->at(sfPreviousTxnLgrSeq);
215 if (sle->at(sfLedgerEntryType) != ltBRIDGE)
242 object_[sfSignatureReward] = value;
253 object_[sfMinAccountCreateAmount] = value;
264 object_[sfXChainBridge] = value;
275 object_[sfXChainClaimID] = value;
286 object_[sfXChainAccountCreateCount] = value;
297 object_[sfXChainAccountClaimCount] = value;
319 object_[sfPreviousTxnID] = value;
330 object_[sfPreviousTxnLgrSeq] = value;
Builder for Bridge ledger entries.
BridgeBuilder(std::shared_ptr< SLE const > sle)
Construct a BridgeBuilder from an existing SLE object.
BridgeBuilder & setPreviousTxnID(std::decay_t< typename SF_UINT256::type::value_type > const &value)
Set sfPreviousTxnID (soeREQUIRED)
BridgeBuilder & setXChainClaimID(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfXChainClaimID (soeREQUIRED)
Bridge build(uint256 const &index)
Build and return the completed Bridge wrapper.
BridgeBuilder & setMinAccountCreateAmount(std::decay_t< typename SF_AMOUNT::type::value_type > const &value)
Set sfMinAccountCreateAmount (soeOPTIONAL)
BridgeBuilder & setXChainBridge(std::decay_t< typename SF_XCHAIN_BRIDGE::type::value_type > const &value)
Set sfXChainBridge (soeREQUIRED)
BridgeBuilder & setAccount(std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
Ledger entry-specific field setters.
BridgeBuilder & setOwnerNode(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfOwnerNode (soeREQUIRED)
BridgeBuilder & setSignatureReward(std::decay_t< typename SF_AMOUNT::type::value_type > const &value)
Set sfSignatureReward (soeREQUIRED)
BridgeBuilder & setXChainAccountCreateCount(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfXChainAccountCreateCount (soeREQUIRED)
BridgeBuilder(std::decay_t< typename SF_ACCOUNT::type::value_type > const &account, std::decay_t< typename SF_AMOUNT::type::value_type > const &signatureReward, 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_UINT64::type::value_type > const &xChainAccountCreateCount, std::decay_t< typename SF_UINT64::type::value_type > const &xChainAccountClaimCount, 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 BridgeBuilder with required fields.
BridgeBuilder & setPreviousTxnLgrSeq(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfPreviousTxnLgrSeq (soeREQUIRED)
BridgeBuilder & setXChainAccountClaimCount(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfXChainAccountClaimCount (soeREQUIRED)
Bridge(std::shared_ptr< SLE const > sle)
Construct a Bridge ledger entry wrapper from an existing SLE object.
SF_UINT64::type::value_type getXChainAccountCreateCount() const
Get sfXChainAccountCreateCount (soeREQUIRED)
SF_UINT64::type::value_type getXChainClaimID() const
Get sfXChainClaimID (soeREQUIRED)
bool hasMinAccountCreateAmount() const
Check if sfMinAccountCreateAmount is present.
SF_UINT64::type::value_type getXChainAccountClaimCount() const
Get sfXChainAccountClaimCount (soeREQUIRED)
static constexpr LedgerEntryType entryType
SF_XCHAIN_BRIDGE::type::value_type getXChainBridge() const
Get sfXChainBridge (soeREQUIRED)
SF_ACCOUNT::type::value_type getAccount() const
Get sfAccount (soeREQUIRED)
protocol_autogen::Optional< SF_AMOUNT::type::value_type > getMinAccountCreateAmount() const
Get sfMinAccountCreateAmount (soeOPTIONAL)
SF_UINT64::type::value_type getOwnerNode() const
Get sfOwnerNode (soeREQUIRED)
SF_AMOUNT::type::value_type getSignatureReward() const
Get sfSignatureReward (soeREQUIRED)
SF_UINT32::type::value_type getPreviousTxnLgrSeq() const
Get sfPreviousTxnLgrSeq (soeREQUIRED)
SF_UINT256::type::value_type getPreviousTxnID() const
Get sfPreviousTxnID (soeREQUIRED)
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.
LedgerEntryType
Identifiers for on-ledger objects.