20#ifndef RIPPLE_TEST_JTX_JTX_H_INCLUDED
21#define RIPPLE_TEST_JTX_JTX_H_INCLUDED
23#include <test/jtx/basic_prop.h>
24#include <test/jtx/requires.h>
26#include <xrpl/json/json_value.h>
27#include <xrpl/protocol/ErrorCodes.h>
28#include <xrpl/protocol/STTx.h>
29#include <xrpl/protocol/TER.h>
131 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.
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.
std::function< void(Env &, JTx &)> signer
Json::Value & operator[](Key const &key)
JTx & operator=(JTx const &)=default
JTx(Json::Value const &jv_)
JTx & operator=(JTx &&)=default