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

Public Types

using balance = Balance<T>

Public Member Functions

 BalanceTransfer (T &env, jtx::Account const &fromAcct, jtx::Account const &toAcct, jtx::Account const &payer, jtx::Account const *payees, size_t numPayees, bool withClaim)
 BalanceTransfer (T &env, jtx::Account const &fromAcct, jtx::Account const &toAcct, jtx::Account const &payer, std::vector< jtx::Account > const &payees, bool withClaim)
bool payeesReceived (STAmount const &reward) const
bool checkMostBalances (STAmount const &amt, STAmount const &reward)
bool hasHappened (STAmount const &amt, STAmount const &reward, bool checkPayer=true)
bool hasNotHappened ()

Public Attributes

balance from
balance to
balance payer
std::vector< balancerewardAccounts
XRPAmount txFees

Detailed Description

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

Definition at line 263 of file XChain_test.cpp.

Member Typedef Documentation

◆ balance

template<class T>
using xrpl::test::BalanceTransfer< T >::balance = Balance<T>

Definition at line 265 of file XChain_test.cpp.

Constructor & Destructor Documentation

◆ BalanceTransfer() [1/2]

template<class T>
xrpl::test::BalanceTransfer< T >::BalanceTransfer ( T & env,
jtx::Account const & fromAcct,
jtx::Account const & toAcct,
jtx::Account const & payer,
jtx::Account const * payees,
size_t numPayees,
bool withClaim )

Definition at line 273 of file XChain_test.cpp.

◆ BalanceTransfer() [2/2]

template<class T>
xrpl::test::BalanceTransfer< T >::BalanceTransfer ( T & env,
jtx::Account const & fromAcct,
jtx::Account const & toAcct,
jtx::Account const & payer,
std::vector< jtx::Account > const & payees,
bool withClaim )

Definition at line 295 of file XChain_test.cpp.

Member Function Documentation

◆ payeesReceived()

template<class T>
bool xrpl::test::BalanceTransfer< T >::payeesReceived ( STAmount const & reward) const
nodiscard

Definition at line 307 of file XChain_test.cpp.

◆ checkMostBalances()

template<class T>
bool xrpl::test::BalanceTransfer< T >::checkMostBalances ( STAmount const & amt,
STAmount const & reward )

Definition at line 314 of file XChain_test.cpp.

◆ hasHappened()

template<class T>
bool xrpl::test::BalanceTransfer< T >::hasHappened ( STAmount const & amt,
STAmount const & reward,
bool checkPayer = true )

Definition at line 320 of file XChain_test.cpp.

◆ hasNotHappened()

template<class T>
bool xrpl::test::BalanceTransfer< T >::hasNotHappened ( )

Definition at line 328 of file XChain_test.cpp.

Member Data Documentation

◆ from

template<class T>
balance xrpl::test::BalanceTransfer< T >::from

Definition at line 267 of file XChain_test.cpp.

◆ to

template<class T>
balance xrpl::test::BalanceTransfer< T >::to

Definition at line 268 of file XChain_test.cpp.

◆ payer

template<class T>
balance xrpl::test::BalanceTransfer< T >::payer

Definition at line 269 of file XChain_test.cpp.

◆ rewardAccounts

template<class T>
std::vector<balance> xrpl::test::BalanceTransfer< T >::rewardAccounts

Definition at line 270 of file XChain_test.cpp.

◆ txFees

template<class T>
XRPAmount xrpl::test::BalanceTransfer< T >::txFees

Definition at line 271 of file XChain_test.cpp.