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