xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
test
jtx
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
13
namespace
xrpl::test::jtx
{
14
18
namespace
check
{
19
23
json::Value
24
cash
(
jtx::Account
const
& dest,
UInt256
const
& checkId,
STAmount
const
& amount);
25
29
struct
DeliverMin
30
{
31
STAmount
value
;
32
explicit
DeliverMin
(
STAmount
deliverMin) :
value
(
std
::move(deliverMin))
33
{
34
}
35
};
36
40
json::Value
41
cash
(
jtx::Account
const
& dest,
UInt256
const
& checkId,
DeliverMin
const
& atLeast);
42
46
json::Value
47
cancel
(
jtx::Account
const
& dest,
UInt256
const
& checkId);
48
49
}
// namespace check
50
54
using
Checks
=
OwnerCount<ltCHECK>
;
55
56
}
// namespace xrpl::test::jtx
json::Value
Represents a JSON value.
Definition
json_value.h:117
xrpl::STAmount
Definition
STAmount.h:46
xrpl::test::jtx::Account
Immutable cryptographic account descriptor.
Definition
jtx/Account.h:21
xrpl::test::jtx::DeliverMin
Sets the DeliverMin on a JTx.
Definition
delivermin.h:16
xrpl::test::jtx::OwnerCount
Definition
owners.h:34
std
STL namespace.
xrpl::test::jtx::check
Check operations.
Definition
check.h:18
xrpl::test::jtx::check::cancel
json::Value cancel(jtx::Account const &dest, UInt256 const &checkId)
Cancel a check.
Definition
check.cpp:39
xrpl::test::jtx::check::cash
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
xrpl::test::jtx
Definition
Oracle_test.cpp:34
xrpl::test::jtx::Checks
OwnerCount< ltCHECK > Checks
Match the number of checks on the account.
Definition
check.h:54
xrpl::UInt256
BaseUInt< 256 > UInt256
Definition
base_uint.h:580
xrpl::test::jtx::check::DeliverMin::value
STAmount value
Definition
check.h:31
xrpl::test::jtx::check::DeliverMin::DeliverMin
DeliverMin(STAmount deliverMin)
Definition
check.h:32
utility
Generated by
1.17.0