|
xrpld
|
Builder for TransactionProposal ledger entries. More...
#include <TransactionProposal.h>


Public Member Functions | |
| TransactionProposalBuilder (std::decay_t< typename SF_UINT256::type::value_type > const &previousTxnID, std::decay_t< typename SF_UINT32::type::value_type > const &previousTxnLgrSeq, std::decay_t< typename SF_ACCOUNT::type::value_type > const &owner, STObject const &proposedTransaction, std::decay_t< typename SF_UINT32::type::value_type > const &expiration, std::decay_t< typename SF_UINT64::type::value_type > const &ownerNode) | |
| Construct a new TransactionProposalBuilder with required fields. | |
| TransactionProposalBuilder (SLE::const_pointer sle) | |
| Construct a TransactionProposalBuilder from an existing SLE object. | |
| TransactionProposalBuilder & | setPreviousTxnID (std::decay_t< typename SF_UINT256::type::value_type > const &value) |
| Ledger entry-specific field setters. | |
| TransactionProposalBuilder & | setPreviousTxnLgrSeq (std::decay_t< typename SF_UINT32::type::value_type > const &value) |
| Set sfPreviousTxnLgrSeq (SoeRequired). | |
| TransactionProposalBuilder & | setOwner (std::decay_t< typename SF_ACCOUNT::type::value_type > const &value) |
| Set sfOwner (SoeRequired). | |
| TransactionProposalBuilder & | setProposedTransaction (STObject const &value) |
| Set sfProposedTransaction (SoeRequired). | |
| TransactionProposalBuilder & | setExpiration (std::decay_t< typename SF_UINT32::type::value_type > const &value) |
| Set sfExpiration (SoeRequired). | |
| TransactionProposalBuilder & | setOwnerNode (std::decay_t< typename SF_UINT64::type::value_type > const &value) |
| Set sfOwnerNode (SoeRequired). | |
| TransactionProposal | build (UInt256 const &index) |
| Build and return the completed TransactionProposal wrapper. | |
| bool | validate () const |
| Validate the ledger entry. | |
| TransactionProposalBuilder & | setLedgerIndex (UInt256 const &value) |
| Set the ledger index. | |
| TransactionProposalBuilder & | setFlags (uint32_t value) |
| Set the flags. | |
Protected Attributes | |
| STObject | object_ |
Builder for TransactionProposal ledger entries.
Provides a fluent interface for constructing ledger entries with method chaining. Uses STObject internally for flexible ledger entry construction. Inherits common field setters from LedgerEntryBuilderBase.
Definition at line 123 of file TransactionProposal.h.
| xrpl::ledger_entries::TransactionProposalBuilder::TransactionProposalBuilder | ( | std::decay_t< typename SF_UINT256::type::value_type > const & | previousTxnID, |
| std::decay_t< typename SF_UINT32::type::value_type > const & | previousTxnLgrSeq, | ||
| std::decay_t< typename SF_ACCOUNT::type::value_type > const & | owner, | ||
| STObject const & | proposedTransaction, | ||
| std::decay_t< typename SF_UINT32::type::value_type > const & | expiration, | ||
| std::decay_t< typename SF_UINT64::type::value_type > const & | ownerNode ) |
Construct a new TransactionProposalBuilder with required fields.
| previousTxnID | The sfPreviousTxnID field value. |
| previousTxnLgrSeq | The sfPreviousTxnLgrSeq field value. |
| owner | The sfOwner field value. |
| proposedTransaction | The sfProposedTransaction field value. |
| expiration | The sfExpiration field value. |
| ownerNode | The sfOwnerNode field value. |
Definition at line 135 of file TransactionProposal.h.
| xrpl::ledger_entries::TransactionProposalBuilder::TransactionProposalBuilder | ( | SLE::const_pointer | sle | ) |
Construct a TransactionProposalBuilder from an existing SLE object.
| sle | The existing ledger entry to copy from. |
| std::runtime_error | if the ledger entry type doesn't match. |
Definition at line 151 of file TransactionProposal.h.
| TransactionProposalBuilder & xrpl::ledger_entries::TransactionProposalBuilder::setPreviousTxnID | ( | std::decay_t< typename SF_UINT256::type::value_type > const & | value | ) |
Ledger entry-specific field setters.
Set sfPreviousTxnID (SoeRequired)
Definition at line 169 of file TransactionProposal.h.
| TransactionProposalBuilder & xrpl::ledger_entries::TransactionProposalBuilder::setPreviousTxnLgrSeq | ( | std::decay_t< typename SF_UINT32::type::value_type > const & | value | ) |
Set sfPreviousTxnLgrSeq (SoeRequired).
Definition at line 180 of file TransactionProposal.h.
| TransactionProposalBuilder & xrpl::ledger_entries::TransactionProposalBuilder::setOwner | ( | std::decay_t< typename SF_ACCOUNT::type::value_type > const & | value | ) |
Set sfOwner (SoeRequired).
Definition at line 191 of file TransactionProposal.h.
| TransactionProposalBuilder & xrpl::ledger_entries::TransactionProposalBuilder::setProposedTransaction | ( | STObject const & | value | ) |
Set sfProposedTransaction (SoeRequired).
Definition at line 202 of file TransactionProposal.h.
| TransactionProposalBuilder & xrpl::ledger_entries::TransactionProposalBuilder::setExpiration | ( | std::decay_t< typename SF_UINT32::type::value_type > const & | value | ) |
Set sfExpiration (SoeRequired).
Definition at line 213 of file TransactionProposal.h.
| TransactionProposalBuilder & xrpl::ledger_entries::TransactionProposalBuilder::setOwnerNode | ( | std::decay_t< typename SF_UINT64::type::value_type > const & | value | ) |
Set sfOwnerNode (SoeRequired).
Definition at line 224 of file TransactionProposal.h.
| TransactionProposal xrpl::ledger_entries::TransactionProposalBuilder::build | ( | UInt256 const & | index | ) |
Build and return the completed TransactionProposal wrapper.
| index | The ledger entry index. |
Definition at line 236 of file TransactionProposal.h.
|
nodiscardinherited |
Validate the ledger entry.
Definition at line 45 of file LedgerEntryBuilderBase.h.
|
inherited |
Set the ledger index.
| value | Ledger index |
Definition at line 62 of file LedgerEntryBuilderBase.h.
|
inherited |
Set the flags.
| value | Flags value |
Definition at line 74 of file LedgerEntryBuilderBase.h.
|
protectedinherited |
Definition at line 81 of file LedgerEntryBuilderBase.h.