1#ifndef XRPL_TEST_JTX_BATCH_H_INCLUDED
2#define XRPL_TEST_JTX_BATCH_H_INCLUDED
4#include <test/jtx/Account.h>
5#include <test/jtx/Env.h>
6#include <test/jtx/amount.h>
7#include <test/jtx/owners.h>
8#include <test/jtx/tags.h>
10#include <xrpl/protocol/TxFlags.h>
12#include "test/jtx/SignerUtils.h"
29 uint32_t
const& numSigners,
30 uint32_t
const& txns = 0);
56 txn_[jss::SigningPubKey] =
"";
64 txn_[jss::Sequence] = 0;
102 template <
class AccountType,
class... Accounts>
104 explicit sig(AccountType&& a0, Accounts&&... aN)
127 template <
class AccountType,
class... Accounts>
Lightweight wrapper to tag static string.
Value removeMember(char const *key)
Remove and return the named member.
Immutable cryptographic account descriptor.
A transaction testing environment.
Adds a new Batch Txn on a JTx and autofills.
std::optional< std::uint32_t > ticket_
inner(Json::Value const &txn, std::uint32_t const &sequence, std::optional< std::uint32_t > const &ticket=std::nullopt, std::optional< std::uint32_t > const &fee=std::nullopt)
void removeMember(Json::StaticString const &key)
Json::Value const & getTxn() const
Json::Value & operator[](Json::StaticString const &key)
void operator()(Env &, JTx &jtx) const
Set a batch nested multi-signature on a JTx.
msig(Account const &masterAccount, AccountType &&a0, Accounts &&... aN)
void operator()(Env &, JTx &jt) const
msig(Account const &masterAccount, std::vector< Reg > signers_)
std::vector< Reg > signers
Set a batch signature on a JTx.
void operator()(Env &, JTx &jt) const
sig(AccountType &&a0, Accounts &&... aN)
sig(std::vector< Reg > signers_)
std::vector< Reg > signers
Json::Value outer(jtx::Account const &account, uint32_t seq, STAmount const &fee, std::uint32_t flags)
Batch.
XRPAmount calcBatchFee(jtx::Env const &env, uint32_t const &numSigners, uint32_t const &txns=0)
Calculate Batch Fee.
void sortSigners(std::vector< Reg > &signers)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
constexpr std::uint32_t tfInnerBatchTxn
Execution context for applying a JSON transaction.
Set the sequence number on a JTx.