xrpld
Loading...
Searching...
No Matches
check.h
1#pragma once
2
3#include <test/jtx/Account.h>
4#include <test/jtx/Env.h>
5#include <test/jtx/owners.h>
6
7#include <utility>
8
9namespace xrpl::test::jtx {
10
12namespace check {
13
16cash(jtx::Account const& dest, uint256 const& checkId, STAmount const& amount);
17
20{
22 explicit DeliverMin(STAmount deliverMin) : value(std::move(deliverMin))
23 {
24 }
25};
26
29cash(jtx::Account const& dest, uint256 const& checkId, DeliverMin const& atLeast);
30
33cancel(jtx::Account const& dest, uint256 const& checkId);
34
35} // namespace check
36
39
40} // namespace xrpl::test::jtx
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition jtx/Account.h:17
Sets the DeliverMin on a JTx.
Definition delivermin.h:13
STL namespace.
Check operations.
Definition check.h:12
json::Value cancel(jtx::Account const &dest, uint256 const &checkId)
Cancel a check.
Definition check.cpp:39
json::Value cash(jtx::Account const &dest, uint256 const &checkId, STAmount const &amount)
Cash a check requiring that a specific amount be delivered.
Definition check.cpp:15
OwnerCount< ltCHECK > checks
Match the number of checks on the account.
Definition check.h:38
BaseUInt< 256 > uint256
Definition base_uint.h:562
DeliverMin(STAmount deliverMin)
Definition check.h:22