rippled
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
namespace
xrpl
{
8
namespace
test {
9
namespace
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
const
& deliverMin) :
value
(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
=
owner_count<ltCHECK>
;
39
40
}
// namespace jtx
41
42
}
// namespace test
43
}
// namespace xrpl
Json::Value
Represents a JSON value.
Definition
json_value.h:130
xrpl::STAmount
Definition
STAmount.h:30
xrpl::base_uint< 256 >
xrpl::test::jtx::Account
Immutable cryptographic account descriptor.
Definition
Account.h:19
xrpl::test::jtx::owner_count
Definition
owners.h:29
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:14
xrpl::test::jtx::check::cancel
Json::Value cancel(jtx::Account const &dest, uint256 const &checkId)
Cancel a check.
Definition
check.cpp:38
xrpl::test::jtx::amount
auto const amount
Definition
TestHelpers.h:276
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::test::jtx::check::DeliverMin
Type used to specify DeliverMin for cashing a check.
Definition
check.h:20
xrpl::test::jtx::check::DeliverMin::DeliverMin
DeliverMin(STAmount const &deliverMin)
Definition
check.h:22
xrpl::test::jtx::check::DeliverMin::value
STAmount value
Definition
check.h:21
Generated by
1.9.8