rippled
ripple
protocol
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 <ripple/protocol/KnownFormats.h>
24
25
namespace
ripple
{
26
33
enum
TxType
{
34
ttINVALID
= -1,
35
36
ttPAYMENT
= 0,
37
ttESCROW_CREATE
= 1,
38
ttESCROW_FINISH
= 2,
39
ttACCOUNT_SET
= 3,
40
ttESCROW_CANCEL
= 4,
41
ttREGULAR_KEY_SET
= 5,
42
ttNICKNAME_SET
= 6,
// open
43
ttOFFER_CREATE
= 7,
44
ttOFFER_CANCEL
= 8,
45
no_longer_used
= 9,
46
ttTICKET_CREATE
= 10,
47
// = 11, // open
48
ttSIGNER_LIST_SET
= 12,
49
ttPAYCHAN_CREATE
= 13,
50
ttPAYCHAN_FUND
= 14,
51
ttPAYCHAN_CLAIM
= 15,
52
ttCHECK_CREATE
= 16,
53
ttCHECK_CASH
= 17,
54
ttCHECK_CANCEL
= 18,
55
ttDEPOSIT_PREAUTH
= 19,
56
ttTRUST_SET
= 20,
57
ttACCOUNT_DELETE
= 21,
58
59
ttHOOK_SET
[[maybe_unused]] = 22,
60
61
ttAMENDMENT
= 100,
62
ttFEE
= 101,
63
ttUNL_MODIFY
= 102,
64
};
65
68
class
TxFormats
:
public
KnownFormats
<TxType>
69
{
70
private
:
74
TxFormats
();
75
76
public
:
77
static
TxFormats
const
&
78
getInstance
();
79
};
80
81
}
// namespace ripple
82
83
#endif
ripple::ttPAYCHAN_CLAIM
@ ttPAYCHAN_CLAIM
Definition:
TxFormats.h:51
ripple::ttCHECK_CANCEL
@ ttCHECK_CANCEL
Definition:
TxFormats.h:54
ripple::ttHOOK_SET
@ ttHOOK_SET
Definition:
TxFormats.h:59
ripple::ttACCOUNT_DELETE
@ ttACCOUNT_DELETE
Definition:
TxFormats.h:57
ripple::ttINVALID
@ ttINVALID
Definition:
TxFormats.h:34
ripple::ttOFFER_CREATE
@ ttOFFER_CREATE
Definition:
TxFormats.h:43
ripple::ttESCROW_FINISH
@ ttESCROW_FINISH
Definition:
TxFormats.h:38
ripple::ttPAYMENT
@ ttPAYMENT
Definition:
TxFormats.h:36
ripple::ttFEE
@ ttFEE
Definition:
TxFormats.h:62
ripple::TxFormats::getInstance
static TxFormats const & getInstance()
Definition:
TxFormats.cpp:277
ripple::KnownFormats
Manages a list of known formats.
Definition:
KnownFormats.h:39
ripple::ttTRUST_SET
@ ttTRUST_SET
Definition:
TxFormats.h:56
ripple::TxFormats::TxFormats
TxFormats()
Create the object.
Definition:
TxFormats.cpp:25
ripple::ttCHECK_CASH
@ ttCHECK_CASH
Definition:
TxFormats.h:53
ripple::ttTICKET_CREATE
@ ttTICKET_CREATE
Definition:
TxFormats.h:46
ripple::ttAMENDMENT
@ ttAMENDMENT
Definition:
TxFormats.h:61
ripple::no_longer_used
@ no_longer_used
Definition:
TxFormats.h:45
ripple::TxFormats
Manages the list of known transaction formats.
Definition:
TxFormats.h:68
ripple::ttPAYCHAN_CREATE
@ ttPAYCHAN_CREATE
Definition:
TxFormats.h:49
ripple::ttESCROW_CREATE
@ ttESCROW_CREATE
Definition:
TxFormats.h:37
ripple::ttCHECK_CREATE
@ ttCHECK_CREATE
Definition:
TxFormats.h:52
ripple::TxType
TxType
Transaction type identifiers.
Definition:
TxFormats.h:33
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition:
RCLCensorshipDetector.h:29
ripple::ttESCROW_CANCEL
@ ttESCROW_CANCEL
Definition:
TxFormats.h:40
ripple::ttACCOUNT_SET
@ ttACCOUNT_SET
Definition:
TxFormats.h:39
ripple::ttOFFER_CANCEL
@ ttOFFER_CANCEL
Definition:
TxFormats.h:44
ripple::ttNICKNAME_SET
@ ttNICKNAME_SET
Definition:
TxFormats.h:42
ripple::ttUNL_MODIFY
@ ttUNL_MODIFY
Definition:
TxFormats.h:63
ripple::ttPAYCHAN_FUND
@ ttPAYCHAN_FUND
Definition:
TxFormats.h:50
ripple::ttREGULAR_KEY_SET
@ ttREGULAR_KEY_SET
Definition:
TxFormats.h:41
ripple::ttDEPOSIT_PREAUTH
@ ttDEPOSIT_PREAUTH
Definition:
TxFormats.h:55
ripple::ttSIGNER_LIST_SET
@ ttSIGNER_LIST_SET
Definition:
TxFormats.h:48
Generated by
1.8.17