rippled
|
Classes | |
struct | StateGuard |
Public Types | |
using | ResetState = std::tuple< size_t, size_t > |
Public Member Functions | |
jtx::Account | getAccount (size_t id) |
ripple::Currency | getCurrency (size_t id) |
ResetState | getResetState () const |
void | resetTo (ResetState const &s) |
void | setupEnv (jtx::Env &env, size_t numAct, size_t numCur, std::optional< size_t > const &offererIndex) |
std::int64_t | totalXRP (ReadView const &v, bool incRoot) |
bool | checkBalances (ReadView const &v1, ReadView const &v2) |
jtx::Account | getAvailAccount () |
ripple::Currency | getAvailCurrency () |
template<class F > | |
void | for_each_element_pair (STAmount const &sendMax, STAmount const &deliver, std::vector< STPathElement > const &prefix, std::vector< STPathElement > const &suffix, std::optional< AccountID > const &existingAcc, std::optional< Currency > const &existingCur, std::optional< AccountID > const &existingIss, F &&f) |
Public Attributes | |
std::vector< jtx::Account > | accounts |
std::vector< ripple::Currency > | currencies |
std::vector< std::string > | currencyNames |
size_t | nextAvailAccount = 0 |
size_t | nextAvailCurrency = 0 |
Definition at line 335 of file PayStrand_test.cpp.
using ripple::test::ExistingElementPool::ResetState = std::tuple<size_t, size_t> |
Definition at line 360 of file PayStrand_test.cpp.
jtx::Account ripple::test::ExistingElementPool::getAccount | ( | size_t | id | ) |
Definition at line 342 of file PayStrand_test.cpp.
ripple::Currency ripple::test::ExistingElementPool::getCurrency | ( | size_t | id | ) |
Definition at line 349 of file PayStrand_test.cpp.
ResetState ripple::test::ExistingElementPool::getResetState | ( | ) | const |
Definition at line 362 of file PayStrand_test.cpp.
void ripple::test::ExistingElementPool::resetTo | ( | ResetState const & | s | ) |
Definition at line 368 of file PayStrand_test.cpp.
void ripple::test::ExistingElementPool::setupEnv | ( | jtx::Env & | env, |
size_t | numAct, | ||
size_t | numCur, | ||
std::optional< size_t > const & | offererIndex | ||
) |
Definition at line 394 of file PayStrand_test.cpp.
std::int64_t ripple::test::ExistingElementPool::totalXRP | ( | ReadView const & | v, |
bool | incRoot | ||
) |
Definition at line 497 of file PayStrand_test.cpp.
Definition at line 518 of file PayStrand_test.cpp.
jtx::Account ripple::test::ExistingElementPool::getAvailAccount | ( | ) |
Definition at line 567 of file PayStrand_test.cpp.
ripple::Currency ripple::test::ExistingElementPool::getAvailCurrency | ( | ) |
Definition at line 573 of file PayStrand_test.cpp.
void ripple::test::ExistingElementPool::for_each_element_pair | ( | STAmount const & | sendMax, |
STAmount const & | deliver, | ||
std::vector< STPathElement > const & | prefix, | ||
std::vector< STPathElement > const & | suffix, | ||
std::optional< AccountID > const & | existingAcc, | ||
std::optional< Currency > const & | existingCur, | ||
std::optional< AccountID > const & | existingIss, | ||
F && | f | ||
) |
Definition at line 580 of file PayStrand_test.cpp.
std::vector<jtx::Account> ripple::test::ExistingElementPool::accounts |
Definition at line 337 of file PayStrand_test.cpp.
std::vector<ripple::Currency> ripple::test::ExistingElementPool::currencies |
Definition at line 338 of file PayStrand_test.cpp.
std::vector<std::string> ripple::test::ExistingElementPool::currencyNames |
Definition at line 339 of file PayStrand_test.cpp.
size_t ripple::test::ExistingElementPool::nextAvailAccount = 0 |
Definition at line 357 of file PayStrand_test.cpp.
size_t ripple::test::ExistingElementPool::nextAvailCurrency = 0 |
Definition at line 358 of file PayStrand_test.cpp.