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
81 TtXChainCreateClaimID [[deprecated("This transaction type is not supported and should not be used.")]] = 41,
82
87 TtXChainCommit [[deprecated("This transaction type is not supported and should not be used.")]] = 42,
88
93 TtXChainClaim [[deprecated("This transaction type is not supported and should not be used.")]] = 43,
94
99 TtXChainAccountCreateCommit [[deprecated("This transaction type is not supported and should not be used.")]] = 44,
100
105 TtXChainAddClaimAttestation [[deprecated("This transaction type is not supported and should not be used.")]] = 45,
106
111 TtXChainAddAccountCreateAttestation [[deprecated("This transaction type is not supported and should not be used.")]] = 46,
112
117 TtXChainModifyBridge [[deprecated("This transaction type is not supported and should not be used.")]] = 47,
118
123 TtXChainCreateBridge [[deprecated("This transaction type is not supported and should not be used.")]] = 48,
124};
125// clang-format on
126
130class TxFormats : public KnownFormats<TxType, TxFormats>
131{
132private:
137 TxFormats();
138
139public:
140 static TxFormats const&
141 getInstance();
142
143 static std::vector<SOElement> const&
145};
146
147} // 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
@ TtXChainModifyBridge
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:117
@ TtXChainAddClaimAttestation
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:105
@ TtXChainCreateBridge
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:123
@ 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
@ TtXChainCreateClaimID
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:81
@ TtXChainAddAccountCreateAttestation
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:111
@ TtXChainAccountCreateCommit
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:99
@ 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
@ TtXChainCommit
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:87
@ TtXChainClaim
This transaction type was removed with the XChainBridge amendment, which was never enabled on Mainnet...
Definition TxFormats.h:93