xrpld
Loading...
Searching...
No Matches
xrpl::transactions::ConfidentialMPTConvertBackBuilder Class Reference

Builder for ConfidentialMPTConvertBack transactions. More...

#include <ConfidentialMPTConvertBack.h>

Inheritance diagram for xrpl::transactions::ConfidentialMPTConvertBackBuilder:
Collaboration diagram for xrpl::transactions::ConfidentialMPTConvertBackBuilder:

Public Member Functions

 ConfidentialMPTConvertBackBuilder (SF_ACCOUNT::type::value_type account, std::decay_t< typename SF_UINT192::type::value_type > const &mPTokenIssuanceID, std::decay_t< typename SF_UINT64::type::value_type > const &mPTAmount, std::decay_t< typename SF_VL::type::value_type > const &holderEncryptedAmount, std::decay_t< typename SF_VL::type::value_type > const &issuerEncryptedAmount, std::decay_t< typename SF_UINT256::type::value_type > const &blindingFactor, std::decay_t< typename SF_VL::type::value_type > const &zKProof, std::decay_t< typename SF_VL::type::value_type > const &balanceCommitment, std::optional< SF_UINT32::type::value_type > sequence=std::nullopt, std::optional< SF_AMOUNT::type::value_type > fee=std::nullopt)
 Construct a new ConfidentialMPTConvertBackBuilder with required fields.
 ConfidentialMPTConvertBackBuilder (std::shared_ptr< STTx const > tx)
 Construct a ConfidentialMPTConvertBackBuilder from an existing STTx object.
ConfidentialMPTConvertBackBuildersetMPTokenIssuanceID (std::decay_t< typename SF_UINT192::type::value_type > const &value)
 Transaction-specific field setters.
ConfidentialMPTConvertBackBuildersetMPTAmount (std::decay_t< typename SF_UINT64::type::value_type > const &value)
 Set sfMPTAmount (SoeRequired).
ConfidentialMPTConvertBackBuildersetHolderEncryptedAmount (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfHolderEncryptedAmount (SoeRequired).
ConfidentialMPTConvertBackBuildersetIssuerEncryptedAmount (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfIssuerEncryptedAmount (SoeRequired).
ConfidentialMPTConvertBackBuildersetAuditorEncryptedAmount (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfAuditorEncryptedAmount (SoeOptional).
ConfidentialMPTConvertBackBuildersetBlindingFactor (std::decay_t< typename SF_UINT256::type::value_type > const &value)
 Set sfBlindingFactor (SoeRequired).
ConfidentialMPTConvertBackBuildersetZKProof (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfZKProof (SoeRequired).
ConfidentialMPTConvertBackBuildersetBalanceCommitment (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfBalanceCommitment (SoeRequired).
ConfidentialMPTConvertBack build (PublicKey const &publicKey, SecretKey const &secretKey)
 Build and return the ConfidentialMPTConvertBack wrapper.
ConfidentialMPTConvertBackBuildersetAccount (AccountID const &value)
 Set the account that is sending the transaction.
ConfidentialMPTConvertBackBuildersetFee (STAmount const &value)
 Set the transaction fee.
ConfidentialMPTConvertBackBuildersetSequence (std::uint32_t const &value)
 Set the sequence number.
ConfidentialMPTConvertBackBuildersetTicketSequence (std::uint32_t const &value)
 Set the ticket sequence to use for this transaction.
ConfidentialMPTConvertBackBuildersetFlags (std::uint32_t const &value)
 Set transaction flags.
ConfidentialMPTConvertBackBuildersetSourceTag (std::uint32_t const &value)
 Set the source tag.
ConfidentialMPTConvertBackBuildersetLastLedgerSequence (std::uint32_t const &value)
 Set the last ledger sequence.
ConfidentialMPTConvertBackBuildersetAccountTxnID (uint256 const &value)
 Set the account transaction ID.
ConfidentialMPTConvertBackBuildersetPreviousTxnID (uint256 const &value)
 Set the previous transaction ID.
ConfidentialMPTConvertBackBuildersetOperationLimit (std::uint32_t const &value)
 Set the operation limit.
ConfidentialMPTConvertBackBuildersetMemos (STArray const &value)
 Set the memos array.
ConfidentialMPTConvertBackBuildersetSigners (STArray const &value)
 Set the signers array for multi-signing.
ConfidentialMPTConvertBackBuildersetNetworkID (std::uint32_t const &value)
 Set the network ID.
ConfidentialMPTConvertBackBuildersetDelegate (AccountID const &value)
 Set the delegate account for delegated transactions.
STObject const & getSTObject () const
 Get the underlying STObject.

Protected Member Functions

ConfidentialMPTConvertBackBuildersign (PublicKey const &publicKey, SecretKey const &secretKey)
 Sign the transaction with the given keys.

Protected Attributes

STObject object_

Detailed Description

Builder for ConfidentialMPTConvertBack transactions.

Provides a fluent interface for constructing transactions with method chaining. Uses STObject internally for flexible transaction construction. Inherits common field setters from TransactionBuilderBase.

Definition at line 161 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

Constructor & Destructor Documentation

◆ ConfidentialMPTConvertBackBuilder() [1/2]

xrpl::transactions::ConfidentialMPTConvertBackBuilder::ConfidentialMPTConvertBackBuilder ( SF_ACCOUNT::type::value_type account,
std::decay_t< typename SF_UINT192::type::value_type > const & mPTokenIssuanceID,
std::decay_t< typename SF_UINT64::type::value_type > const & mPTAmount,
std::decay_t< typename SF_VL::type::value_type > const & holderEncryptedAmount,
std::decay_t< typename SF_VL::type::value_type > const & issuerEncryptedAmount,
std::decay_t< typename SF_UINT256::type::value_type > const & blindingFactor,
std::decay_t< typename SF_VL::type::value_type > const & zKProof,
std::decay_t< typename SF_VL::type::value_type > const & balanceCommitment,
std::optional< SF_UINT32::type::value_type > sequence = std::nullopt,
std::optional< SF_AMOUNT::type::value_type > fee = std::nullopt )

Construct a new ConfidentialMPTConvertBackBuilder with required fields.

Parameters
accountThe account initiating the transaction.
mPTokenIssuanceIDThe sfMPTokenIssuanceID field value.
mPTAmountThe sfMPTAmount field value.
holderEncryptedAmountThe sfHolderEncryptedAmount field value.
issuerEncryptedAmountThe sfIssuerEncryptedAmount field value.
blindingFactorThe sfBlindingFactor field value.
zKProofThe sfZKProof field value.
balanceCommitmentThe sfBalanceCommitment field value.
sequenceOptional sequence number for the transaction.
feeOptional fee for the transaction.

Definition at line 177 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ ConfidentialMPTConvertBackBuilder() [2/2]

xrpl::transactions::ConfidentialMPTConvertBackBuilder::ConfidentialMPTConvertBackBuilder ( std::shared_ptr< STTx const > tx)

Construct a ConfidentialMPTConvertBackBuilder from an existing STTx object.

Parameters
txThe existing transaction to copy from.
Exceptions
std::runtime_errorif the transaction type doesn't match.

Definition at line 197 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

Member Function Documentation

◆ setMPTokenIssuanceID()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setMPTokenIssuanceID ( std::decay_t< typename SF_UINT192::type::value_type > const & value)

Transaction-specific field setters.

Set sfMPTokenIssuanceID (SoeRequired)

Returns
Reference to this builder for method chaining.

Definition at line 213 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setMPTAmount()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setMPTAmount ( std::decay_t< typename SF_UINT64::type::value_type > const & value)

Set sfMPTAmount (SoeRequired).

Returns
Reference to this builder for method chaining.

Definition at line 224 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setHolderEncryptedAmount()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setHolderEncryptedAmount ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfHolderEncryptedAmount (SoeRequired).

Returns
Reference to this builder for method chaining.

Definition at line 235 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setIssuerEncryptedAmount()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setIssuerEncryptedAmount ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfIssuerEncryptedAmount (SoeRequired).

Returns
Reference to this builder for method chaining.

Definition at line 246 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setAuditorEncryptedAmount()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setAuditorEncryptedAmount ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfAuditorEncryptedAmount (SoeOptional).

Returns
Reference to this builder for method chaining.

Definition at line 257 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setBlindingFactor()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setBlindingFactor ( std::decay_t< typename SF_UINT256::type::value_type > const & value)

Set sfBlindingFactor (SoeRequired).

Returns
Reference to this builder for method chaining.

Definition at line 268 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setZKProof()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setZKProof ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfZKProof (SoeRequired).

Returns
Reference to this builder for method chaining.

Definition at line 279 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setBalanceCommitment()

ConfidentialMPTConvertBackBuilder & xrpl::transactions::ConfidentialMPTConvertBackBuilder::setBalanceCommitment ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfBalanceCommitment (SoeRequired).

Returns
Reference to this builder for method chaining.

Definition at line 290 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ build()

ConfidentialMPTConvertBack xrpl::transactions::ConfidentialMPTConvertBackBuilder::build ( PublicKey const & publicKey,
SecretKey const & secretKey )

Build and return the ConfidentialMPTConvertBack wrapper.

Parameters
publicKeyThe public key for signing.
secretKeyThe secret key for signing.
Returns
The constructed transaction wrapper.

Definition at line 303 of file protocol_autogen/transactions/ConfidentialMPTConvertBack.h.

◆ setAccount()

Set the account that is sending the transaction.

Parameters
valueAccount address (typically as a string)
Returns
Reference to the derived builder for method chaining.

Definition at line 62 of file TransactionBuilderBase.h.

◆ setFee()

Set the transaction fee.

Parameters
valueFee in drops (typically as a string or number)
Returns
Reference to the derived builder for method chaining.

Definition at line 74 of file TransactionBuilderBase.h.

◆ setSequence()

Set the sequence number.

Parameters
valueSequence number
Returns
Reference to the derived builder for method chaining.

Definition at line 86 of file TransactionBuilderBase.h.

◆ setTicketSequence()

Set the ticket sequence to use for this transaction.

When using a ticket, the regular sequence number is set to 0.

Parameters
valueTicket sequence number
Returns
Reference to the derived builder for method chaining.

Definition at line 99 of file TransactionBuilderBase.h.

◆ setFlags()

Set transaction flags.

Parameters
valueFlags value
Returns
Reference to the derived builder for method chaining.

Definition at line 112 of file TransactionBuilderBase.h.

◆ setSourceTag()

Set the source tag.

Parameters
valueSource tag
Returns
Reference to the derived builder for method chaining.

Definition at line 124 of file TransactionBuilderBase.h.

◆ setLastLedgerSequence()

Set the last ledger sequence.

Parameters
valueLast ledger sequence number
Returns
Reference to the derived builder for method chaining.

Definition at line 136 of file TransactionBuilderBase.h.

◆ setAccountTxnID()

Set the account transaction ID.

Parameters
valueAccount transaction ID (typically as a hex string)
Returns
Reference to the derived builder for method chaining.

Definition at line 148 of file TransactionBuilderBase.h.

◆ setPreviousTxnID()

Set the previous transaction ID.

Used for emulate027 compatibility.

Parameters
valuePrevious transaction ID
Returns
Reference to the derived builder for method chaining.

Definition at line 161 of file TransactionBuilderBase.h.

◆ setOperationLimit()

Set the operation limit.

Parameters
valueOperation limit
Returns
Reference to the derived builder for method chaining.

Definition at line 173 of file TransactionBuilderBase.h.

◆ setMemos()

Set the memos array.

Parameters
valueArray of memo objects
Returns
Reference to the derived builder for method chaining.

Definition at line 185 of file TransactionBuilderBase.h.

◆ setSigners()

Set the signers array for multi-signing.

Parameters
valueArray of signer objects
Returns
Reference to the derived builder for method chaining.

Definition at line 197 of file TransactionBuilderBase.h.

◆ setNetworkID()

Set the network ID.

Parameters
valueNetwork ID
Returns
Reference to the derived builder for method chaining.

Definition at line 209 of file TransactionBuilderBase.h.

◆ setDelegate()

Set the delegate account for delegated transactions.

Parameters
valueDelegate account ID
Returns
Reference to the derived builder for method chaining.

Definition at line 221 of file TransactionBuilderBase.h.

◆ getSTObject()

Get the underlying STObject.

Returns
The STObject

Definition at line 232 of file TransactionBuilderBase.h.

◆ sign()

Sign the transaction with the given keys.

This sets the SigningPubKey field and computes the TxnSignature.

Parameters
publicKeyThe public key for signing
secretKeyThe secret key for signing
Returns
Reference to the derived builder for method chaining.

Definition at line 248 of file TransactionBuilderBase.h.

Member Data Documentation

◆ object_