rename enum values

This commit is contained in:
Mayukha Vadari
2026-05-06 11:35:38 -04:00
parent 654734dcf9
commit 98ed477ca7
5 changed files with 387 additions and 388 deletions

View File

@@ -28,9 +28,8 @@ enum SOEStyle {
enum SOETxMPTIssue { SoeMptNone, SoeMptSupported, SoeMptNotSupported };
enum SOEConstant {
SoeConstantinvalid = 0,
SoeConstant = 1,
SoeNotconstant = 2,
SoeImmutable,
SoeMutable,
};
//------------------------------------------------------------------------------
@@ -41,7 +40,7 @@ class SOElement
// Use std::reference_wrapper so SOElement can be stored in a std::vector.
std::reference_wrapper<SField const> sField_;
SOEStyle style_;
SOEConstant constant_ = SoeConstantinvalid;
SOEConstant constant_ = SoeImmutable;
SOETxMPTIssue supportMpt_ = SoeMptNone;
private:

View File

@@ -24,15 +24,15 @@
\sa keylet::nftoffer
*/
LEDGER_ENTRY(ltNFTOKEN_OFFER, 0x0037, NFTokenOffer, nft_offer, ({
{sfOwner, SoeRequired, SoeConstant},
{sfNFTokenID, SoeRequired, SoeConstant},
{sfAmount, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfNFTokenOfferNode, SoeRequired, SoeConstant},
{sfDestination, SoeOptional, SoeConstant},
{sfExpiration, SoeOptional, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfOwner, SoeRequired, SoeImmutable},
{sfNFTokenID, SoeRequired, SoeImmutable},
{sfAmount, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfNFTokenOfferNode, SoeRequired, SoeImmutable},
{sfDestination, SoeOptional, SoeImmutable},
{sfExpiration, SoeOptional, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which describes a check.
@@ -40,18 +40,18 @@ LEDGER_ENTRY(ltNFTOKEN_OFFER, 0x0037, NFTokenOffer, nft_offer, ({
\sa keylet::check
*/
LEDGER_ENTRY(ltCHECK, 0x0043, Check, check, ({
{sfAccount, SoeRequired, SoeConstant},
{sfDestination, SoeRequired, SoeConstant},
{sfSendMax, SoeRequired, SoeConstant},
{sfSequence, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfDestinationNode, SoeRequired, SoeConstant},
{sfExpiration, SoeOptional, SoeConstant},
{sfInvoiceID, SoeOptional, SoeConstant},
{sfSourceTag, SoeOptional, SoeConstant},
{sfDestinationTag, SoeOptional, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfDestination, SoeRequired, SoeImmutable},
{sfSendMax, SoeRequired, SoeImmutable},
{sfSequence, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfDestinationNode, SoeRequired, SoeImmutable},
{sfExpiration, SoeOptional, SoeImmutable},
{sfInvoiceID, SoeOptional, SoeImmutable},
{sfSourceTag, SoeOptional, SoeImmutable},
{sfDestinationTag, SoeOptional, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** The ledger object which tracks the DID.
@@ -59,13 +59,13 @@ LEDGER_ENTRY(ltCHECK, 0x0043, Check, check, ({
\sa keylet::did
*/
LEDGER_ENTRY(ltDID, 0x0049, DID, did, ({
{sfAccount, SoeRequired, SoeConstant},
{sfDIDDocument, SoeOptional, SoeNotconstant},
{sfURI, SoeOptional, SoeNotconstant},
{sfData, SoeOptional, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfDIDDocument, SoeOptional, SoeMutable},
{sfURI, SoeOptional, SoeMutable},
{sfData, SoeOptional, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** The ledger object which tracks the current negative UNL state.
@@ -75,11 +75,11 @@ LEDGER_ENTRY(ltDID, 0x0049, DID, did, ({
\sa keylet::negativeUNL
*/
LEDGER_ENTRY(ltNEGATIVE_UNL, 0x004e, NegativeUNL, nunl, ({
{sfDisabledValidators, SoeOptional, SoeNotconstant},
{sfValidatorToDisable, SoeOptional, SoeNotconstant},
{sfValidatorToReEnable, SoeOptional, SoeNotconstant},
{sfPreviousTxnID, SoeOptional, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeOptional, SoeNotconstant},
{sfDisabledValidators, SoeOptional, SoeMutable},
{sfValidatorToDisable, SoeOptional, SoeMutable},
{sfValidatorToReEnable, SoeOptional, SoeMutable},
{sfPreviousTxnID, SoeOptional, SoeMutable},
{sfPreviousTxnLgrSeq, SoeOptional, SoeMutable},
}))
/** A ledger object which contains a list of NFTs
@@ -87,11 +87,11 @@ LEDGER_ENTRY(ltNEGATIVE_UNL, 0x004e, NegativeUNL, nunl, ({
\sa keylet::nftpage_min, keylet::nftpage_max, keylet::nftpage
*/
LEDGER_ENTRY(ltNFTOKEN_PAGE, 0x0050, NFTokenPage, nft_page, ({
{sfPreviousPageMin, SoeOptional, SoeNotconstant},
{sfNextPageMin, SoeOptional, SoeNotconstant},
{sfNFTokens, SoeRequired, SoeNotconstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfPreviousPageMin, SoeOptional, SoeMutable},
{sfNextPageMin, SoeOptional, SoeMutable},
{sfNFTokens, SoeRequired, SoeMutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which contains a signer list for an account.
@@ -101,13 +101,13 @@ LEDGER_ENTRY(ltNFTOKEN_PAGE, 0x0050, NFTokenPage, nft_page, ({
// All fields are SoeRequired because there is always a SignerEntries.
// If there are no SignerEntries the node is deleted.
LEDGER_ENTRY(ltSIGNER_LIST, 0x0053, SignerList, signer_list, ({
{sfOwner, SoeOptional, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfSignerQuorum, SoeRequired, SoeNotconstant},
{sfSignerEntries, SoeRequired, SoeNotconstant},
{sfSignerListID, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfOwner, SoeOptional, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfSignerQuorum, SoeRequired, SoeMutable},
{sfSignerEntries, SoeRequired, SoeMutable},
{sfSignerListID, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which describes a ticket.
@@ -115,11 +115,11 @@ LEDGER_ENTRY(ltSIGNER_LIST, 0x0053, SignerList, signer_list, ({
\sa keylet::ticket
*/
LEDGER_ENTRY(ltTICKET, 0x0054, Ticket, ticket, ({
{sfAccount, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfTicketSequence, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfTicketSequence, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which describes an account.
@@ -127,29 +127,29 @@ LEDGER_ENTRY(ltTICKET, 0x0054, Ticket, ticket, ({
\sa keylet::account
*/
LEDGER_ENTRY(ltACCOUNT_ROOT, 0x0061, AccountRoot, account, ({
{sfAccount, SoeRequired, SoeConstant},
{sfSequence, SoeRequired, SoeNotconstant},
{sfBalance, SoeRequired, SoeNotconstant},
{sfOwnerCount, SoeRequired, SoeNotconstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccountTxnID, SoeOptional, SoeNotconstant},
{sfRegularKey, SoeOptional, SoeNotconstant},
{sfEmailHash, SoeOptional, SoeNotconstant},
{sfWalletLocator, SoeOptional, SoeNotconstant},
{sfWalletSize, SoeOptional, SoeNotconstant},
{sfMessageKey, SoeOptional, SoeNotconstant},
{sfTransferRate, SoeOptional, SoeNotconstant},
{sfDomain, SoeOptional, SoeNotconstant},
{sfTickSize, SoeOptional, SoeNotconstant},
{sfTicketCount, SoeOptional, SoeNotconstant},
{sfNFTokenMinter, SoeOptional, SoeNotconstant},
{sfMintedNFTokens, SoeDefault, SoeNotconstant},
{sfBurnedNFTokens, SoeDefault, SoeNotconstant},
{sfFirstNFTokenSequence, SoeOptional, SoeConstant},
{sfAMMID, SoeOptional, SoeConstant}, // pseudo-account designator
{sfVaultID, SoeOptional, SoeConstant}, // pseudo-account designator
{sfLoanBrokerID, SoeOptional, SoeConstant}, // pseudo-account designator
{sfAccount, SoeRequired, SoeImmutable},
{sfSequence, SoeRequired, SoeMutable},
{sfBalance, SoeRequired, SoeMutable},
{sfOwnerCount, SoeRequired, SoeMutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfAccountTxnID, SoeOptional, SoeMutable},
{sfRegularKey, SoeOptional, SoeMutable},
{sfEmailHash, SoeOptional, SoeMutable},
{sfWalletLocator, SoeOptional, SoeMutable},
{sfWalletSize, SoeOptional, SoeMutable},
{sfMessageKey, SoeOptional, SoeMutable},
{sfTransferRate, SoeOptional, SoeMutable},
{sfDomain, SoeOptional, SoeMutable},
{sfTickSize, SoeOptional, SoeMutable},
{sfTicketCount, SoeOptional, SoeMutable},
{sfNFTokenMinter, SoeOptional, SoeMutable},
{sfMintedNFTokens, SoeDefault, SoeMutable},
{sfBurnedNFTokens, SoeDefault, SoeMutable},
{sfFirstNFTokenSequence, SoeOptional, SoeImmutable},
{sfAMMID, SoeOptional, SoeImmutable}, // pseudo-account designator
{sfVaultID, SoeOptional, SoeImmutable}, // pseudo-account designator
{sfLoanBrokerID, SoeOptional, SoeImmutable}, // pseudo-account designator
}))
/** A ledger object which contains a list of object identifiers.
@@ -158,22 +158,22 @@ LEDGER_ENTRY(ltACCOUNT_ROOT, 0x0061, AccountRoot, account, ({
keylet::ownerDir
*/
LEDGER_ENTRY(ltDIR_NODE, 0x0064, DirectoryNode, directory, ({
{sfOwner, SoeOptional, SoeConstant}, // for owner directories
{sfTakerPaysCurrency, SoeOptional, SoeConstant}, // order book directories
{sfTakerPaysIssuer, SoeOptional, SoeConstant}, // order book directories
{sfTakerPaysMPT, SoeOptional, SoeConstant}, // order book directories
{sfTakerGetsCurrency, SoeOptional, SoeConstant}, // order book directories
{sfTakerGetsIssuer, SoeOptional, SoeConstant}, // order book directories
{sfTakerGetsMPT, SoeOptional, SoeConstant}, // order book directories
{sfExchangeRate, SoeOptional, SoeConstant}, // order book directories
{sfIndexes, SoeRequired, SoeNotconstant},
{sfRootIndex, SoeRequired, SoeConstant},
{sfIndexNext, SoeOptional, SoeNotconstant},
{sfIndexPrevious, SoeOptional, SoeNotconstant},
{sfNFTokenID, SoeOptional, SoeConstant},
{sfPreviousTxnID, SoeOptional, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeOptional, SoeNotconstant},
{sfDomainID, SoeOptional, SoeConstant}, // order book directories
{sfOwner, SoeOptional, SoeImmutable}, // for owner directories
{sfTakerPaysCurrency, SoeOptional, SoeImmutable}, // order book directories
{sfTakerPaysIssuer, SoeOptional, SoeImmutable}, // order book directories
{sfTakerPaysMPT, SoeOptional, SoeImmutable}, // order book directories
{sfTakerGetsCurrency, SoeOptional, SoeImmutable}, // order book directories
{sfTakerGetsIssuer, SoeOptional, SoeImmutable}, // order book directories
{sfTakerGetsMPT, SoeOptional, SoeImmutable}, // order book directories
{sfExchangeRate, SoeOptional, SoeImmutable}, // order book directories
{sfIndexes, SoeRequired, SoeMutable},
{sfRootIndex, SoeRequired, SoeImmutable},
{sfIndexNext, SoeOptional, SoeMutable},
{sfIndexPrevious, SoeOptional, SoeMutable},
{sfNFTokenID, SoeOptional, SoeImmutable},
{sfPreviousTxnID, SoeOptional, SoeMutable},
{sfPreviousTxnLgrSeq, SoeOptional, SoeMutable},
{sfDomainID, SoeOptional, SoeImmutable}, // order book directories
}))
/** The ledger object which lists details about amendments on the network.
@@ -183,10 +183,10 @@ LEDGER_ENTRY(ltDIR_NODE, 0x0064, DirectoryNode, directory, ({
\sa keylet::amendments
*/
LEDGER_ENTRY(ltAMENDMENTS, 0x0066, Amendments, amendments, ({
{sfAmendments, SoeOptional, SoeNotconstant}, // Enabled
{sfMajorities, SoeOptional, SoeNotconstant},
{sfPreviousTxnID, SoeOptional, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeOptional, SoeNotconstant},
{sfAmendments, SoeOptional, SoeMutable}, // Enabled
{sfMajorities, SoeOptional, SoeMutable},
{sfPreviousTxnID, SoeOptional, SoeMutable},
{sfPreviousTxnLgrSeq, SoeOptional, SoeMutable},
}))
/** A ledger object that contains a list of ledger hashes.
@@ -198,9 +198,9 @@ LEDGER_ENTRY(ltAMENDMENTS, 0x0066, Amendments, amendments, ({
\sa keylet::skip
*/
LEDGER_ENTRY(ltLEDGER_HASHES, 0x0068, LedgerHashes, hashes, ({
{sfFirstLedgerSequence, SoeOptional, SoeConstant},
{sfLastLedgerSequence, SoeOptional, SoeNotconstant},
{sfHashes, SoeRequired, SoeNotconstant},
{sfFirstLedgerSequence, SoeOptional, SoeImmutable},
{sfLastLedgerSequence, SoeOptional, SoeMutable},
{sfHashes, SoeRequired, SoeMutable},
}))
/** The ledger object which lists details about sidechains.
@@ -208,16 +208,16 @@ LEDGER_ENTRY(ltLEDGER_HASHES, 0x0068, LedgerHashes, hashes, ({
\sa keylet::bridge
*/
LEDGER_ENTRY(ltBRIDGE, 0x0069, Bridge, bridge, ({
{sfAccount, SoeRequired, SoeConstant},
{sfSignatureReward, SoeRequired, SoeNotconstant},
{sfMinAccountCreateAmount, SoeOptional, SoeNotconstant},
{sfXChainBridge, SoeRequired, SoeConstant},
{sfXChainClaimID, SoeRequired, SoeNotconstant},
{sfXChainAccountCreateCount, SoeRequired, SoeNotconstant},
{sfXChainAccountClaimCount, SoeRequired, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfSignatureReward, SoeRequired, SoeMutable},
{sfMinAccountCreateAmount, SoeOptional, SoeMutable},
{sfXChainBridge, SoeRequired, SoeImmutable},
{sfXChainClaimID, SoeRequired, SoeMutable},
{sfXChainAccountCreateCount, SoeRequired, SoeMutable},
{sfXChainAccountClaimCount, SoeRequired, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which describes an offer on the DEX.
@@ -225,18 +225,18 @@ LEDGER_ENTRY(ltBRIDGE, 0x0069, Bridge, bridge, ({
\sa keylet::offer
*/
LEDGER_ENTRY(ltOFFER, 0x006f, Offer, offer, ({
{sfAccount, SoeRequired, SoeConstant},
{sfSequence, SoeRequired, SoeConstant},
{sfTakerPays, SoeRequired, SoeNotconstant},
{sfTakerGets, SoeRequired, SoeNotconstant},
{sfBookDirectory, SoeRequired, SoeConstant},
{sfBookNode, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfExpiration, SoeOptional, SoeConstant},
{sfDomainID, SoeOptional, SoeConstant},
{sfAdditionalBooks, SoeOptional, SoeConstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfSequence, SoeRequired, SoeImmutable},
{sfTakerPays, SoeRequired, SoeMutable},
{sfTakerGets, SoeRequired, SoeMutable},
{sfBookDirectory, SoeRequired, SoeImmutable},
{sfBookNode, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfExpiration, SoeOptional, SoeImmutable},
{sfDomainID, SoeOptional, SoeImmutable},
{sfAdditionalBooks, SoeOptional, SoeImmutable},
}))
/** A ledger object which describes a deposit pre-authorization.
@@ -244,12 +244,12 @@ LEDGER_ENTRY(ltOFFER, 0x006f, Offer, offer, ({
\sa keylet::depositPreauth
*/
LEDGER_ENTRY_DUPLICATE(ltDEPOSIT_PREAUTH, 0x0070, DepositPreauth, deposit_preauth, ({
{sfAccount, SoeRequired, SoeConstant},
{sfAuthorize, SoeOptional, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAuthorizeCredentials, SoeOptional, SoeConstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfAuthorize, SoeOptional, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfAuthorizeCredentials, SoeOptional, SoeImmutable},
}))
/** A claim id for a cross chain transaction.
@@ -257,15 +257,15 @@ LEDGER_ENTRY_DUPLICATE(ltDEPOSIT_PREAUTH, 0x0070, DepositPreauth, deposit_preaut
\sa keylet::xChainClaimID
*/
LEDGER_ENTRY(ltXCHAIN_OWNED_CLAIM_ID, 0x0071, XChainOwnedClaimID, xchain_owned_claim_id, ({
{sfAccount, SoeRequired, SoeConstant},
{sfXChainBridge, SoeRequired, SoeConstant},
{sfXChainClaimID, SoeRequired, SoeConstant},
{sfOtherChainSource, SoeRequired, SoeConstant},
{sfXChainClaimAttestations, SoeRequired, SoeNotconstant},
{sfSignatureReward, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfXChainBridge, SoeRequired, SoeImmutable},
{sfXChainClaimID, SoeRequired, SoeImmutable},
{sfOtherChainSource, SoeRequired, SoeImmutable},
{sfXChainClaimAttestations, SoeRequired, SoeMutable},
{sfSignatureReward, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which describes a bidirectional trust line.
@@ -275,17 +275,17 @@ LEDGER_ENTRY(ltXCHAIN_OWNED_CLAIM_ID, 0x0071, XChainOwnedClaimID, xchain_owned_c
\sa keylet::line
*/
LEDGER_ENTRY(ltRIPPLE_STATE, 0x0072, RippleState, state, ({
{sfBalance, SoeRequired, SoeNotconstant},
{sfLowLimit, SoeRequired, SoeNotconstant},
{sfHighLimit, SoeRequired, SoeNotconstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfLowNode, SoeOptional, SoeNotconstant},
{sfLowQualityIn, SoeOptional, SoeNotconstant},
{sfLowQualityOut, SoeOptional, SoeNotconstant},
{sfHighNode, SoeOptional, SoeNotconstant},
{sfHighQualityIn, SoeOptional, SoeNotconstant},
{sfHighQualityOut, SoeOptional, SoeNotconstant},
{sfBalance, SoeRequired, SoeMutable},
{sfLowLimit, SoeRequired, SoeMutable},
{sfHighLimit, SoeRequired, SoeMutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfLowNode, SoeOptional, SoeMutable},
{sfLowQualityIn, SoeOptional, SoeMutable},
{sfLowQualityOut, SoeOptional, SoeMutable},
{sfHighNode, SoeOptional, SoeMutable},
{sfHighQualityIn, SoeOptional, SoeMutable},
{sfHighQualityOut, SoeOptional, SoeMutable},
}))
/** The ledger object which lists the network's fee settings.
@@ -296,16 +296,16 @@ LEDGER_ENTRY(ltRIPPLE_STATE, 0x0072, RippleState, state, ({
*/
LEDGER_ENTRY(ltFEE_SETTINGS, 0x0073, FeeSettings, fee, ({
// Old version uses raw numbers
{sfBaseFee, SoeOptional, SoeNotconstant},
{sfReferenceFeeUnits, SoeOptional, SoeNotconstant},
{sfReserveBase, SoeOptional, SoeNotconstant},
{sfReserveIncrement, SoeOptional, SoeNotconstant},
{sfBaseFee, SoeOptional, SoeMutable},
{sfReferenceFeeUnits, SoeOptional, SoeMutable},
{sfReserveBase, SoeOptional, SoeMutable},
{sfReserveIncrement, SoeOptional, SoeMutable},
// New version uses Amounts
{sfBaseFeeDrops, SoeOptional, SoeNotconstant},
{sfReserveBaseDrops, SoeOptional, SoeNotconstant},
{sfReserveIncrementDrops, SoeOptional, SoeNotconstant},
{sfPreviousTxnID, SoeOptional, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeOptional, SoeNotconstant},
{sfBaseFeeDrops, SoeOptional, SoeMutable},
{sfReserveBaseDrops, SoeOptional, SoeMutable},
{sfReserveIncrementDrops, SoeOptional, SoeMutable},
{sfPreviousTxnID, SoeOptional, SoeMutable},
{sfPreviousTxnLgrSeq, SoeOptional, SoeMutable},
}))
/** A claim id for a cross chain create account transaction.
@@ -313,13 +313,13 @@ LEDGER_ENTRY(ltFEE_SETTINGS, 0x0073, FeeSettings, fee, ({
\sa keylet::xChainCreateAccountClaimID
*/
LEDGER_ENTRY(ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID, 0x0074, XChainOwnedCreateAccountClaimID, xchain_owned_create_account_claim_id, ({
{sfAccount, SoeRequired, SoeConstant},
{sfXChainBridge, SoeRequired, SoeConstant},
{sfXChainAccountCreateCount, SoeRequired, SoeConstant},
{sfXChainCreateAccountAttestations, SoeRequired, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfXChainBridge, SoeRequired, SoeImmutable},
{sfXChainAccountCreateCount, SoeRequired, SoeImmutable},
{sfXChainCreateAccountAttestations, SoeRequired, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object describing a single escrow.
@@ -327,21 +327,21 @@ LEDGER_ENTRY(ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID, 0x0074, XChainOwnedCreateAc
\sa keylet::escrow
*/
LEDGER_ENTRY(ltESCROW, 0x0075, Escrow, escrow, ({
{sfAccount, SoeRequired, SoeConstant},
{sfSequence, SoeOptional, SoeConstant},
{sfDestination, SoeRequired, SoeConstant},
{sfAmount, SoeRequired, SoeConstant},
{sfCondition, SoeOptional, SoeConstant},
{sfCancelAfter, SoeOptional, SoeConstant},
{sfFinishAfter, SoeOptional, SoeConstant},
{sfSourceTag, SoeOptional, SoeConstant},
{sfDestinationTag, SoeOptional, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfDestinationNode, SoeOptional, SoeConstant},
{sfTransferRate, SoeOptional, SoeConstant},
{sfIssuerNode, SoeOptional, SoeConstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfSequence, SoeOptional, SoeImmutable},
{sfDestination, SoeRequired, SoeImmutable},
{sfAmount, SoeRequired, SoeImmutable},
{sfCondition, SoeOptional, SoeImmutable},
{sfCancelAfter, SoeOptional, SoeImmutable},
{sfFinishAfter, SoeOptional, SoeImmutable},
{sfSourceTag, SoeOptional, SoeImmutable},
{sfDestinationTag, SoeOptional, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfDestinationNode, SoeOptional, SoeImmutable},
{sfTransferRate, SoeOptional, SoeImmutable},
{sfIssuerNode, SoeOptional, SoeImmutable},
}))
/** A ledger object describing a single unidirectional XRP payment channel.
@@ -349,21 +349,21 @@ LEDGER_ENTRY(ltESCROW, 0x0075, Escrow, escrow, ({
\sa keylet::payChan
*/
LEDGER_ENTRY(ltPAYCHAN, 0x0078, PayChannel, payment_channel, ({
{sfAccount, SoeRequired, SoeConstant},
{sfDestination, SoeRequired, SoeConstant},
{sfSequence, SoeOptional, SoeConstant},
{sfAmount, SoeRequired, SoeNotconstant},
{sfBalance, SoeRequired, SoeNotconstant},
{sfPublicKey, SoeRequired, SoeConstant},
{sfSettleDelay, SoeRequired, SoeConstant},
{sfExpiration, SoeOptional, SoeNotconstant},
{sfCancelAfter, SoeOptional, SoeConstant},
{sfSourceTag, SoeOptional, SoeConstant},
{sfDestinationTag, SoeOptional, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfDestinationNode, SoeOptional, SoeConstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfDestination, SoeRequired, SoeImmutable},
{sfSequence, SoeOptional, SoeImmutable},
{sfAmount, SoeRequired, SoeMutable},
{sfBalance, SoeRequired, SoeMutable},
{sfPublicKey, SoeRequired, SoeImmutable},
{sfSettleDelay, SoeRequired, SoeImmutable},
{sfExpiration, SoeOptional, SoeMutable},
{sfCancelAfter, SoeOptional, SoeImmutable},
{sfSourceTag, SoeOptional, SoeImmutable},
{sfDestinationTag, SoeOptional, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfDestinationNode, SoeOptional, SoeImmutable},
}))
/** The ledger object which tracks the AMM.
@@ -371,124 +371,124 @@ LEDGER_ENTRY(ltPAYCHAN, 0x0078, PayChannel, payment_channel, ({
\sa keylet::amm
*/
LEDGER_ENTRY(ltAMM, 0x0079, AMM, amm, ({
{sfAccount, SoeRequired, SoeConstant},
{sfTradingFee, SoeDefault, SoeNotconstant},
{sfVoteSlots, SoeOptional, SoeNotconstant},
{sfAuctionSlot, SoeOptional, SoeNotconstant},
{sfLPTokenBalance, SoeRequired, SoeNotconstant},
{sfAsset, SoeRequired, SoeConstant},
{sfAsset2, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeOptional, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeOptional, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfTradingFee, SoeDefault, SoeMutable},
{sfVoteSlots, SoeOptional, SoeMutable},
{sfAuctionSlot, SoeOptional, SoeMutable},
{sfLPTokenBalance, SoeRequired, SoeMutable},
{sfAsset, SoeRequired, SoeImmutable},
{sfAsset2, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeOptional, SoeMutable},
{sfPreviousTxnLgrSeq, SoeOptional, SoeMutable},
}))
/** A ledger object which tracks MPTokenIssuance
\sa keylet::mptIssuance
*/
LEDGER_ENTRY(ltMPTOKEN_ISSUANCE, 0x007e, MPTokenIssuance, mpt_issuance, ({
{sfIssuer, SoeRequired, SoeConstant},
{sfSequence, SoeRequired, SoeConstant},
{sfTransferFee, SoeDefault, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfAssetScale, SoeDefault, SoeNotconstant},
{sfMaximumAmount, SoeOptional, SoeConstant},
{sfOutstandingAmount, SoeRequired, SoeNotconstant},
{sfLockedAmount, SoeOptional, SoeNotconstant},
{sfMPTokenMetadata, SoeOptional, SoeNotconstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfDomainID, SoeOptional, SoeNotconstant},
{sfMutableFlags, SoeDefault, SoeNotconstant},
{sfIssuer, SoeRequired, SoeImmutable},
{sfSequence, SoeRequired, SoeImmutable},
{sfTransferFee, SoeDefault, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfAssetScale, SoeDefault, SoeMutable},
{sfMaximumAmount, SoeOptional, SoeImmutable},
{sfOutstandingAmount, SoeRequired, SoeMutable},
{sfLockedAmount, SoeOptional, SoeMutable},
{sfMPTokenMetadata, SoeOptional, SoeMutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfDomainID, SoeOptional, SoeMutable},
{sfMutableFlags, SoeDefault, SoeMutable},
}))
/** A ledger object which tracks MPToken
\sa keylet::mptoken
*/
LEDGER_ENTRY(ltMPTOKEN, 0x007f, MPToken, mptoken, ({
{sfAccount, SoeRequired, SoeConstant},
{sfMPTokenIssuanceID, SoeRequired, SoeConstant},
{sfMPTAmount, SoeDefault, SoeNotconstant},
{sfLockedAmount, SoeOptional, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfMPTokenIssuanceID, SoeRequired, SoeImmutable},
{sfMPTAmount, SoeDefault, SoeMutable},
{sfLockedAmount, SoeOptional, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which tracks Oracle
\sa keylet::oracle
*/
LEDGER_ENTRY(ltORACLE, 0x0080, Oracle, oracle, ({
{sfOwner, SoeRequired, SoeConstant},
{sfOracleDocumentID, SoeOptional, SoeConstant},
{sfProvider, SoeRequired, SoeConstant},
{sfPriceDataSeries, SoeRequired, SoeNotconstant},
{sfAssetClass, SoeRequired, SoeNotconstant},
{sfLastUpdateTime, SoeRequired, SoeNotconstant},
{sfURI, SoeOptional, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfOwner, SoeRequired, SoeImmutable},
{sfOracleDocumentID, SoeOptional, SoeImmutable},
{sfProvider, SoeRequired, SoeImmutable},
{sfPriceDataSeries, SoeRequired, SoeMutable},
{sfAssetClass, SoeRequired, SoeMutable},
{sfLastUpdateTime, SoeRequired, SoeMutable},
{sfURI, SoeOptional, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which tracks Credential
\sa keylet::credential
*/
LEDGER_ENTRY(ltCREDENTIAL, 0x0081, Credential, credential, ({
{sfSubject, SoeRequired, SoeConstant},
{sfIssuer, SoeRequired, SoeConstant},
{sfCredentialType, SoeRequired, SoeConstant},
{sfExpiration, SoeOptional, SoeConstant},
{sfURI, SoeOptional, SoeConstant},
{sfIssuerNode, SoeRequired, SoeConstant},
{sfSubjectNode, SoeOptional, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfSubject, SoeRequired, SoeImmutable},
{sfIssuer, SoeRequired, SoeImmutable},
{sfCredentialType, SoeRequired, SoeImmutable},
{sfExpiration, SoeOptional, SoeImmutable},
{sfURI, SoeOptional, SoeImmutable},
{sfIssuerNode, SoeRequired, SoeImmutable},
{sfSubjectNode, SoeOptional, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object which tracks PermissionedDomain
\sa keylet::permissionedDomain
*/
LEDGER_ENTRY(ltPERMISSIONED_DOMAIN, 0x0082, PermissionedDomain, permissioned_domain, ({
{sfOwner, SoeRequired, SoeConstant},
{sfSequence, SoeRequired, SoeConstant},
{sfAcceptedCredentials, SoeRequired, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfOwner, SoeRequired, SoeImmutable},
{sfSequence, SoeRequired, SoeImmutable},
{sfAcceptedCredentials, SoeRequired, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object representing permissions an account has delegated to another account.
\sa keylet::delegate
*/
LEDGER_ENTRY(ltDELEGATE, 0x0083, Delegate, delegate, ({
{sfAccount, SoeRequired, SoeConstant},
{sfAuthorize, SoeRequired, SoeConstant},
{sfPermissions, SoeRequired, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfAuthorize, SoeRequired, SoeImmutable},
{sfPermissions, SoeRequired, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
}))
/** A ledger object representing a single asset vault.
\sa keylet::vault
*/
LEDGER_ENTRY(ltVAULT, 0x0084, Vault, vault, ({
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfSequence, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfOwner, SoeRequired, SoeConstant},
{sfAccount, SoeRequired, SoeConstant},
{sfData, SoeOptional, SoeNotconstant},
{sfAsset, SoeRequired, SoeConstant},
{sfAssetsTotal, SoeDefault, SoeNotconstant},
{sfAssetsAvailable, SoeDefault, SoeNotconstant},
{sfAssetsMaximum, SoeDefault, SoeNotconstant},
{sfLossUnrealized, SoeDefault, SoeNotconstant},
{sfShareMPTID, SoeRequired, SoeConstant},
{sfWithdrawalPolicy, SoeRequired, SoeConstant},
{sfScale, SoeDefault, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfSequence, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfOwner, SoeRequired, SoeImmutable},
{sfAccount, SoeRequired, SoeImmutable},
{sfData, SoeOptional, SoeMutable},
{sfAsset, SoeRequired, SoeImmutable},
{sfAssetsTotal, SoeDefault, SoeMutable},
{sfAssetsAvailable, SoeDefault, SoeMutable},
{sfAssetsMaximum, SoeDefault, SoeMutable},
{sfLossUnrealized, SoeDefault, SoeMutable},
{sfShareMPTID, SoeRequired, SoeImmutable},
{sfWithdrawalPolicy, SoeRequired, SoeImmutable},
{sfScale, SoeDefault, SoeImmutable},
// no SharesTotal ever (use MPTIssuance.sfOutstandingAmount)
// no PermissionedDomainID ever (use MPTIssuance.sfDomainID)
}))
@@ -500,23 +500,23 @@ LEDGER_ENTRY(ltVAULT, 0x0084, Vault, vault, ({
\sa keylet::loanbroker
*/
LEDGER_ENTRY(ltLOAN_BROKER, 0x0088, LoanBroker, loan_broker, ({
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfSequence, SoeRequired, SoeConstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfVaultNode, SoeRequired, SoeConstant},
{sfVaultID, SoeRequired, SoeConstant},
{sfAccount, SoeRequired, SoeConstant},
{sfOwner, SoeRequired, SoeConstant},
{sfLoanSequence, SoeRequired, SoeNotconstant},
{sfData, SoeDefault, SoeNotconstant},
{sfManagementFeeRate, SoeDefault, SoeConstant},
{sfOwnerCount, SoeDefault, SoeNotconstant},
{sfDebtTotal, SoeDefault, SoeNotconstant},
{sfDebtMaximum, SoeDefault, SoeNotconstant},
{sfCoverAvailable, SoeDefault, SoeNotconstant},
{sfCoverRateMinimum, SoeDefault, SoeConstant},
{sfCoverRateLiquidation, SoeDefault, SoeConstant},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfSequence, SoeRequired, SoeImmutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfVaultNode, SoeRequired, SoeImmutable},
{sfVaultID, SoeRequired, SoeImmutable},
{sfAccount, SoeRequired, SoeImmutable},
{sfOwner, SoeRequired, SoeImmutable},
{sfLoanSequence, SoeRequired, SoeMutable},
{sfData, SoeDefault, SoeMutable},
{sfManagementFeeRate, SoeDefault, SoeImmutable},
{sfOwnerCount, SoeDefault, SoeMutable},
{sfDebtTotal, SoeDefault, SoeMutable},
{sfDebtMaximum, SoeDefault, SoeMutable},
{sfCoverAvailable, SoeDefault, SoeMutable},
{sfCoverRateMinimum, SoeDefault, SoeImmutable},
{sfCoverRateLiquidation, SoeDefault, SoeImmutable},
}))
/** A ledger object representing a loan between a Borrower and a Loan Broker
@@ -524,27 +524,27 @@ LEDGER_ENTRY(ltLOAN_BROKER, 0x0088, LoanBroker, loan_broker, ({
\sa keylet::loan
*/
LEDGER_ENTRY(ltLOAN, 0x0089, Loan, loan, ({
{sfPreviousTxnID, SoeRequired, SoeNotconstant},
{sfPreviousTxnLgrSeq, SoeRequired, SoeNotconstant},
{sfOwnerNode, SoeRequired, SoeConstant},
{sfLoanBrokerNode, SoeRequired, SoeConstant},
{sfLoanBrokerID, SoeRequired, SoeConstant},
{sfLoanSequence, SoeRequired, SoeConstant},
{sfBorrower, SoeRequired, SoeConstant},
{sfLoanOriginationFee, SoeDefault, SoeConstant},
{sfLoanServiceFee, SoeDefault, SoeConstant},
{sfLatePaymentFee, SoeDefault, SoeConstant},
{sfClosePaymentFee, SoeDefault, SoeConstant},
{sfOverpaymentFee, SoeDefault, SoeConstant},
{sfInterestRate, SoeDefault, SoeConstant},
{sfLateInterestRate, SoeDefault, SoeConstant},
{sfCloseInterestRate, SoeDefault, SoeConstant},
{sfOverpaymentInterestRate, SoeDefault, SoeConstant},
{sfStartDate, SoeRequired, SoeConstant},
{sfPaymentInterval, SoeRequired, SoeConstant},
{sfGracePeriod, SoeDefault, SoeConstant},
{sfPreviousPaymentDueDate, SoeDefault, SoeNotconstant},
{sfNextPaymentDueDate, SoeDefault, SoeNotconstant},
{sfPreviousTxnID, SoeRequired, SoeMutable},
{sfPreviousTxnLgrSeq, SoeRequired, SoeMutable},
{sfOwnerNode, SoeRequired, SoeImmutable},
{sfLoanBrokerNode, SoeRequired, SoeImmutable},
{sfLoanBrokerID, SoeRequired, SoeImmutable},
{sfLoanSequence, SoeRequired, SoeImmutable},
{sfBorrower, SoeRequired, SoeImmutable},
{sfLoanOriginationFee, SoeDefault, SoeImmutable},
{sfLoanServiceFee, SoeDefault, SoeImmutable},
{sfLatePaymentFee, SoeDefault, SoeImmutable},
{sfClosePaymentFee, SoeDefault, SoeImmutable},
{sfOverpaymentFee, SoeDefault, SoeImmutable},
{sfInterestRate, SoeDefault, SoeImmutable},
{sfLateInterestRate, SoeDefault, SoeImmutable},
{sfCloseInterestRate, SoeDefault, SoeImmutable},
{sfOverpaymentInterestRate, SoeDefault, SoeImmutable},
{sfStartDate, SoeRequired, SoeImmutable},
{sfPaymentInterval, SoeRequired, SoeImmutable},
{sfGracePeriod, SoeDefault, SoeImmutable},
{sfPreviousPaymentDueDate, SoeDefault, SoeMutable},
{sfNextPaymentDueDate, SoeDefault, SoeMutable},
// The loan object tracks these values:
//
// - PaymentRemaining: The number of payments left in the loan. When it
@@ -592,17 +592,17 @@ LEDGER_ENTRY(ltLOAN, 0x0089, Loan, loan, ({
//
// Note the the "True" values may differ significantly from the tracked
// rounded values.
{sfPaymentRemaining, SoeDefault, SoeNotconstant},
{sfPeriodicPayment, SoeRequired, SoeNotconstant},
{sfPrincipalOutstanding, SoeDefault, SoeNotconstant},
{sfTotalValueOutstanding, SoeDefault, SoeNotconstant},
{sfManagementFeeOutstanding, SoeDefault, SoeNotconstant},
{sfPaymentRemaining, SoeDefault, SoeMutable},
{sfPeriodicPayment, SoeRequired, SoeMutable},
{sfPrincipalOutstanding, SoeDefault, SoeMutable},
{sfTotalValueOutstanding, SoeDefault, SoeMutable},
{sfManagementFeeOutstanding, SoeDefault, SoeMutable},
// Based on the computed total value at creation, used for
// rounding calculated values so they are all on a
// consistent scale - that is, they all have the same
// number of digits after the decimal point (excluding
// trailing zeros).
{sfLoanScale, SoeDefault, SoeConstant},
{sfLoanScale, SoeDefault, SoeImmutable},
}))
#undef EXPAND

View File

@@ -13,154 +13,154 @@ InnerObjectFormats::InnerObjectFormats()
add(sfSignerEntry.jsonName,
sfSignerEntry.getCode(),
{
{sfAccount, SoeRequired, SoeConstant},
{sfSignerWeight, SoeRequired, SoeNotconstant},
{sfWalletLocator, SoeOptional, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfSignerWeight, SoeRequired, SoeMutable},
{sfWalletLocator, SoeOptional, SoeMutable},
});
add(sfSigner.jsonName,
sfSigner.getCode(),
{
{sfAccount, SoeRequired, SoeConstant},
{sfSigningPubKey, SoeRequired, SoeConstant},
{sfTxnSignature, SoeRequired, SoeConstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfSigningPubKey, SoeRequired, SoeImmutable},
{sfTxnSignature, SoeRequired, SoeImmutable},
});
add(sfMajority.jsonName,
sfMajority.getCode(),
{
{sfAmendment, SoeRequired, SoeConstant},
{sfCloseTime, SoeRequired, SoeConstant},
{sfAmendment, SoeRequired, SoeImmutable},
{sfCloseTime, SoeRequired, SoeImmutable},
});
add(sfDisabledValidator.jsonName,
sfDisabledValidator.getCode(),
{
{sfPublicKey, SoeRequired, SoeConstant},
{sfFirstLedgerSequence, SoeRequired, SoeConstant},
{sfPublicKey, SoeRequired, SoeImmutable},
{sfFirstLedgerSequence, SoeRequired, SoeImmutable},
});
add(sfNFToken.jsonName,
sfNFToken.getCode(),
{
{sfNFTokenID, SoeRequired, SoeConstant},
{sfURI, SoeOptional, SoeNotconstant},
{sfNFTokenID, SoeRequired, SoeImmutable},
{sfURI, SoeOptional, SoeMutable},
});
add(sfVoteEntry.jsonName,
sfVoteEntry.getCode(),
{
{sfAccount, SoeRequired, SoeConstant},
{sfTradingFee, SoeDefault, SoeNotconstant},
{sfVoteWeight, SoeRequired, SoeNotconstant},
{sfAccount, SoeRequired, SoeImmutable},
{sfTradingFee, SoeDefault, SoeMutable},
{sfVoteWeight, SoeRequired, SoeMutable},
});
add(sfAuctionSlot.jsonName,
sfAuctionSlot.getCode(),
{{sfAccount, SoeRequired, SoeConstant},
{sfExpiration, SoeRequired, SoeConstant},
{sfDiscountedFee, SoeDefault, SoeConstant},
{sfPrice, SoeRequired, SoeConstant},
{sfAuthAccounts, SoeOptional, SoeConstant}});
{{sfAccount, SoeRequired, SoeImmutable},
{sfExpiration, SoeRequired, SoeImmutable},
{sfDiscountedFee, SoeDefault, SoeImmutable},
{sfPrice, SoeRequired, SoeImmutable},
{sfAuthAccounts, SoeOptional, SoeImmutable}});
add(sfXChainClaimAttestationCollectionElement.jsonName,
sfXChainClaimAttestationCollectionElement.getCode(),
{
{sfAttestationSignerAccount, SoeRequired, SoeConstant},
{sfPublicKey, SoeRequired, SoeConstant},
{sfSignature, SoeRequired, SoeConstant},
{sfAmount, SoeRequired, SoeConstant},
{sfAccount, SoeRequired, SoeConstant},
{sfAttestationRewardAccount, SoeRequired, SoeConstant},
{sfWasLockingChainSend, SoeRequired, SoeConstant},
{sfXChainClaimID, SoeRequired, SoeConstant},
{sfDestination, SoeOptional, SoeConstant},
{sfAttestationSignerAccount, SoeRequired, SoeImmutable},
{sfPublicKey, SoeRequired, SoeImmutable},
{sfSignature, SoeRequired, SoeImmutable},
{sfAmount, SoeRequired, SoeImmutable},
{sfAccount, SoeRequired, SoeImmutable},
{sfAttestationRewardAccount, SoeRequired, SoeImmutable},
{sfWasLockingChainSend, SoeRequired, SoeImmutable},
{sfXChainClaimID, SoeRequired, SoeImmutable},
{sfDestination, SoeOptional, SoeImmutable},
});
add(sfXChainCreateAccountAttestationCollectionElement.jsonName,
sfXChainCreateAccountAttestationCollectionElement.getCode(),
{
{sfAttestationSignerAccount, SoeRequired, SoeConstant},
{sfPublicKey, SoeRequired, SoeConstant},
{sfSignature, SoeRequired, SoeConstant},
{sfAmount, SoeRequired, SoeConstant},
{sfAccount, SoeRequired, SoeConstant},
{sfAttestationRewardAccount, SoeRequired, SoeConstant},
{sfWasLockingChainSend, SoeRequired, SoeConstant},
{sfXChainAccountCreateCount, SoeRequired, SoeConstant},
{sfDestination, SoeRequired, SoeConstant},
{sfSignatureReward, SoeRequired, SoeConstant},
{sfAttestationSignerAccount, SoeRequired, SoeImmutable},
{sfPublicKey, SoeRequired, SoeImmutable},
{sfSignature, SoeRequired, SoeImmutable},
{sfAmount, SoeRequired, SoeImmutable},
{sfAccount, SoeRequired, SoeImmutable},
{sfAttestationRewardAccount, SoeRequired, SoeImmutable},
{sfWasLockingChainSend, SoeRequired, SoeImmutable},
{sfXChainAccountCreateCount, SoeRequired, SoeImmutable},
{sfDestination, SoeRequired, SoeImmutable},
{sfSignatureReward, SoeRequired, SoeImmutable},
});
add(sfXChainClaimProofSig.jsonName,
sfXChainClaimProofSig.getCode(),
{
{sfAttestationSignerAccount, SoeRequired, SoeConstant},
{sfPublicKey, SoeRequired, SoeConstant},
{sfAmount, SoeRequired, SoeConstant},
{sfAttestationRewardAccount, SoeRequired, SoeConstant},
{sfWasLockingChainSend, SoeRequired, SoeConstant},
{sfDestination, SoeOptional, SoeConstant},
{sfAttestationSignerAccount, SoeRequired, SoeImmutable},
{sfPublicKey, SoeRequired, SoeImmutable},
{sfAmount, SoeRequired, SoeImmutable},
{sfAttestationRewardAccount, SoeRequired, SoeImmutable},
{sfWasLockingChainSend, SoeRequired, SoeImmutable},
{sfDestination, SoeOptional, SoeImmutable},
});
add(sfXChainCreateAccountProofSig.jsonName,
sfXChainCreateAccountProofSig.getCode(),
{
{sfAttestationSignerAccount, SoeRequired, SoeConstant},
{sfPublicKey, SoeRequired, SoeConstant},
{sfAmount, SoeRequired, SoeConstant},
{sfSignatureReward, SoeRequired, SoeConstant},
{sfAttestationRewardAccount, SoeRequired, SoeConstant},
{sfWasLockingChainSend, SoeRequired, SoeConstant},
{sfDestination, SoeRequired, SoeConstant},
{sfAttestationSignerAccount, SoeRequired, SoeImmutable},
{sfPublicKey, SoeRequired, SoeImmutable},
{sfAmount, SoeRequired, SoeImmutable},
{sfSignatureReward, SoeRequired, SoeImmutable},
{sfAttestationRewardAccount, SoeRequired, SoeImmutable},
{sfWasLockingChainSend, SoeRequired, SoeImmutable},
{sfDestination, SoeRequired, SoeImmutable},
});
add(sfAuthAccount.jsonName,
sfAuthAccount.getCode(),
{
{sfAccount, SoeRequired, SoeConstant},
{sfAccount, SoeRequired, SoeImmutable},
});
add(sfPriceData.jsonName,
sfPriceData.getCode(),
{
{sfBaseAsset, SoeRequired, SoeConstant},
{sfQuoteAsset, SoeRequired, SoeConstant},
{sfAssetPrice, SoeOptional, SoeConstant},
{sfScale, SoeDefault, SoeConstant},
{sfBaseAsset, SoeRequired, SoeImmutable},
{sfQuoteAsset, SoeRequired, SoeImmutable},
{sfAssetPrice, SoeOptional, SoeImmutable},
{sfScale, SoeDefault, SoeImmutable},
});
add(sfCredential.jsonName,
sfCredential.getCode(),
{
{sfIssuer, SoeRequired, SoeConstant},
{sfCredentialType, SoeRequired, SoeConstant},
{sfIssuer, SoeRequired, SoeImmutable},
{sfCredentialType, SoeRequired, SoeImmutable},
});
add(sfPermission.jsonName.c_str(),
sfPermission.getCode(),
{{sfPermissionValue, SoeRequired, SoeConstant}});
{{sfPermissionValue, SoeRequired, SoeImmutable}});
add(sfBatchSigner.jsonName.c_str(),
sfBatchSigner.getCode(),
{{sfAccount, SoeRequired, SoeConstant},
{sfSigningPubKey, SoeOptional, SoeConstant},
{sfTxnSignature, SoeOptional, SoeConstant},
{sfSigners, SoeOptional, SoeConstant}});
{{sfAccount, SoeRequired, SoeImmutable},
{sfSigningPubKey, SoeOptional, SoeImmutable},
{sfTxnSignature, SoeOptional, SoeImmutable},
{sfSigners, SoeOptional, SoeImmutable}});
add(sfBook.jsonName,
sfBook.getCode(),
{
{sfBookDirectory, SoeRequired, SoeConstant},
{sfBookNode, SoeRequired, SoeConstant},
{sfBookDirectory, SoeRequired, SoeImmutable},
{sfBookNode, SoeRequired, SoeImmutable},
});
add(sfCounterpartySignature.jsonName,
sfCounterpartySignature.getCode(),
{
{sfSigningPubKey, SoeOptional, SoeConstant},
{sfTxnSignature, SoeOptional, SoeConstant},
{sfSigners, SoeOptional, SoeConstant},
{sfSigningPubKey, SoeOptional, SoeImmutable},
{sfTxnSignature, SoeOptional, SoeImmutable},
{sfSigners, SoeOptional, SoeImmutable},
});
}

View File

@@ -12,9 +12,9 @@ std::vector<SOElement> const&
LedgerFormats::getCommonFields()
{
static auto const kCOMMON_FIELDS = std::vector<SOElement>{
{sfLedgerIndex, SoeOptional, SoeConstant},
{sfLedgerEntryType, SoeRequired, SoeConstant},
{sfFlags, SoeRequired, SoeNotconstant},
{sfLedgerIndex, SoeOptional, SoeImmutable},
{sfLedgerEntryType, SoeRequired, SoeImmutable},
{sfFlags, SoeRequired, SoeMutable},
};
return kCOMMON_FIELDS;
}

View File

@@ -1001,8 +1001,8 @@ hasConstantFieldChanged(STObject const& before, STObject const& after, SOTemplat
bool const aPresent = (aField != nullptr) && aField->getSType() != STI_NOTPRESENT;
XRPL_ASSERT(
constant != SoeConstantinvalid, "xrpl::hasConstantFieldChanged : constant is invalid");
if (constant == SoeConstant)
constant != SoeImmutable, "xrpl::hasConstantFieldChanged : constant is invalid");
if (constant == SoeImmutable)
{
if (elem.style() == soeOPTIONAL)
{