mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Get names of transactions and ledger types from jss
This commit is contained in:
committed by
Manoj doshi
parent
be139d9bde
commit
b39b0fef39
@@ -36,7 +36,7 @@ LedgerFormats::LedgerFormats ()
|
||||
{ sfFlags, soeREQUIRED },
|
||||
};
|
||||
|
||||
add ("AccountRoot", ltACCOUNT_ROOT,
|
||||
add (jss::AccountRoot, ltACCOUNT_ROOT,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfSequence, soeREQUIRED },
|
||||
@@ -56,7 +56,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("DirectoryNode", ltDIR_NODE,
|
||||
add (jss::DirectoryNode, ltDIR_NODE,
|
||||
{
|
||||
{ sfOwner, soeOPTIONAL }, // for owner directories
|
||||
{ sfTakerPaysCurrency, soeOPTIONAL }, // for order book directories
|
||||
@@ -71,7 +71,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("Offer", ltOFFER,
|
||||
add (jss::Offer, ltOFFER,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfSequence, soeREQUIRED },
|
||||
@@ -86,7 +86,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("RippleState", ltRIPPLE_STATE,
|
||||
add (jss::RippleState, ltRIPPLE_STATE,
|
||||
{
|
||||
{ sfBalance, soeREQUIRED },
|
||||
{ sfLowLimit, soeREQUIRED },
|
||||
@@ -102,7 +102,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("Escrow", ltESCROW,
|
||||
add (jss::Escrow, ltESCROW,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfDestination, soeREQUIRED },
|
||||
@@ -119,7 +119,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("LedgerHashes", ltLEDGER_HASHES,
|
||||
add (jss::LedgerHashes, ltLEDGER_HASHES,
|
||||
{
|
||||
{ sfFirstLedgerSequence, soeOPTIONAL }, // Remove if we do a ledger restart
|
||||
{ sfLastLedgerSequence, soeOPTIONAL },
|
||||
@@ -127,14 +127,14 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("Amendments", ltAMENDMENTS,
|
||||
add (jss::Amendments, ltAMENDMENTS,
|
||||
{
|
||||
{ sfAmendments, soeOPTIONAL }, // Enabled
|
||||
{ sfMajorities, soeOPTIONAL },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("FeeSettings", ltFEE_SETTINGS,
|
||||
add (jss::FeeSettings, ltFEE_SETTINGS,
|
||||
{
|
||||
{ sfBaseFee, soeREQUIRED },
|
||||
{ sfReferenceFeeUnits, soeREQUIRED },
|
||||
@@ -143,7 +143,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("Ticket", ltTICKET,
|
||||
add (jss::Ticket, ltTICKET,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfSequence, soeREQUIRED },
|
||||
@@ -155,7 +155,7 @@ LedgerFormats::LedgerFormats ()
|
||||
|
||||
// All fields are soeREQUIRED because there is always a
|
||||
// SignerEntries. If there are no SignerEntries the node is deleted.
|
||||
add ("SignerList", ltSIGNER_LIST,
|
||||
add (jss::SignerList, ltSIGNER_LIST,
|
||||
{
|
||||
{ sfOwnerNode, soeREQUIRED },
|
||||
{ sfSignerQuorum, soeREQUIRED },
|
||||
@@ -166,7 +166,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("PayChannel", ltPAYCHAN,
|
||||
add (jss::PayChannel, ltPAYCHAN,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfDestination, soeREQUIRED },
|
||||
@@ -184,7 +184,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("Check", ltCHECK,
|
||||
add (jss::Check, ltCHECK,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfDestination, soeREQUIRED },
|
||||
@@ -201,7 +201,7 @@ LedgerFormats::LedgerFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("DepositPreauth", ltDEPOSIT_PREAUTH,
|
||||
add (jss::DepositPreauth, ltDEPOSIT_PREAUTH,
|
||||
{
|
||||
{ sfAccount, soeREQUIRED },
|
||||
{ sfAuthorize, soeREQUIRED },
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/protocol/TxFormats.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -42,7 +43,7 @@ TxFormats::TxFormats ()
|
||||
{ sfSigners, soeOPTIONAL }, // submit_multisigned
|
||||
};
|
||||
|
||||
add ("AccountSet", ttACCOUNT_SET,
|
||||
add (jss::AccountSet, ttACCOUNT_SET,
|
||||
{
|
||||
{ sfEmailHash, soeOPTIONAL },
|
||||
{ sfWalletLocator, soeOPTIONAL },
|
||||
@@ -56,7 +57,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("TrustSet", ttTRUST_SET,
|
||||
add (jss::TrustSet, ttTRUST_SET,
|
||||
{
|
||||
{ sfLimitAmount, soeOPTIONAL },
|
||||
{ sfQualityIn, soeOPTIONAL },
|
||||
@@ -64,7 +65,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("OfferCreate", ttOFFER_CREATE,
|
||||
add (jss::OfferCreate, ttOFFER_CREATE,
|
||||
{
|
||||
{ sfTakerPays, soeREQUIRED },
|
||||
{ sfTakerGets, soeREQUIRED },
|
||||
@@ -73,19 +74,19 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("OfferCancel", ttOFFER_CANCEL,
|
||||
add (jss::OfferCancel, ttOFFER_CANCEL,
|
||||
{
|
||||
{ sfOfferSequence, soeREQUIRED },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("SetRegularKey", ttREGULAR_KEY_SET,
|
||||
add (jss::SetRegularKey, ttREGULAR_KEY_SET,
|
||||
{
|
||||
{ sfRegularKey, soeOPTIONAL },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("Payment", ttPAYMENT,
|
||||
add (jss::Payment, ttPAYMENT,
|
||||
{
|
||||
{ sfDestination, soeREQUIRED },
|
||||
{ sfAmount, soeREQUIRED },
|
||||
@@ -97,7 +98,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("EscrowCreate", ttESCROW_CREATE,
|
||||
add (jss::EscrowCreate, ttESCROW_CREATE,
|
||||
{
|
||||
{ sfDestination, soeREQUIRED },
|
||||
{ sfAmount, soeREQUIRED },
|
||||
@@ -108,7 +109,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("EscrowFinish", ttESCROW_FINISH,
|
||||
add (jss::EscrowFinish, ttESCROW_FINISH,
|
||||
{
|
||||
{ sfOwner, soeREQUIRED },
|
||||
{ sfOfferSequence, soeREQUIRED },
|
||||
@@ -117,21 +118,21 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("EscrowCancel", ttESCROW_CANCEL,
|
||||
add (jss::EscrowCancel, ttESCROW_CANCEL,
|
||||
{
|
||||
{ sfOwner, soeREQUIRED },
|
||||
{ sfOfferSequence, soeREQUIRED },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("EnableAmendment", ttAMENDMENT,
|
||||
add (jss::EnableAmendment, ttAMENDMENT,
|
||||
{
|
||||
{ sfLedgerSequence, soeREQUIRED },
|
||||
{ sfAmendment, soeREQUIRED },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("SetFee", ttFEE,
|
||||
add (jss::SetFee, ttFEE,
|
||||
{
|
||||
{ sfLedgerSequence, soeOPTIONAL },
|
||||
{ sfBaseFee, soeREQUIRED },
|
||||
@@ -141,14 +142,14 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("TicketCreate", ttTICKET_CREATE,
|
||||
add (jss::TicketCreate, ttTICKET_CREATE,
|
||||
{
|
||||
{ sfTarget, soeOPTIONAL },
|
||||
{ sfExpiration, soeOPTIONAL },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("TicketCancel", ttTICKET_CANCEL,
|
||||
add (jss::TicketCancel, ttTICKET_CANCEL,
|
||||
{
|
||||
{ sfTicketID, soeREQUIRED },
|
||||
},
|
||||
@@ -156,14 +157,14 @@ TxFormats::TxFormats ()
|
||||
|
||||
// The SignerEntries are optional because a SignerList is deleted by
|
||||
// setting the SignerQuorum to zero and omitting SignerEntries.
|
||||
add ("SignerListSet", ttSIGNER_LIST_SET,
|
||||
add (jss::SignerListSet, ttSIGNER_LIST_SET,
|
||||
{
|
||||
{ sfSignerQuorum, soeREQUIRED },
|
||||
{ sfSignerEntries, soeOPTIONAL },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("PaymentChannelCreate", ttPAYCHAN_CREATE,
|
||||
add (jss::PaymentChannelCreate, ttPAYCHAN_CREATE,
|
||||
{
|
||||
{ sfDestination, soeREQUIRED },
|
||||
{ sfAmount, soeREQUIRED },
|
||||
@@ -174,7 +175,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("PaymentChannelFund", ttPAYCHAN_FUND,
|
||||
add (jss::PaymentChannelFund, ttPAYCHAN_FUND,
|
||||
{
|
||||
{ sfPayChannel, soeREQUIRED },
|
||||
{ sfAmount, soeREQUIRED },
|
||||
@@ -182,7 +183,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("PaymentChannelClaim", ttPAYCHAN_CLAIM,
|
||||
add (jss::PaymentChannelClaim, ttPAYCHAN_CLAIM,
|
||||
{
|
||||
{ sfPayChannel, soeREQUIRED },
|
||||
{ sfAmount, soeOPTIONAL },
|
||||
@@ -192,7 +193,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("CheckCreate", ttCHECK_CREATE,
|
||||
add (jss::CheckCreate, ttCHECK_CREATE,
|
||||
{
|
||||
{ sfDestination, soeREQUIRED },
|
||||
{ sfSendMax, soeREQUIRED },
|
||||
@@ -202,7 +203,7 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("CheckCash", ttCHECK_CASH,
|
||||
add (jss::CheckCash, ttCHECK_CASH,
|
||||
{
|
||||
{ sfCheckID, soeREQUIRED },
|
||||
{ sfAmount, soeOPTIONAL },
|
||||
@@ -210,13 +211,13 @@ TxFormats::TxFormats ()
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("CheckCancel", ttCHECK_CANCEL,
|
||||
add (jss::CheckCancel, ttCHECK_CANCEL,
|
||||
{
|
||||
{ sfCheckID, soeREQUIRED },
|
||||
},
|
||||
commonFields);
|
||||
|
||||
add ("DepositPreauth", ttDEPOSIT_PREAUTH,
|
||||
add (jss::DepositPreauth, ttDEPOSIT_PREAUTH,
|
||||
{
|
||||
{ sfAuthorize, soeOPTIONAL },
|
||||
{ sfUnauthorize, soeOPTIONAL },
|
||||
|
||||
Reference in New Issue
Block a user