rippled
Loading...
Searching...
No Matches
ticket.h
1#ifndef XRPL_TEST_JTX_TICKET_H_INCLUDED
2#define XRPL_TEST_JTX_TICKET_H_INCLUDED
3
4#include <test/jtx/Account.h>
5#include <test/jtx/Env.h>
6#include <test/jtx/owners.h>
7
8#include <cstdint>
9
10namespace ripple {
11namespace test {
12namespace jtx {
13
14/*
15 This shows how the jtx system may be extended to other
16 generators, funclets, conditions, and operations,
17 without changing the base declarations.
18*/
19
21namespace ticket {
22
25create(Account const& account, std::uint32_t count);
26
28class use
29{
30private:
32
33public:
34 use(std::uint32_t ticketSeq) : ticketSeq_{ticketSeq}
35 {
36 }
37
38 void
39 operator()(Env&, JTx& jt) const;
40};
41
42} // namespace ticket
43
46
47} // namespace jtx
48
49} // namespace test
50} // namespace ripple
51
52#endif
Represents a JSON value.
Definition json_value.h:130
A transaction testing environment.
Definition Env.h:102
Set a ticket sequence on a JTx.
Definition ticket.h:29
void operator()(Env &, JTx &jt) const
Definition ticket.cpp:22
use(std::uint32_t ticketSeq)
Definition ticket.h:34
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:6
Execution context for applying a JSON transaction.
Definition JTx.h:26