xrpld
Loading...
Searching...
No Matches
test
jtx
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
9
namespace
xrpl::test::jtx
{
10
12
namespace
check
{
13
15
json::Value
16
cash
(
jtx::Account
const
& dest,
uint256
const
& checkId,
STAmount
const
& amount);
17
19
struct
DeliverMin
20
{
21
STAmount
value
;
22
explicit
DeliverMin
(
STAmount
deliverMin) :
value
(
std
::move(deliverMin))
23
{
24
}
25
};
26
28
json::Value
29
cash
(
jtx::Account
const
& dest,
uint256
const
& checkId,
DeliverMin
const
& atLeast);
30
32
json::Value
33
cancel
(
jtx::Account
const
& dest,
uint256
const
& checkId);
34
35
}
// namespace check
36
38
using
checks
=
OwnerCount<ltCHECK>
;
39
40
}
// namespace xrpl::test::jtx
json::Value
Represents a JSON value.
Definition
json_value.h:130
xrpl::STAmount
Definition
STAmount.h:32
xrpl::test::jtx::Account
Immutable cryptographic account descriptor.
Definition
jtx/Account.h:17
xrpl::test::jtx::DeliverMin
Sets the DeliverMin on a JTx.
Definition
delivermin.h:13
xrpl::test::jtx::OwnerCount
Definition
owners.h:33
std
STL namespace.
xrpl::test::jtx::check
Check operations.
Definition
check.h:12
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:38
xrpl::uint256
BaseUInt< 256 > uint256
Definition
base_uint.h:562
xrpl::test::jtx::check::DeliverMin::value
STAmount value
Definition
check.h:21
xrpl::test::jtx::check::DeliverMin::DeliverMin
DeliverMin(STAmount deliverMin)
Definition
check.h:22
utility
Generated by
1.16.1