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
@@ -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