20#include <test/jtx/Env.h>
21#include <test/jtx/vault.h>
23#include <xrpl/json/json_value.h>
24#include <xrpl/protocol/STAmount.h>
25#include <xrpl/protocol/jss.h>
38 jv[jss::TransactionType] = jss::VaultCreate;
43 jv[jss::Flags] = *args.
flags;
51 jv[jss::TransactionType] = jss::VaultSet;
61 jv[jss::TransactionType] = jss::VaultDelete;
71 jv[jss::TransactionType] = jss::VaultDeposit;
82 jv[jss::TransactionType] = jss::VaultWithdraw;
93 jv[jss::TransactionType] = jss::VaultClawback;
Json::Value getJson(JsonOptions=JsonOptions::none) const override
AccountID id() const
Returns the Account ID.
std::string const & human() const
Returns the human readable public key.
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Keylet vault(AccountID const &owner, std::uint32_t seq) noexcept
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Json::Value to_json(Asset const &asset)
std::string to_string(base_uint< Bits, Tag > const &a)
std::optional< STAmount > amount
std::optional< std::uint32_t > flags
Json::Value set(SetArgs const &args)
std::tuple< Json::Value, Keylet > create(CreateArgs const &args)
Return a VaultCreate transaction and the Vault's expected keylet.
Json::Value withdraw(WithdrawArgs const &args)
Json::Value del(DeleteArgs const &args)
Json::Value clawback(ClawbackArgs const &args)
Json::Value deposit(DepositArgs const &args)