rippled
Loading...
Searching...
No Matches
TxFormats.h
1//------------------------------------------------------------------------------
2/*
3 This file is part of rippled: https://github.com/ripple/rippled
4 Copyright (c) 2012, 2013 Ripple Labs Inc.
5
6 Permission to use, copy, modify, and/or distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18//==============================================================================
19
20#ifndef RIPPLE_PROTOCOL_TXFORMATS_H_INCLUDED
21#define RIPPLE_PROTOCOL_TXFORMATS_H_INCLUDED
22
23#include <xrpl/protocol/KnownFormats.h>
24
25namespace ripple {
26
55// clang-format off
57{
58
59#pragma push_macro("TRANSACTION")
60#undef TRANSACTION
61
62#define TRANSACTION(tag, value, ...) tag = value,
63
64#include <xrpl/protocol/detail/transactions.macro>
65
66#undef TRANSACTION
67#pragma pop_macro("TRANSACTION")
68
70 ttNICKNAME_SET [[deprecated("This transaction type is not supported and should not be used.")]] = 6,
71
73 ttCONTRACT [[deprecated("This transaction type is not supported and should not be used.")]] = 9,
74
76 ttSPINAL_TAP [[deprecated("This transaction type is not supported and should not be used.")]] = 11,
77
79 ttHOOK_SET [[maybe_unused]] = 22,
80};
81// clang-format on
82
85class TxFormats : public KnownFormats<TxType, TxFormats>
86{
87private:
91 TxFormats();
92
93public:
94 static TxFormats const&
96};
97
98} // namespace ripple
99
100#endif
Manages a list of known formats.
Manages the list of known transaction formats.
Definition TxFormats.h:86
static TxFormats const & getInstance()
Definition TxFormats.cpp:71
TxFormats()
Create the object.
Definition TxFormats.cpp:29
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
TxType
Transaction type identifiers.
Definition TxFormats.h:57
@ ttSPINAL_TAP
This identifier was never used, but the slot is reserved for historical purposes.
Definition TxFormats.h:76
@ ttCONTRACT
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:73
@ ttHOOK_SET
This transaction type installs a hook.
Definition TxFormats.h:79
@ ttNICKNAME_SET
This transaction type is deprecated; it is retained for historical purposes.
Definition TxFormats.h:70