xrpld
Loading...
Searching...
No Matches
xrpl::test::jtx::batch Namespace Reference

Helpers for constructing Batch test transactions. More...

Classes

class  Inner
 Adds an inner Batch transaction to a JTx and autofills it. More...
class  Sig
 Sets the Batch transaction signers on a JTx. More...
class  Msig
 Sets a nested multi-signature for a Batch transaction on a JTx. More...

Functions

XRPAmount calcBatchFee (jtx::Env const &env, uint32_t const &numSigners, uint32_t const &txns=0)
 Calculate the expected outer Batch transaction fee.
XRPAmount calcConfidentialBatchFee (jtx::Env const &env, uint32_t const &numSigners, uint32_t const &txns=0)
 Calculate the expected Batch fee when inner transactions are confidential MPT transactions.
json::Value outer (jtx::Account const &account, uint32_t seq, STAmount const &fee, std::uint32_t flags)
 Build an outer Batch transaction JSON object.

Detailed Description

Helpers for constructing Batch test transactions.

Function Documentation

◆ calcBatchFee()

XRPAmount xrpl::test::jtx::batch::calcBatchFee ( jtx::Env const & env,
uint32_t const & numSigners,
uint32_t const & txns = 0 )

Calculate the expected outer Batch transaction fee.

Parameters
envThe test environment providing ledger fee settings.
numSignersNumber of outer transaction signers.
txnsNumber of inner transactions in the batch.
Returns
The expected Batch fee.

Definition at line 35 of file batch.cpp.

◆ calcConfidentialBatchFee()

XRPAmount xrpl::test::jtx::batch::calcConfidentialBatchFee ( jtx::Env const & env,
uint32_t const & numSigners,
uint32_t const & txns = 0 )

Calculate the expected Batch fee when inner transactions are confidential MPT transactions.

Parameters
envThe test environment providing ledger fee settings.
numSignersNumber of outer transaction signers.
txnsNumber of confidential MPT inner transactions in the batch.
Returns
The expected Batch fee including confidential transaction fee multipliers.

Definition at line 42 of file batch.cpp.

◆ outer()

json::Value xrpl::test::jtx::batch::outer ( jtx::Account const & account,
uint32_t seq,
STAmount const & fee,
std::uint32_t flags )

Build an outer Batch transaction JSON object.

Parameters
accountThe account submitting the outer Batch transaction.
seqThe sequence number for the outer Batch transaction.
feeThe fee to set on the outer Batch transaction.
flagsThe transaction flags to set.
Returns
The outer Batch transaction JSON object.

Definition at line 53 of file batch.cpp.