xrpld
Loading...
Searching...
No Matches
TxFormats.h
1#pragma once
2
3#include <xrpl/protocol/KnownFormats.h>
4#include <xrpl/protocol/SOTemplate.h>
5
6#include <cstdint>
7#include <vector>
8
9namespace xrpl {
10
41// clang-format off
42// Protocol-critical, hundreds of usages
43// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
45{
46
47#pragma push_macro("TRANSACTION")
48#undef TRANSACTION
49
50#define TRANSACTION(tag, value, ...) tag = value,
51
52#include <xrpl/protocol/detail/transactions.macro>
53
54#undef TRANSACTION
55#pragma pop_macro("TRANSACTION")
56
60 TtNicknameSet [[deprecated("This transaction type is not supported and should not be used.")]] = 6,
61
65 TtContract [[deprecated("This transaction type is not supported and should not be used.")]] = 9,
66
70 TtSpinalTap [[deprecated("This transaction type is not supported and should not be used.")]] = 11,
71
75 TtHookSet [[maybe_unused]] = 22,
76};
77// clang-format on
78
82class TxFormats : public KnownFormats<TxType, TxFormats>
83{
84private:
89 TxFormats();
90
91public:
92 static TxFormats const&
94
95 static std::vector<SOElement> const&
97};
98
99} // namespace xrpl
TxFormats()
Create the object.
Definition TxFormats.cpp:40
static std::vector< SOElement > const & getCommonFields()
Definition TxFormats.cpp:13
static TxFormats const & getInstance()
Definition TxFormats.cpp:60
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
TxType
Transaction type identifiers.
Definition TxFormats.h:45
@ TtNicknameSet
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:60
@ TtContract
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:65
@ TtSpinalTap
This identifier was never used, but the slot is reserved for historical purposes.
Definition TxFormats.h:70
@ TtHookSet
This transaction type installs a hook.
Definition TxFormats.h:75