xrpld
Loading...
Searching...
No Matches
check.h
1#pragma once
2
3#include <test/jtx/Account.h>
4#include <test/jtx/owners.h>
5
6#include <xrpl/basics/base_uint.h>
7#include <xrpl/json/json_value.h>
8#include <xrpl/protocol/LedgerFormats.h>
9#include <xrpl/protocol/STAmount.h>
10
11#include <utility>
12
13namespace xrpl::test::jtx {
14
18namespace check {
19
24cash(jtx::Account const& dest, uint256 const& checkId, STAmount const& amount);
25
30{
32 explicit DeliverMin(STAmount deliverMin) : value(std::move(deliverMin))
33 {
34 }
35};
36
41cash(jtx::Account const& dest, uint256 const& checkId, DeliverMin const& atLeast);
42
47cancel(jtx::Account const& dest, uint256 const& checkId);
48
49} // namespace check
50
55
56} // namespace xrpl::test::jtx
Represents a JSON value.
Definition json_value.h:117
Immutable cryptographic account descriptor.
Definition jtx/Account.h:21
Sets the DeliverMin on a JTx.
Definition delivermin.h:16
STL namespace.
Check operations.
Definition check.h:18
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:54
BaseUInt< 256 > uint256
Definition base_uint.h:580
DeliverMin(STAmount deliverMin)
Definition check.h:32