rippled
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
39{
40
41#pragma push_macro("TRANSACTION")
42#undef TRANSACTION
43
44#define TRANSACTION(tag, value, ...) tag = value,
45
46#include <xrpl/protocol/detail/transactions.macro>
47
48#undef TRANSACTION
49#pragma pop_macro("TRANSACTION")
50
52 ttNICKNAME_SET [[deprecated("This transaction type is not supported and should not be used.")]] = 6,
53
55 ttCONTRACT [[deprecated("This transaction type is not supported and should not be used.")]] = 9,
56
58 ttSPINAL_TAP [[deprecated("This transaction type is not supported and should not be used.")]] = 11,
59
61 ttHOOK_SET [[maybe_unused]] = 22,
62};
63// clang-format on
64
67class TxFormats : public KnownFormats<TxType, TxFormats>
68{
69private:
73 TxFormats();
74
75public:
76 static TxFormats const&
78
79 static std::vector<SOElement> const&
81};
82
83} // namespace xrpl
Manages a list of known formats.
Manages the list of known transaction formats.
Definition TxFormats.h:68
TxFormats()
Create the object.
Definition TxFormats.cpp:35
static std::vector< SOElement > const & getCommonFields()
Definition TxFormats.cpp:11
static TxFormats const & getInstance()
Definition TxFormats.cpp:55
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:39
@ ttCONTRACT
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:55
@ ttNICKNAME_SET
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:52
@ ttHOOK_SET
This transaction type installs a hook.
Definition TxFormats.h:61
@ ttSPINAL_TAP
This identifier was never used, but the slot is reserved for historical purposes.
Definition TxFormats.h:58