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 },
|
||||
|
||||
Reference in New Issue
Block a user