rippled
Loading...
Searching...
No Matches
TxFormats.h
1#ifndef XRPL_PROTOCOL_TXFORMATS_H_INCLUDED
2#define XRPL_PROTOCOL_TXFORMATS_H_INCLUDED
3
4#include <xrpl/protocol/KnownFormats.h>
5
6namespace ripple {
7
36// clang-format off
38{
39
40#pragma push_macro("TRANSACTION")
41#undef TRANSACTION
42
43#define TRANSACTION(tag, value, ...) tag = value,
44
45#include <xrpl/protocol/detail/transactions.macro>
46
47#undef TRANSACTION
48#pragma pop_macro("TRANSACTION")
49
51 ttNICKNAME_SET [[deprecated("This transaction type is not supported and should not be used.")]] = 6,
52
54 ttCONTRACT [[deprecated("This transaction type is not supported and should not be used.")]] = 9,
55
57 ttSPINAL_TAP [[deprecated("This transaction type is not supported and should not be used.")]] = 11,
58
60 ttHOOK_SET [[maybe_unused]] = 22,
61};
62// clang-format on
63
66class TxFormats : public KnownFormats<TxType, TxFormats>
67{
68private:
72 TxFormats();
73
74public:
75 static TxFormats const&
77};
78
79} // namespace ripple
80
81#endif
Manages a list of known formats.
Manages the list of known transaction formats.
Definition TxFormats.h:67
static TxFormats const & getInstance()
Definition TxFormats.cpp:52
TxFormats()
Create the object.
Definition TxFormats.cpp:10
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
TxType
Transaction type identifiers.
Definition TxFormats.h:38
@ ttSPINAL_TAP
This identifier was never used, but the slot is reserved for historical purposes.
Definition TxFormats.h:57
@ ttCONTRACT
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:54
@ ttHOOK_SET
This transaction type installs a hook.
Definition TxFormats.h:60
@ ttNICKNAME_SET
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:51