xrpld
Loading...
Searching...
No Matches
TxFormats.h
1#pragma once
2
3#include <xrpl/protocol/KnownFormats.h>
4
5#include <vector>
6
7namespace xrpl {
8
37// clang-format off
38// Protocol-critical, hundreds of usages
39// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
41{
42
43#pragma push_macro("TRANSACTION")
44#undef TRANSACTION
45
46#define TRANSACTION(tag, value, ...) tag = value,
47
48#include <xrpl/protocol/detail/transactions.macro>
49
50#undef TRANSACTION
51#pragma pop_macro("TRANSACTION")
52
54 TtNicknameSet [[deprecated("This transaction type is not supported and should not be used.")]] = 6,
55
57 TtContract [[deprecated("This transaction type is not supported and should not be used.")]] = 9,
58
60 TtSpinalTap [[deprecated("This transaction type is not supported and should not be used.")]] = 11,
61
63 TtHookSet [[maybe_unused]] = 22,
64};
65// clang-format on
66
69class TxFormats : public KnownFormats<TxType, TxFormats>
70{
71private:
75 TxFormats();
76
77public:
78 static TxFormats const&
80
81 static std::vector<SOElement> const&
83};
84
85} // namespace xrpl
TxFormats()
Create the object.
Definition TxFormats.cpp:37
static std::vector< SOElement > const & getCommonFields()
Definition TxFormats.cpp:13
static TxFormats const & getInstance()
Definition TxFormats.cpp:57
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:41
@ TtNicknameSet
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:54
@ TtContract
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:57
@ TtSpinalTap
This identifier was never used, but the slot is reserved for historical purposes.
Definition TxFormats.h:60
@ TtHookSet
This transaction type installs a hook.
Definition TxFormats.h:63