xrpld
Loading...
Searching...
No Matches
ticket.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 <cstdint>
8
9namespace xrpl::test::jtx {
10
11/*
12 This shows how the jtx system may be extended to other
13 generators, funclets, conditions, and operations,
14 without changing the base declarations.
15*/
16
18namespace ticket {
19
21json::Value
22create(Account const& account, std::uint32_t count);
23
25class Use
26{
27private:
29
30public:
31 Use(std::uint32_t ticketSeq) : ticketSeq_{ticketSeq}
32 {
33 }
34
35 void
36 operator()(Env&, JTx& jt) const;
37};
38
39} // namespace ticket
40
43
44} // namespace xrpl::test::jtx
A transaction testing environment.
Definition Env.h:143
void operator()(Env &, JTx &jt) const
Definition ticket.cpp:26
std::uint32_t ticketSeq_
Definition ticket.h:28
Use(std::uint32_t ticketSeq)
Definition ticket.h:31
Ticket operations.
Definition ticket.cpp:13
json::Value create(Account const &account, std::uint32_t count)
Create one of more tickets.
Definition ticket.cpp:16
OwnerCount< ltTICKET > tickets
Match the number of tickets on the account.
Definition ticket.h:42
Execution context for applying a JSON transaction.
Definition JTx.h:23