xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
test
jtx
ticket.h
1
#pragma once
2
3
#include <test/jtx/Account.h>
4
#include <test/jtx/Env.h>
5
#include <test/jtx/JTx.h>
6
#include <test/jtx/owners.h>
7
8
#include <xrpl/json/json_value.h>
9
#include <xrpl/protocol/LedgerFormats.h>
10
11
#include <
cstdint
>
12
13
namespace
xrpl::test::jtx
{
14
15
/*
16
This shows how the jtx system may be extended to other
17
generators, funclets, conditions, and operations,
18
without changing the base declarations.
19
*/
20
24
namespace
ticket
{
25
29
json::Value
30
create
(
Account
const
& account, std::uint32_t count);
31
35
class
Use
36
{
37
private
:
38
std::uint32_t
ticketSeq_
;
39
40
public
:
41
Use
(
std::uint32_t
ticketSeq) :
ticketSeq_
{ticketSeq}
42
{
43
}
44
45
void
46
operator()
(
Env
&,
JTx
& jt)
const
;
47
};
48
49
}
// namespace ticket
50
54
using
Tickets
=
OwnerCount<ltTICKET>
;
55
56
}
// namespace xrpl::test::jtx
xrpl::test::jtx::Env
A transaction testing environment.
Definition
Env.h:161
xrpl::test::jtx::OwnerCount
Definition
owners.h:34
xrpl::test::jtx::ticket::Use::operator()
void operator()(Env &, JTx &jt) const
Definition
ticket.cpp:26
xrpl::test::jtx::ticket::Use::ticketSeq_
std::uint32_t ticketSeq_
Definition
ticket.h:38
xrpl::test::jtx::ticket::Use::Use
Use(std::uint32_t ticketSeq)
Definition
ticket.h:41
cstdint
std::uint32_t
xrpl::test::jtx::ticket
Ticket operations.
Definition
ticket.cpp:13
xrpl::test::jtx::ticket::create
json::Value create(Account const &account, std::uint32_t count)
Create one of more tickets.
Definition
ticket.cpp:16
xrpl::test::jtx
Definition
Oracle_test.cpp:34
xrpl::test::jtx::Tickets
OwnerCount< ltTICKET > Tickets
Match the number of tickets on the account.
Definition
ticket.h:54
xrpl::FeePayerType::Account
@ Account
Definition
Transactor.h:145
xrpl::test::jtx::JTx
Execution context for applying a JSON transaction.
Definition
JTx.h:27
Generated by
1.17.0