20#include <test/jtx/paths.h>
22#include <xrpld/app/paths/Pathfinder.h>
24#include <xrpl/protocol/jss.h>
34 auto const from = env.
lookup(jv[jss::Account].asString());
35 auto const to = env.
lookup(jv[jss::Destination].asString());
38 std::make_shared<RippleLineCache>(
56 if (!found.isDefault())
Value & append(const Value &value)
Append value to array at the end.
virtual beast::Journal journal(std::string const &name)=0
Calculates payment paths.
bool findPaths(int searchLevel, std::function< bool(void)> const &continueCallback={})
void computePathRanks(int maxPaths, std::function< bool(void)> const &continueCallback={})
Compute the rankings of the paths.
STPathSet getBestPaths(int maxPaths, STPath &fullLiquidityPath, STPathSet const &extraPaths, AccountID const &srcIssuer, std::function< bool(void)> const &continueCallback={})
Json::Value getJson(JsonOptions) const override
Immutable cryptographic account descriptor.
A transaction testing environment.
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Account const & lookup(AccountID const &id) const
Returns the Account given the AccountID.
Converts to IOU Issue or STAmount.
void operator()(Env &, JTx &jt) const
void append_one(Account const &account)
void operator()(Env &, JTx &jt) const
@ objectValue
object value (collection of name/value pairs).
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
STAmount amountFromJson(SField const &name, Json::Value const &v)
std::string to_string(base_uint< Bits, Tag > const &a)
ripple::Currency currency
Execution context for applying a JSON transaction.