20 #include <ripple/protocol/SField.h>
45 #pragma push_macro("CONSTRUCT_UNTYPED_SFIELD")
46 #undef CONSTRUCT_UNTYPED_SFIELD
52 #define CONSTRUCT_UNTYPED_SFIELD(sfName, txtName, stiSuffix, fieldValue, ...) \
53 SField const sfName( \
54 access, STI_##stiSuffix, fieldValue, txtName, ##__VA_ARGS__); \
56 std::string_view(#sfName) == "sf" txtName, \
57 "Declaration of SField does not match its text name")
59 #pragma push_macro("CONSTRUCT_TYPED_SFIELD")
60 #undef CONSTRUCT_TYPED_SFIELD
62 #define CONSTRUCT_TYPED_SFIELD(sfName, txtName, stiSuffix, fieldValue, ...) \
63 SF_##stiSuffix const sfName( \
64 access, STI_##stiSuffix, fieldValue, txtName, ##__VA_ARGS__); \
66 std::string_view(#sfName) == "sf" txtName, \
67 "Declaration of SField does not match its text name")
349 #undef CONSTRUCT_TYPED_SFIELD
350 #undef CONSTRUCT_UNTYPED_SFIELD
352 #pragma pop_macro("CONSTRUCT_TYPED_SFIELD")
353 #pragma pop_macro("CONSTRUCT_UNTYPED_SFIELD")
368 , signingField(signing)
369 , jsonName(fieldName.c_str())
378 , fieldMeta(sMD_Never)
381 , jsonName(fieldName.c_str())
393 return *(it->second);
const SF_ACCOUNT sfHookAccount
const SF_UINT64 sfIndexNext
const SF_UINT32 sfSignerListID
const SF_UINT32 sfHighQualityIn
const SF_UINT32 sfOfferSequence
const SF_UINT32 sfPreviousTxnLgrSeq
const SF_UINT256 sfHookHash
const SF_UINT32 sfOwnerCount
const SF_UINT32 sfFirstNFTokenSequence
const SF_UINT16 sfSignerWeight
const SF_UINT16 sfHookApiVersion
const SF_VL sfHookParameterValue
const SF_VL sfUNLModifyValidator
const SF_UINT256 sfRootIndex
const SF_UINT32 sfSourceTag
const SF_AMOUNT sfBaseFeeDrops
const SF_UINT32 sfReserveBase
const SF_UINT256 sfEmitParentTxnID
const SF_AMOUNT sfSendMax
const SF_UINT16 sfHookExecutionIndex
const SF_UINT256 sfEmitHookHash
const SF_UINT64 sfOwnerNode
const SF_UINT64 sfHookReturnCode
const SF_AMOUNT sfMinimumOffer
const SField sfGeneric(access, 0)
const SF_UINT32 sfLedgerSequence
const SF_VECTOR256 sfNFTokenOffers
const SF_ACCOUNT sfDestination
const SField sfTransactionMetaData
const SF_UINT256 sfNFTokenID
const SF_UINT32 sfWalletSize
const SF_UINT32 sfFirstLedgerSequence
const SF_UINT256 sfCheckID
const SF_UINT32 sfQualityOut
const SF_UINT16 sfHookStateChangeCount
const SF_UINT32 sfSequence
const SF_ACCOUNT sfRegularKey
const SField sfHash(access, STI_UINT256, 257, "hash")
const SF_UINT256 sfBookDirectory
int field_code(SerializedTypeID id, int index)
const std::string fieldName
const SF_UINT160 sfTakerPaysCurrency
const SF_VL sfSigningPubKey
const SF_UINT256 sfLedgerIndex
const SF_UINT32 sfMintedNFTokens
const SF_UINT8 sfHookResult
const SF_UINT32 sfQualityIn
const SF_VL sfHookReturnString
const SF_UINT32 sfSetFlag
const SField sfHookParameters
const SField sfFinalFields
const SF_UINT32 sfCloseTime
const SF_UINT32 sfTicketSequence
const SF_UINT32 sfParentCloseTime
static const SField & getField(int fieldCode)
static std::map< int, SField const * > knownCodeToField
const SF_UINT32 sfHookStateCount
const SF_UINT160 sfTakerGetsCurrency
const SField sfEmitDetails
const SField sfDeletedNode
const SF_UINT64 sfHookInstructionCount
const SF_UINT16 sfHookEmitCount
const SField sfInvalid(access, -1)
const SF_UINT64 sfNFTokenOfferNode
const SF_UINT16 sfTransferFee
const SF_VL sfHookStateData
const SField sfLedgerEntry
const SF_UINT32 sfExpiration
const SF_UINT256 sfTransactionHash
const SF_UINT32 sfSignerQuorum
const SF_VECTOR256 sfIndexes
const SF_UINT16 sfVersion
const SF_UINT160 sfTakerGetsIssuer
const SF_UINT64 sfLowNode
const SF_UINT256 sfEmitNonce
const SF_UINT256 sfValidatedHash
const SF_AMOUNT sfTakerPays
SField(SField const &)=delete
const SF_UINT16 sfTransactionType
const SField sfHookExecution
const SF_AMOUNT sfDeliverMin
const SF_UINT32 sfLowQualityOut
const SF_AMOUNT sfLimitAmount
const SF_AMOUNT sfLowLimit
const SField sfHookParameter
const SF_AMOUNT sfDeliveredAmount
const SF_UINT256 sfParentHash
private_access_tag_t()=default
const SF_UINT32 sfSettleDelay
const SF_ACCOUNT sfUnauthorize
const SF_UINT64 sfServerVersion
const SF_UINT32 sfBondAmount
const SF_UINT32 sfLoadFee
const SF_ACCOUNT sfNFTokenMinter
const SF_UINT32 sfReserveIncrement
const SF_VL sfMasterSignature
const SF_UINT256 sfNickname
const SF_UINT64 sfIndexPrevious
const SField sfAffectedNodes
const SF_UINT64 sfBookNode
const SF_UINT256 sfLedgerHash
static const IsSigning notSigning
const SF_UINT32 sfLowQualityIn
const SF_UINT256 sfDigest
const SF_UINT256 sfHookStateKey
const SF_VL sfValidatorToDisable
const SF_UINT32 sfTicketCount
const SF_AMOUNT sfRippleEscrow
const SF_UINT256 sfAccountTxnID
const SField sfModifiedNode
const SF_UINT64 sfDestinationNode
const SF_AMOUNT sfTakerGets
const SF_UINT32 sfTransferRate
const SF_UINT8 sfTickSize
const SF_UINT256 sfPreviousTxnID
const SF_ACCOUNT sfAuthorize
const SF_AMOUNT sfHighLimit
const SF_UINT64 sfExchangeRate
const SF_UINT32 sfEmitGeneration
const SF_UINT32 sfStampEscrow
const SField sfHookExecutions
CONSTRUCT_UNTYPED_SFIELD(sfLedgerEntry, "LedgerEntry", LEDGERENTRY, 257)
const SF_AMOUNT sfReserveIncrementDrops
const SF_UINT32 sfClearFlag
const SField sfSignerEntry
const SF_AMOUNT sfReserveBaseDrops
const SF_UINT8 sfUNLModifyDisabling
const SField sfPreviousFields
const SF_UINT64 sfReferenceCount
const SF_UINT32 sfTransactionIndex
const SF_UINT128 sfEmailHash
const SField sfSignerEntries
const SF_UINT32 sfOperationLimit
const SF_UINT64 sfBaseFee
CONSTRUCT_TYPED_SFIELD(sfCloseResolution, "CloseResolution", UINT8, 1)
const SF_VECTOR256 sfHashes
const SF_UINT256 sfNFTokenBuyOffer
const SF_VL sfTxnSignature
static SField::private_access_tag_t access
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const SField sfHookGrants
const SF_UINT8 sfCloseResolution
const SF_UINT8 sfTransactionResult
const SF_UINT256 sfWalletLocator
const SF_UINT256 sfAccountHash
const SField sfTemplateEntry
const SF_UINT16 sfLedgerEntryType
const SF_UINT160 sfTakerPaysIssuer
const SF_ACCOUNT sfIssuer
const SF_UINT256 sfInvoiceID
const SF_UINT256 sfConsensusHash
const SField sfDisabledValidator
const SF_UINT32 sfDestinationTag
const SField sfCreatedNode
const SF_VL sfHookParameterName
const SF_AMOUNT sfBalance
static int compare(const SField &f1, const SField &f2)
const SF_UINT32 sfReferenceFeeUnits
const SF_UINT256 sfNextPageMin
const SF_UINT32 sfCancelAfter
const SField sfHookDefinition
const SF_UINT32 sfHighQualityOut
const SF_ACCOUNT sfEmitCallback
const SField sfValidation
const SF_UINT256 sfPreviousPageMin
const SF_UINT32 sfFinishAfter
const SF_UINT256 sfChannel
const SF_UINT32 sfNFTokenTaxon
const SF_ACCOUNT sfAccount
const SField sfEmittedTxn
const SF_UINT64 sfEmitBurden
const SF_UINT32 sfNetworkID
const SField sfSufficient
const SF_UINT256 sfHookNamespace
const SF_UINT32 sfLastLedgerSequence
const SF_UINT32 sfBurnedNFTokens
const SField sfIndex(access, STI_UINT256, 258, "index")
const SF_UINT256 sfAmendment
const SField sfMajorities
const SF_UINT32 sfSigningTime
const SField sfDisabledValidators
const SF_VL sfFulfillment
const SF_UINT64 sfHighNode
const SF_UINT256 sfNFTokenSellOffer
const SField sfTransaction
const SF_UINT256 sfHookSetTxnID
const SF_AMOUNT sfNFTokenBrokerFee
const SF_VECTOR256 sfAmendments
const SF_VL sfValidatorToReEnable