rippled
Loading...
Searching...
No Matches
vault.h
1#pragma once
2
3#include <test/jtx/Account.h>
4#include <test/jtx/amount.h>
5
6#include <xrpl/basics/base_uint.h>
7#include <xrpl/json/json_value.h>
8#include <xrpl/protocol/Asset.h>
9#include <xrpl/protocol/Keylet.h>
10
11#include <optional>
12#include <tuple>
13
14namespace xrpl {
15namespace test {
16namespace jtx {
17
18class Env;
19
20struct Vault
21{
23
30
33 create(CreateArgs const& args);
34
35 struct SetArgs
36 {
39 };
40
42 set(SetArgs const& args);
43
49
51 del(DeleteArgs const& args);
52
59
61 deposit(DepositArgs const& args);
62
69
71 withdraw(WithdrawArgs const& args);
72
80
82 clawback(ClawbackArgs const& args);
83};
84
85} // namespace jtx
86} // namespace test
87} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:19
A transaction testing environment.
Definition Env.h:119
Match set account flags.
Definition flags.h:108
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
std::optional< STAmount > amount
Definition vault.h:78
Json::Value clawback(ClawbackArgs const &args)
Definition vault.cpp:70
std::tuple< Json::Value, Keylet > create(CreateArgs const &args)
Return a VaultCreate transaction and the Vault's expected keylet.
Definition vault.cpp:15
Json::Value deposit(DepositArgs const &args)
Definition vault.cpp:48
Json::Value withdraw(WithdrawArgs const &args)
Definition vault.cpp:59
Json::Value set(SetArgs const &args)
Definition vault.cpp:28
Json::Value del(DeleteArgs const &args)
Definition vault.cpp:38