1#ifndef XRPL_TEST_JTX_JTX_H_INCLUDED
2#define XRPL_TEST_JTX_JTX_H_INCLUDED
4#include <test/jtx/basic_prop.h>
5#include <test/jtx/requires.h>
7#include <xrpl/json/json_value.h>
8#include <xrpl/protocol/ErrorCodes.h>
9#include <xrpl/protocol/STTx.h>
10#include <xrpl/protocol/TER.h>
116 template <
class Prop,
class... Args>
A transaction testing environment.
Set the expected result code for a JTx The test will fail if the code doesn't match.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
prop_list & operator=(prop_list &&src)=default
prop_list(prop_list const &other)
prop_list & operator=(prop_list const &other)
std::vector< std::unique_ptr< basic_prop > > list
prop_list(prop_list &&src)=default
Execution context for applying a JSON transaction.
Prop * get()
Return a property if it exists.
std::vector< std::function< void(Env &, JTx &)> > postSigners
void set(Args &&... args)
std::optional< std::pair< error_code_i, std::string > > rpcCode
std::shared_ptr< STTx const > stx
std::optional< std::pair< std::string, std::optional< std::string > > > rpcException
void set(std::unique_ptr< basic_prop > p)
Set a property If the property already exists, it is replaced.
Json::Value & operator[](Key const &key)
JTx & operator=(JTx const &)=default
std::vector< std::function< void(Env &, JTx &)> > mainSigners
JTx(Json::Value const &jv_)
JTx & operator=(JTx &&)=default