rippled
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 {
10namespace test {
11namespace jtx {
12
13/*
14 This shows how the jtx system may be extended to other
15 generators, funclets, conditions, and operations,
16 without changing the base declarations.
17*/
18
20namespace ticket {
21
24create(Account const& account, std::uint32_t count);
25
27class use
28{
29private:
31
32public:
33 use(std::uint32_t ticketSeq) : ticketSeq_{ticketSeq}
34 {
35 }
36
37 void
38 operator()(Env&, JTx& jt) const;
39};
40
41} // namespace ticket
42
45
46} // namespace jtx
47
48} // namespace test
49} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
A transaction testing environment.
Definition Env.h:119
Set a ticket sequence on a JTx.
Definition ticket.h:28
void operator()(Env &, JTx &jt) const
Definition ticket.cpp:22
std::uint32_t ticketSeq_
Definition ticket.h:30
use(std::uint32_t ticketSeq)
Definition ticket.h:33
Json::Value create(Account const &account, std::uint32_t count)
Create one of more tickets.
Definition ticket.cpp:12
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Execution context for applying a JSON transaction.
Definition JTx.h:25