1#include <test/jtx/balance.h>
24 env.
test.
expect(sle->getFieldAmount(sfBalance) == value);
36 auto amount = sle->getFieldAmount(sfBalance);
37 amount.setIssuer(issue.
account);
60 STAmount const amount{mptIssue, sle->getFieldU64(sfMPTAmount)};
69 [&](
auto const& issue) {
bool expect(Condition const &shouldBeTrue)
Evaluate a test condition.
constexpr value_type const & value() const
A currency issued by an account.
constexpr MPTID const & getMptID() const
Asset const & asset() const
AccountID id() const
Returns the Account ID.
A transaction testing environment.
beast::unit_test::suite & test
std::shared_ptr< SLE const > le(Account const &account) const
Return an account root.
void operator()(Env &) const
Keylet mptoken(MPTID const &issuanceID, AccountID const &holder) noexcept
Keylet line(AccountID const &id0, AccountID const &id1, Currency const ¤cy) noexcept
The index of a trust line for a given currency.
Keylet account(AccountID const &id) noexcept
AccountID root.
void doBalance(Env &env, AccountID const &account, bool none, STAmount const &value, Issue const &issue)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool isXRP(AccountID const &c)