rippled
Loading...
Searching...
No Matches
seq.h
1#pragma once
2
3#include <test/jtx/Env.h>
4#include <test/jtx/tags.h>
5
6#include <optional>
7
8namespace xrpl {
9namespace test {
10namespace jtx {
11
13struct seq
14{
15private:
16 bool manual_ = true;
18
19public:
20 explicit seq(autofill_t) : manual_(false)
21 {
22 }
23
24 explicit seq(none_t)
25 {
26 }
27
28 explicit seq(std::uint32_t num) : num_(num)
29 {
30 }
31
32 void
33 operator()(Env&, JTx& jt) const;
34};
35
36} // namespace jtx
37} // namespace test
38} // namespace xrpl
A transaction testing environment.
Definition Env.h:119
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
Set the sequence number on a JTx.
Definition seq.h:14
std::optional< std::uint32_t > num_
Definition seq.h:17
seq(std::uint32_t num)
Definition seq.h:28
seq(autofill_t)
Definition seq.h:20
void operator()(Env &, JTx &jt) const
Definition seq.cpp:10
seq(none_t)
Definition seq.h:24