rippled
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 {
35  ttINVALID = -1,
36 
37  ttPAYMENT = 0,
43  ttNICKNAME_SET = 6, // open
59 
60  ttAMENDMENT = 100,
61  ttFEE = 101,
62 };
63 
66 class TxFormats : public KnownFormats <TxType>
67 {
68 private:
72  TxFormats ();
73 
74 public:
75  static TxFormats const& getInstance ();
76 };
77 
78 } // ripple
79 
80 #endif
ripple::ttPAYCHAN_CLAIM
@ ttPAYCHAN_CLAIM
Definition: TxFormats.h:52
ripple::ttCHECK_CANCEL
@ ttCHECK_CANCEL
Definition: TxFormats.h:55
ripple::ttACCOUNT_DELETE
@ ttACCOUNT_DELETE
Definition: TxFormats.h:58
ripple::ttINVALID
@ ttINVALID
Definition: TxFormats.h:35
ripple::ttOFFER_CREATE
@ ttOFFER_CREATE
Definition: TxFormats.h:44
ripple::ttESCROW_FINISH
@ ttESCROW_FINISH
Definition: TxFormats.h:39
ripple::ttPAYMENT
@ ttPAYMENT
Definition: TxFormats.h:37
ripple::ttFEE
@ ttFEE
Definition: TxFormats.h:61
ripple::TxFormats::getInstance
static TxFormats const & getInstance()
Definition: TxFormats.cpp:236
ripple::KnownFormats
Manages a list of known formats.
Definition: KnownFormats.h:39
ripple::ttTRUST_SET
@ ttTRUST_SET
Definition: TxFormats.h:57
ripple::TxFormats::TxFormats
TxFormats()
Create the object.
Definition: TxFormats.cpp:25
ripple::ttCHECK_CASH
@ ttCHECK_CASH
Definition: TxFormats.h:54
ripple::ttTICKET_CREATE
@ ttTICKET_CREATE
Definition: TxFormats.h:47
ripple::ttAMENDMENT
@ ttAMENDMENT
Definition: TxFormats.h:60
ripple::no_longer_used
@ no_longer_used
Definition: TxFormats.h:46
ripple::TxFormats
Manages the list of known transaction formats.
Definition: TxFormats.h:66
ripple::ttPAYCHAN_CREATE
@ ttPAYCHAN_CREATE
Definition: TxFormats.h:50
ripple::ttESCROW_CREATE
@ ttESCROW_CREATE
Definition: TxFormats.h:38
ripple::ttCHECK_CREATE
@ ttCHECK_CREATE
Definition: TxFormats.h:53
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::ttTICKET_CANCEL
@ ttTICKET_CANCEL
Definition: TxFormats.h:48
ripple::ttESCROW_CANCEL
@ ttESCROW_CANCEL
Definition: TxFormats.h:41
ripple::ttACCOUNT_SET
@ ttACCOUNT_SET
Definition: TxFormats.h:40
ripple::ttOFFER_CANCEL
@ ttOFFER_CANCEL
Definition: TxFormats.h:45
ripple::ttNICKNAME_SET
@ ttNICKNAME_SET
Definition: TxFormats.h:43
ripple::ttPAYCHAN_FUND
@ ttPAYCHAN_FUND
Definition: TxFormats.h:51
ripple::ttREGULAR_KEY_SET
@ ttREGULAR_KEY_SET
Definition: TxFormats.h:42
ripple::ttDEPOSIT_PREAUTH
@ ttDEPOSIT_PREAUTH
Definition: TxFormats.h:56
ripple::ttSIGNER_LIST_SET
@ ttSIGNER_LIST_SET
Definition: TxFormats.h:49