22#include <xrpl/beast/unit_test/suite.h>
23#include <xrpl/protocol/jss.h>
39 env.
fund(
XRP(100000), domainOwner);
46 auto const domainID = objects.begin()->first;
48 for (
auto const& account : accounts)
59 : gw(
"permdex-gateway")
60 , domainOwner(
"permdex-domainOwner")
61 , alice(
"permdex-alice")
63 , carol(
"permdex-carol")
65 , credType(
"permdex-abcde")
Immutable cryptographic account descriptor.
A transaction testing environment.
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
void trust(STAmount const &amount, Account const &account)
Establish trust lines.
void fund(bool setDefaultRipple, STAmount const &amount, Account const &account)
PermissionedDEX(Env &env)
Json::Value create(jtx::Account const &subject, jtx::Account const &issuer, std::string_view credType)
Json::Value accept(jtx::Account const &subject, jtx::Account const &issuer, std::string_view credType)
Json::Value setTx(AccountID const &account, Credentials const &credentials, std::optional< uint256 > domain)
std::map< uint256, Json::Value > getObjects(Account const &account, Env &env, bool withType)
uint256 setupDomain(jtx::Env &env, std::vector< jtx::Account > const &accounts, jtx::Account const &domainOwner, std::string const &credType)
Json::Value pay(AccountID const &account, AccountID const &to, AnyAmount amount)
Create a payment.
XRP_t const XRP
Converts to XRP Issue or STAmount.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.