rippled
Loading...
Searching...
No Matches
TxFormats.h
1#pragma once
2
3#include <xrpl/protocol/KnownFormats.h>
4
5namespace xrpl {
6
35// clang-format off
37{
38
39#pragma push_macro("TRANSACTION")
40#undef TRANSACTION
41
42#define TRANSACTION(tag, value, ...) tag = value,
43
44#include <xrpl/protocol/detail/transactions.macro>
45
46#undef TRANSACTION
47#pragma pop_macro("TRANSACTION")
48
50 ttNICKNAME_SET [[deprecated("This transaction type is not supported and should not be used.")]] = 6,
51
53 ttCONTRACT [[deprecated("This transaction type is not supported and should not be used.")]] = 9,
54
56 ttSPINAL_TAP [[deprecated("This transaction type is not supported and should not be used.")]] = 11,
57
59 ttHOOK_SET [[maybe_unused]] = 22,
60};
61// clang-format on
62
65class TxFormats : public KnownFormats<TxType, TxFormats>
66{
67private:
71 TxFormats();
72
73public:
74 static TxFormats const&
76};
77
78} // namespace xrpl
Manages a list of known formats.
Manages the list of known transaction formats.
Definition TxFormats.h:66
TxFormats()
Create the object.
Definition TxFormats.cpp:10
static TxFormats const & getInstance()
Definition TxFormats.cpp:51
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:37
@ ttCONTRACT
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:53
@ ttNICKNAME_SET
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:50
@ ttHOOK_SET
This transaction type installs a hook.
Definition TxFormats.h:59
@ ttSPINAL_TAP
This identifier was never used, but the slot is reserved for historical purposes.
Definition TxFormats.h:56