1#include <test/jtx/paths.h>
3#include <xrpld/app/paths/Pathfinder.h>
5#include <xrpl/protocol/jss.h>
17 auto const from = env.
lookup(jv[jss::Account].asString());
18 auto const to = env.
lookup(jv[jss::Destination].asString());
22 if (jv.isMember(sfDomainID.jsonName))
24 if (!jv[sfDomainID.jsonName].isString())
27 auto const s = jv[sfDomainID.jsonName].asString();
52 if (!found.isDefault())
Value & append(Value const &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
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
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.