xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
protocol
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
9
namespace
xrpl
{
10
41
// clang-format off
42
// Protocol-critical, hundreds of usages
43
// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
44
enum
TxType
:
std::uint16_t
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
};
77
// clang-format on
78
82
class
TxFormats
:
public
KnownFormats
<TxType, TxFormats>
83
{
84
private
:
89
TxFormats
();
90
91
public
:
92
static
TxFormats
const
&
93
getInstance
();
94
95
static
std::vector<SOElement>
const
&
96
getCommonFields
();
97
};
98
99
}
// namespace xrpl
xrpl::KnownFormats< TxType, TxFormats >::KnownFormats
KnownFormats()
Definition
KnownFormats.h:87
xrpl::TxFormats::TxFormats
TxFormats()
Create the object.
Definition
TxFormats.cpp:40
xrpl::TxFormats::getCommonFields
static std::vector< SOElement > const & getCommonFields()
Definition
TxFormats.cpp:13
xrpl::TxFormats::getInstance
static TxFormats const & getInstance()
Definition
TxFormats.cpp:60
cstdint
std::uint16_t
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::TxType
TxType
Transaction type identifiers.
Definition
TxFormats.h:45
xrpl::TtNicknameSet
@ TtNicknameSet
This transaction type is deprecated; it is retained for historical purposes.
Definition
TxFormats.h:60
xrpl::TtContract
@ TtContract
This transaction type is deprecated; it is retained for historical purposes.
Definition
TxFormats.h:65
xrpl::TtSpinalTap
@ TtSpinalTap
This identifier was never used, but the slot is reserved for historical purposes.
Definition
TxFormats.h:70
xrpl::TtHookSet
@ TtHookSet
This transaction type installs a hook.
Definition
TxFormats.h:75
vector
Generated by
1.17.0