xrpld
Loading...
Searching...
No Matches
xrpl::test::XEnv< T > Struct Template Reference
Inheritance diagram for xrpl::test::XEnv< T >:
Collaboration diagram for xrpl::test::XEnv< T >:

Public Member Functions

 XEnv (T &s, bool side=false)
void createMcBridgeObjects (Env &mcEnv)
void createScBridgeObjects (Env &scEnv)
void createBridgeObjects (Env &mcEnv, Env &scEnv)
JValueVec attCreateAcctVec (std::uint64_t createCount, jtx::AnyAmount const &amt, jtx::Account const &dst, std::size_t const numAtts, std::size_t const fromIdx=0)
json::Value createBridge (Account const &acc, json::Value const &bridge=json::ValueType::Null, STAmount const &reward=XRP(1), std::optional< STAmount > const &minAccountCreate=std::nullopt) const
SEnvclose ()
SEnvenableFeature (uint256 const feature)
SEnvdisableFeature (uint256 const feature)
template<class Arg, class... Args>
SEnvfund (STAmount const &amount, Arg const &arg, Args const &... args)
template<class JsonValue, class... FN>
SEnvtx (JsonValue &&jv, FN const &... fN)
template<class... FN>
SEnvmultiTx (jtx::JValueVec const &jvv, FN const &... fN)
TER ter () const
STAmount balance (jtx::Account const &account) const
STAmount balance (jtx::Account const &account, Issue const &issue) const
XRPAmount reserve (std::uint32_t count)
XRPAmount txFee ()
SLE::const_pointer account (jtx::Account const &account)
SLE::const_pointer bridge (json::Value const &jvb)
std::uint64_t claimCount (json::Value const &jvb)
std::uint64_t claimID (json::Value const &jvb)
SLE::const_pointer claimID (json::Value const &jvb, std::uint64_t seq)
SLE::const_pointer caClaimID (json::Value const &jvb, std::uint64_t seq)

Public Attributes

Account const mcDoor
Account const mcAlice
Account const mcBob
Account const mcCarol
Account const mcGw
Account const scDoor
Account const scAlice
Account const scBob
Account const scCarol
Account const scGw
Account const scAttester
Account const scReward
Account const mcuDoor
Account const mcuAlice
Account const mcuBob
Account const mcuCarol
Account const mcuGw
Account const scuDoor
Account const scuAlice
Account const scuBob
Account const scuCarol
Account const scuGw
IOU const mcUSD
IOU const scUSD
json::Value const jvXRPBridgeRPC
json::Value jvb
json::Value jvub
FeatureBitset const features
std::vector< Signer > const signers
std::vector< Signer > const altSigners
std::vector< Account > const payee
std::vector< Account > const payees
std::uint32_t const quorum {kUtXchainDefaultQuorum}
STAmount const reward
STAmount const splitRewardQuorum
STAmount const splitRewardEveryone
STAmount const tinyReward
STAmount const tinyRewardSplit
STAmount const tinyRewardRemainder
STAmount const oneXrp
STAmount const xrpDust
jtx::Env env

Static Public Attributes

static constexpr int kDropPerXrp = 1000000

Detailed Description

template<class T>
struct xrpl::test::XEnv< T >

Definition at line 207 of file XChain_test.cpp.

Constructor & Destructor Documentation

◆ XEnv()

template<class T>
xrpl::test::XEnv< T >::XEnv ( T & s,
bool side = false )

Definition at line 209 of file XChain_test.cpp.

Member Function Documentation

◆ createMcBridgeObjects()

void xrpl::test::jtx::XChainBridgeObjects::createMcBridgeObjects ( Env & mcEnv)
inherited

Definition at line 448 of file xchain_bridge.cpp.

◆ createScBridgeObjects()

void xrpl::test::jtx::XChainBridgeObjects::createScBridgeObjects ( Env & scEnv)
inherited

Definition at line 465 of file xchain_bridge.cpp.

◆ createBridgeObjects()

void xrpl::test::jtx::XChainBridgeObjects::createBridgeObjects ( Env & mcEnv,
Env & scEnv )
inherited

Definition at line 482 of file xchain_bridge.cpp.

◆ attCreateAcctVec()

JValueVec xrpl::test::jtx::XChainBridgeObjects::attCreateAcctVec ( std::uint64_t createCount,
jtx::AnyAmount const & amt,
jtx::Account const & dst,
std::size_t const numAtts,
std::size_t const fromIdx = 0 )
inherited

Definition at line 198 of file xchain_bridge.h.

◆ createBridge()

json::Value xrpl::test::jtx::XChainBridgeObjects::createBridge ( Account const & acc,
json::Value const & bridge = json::ValueType::Null,
STAmount const & reward = XRP(1),
std::optional< STAmount > const & minAccountCreate = std::nullopt ) const
nodiscardinherited

Definition at line 221 of file xchain_bridge.h.

◆ close()

template<class T>
SEnv & xrpl::test::SEnv< T >::close ( )
inherited

Definition at line 78 of file XChain_test.cpp.

◆ enableFeature()

template<class T>
SEnv & xrpl::test::SEnv< T >::enableFeature ( uint256 const feature)
inherited

Definition at line 85 of file XChain_test.cpp.

◆ disableFeature()

template<class T>
SEnv & xrpl::test::SEnv< T >::disableFeature ( uint256 const feature)
inherited

Definition at line 92 of file XChain_test.cpp.

◆ fund()

template<class T>
template<class Arg, class... Args>
SEnv & xrpl::test::SEnv< T >::fund ( STAmount const & amount,
Arg const & arg,
Args const &... args )
inherited

Definition at line 100 of file XChain_test.cpp.

◆ tx()

template<class T>
template<class JsonValue, class... FN>
SEnv & xrpl::test::SEnv< T >::tx ( JsonValue && jv,
FN const &... fN )
inherited

Definition at line 108 of file XChain_test.cpp.

◆ multiTx()

template<class T>
template<class... FN>
SEnv & xrpl::test::SEnv< T >::multiTx ( jtx::JValueVec const & jvv,
FN const &... fN )
inherited

Definition at line 116 of file XChain_test.cpp.

◆ ter()

template<class T>
TER xrpl::test::SEnv< T >::ter ( ) const
nodiscardinherited

Definition at line 124 of file XChain_test.cpp.

◆ balance() [1/2]

template<class T>
STAmount xrpl::test::SEnv< T >::balance ( jtx::Account const & account) const
nodiscardinherited

Definition at line 130 of file XChain_test.cpp.

◆ balance() [2/2]

template<class T>
STAmount xrpl::test::SEnv< T >::balance ( jtx::Account const & account,
Issue const & issue ) const
nodiscardinherited

Definition at line 136 of file XChain_test.cpp.

◆ reserve()

template<class T>
XRPAmount xrpl::test::SEnv< T >::reserve ( std::uint32_t count)
inherited

Definition at line 142 of file XChain_test.cpp.

◆ txFee()

template<class T>
XRPAmount xrpl::test::SEnv< T >::txFee ( )
inherited

Definition at line 148 of file XChain_test.cpp.

◆ account()

template<class T>
SLE::const_pointer xrpl::test::SEnv< T >::account ( jtx::Account const & account)
inherited

Definition at line 154 of file XChain_test.cpp.

◆ bridge()

template<class T>
SLE::const_pointer xrpl::test::SEnv< T >::bridge ( json::Value const & jvb)
inherited

Definition at line 160 of file XChain_test.cpp.

◆ claimCount()

template<class T>
std::uint64_t xrpl::test::SEnv< T >::claimCount ( json::Value const & jvb)
inherited

Definition at line 178 of file XChain_test.cpp.

◆ claimID() [1/2]

template<class T>
std::uint64_t xrpl::test::SEnv< T >::claimID ( json::Value const & jvb)
inherited

Definition at line 184 of file XChain_test.cpp.

◆ claimID() [2/2]

template<class T>
SLE::const_pointer xrpl::test::SEnv< T >::claimID ( json::Value const & jvb,
std::uint64_t seq )
inherited

Definition at line 190 of file XChain_test.cpp.

◆ caClaimID()

template<class T>
SLE::const_pointer xrpl::test::SEnv< T >::caClaimID ( json::Value const & jvb,
std::uint64_t seq )
inherited

Definition at line 196 of file XChain_test.cpp.

Member Data Documentation

◆ mcDoor

Account const xrpl::test::jtx::XChainBridgeObjects::mcDoor
inherited

Definition at line 134 of file xchain_bridge.h.

◆ mcAlice

Account const xrpl::test::jtx::XChainBridgeObjects::mcAlice
inherited

Definition at line 135 of file xchain_bridge.h.

◆ mcBob

Account const xrpl::test::jtx::XChainBridgeObjects::mcBob
inherited

Definition at line 136 of file xchain_bridge.h.

◆ mcCarol

Account const xrpl::test::jtx::XChainBridgeObjects::mcCarol
inherited

Definition at line 137 of file xchain_bridge.h.

◆ mcGw

Account const xrpl::test::jtx::XChainBridgeObjects::mcGw
inherited

Definition at line 138 of file xchain_bridge.h.

◆ scDoor

Account const xrpl::test::jtx::XChainBridgeObjects::scDoor
inherited

Definition at line 139 of file xchain_bridge.h.

◆ scAlice

Account const xrpl::test::jtx::XChainBridgeObjects::scAlice
inherited

Definition at line 140 of file xchain_bridge.h.

◆ scBob

Account const xrpl::test::jtx::XChainBridgeObjects::scBob
inherited

Definition at line 141 of file xchain_bridge.h.

◆ scCarol

Account const xrpl::test::jtx::XChainBridgeObjects::scCarol
inherited

Definition at line 142 of file xchain_bridge.h.

◆ scGw

Account const xrpl::test::jtx::XChainBridgeObjects::scGw
inherited

Definition at line 143 of file xchain_bridge.h.

◆ scAttester

Account const xrpl::test::jtx::XChainBridgeObjects::scAttester
inherited

Definition at line 144 of file xchain_bridge.h.

◆ scReward

Account const xrpl::test::jtx::XChainBridgeObjects::scReward
inherited

Definition at line 145 of file xchain_bridge.h.

◆ mcuDoor

Account const xrpl::test::jtx::XChainBridgeObjects::mcuDoor
inherited

Definition at line 148 of file xchain_bridge.h.

◆ mcuAlice

Account const xrpl::test::jtx::XChainBridgeObjects::mcuAlice
inherited

Definition at line 149 of file xchain_bridge.h.

◆ mcuBob

Account const xrpl::test::jtx::XChainBridgeObjects::mcuBob
inherited

Definition at line 150 of file xchain_bridge.h.

◆ mcuCarol

Account const xrpl::test::jtx::XChainBridgeObjects::mcuCarol
inherited

Definition at line 151 of file xchain_bridge.h.

◆ mcuGw

Account const xrpl::test::jtx::XChainBridgeObjects::mcuGw
inherited

Definition at line 152 of file xchain_bridge.h.

◆ scuDoor

Account const xrpl::test::jtx::XChainBridgeObjects::scuDoor
inherited

Definition at line 153 of file xchain_bridge.h.

◆ scuAlice

Account const xrpl::test::jtx::XChainBridgeObjects::scuAlice
inherited

Definition at line 154 of file xchain_bridge.h.

◆ scuBob

Account const xrpl::test::jtx::XChainBridgeObjects::scuBob
inherited

Definition at line 155 of file xchain_bridge.h.

◆ scuCarol

Account const xrpl::test::jtx::XChainBridgeObjects::scuCarol
inherited

Definition at line 156 of file xchain_bridge.h.

◆ scuGw

Account const xrpl::test::jtx::XChainBridgeObjects::scuGw
inherited

Definition at line 157 of file xchain_bridge.h.

◆ mcUSD

IOU const xrpl::test::jtx::XChainBridgeObjects::mcUSD
inherited

Definition at line 159 of file xchain_bridge.h.

◆ scUSD

IOU const xrpl::test::jtx::XChainBridgeObjects::scUSD
inherited

Definition at line 160 of file xchain_bridge.h.

◆ jvXRPBridgeRPC

json::Value const xrpl::test::jtx::XChainBridgeObjects::jvXRPBridgeRPC
inherited

Definition at line 162 of file xchain_bridge.h.

◆ jvb

json::Value xrpl::test::jtx::XChainBridgeObjects::jvb
inherited

Definition at line 163 of file xchain_bridge.h.

◆ jvub

json::Value xrpl::test::jtx::XChainBridgeObjects::jvub
inherited

Definition at line 164 of file xchain_bridge.h.

◆ features

FeatureBitset const xrpl::test::jtx::XChainBridgeObjects::features
inherited

Definition at line 166 of file xchain_bridge.h.

◆ signers

std::vector<Signer> const xrpl::test::jtx::XChainBridgeObjects::signers
inherited

Definition at line 167 of file xchain_bridge.h.

◆ altSigners

std::vector<Signer> const xrpl::test::jtx::XChainBridgeObjects::altSigners
inherited

Definition at line 168 of file xchain_bridge.h.

◆ payee

std::vector<Account> const xrpl::test::jtx::XChainBridgeObjects::payee
inherited

Definition at line 169 of file xchain_bridge.h.

◆ payees

std::vector<Account> const xrpl::test::jtx::XChainBridgeObjects::payees
inherited

Definition at line 170 of file xchain_bridge.h.

◆ quorum

std::uint32_t const xrpl::test::jtx::XChainBridgeObjects::quorum {kUtXchainDefaultQuorum}
inherited

Definition at line 171 of file xchain_bridge.h.

◆ reward

STAmount const xrpl::test::jtx::XChainBridgeObjects::reward
inherited

Definition at line 173 of file xchain_bridge.h.

◆ splitRewardQuorum

STAmount const xrpl::test::jtx::XChainBridgeObjects::splitRewardQuorum
inherited

Definition at line 174 of file xchain_bridge.h.

◆ splitRewardEveryone

STAmount const xrpl::test::jtx::XChainBridgeObjects::splitRewardEveryone
inherited

Definition at line 175 of file xchain_bridge.h.

◆ tinyReward

STAmount const xrpl::test::jtx::XChainBridgeObjects::tinyReward
inherited

Definition at line 177 of file xchain_bridge.h.

◆ tinyRewardSplit

STAmount const xrpl::test::jtx::XChainBridgeObjects::tinyRewardSplit
inherited

Definition at line 178 of file xchain_bridge.h.

◆ tinyRewardRemainder

STAmount const xrpl::test::jtx::XChainBridgeObjects::tinyRewardRemainder
inherited

Definition at line 179 of file xchain_bridge.h.

◆ oneXrp

STAmount const xrpl::test::jtx::XChainBridgeObjects::oneXrp
inherited

Definition at line 181 of file xchain_bridge.h.

◆ xrpDust

STAmount const xrpl::test::jtx::XChainBridgeObjects::xrpDust
inherited

Definition at line 182 of file xchain_bridge.h.

◆ kDropPerXrp

int xrpl::test::jtx::XChainBridgeObjects::kDropPerXrp = 1000000
staticconstexprinherited

Definition at line 184 of file xchain_bridge.h.

◆ env

template<class T>
jtx::Env xrpl::test::SEnv< T >::env
inherited

Definition at line 65 of file XChain_test.cpp.