mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Type for transaction types.
This commit is contained in:
@@ -10,13 +10,14 @@
|
||||
class SerializedTransaction : public STUObject
|
||||
{
|
||||
protected:
|
||||
TransactionType type;
|
||||
STUVariableLength mSignature;
|
||||
STUObject mMiddleTxn, mInnerTxn;
|
||||
TransactionFormat* mFormat;
|
||||
|
||||
public:
|
||||
SerializedTransaction(SerializerIterator&, int length);
|
||||
SerializedTransaction(int type);
|
||||
SerializedTransaction(TransactionType type);
|
||||
|
||||
// STUObject functions
|
||||
int getLength() const;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "SerializedTypes.h"
|
||||
#include "SerializedObject.h"
|
||||
#include "TransactionFormats.h"
|
||||
|
||||
std::string SerializedType::getFullText() const
|
||||
{
|
||||
|
||||
@@ -14,4 +14,11 @@ struct TransactionFormat
|
||||
|
||||
extern TransactionFormat InnerTxnFormats[];
|
||||
|
||||
enum TransactionType
|
||||
{
|
||||
ttMAKE_PAYMENT=0,
|
||||
ttNTX_INVOICE=1,
|
||||
ttEXCHANGE_OFFER=2
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user