|
rippled
|
Builder for AMMDeposit transactions. More...
#include <AMMDeposit.h>


Public Member Functions | |
| AMMDepositBuilder (SF_ACCOUNT::type::value_type account, std::decay_t< typename SF_ISSUE::type::value_type > const &asset, std::decay_t< typename SF_ISSUE::type::value_type > const &asset2, std::optional< SF_UINT32::type::value_type > sequence=std::nullopt, std::optional< SF_AMOUNT::type::value_type > fee=std::nullopt) | |
| Construct a new AMMDepositBuilder with required fields. | |
| AMMDepositBuilder (std::shared_ptr< STTx const > tx) | |
| Construct a AMMDepositBuilder from an existing STTx object. | |
| AMMDepositBuilder & | setAsset (std::decay_t< typename SF_ISSUE::type::value_type > const &value) |
| Transaction-specific field setters. | |
| AMMDepositBuilder & | setAsset2 (std::decay_t< typename SF_ISSUE::type::value_type > const &value) |
| Set sfAsset2 (soeREQUIRED) | |
| AMMDepositBuilder & | setAmount (std::decay_t< typename SF_AMOUNT::type::value_type > const &value) |
| Set sfAmount (soeOPTIONAL) | |
| AMMDepositBuilder & | setAmount2 (std::decay_t< typename SF_AMOUNT::type::value_type > const &value) |
| Set sfAmount2 (soeOPTIONAL) | |
| AMMDepositBuilder & | setEPrice (std::decay_t< typename SF_AMOUNT::type::value_type > const &value) |
| Set sfEPrice (soeOPTIONAL) | |
| AMMDepositBuilder & | setLPTokenOut (std::decay_t< typename SF_AMOUNT::type::value_type > const &value) |
| Set sfLPTokenOut (soeOPTIONAL) | |
| AMMDepositBuilder & | setTradingFee (std::decay_t< typename SF_UINT16::type::value_type > const &value) |
| Set sfTradingFee (soeOPTIONAL) | |
| AMMDeposit | build (PublicKey const &publicKey, SecretKey const &secretKey) |
| Build and return the AMMDeposit wrapper. | |
| AMMDepositBuilder & | setAccount (AccountID const &value) |
| Set the account that is sending the transaction. | |
| AMMDepositBuilder & | setFee (STAmount const &value) |
| Set the transaction fee. | |
| AMMDepositBuilder & | setSequence (std::uint32_t const &value) |
| Set the sequence number. | |
| AMMDepositBuilder & | setTicketSequence (std::uint32_t const &value) |
| Set the ticket sequence to use for this transaction. | |
| AMMDepositBuilder & | setFlags (std::uint32_t const &value) |
| Set transaction flags. | |
| AMMDepositBuilder & | setSourceTag (std::uint32_t const &value) |
| Set the source tag. | |
| AMMDepositBuilder & | setLastLedgerSequence (std::uint32_t const &value) |
| Set the last ledger sequence. | |
| AMMDepositBuilder & | setAccountTxnID (uint256 const &value) |
| Set the account transaction ID. | |
| AMMDepositBuilder & | setPreviousTxnID (uint256 const &value) |
| Set the previous transaction ID. | |
| AMMDepositBuilder & | setOperationLimit (std::uint32_t const &value) |
| Set the operation limit. | |
| AMMDepositBuilder & | setMemos (STArray const &value) |
| Set the memos array. | |
| AMMDepositBuilder & | setSigners (STArray const &value) |
| Set the signers array for multi-signing. | |
| AMMDepositBuilder & | setNetworkID (std::uint32_t const &value) |
| Set the network ID. | |
| AMMDepositBuilder & | setDelegate (AccountID const &value) |
| Set the delegate account for delegated transactions. | |
| STObject const & | getSTObject () const |
| Get the underlying STObject. | |
Protected Member Functions | |
| AMMDepositBuilder & | sign (PublicKey const &publicKey, SecretKey const &secretKey) |
| Sign the transaction with the given keys. | |
Protected Attributes | |
| STObject | object_ |
Builder for AMMDeposit transactions.
Provides a fluent interface for constructing transactions with method chaining. Uses Json::Value internally for flexible transaction construction. Inherits common field setters from TransactionBuilderBase.
Definition at line 210 of file protocol_autogen/transactions/AMMDeposit.h.
| xrpl::transactions::AMMDepositBuilder::AMMDepositBuilder | ( | SF_ACCOUNT::type::value_type | account, |
| std::decay_t< typename SF_ISSUE::type::value_type > const & | asset, | ||
| std::decay_t< typename SF_ISSUE::type::value_type > const & | asset2, | ||
| std::optional< SF_UINT32::type::value_type > | sequence = std::nullopt, |
||
| std::optional< SF_AMOUNT::type::value_type > | fee = std::nullopt |
||
| ) |
Construct a new AMMDepositBuilder with required fields.
| account | The account initiating the transaction. |
| asset | The sfAsset field value. |
| asset2 | The sfAsset2 field value. |
| sequence | Optional sequence number for the transaction. |
| fee | Optional fee for the transaction. |
Definition at line 221 of file protocol_autogen/transactions/AMMDeposit.h.
| xrpl::transactions::AMMDepositBuilder::AMMDepositBuilder | ( | std::shared_ptr< STTx const > | tx | ) |
Construct a AMMDepositBuilder from an existing STTx object.
| tx | The existing transaction to copy from. |
| std::runtime_error | if the transaction type doesn't match. |
Definition at line 236 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setAsset | ( | std::decay_t< typename SF_ISSUE::type::value_type > const & | value | ) |
Transaction-specific field setters.
Set sfAsset (soeREQUIRED)
Definition at line 252 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setAsset2 | ( | std::decay_t< typename SF_ISSUE::type::value_type > const & | value | ) |
Set sfAsset2 (soeREQUIRED)
Definition at line 263 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setAmount | ( | std::decay_t< typename SF_AMOUNT::type::value_type > const & | value | ) |
Set sfAmount (soeOPTIONAL)
Definition at line 274 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setAmount2 | ( | std::decay_t< typename SF_AMOUNT::type::value_type > const & | value | ) |
Set sfAmount2 (soeOPTIONAL)
Definition at line 285 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setEPrice | ( | std::decay_t< typename SF_AMOUNT::type::value_type > const & | value | ) |
Set sfEPrice (soeOPTIONAL)
Definition at line 296 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setLPTokenOut | ( | std::decay_t< typename SF_AMOUNT::type::value_type > const & | value | ) |
Set sfLPTokenOut (soeOPTIONAL)
Definition at line 307 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDepositBuilder & xrpl::transactions::AMMDepositBuilder::setTradingFee | ( | std::decay_t< typename SF_UINT16::type::value_type > const & | value | ) |
Set sfTradingFee (soeOPTIONAL)
Definition at line 318 of file protocol_autogen/transactions/AMMDeposit.h.
| AMMDeposit xrpl::transactions::AMMDepositBuilder::build | ( | PublicKey const & | publicKey, |
| SecretKey const & | secretKey | ||
| ) |
Build and return the AMMDeposit wrapper.
| publicKey | The public key for signing. |
| secretKey | The secret key for signing. |
Definition at line 331 of file protocol_autogen/transactions/AMMDeposit.h.
|
inherited |
Set the account that is sending the transaction.
| value | Account address (typically as a string) |
Definition at line 62 of file TransactionBuilderBase.h.
|
inherited |
Set the transaction fee.
| value | Fee in drops (typically as a string or number) |
Definition at line 74 of file TransactionBuilderBase.h.
|
inherited |
Set the sequence number.
| value | Sequence number |
Definition at line 86 of file TransactionBuilderBase.h.
|
inherited |
Set the ticket sequence to use for this transaction.
When using a ticket, the regular sequence number is set to 0.
| value | Ticket sequence number |
Definition at line 99 of file TransactionBuilderBase.h.
|
inherited |
Set transaction flags.
| value | Flags value |
Definition at line 112 of file TransactionBuilderBase.h.
|
inherited |
Set the source tag.
| value | Source tag |
Definition at line 124 of file TransactionBuilderBase.h.
|
inherited |
Set the last ledger sequence.
| value | Last ledger sequence number |
Definition at line 136 of file TransactionBuilderBase.h.
|
inherited |
Set the account transaction ID.
| value | Account transaction ID (typically as a hex string) |
Definition at line 148 of file TransactionBuilderBase.h.
|
inherited |
Set the previous transaction ID.
Used for emulate027 compatibility.
| value | Previous transaction ID |
Definition at line 161 of file TransactionBuilderBase.h.
|
inherited |
Set the operation limit.
| value | Operation limit |
Definition at line 173 of file TransactionBuilderBase.h.
|
inherited |
Set the memos array.
| value | Array of memo objects |
Definition at line 185 of file TransactionBuilderBase.h.
|
inherited |
Set the signers array for multi-signing.
| value | Array of signer objects |
Definition at line 197 of file TransactionBuilderBase.h.
|
inherited |
Set the network ID.
| value | Network ID |
Definition at line 209 of file TransactionBuilderBase.h.
|
inherited |
Set the delegate account for delegated transactions.
| value | Delegate account ID |
Definition at line 221 of file TransactionBuilderBase.h.
|
inherited |
Get the underlying STObject.
Definition at line 232 of file TransactionBuilderBase.h.
|
protectedinherited |
Sign the transaction with the given keys.
This sets the SigningPubKey field and computes the TxnSignature.
| publicKey | The public key for signing |
| secretKey | The secret key for signing |
Definition at line 248 of file TransactionBuilderBase.h.
|
protectedinherited |
Definition at line 266 of file TransactionBuilderBase.h.