3#include <test/jtx/basic_prop.h>
4#include <test/jtx/requires.h>
6#include <xrpl/json/json_value.h>
7#include <xrpl/protocol/ErrorCodes.h>
8#include <xrpl/protocol/STTx.h>
9#include <xrpl/protocol/TER.h>
72 for (
auto& prop :
props_.list)
81 [[nodiscard]]
Prop const*
84 for (
auto& prop :
props_.list)
101 for (
auto& prop :
props_.list)
103 if (prop->assignable(p.
get()))
109 props_.list.emplace_back(std::move(p));
112 template <
class Prop,
class... Args>
127 for (
auto const& prop : other.
list)
128 list.emplace_back(prop->clone());
137 for (
auto const& prop : other.
list)
138 list.emplace_back(prop->clone());
A transaction testing environment.
std::vector< require_t > requires_t
TERSubset< CanCvtToTER > TER
PropList(PropList &&src)=default
PropList(PropList const &other)
PropList & operator=(PropList const &other)
PropList & operator=(PropList &&src)=default
std::vector< std::unique_ptr< BasicProp > > list
JTx(json::Value const &jv)
JTx & operator=(JTx const &)=default
JTx & operator=(JTx &&)=default
Prop * get()
Return a property if it exists.
void set(Args &&... args)
std::vector< std::function< void(Env &, JTx &)> > postSigners
std::vector< std::function< void(Env &, JTx &)> > mainSigners
std::shared_ptr< STTx const > stx
json::Value & operator[](Key const &key)
void set(std::unique_ptr< BasicProp > p)
Set a property If the property already exists, it is replaced.
std::optional< std::pair< ErrorCodeI, std::string > > rpcCode
std::optional< std::pair< std::string, std::optional< std::string > > > rpcException