rippled
Loading...
Searching...
No Matches
vault.h
1#ifndef XRPL_TEST_JTX_VAULT_H_INCLUDED
2#define XRPL_TEST_JTX_VAULT_H_INCLUDED
3
4#include <test/jtx/Account.h>
5#include <test/jtx/amount.h>
6
7#include <xrpl/basics/base_uint.h>
8#include <xrpl/json/json_value.h>
9#include <xrpl/protocol/Asset.h>
10#include <xrpl/protocol/Keylet.h>
11
12#include <optional>
13#include <tuple>
14
15namespace ripple {
16namespace test {
17namespace jtx {
18
19class Env;
20
21struct Vault
22{
24
31
34 create(CreateArgs const& args);
35
36 struct SetArgs
37 {
40 };
41
43 set(SetArgs const& args);
44
50
52 del(DeleteArgs const& args);
53
60
62 deposit(DepositArgs const& args);
63
70
72 withdraw(WithdrawArgs const& args);
73
81
83 clawback(ClawbackArgs const& args);
84};
85
86} // namespace jtx
87} // namespace test
88} // namespace ripple
89
90#endif
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:20
A transaction testing environment.
Definition Env.h:102
Match set account flags.
Definition flags.h:109
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::optional< STAmount > amount
Definition vault.h:79
Json::Value set(SetArgs const &args)
Definition vault.cpp:29
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 withdraw(WithdrawArgs const &args)
Definition vault.cpp:60
Json::Value del(DeleteArgs const &args)
Definition vault.cpp:39
Json::Value clawback(ClawbackArgs const &args)
Definition vault.cpp:71
Json::Value deposit(DepositArgs const &args)
Definition vault.cpp:49