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")
283 #undef CONSTRUCT_TYPED_SFIELD
284 #undef CONSTRUCT_UNTYPED_SFIELD
286 #pragma pop_macro("CONSTRUCT_TYPED_SFIELD")
287 #pragma pop_macro("CONSTRUCT_UNTYPED_SFIELD")
302 , signingField(signing)
303 , jsonName(fieldName.c_str())
312 , fieldMeta(sMD_Never)
315 , jsonName(fieldName.c_str())
327 return *(it->second);
const SF_UINT64 sfIndexNext
const SF_UINT32 sfSignerListID
const SF_UINT32 sfHighQualityIn
const SF_UINT32 sfOfferSequence
const SF_UINT32 sfPreviousTxnLgrSeq
const SF_UINT32 sfOwnerCount
const SF_HASH256 sfPreviousTxnID
const SF_HASH256 sfDigest
const SF_UINT16 sfSignerWeight
const SF_VL sfUNLModifyValidator
const SF_UINT32 sfSourceTag
const SF_UINT32 sfReserveBase
const SF_AMOUNT sfSendMax
const SF_UINT64 sfOwnerNode
const SF_AMOUNT sfMinimumOffer
const SField sfGeneric(access, 0)
const SF_UINT32 sfLedgerSequence
const SF_ACCOUNT sfDestination
const SField sfTransactionMetaData
const SF_UINT32 sfWalletSize
const SF_UINT32 sfFirstLedgerSequence
const SF_HASH160 sfTakerGetsCurrency
const SF_UINT32 sfQualityOut
const SF_HASH256 sfBookDirectory
const SF_UINT32 sfSequence
const SF_ACCOUNT sfRegularKey
const SF_HASH256 sfWalletLocator
int field_code(SerializedTypeID id, int index)
const std::string fieldName
const SF_VL sfSigningPubKey
const SF_UINT32 sfQualityIn
const SF_UINT32 sfSetFlag
const SField sfFinalFields
const SF_HASH128 sfEmailHash
const SF_UINT32 sfCloseTime
const SF_UINT32 sfTicketSequence
const SF_UINT32 sfParentCloseTime
static const SField & getField(int fieldCode)
const SF_HASH256 sfAmendment
static std::map< int, SField const * > knownCodeToField
const SF_HASH256 sfTransactionHash
const SField sfDeletedNode
const SField sfInvalid(access, -1)
const SF_HASH160 sfTakerGetsIssuer
const SF_HASH256 sfValidatedHash
const SField sfLedgerEntry
const SF_UINT32 sfExpiration
const SF_UINT32 sfSignerQuorum
const SF_VECTOR256 sfIndexes
const SF_HASH256 sfLedgerHash
const SF_UINT16 sfVersion
const SF_UINT64 sfLowNode
const SF_AMOUNT sfTakerPays
SField(SField const &)=delete
const SF_UINT16 sfTransactionType
const SF_AMOUNT sfDeliverMin
const SF_UINT32 sfLowQualityOut
const SF_AMOUNT sfLimitAmount
const SF_AMOUNT sfLowLimit
const SF_AMOUNT sfDeliveredAmount
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_HASH160 sfTakerPaysIssuer
const SF_UINT32 sfReserveIncrement
const SF_VL sfMasterSignature
const SF_UINT64 sfIndexPrevious
const SField sfAffectedNodes
const SF_UINT64 sfBookNode
static const IsSigning notSigning
const SF_UINT32 sfLowQualityIn
const SF_VL sfValidatorToDisable
const SF_UINT32 sfTicketCount
const SF_AMOUNT sfRippleEscrow
const SField sfModifiedNode
const SF_UINT64 sfDestinationNode
const SF_AMOUNT sfTakerGets
const SF_HASH256 sfLedgerIndex
const SF_UINT32 sfTransferRate
const SF_UINT8 sfTickSize
const SF_ACCOUNT sfAuthorize
const SF_AMOUNT sfHighLimit
const SF_UINT64 sfExchangeRate
const SF_UINT32 sfStampEscrow
CONSTRUCT_UNTYPED_SFIELD(sfLedgerEntry, "LedgerEntry", LEDGERENTRY, 257)
const SField sfHash(access, STI_HASH256, 257, "hash")
const SF_UINT32 sfClearFlag
const SField sfSignerEntry
const SF_HASH256 sfAccountHash
const SF_HASH160 sfTakerPaysCurrency
const SF_HASH256 sfChannel
const SF_HASH256 sfCheckID
const SF_UINT8 sfUNLModifyDisabling
const SField sfPreviousFields
const SF_UINT32 sfTransactionIndex
const SField sfIndex(access, STI_HASH256, 258, "index")
const SField sfSignerEntries
const SF_UINT32 sfOperationLimit
const SF_UINT64 sfBaseFee
CONSTRUCT_TYPED_SFIELD(sfCloseResolution, "CloseResolution", UINT8, 1)
const SF_VECTOR256 sfHashes
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 SF_UINT8 sfCloseResolution
const SF_UINT8 sfTransactionResult
const SField sfTemplateEntry
const SF_UINT16 sfLedgerEntryType
const SF_HASH256 sfConsensusHash
const SF_HASH256 sfAccountTxnID
const SF_ACCOUNT sfIssuer
const SF_HASH256 sfInvoiceID
const SField sfDisabledValidator
const SF_UINT32 sfDestinationTag
const SField sfCreatedNode
const SF_HASH256 sfRootIndex
const SF_AMOUNT sfBalance
static int compare(const SField &f1, const SField &f2)
const SF_UINT32 sfReferenceFeeUnits
const SF_UINT32 sfCancelAfter
const SF_UINT32 sfHighQualityOut
const SField sfValidation
const SF_UINT32 sfFinishAfter
const SF_ACCOUNT sfAccount
const SField sfSufficient
const SF_UINT32 sfLastLedgerSequence
const SF_HASH256 sfNickname
const SF_HASH256 sfParentHash
const SField sfMajorities
const SF_UINT32 sfSigningTime
const SField sfDisabledValidators
const SF_VL sfFulfillment
const SF_UINT64 sfHighNode
const SField sfTransaction
const SF_VECTOR256 sfAmendments
const SF_VL sfValidatorToReEnable