1#include <test/jtx/Env.h>
2#include <test/jtx/vault.h>
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/STAmount.h>
6#include <xrpl/protocol/jss.h>
19 jv[jss::TransactionType] = jss::VaultCreate;
24 jv[jss::Flags] = *args.
flags;
32 jv[jss::TransactionType] = jss::VaultSet;
42 jv[jss::TransactionType] = jss::VaultDelete;
52 jv[jss::TransactionType] = jss::VaultDeposit;
63 jv[jss::TransactionType] = jss::VaultWithdraw;
74 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)