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

Public Member Functions

 SEnv (T &s, std::unique_ptr< Config > config, FeatureBitset features, std::unique_ptr< Logs > logs=nullptr, beast::Severity thresh=beast::Severity::Error)
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

jtx::Env env

Detailed Description

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

Definition at line 63 of file XChain_test.cpp.

Constructor & Destructor Documentation

◆ SEnv()

template<class T>
xrpl::test::SEnv< T >::SEnv ( T & s,
std::unique_ptr< Config > config,
FeatureBitset features,
std::unique_ptr< Logs > logs = nullptr,
beast::Severity thresh = beast::Severity::Error )

Definition at line 67 of file XChain_test.cpp.

Member Function Documentation

◆ close()

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

Definition at line 78 of file XChain_test.cpp.

◆ enableFeature()

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

Definition at line 85 of file XChain_test.cpp.

◆ disableFeature()

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

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 )

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 )

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 )

Definition at line 116 of file XChain_test.cpp.

◆ ter()

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

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
nodiscard

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
nodiscard

Definition at line 136 of file XChain_test.cpp.

◆ reserve()

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

Definition at line 142 of file XChain_test.cpp.

◆ txFee()

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

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)

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)

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)

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)

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 )

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 )

Definition at line 196 of file XChain_test.cpp.

Member Data Documentation

◆ env

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

Definition at line 65 of file XChain_test.cpp.