1#ifndef XRPL_PROTOCOL_PROTOCOL_H_INCLUDED
2#define XRPL_PROTOCOL_PROTOCOL_H_INCLUDED
4#include <xrpl/basics/ByteUtilities.h>
5#include <xrpl/basics/base_uint.h>
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::size_t constexpr maxDIDURILength
The maximum length of a URI inside a DID.
std::size_t constexpr permissionMaxSize
The maximum number of delegate permissions an account can grant.
std::size_t constexpr maxDeletableDirEntries
The maximum number of owner directory entries for account to be deletable.
std::uint8_t constexpr maxAssetCheckDepth
Maximum recursion depth for vault shares being put as an asset inside another vault; counted from 0.
constexpr auto megabytes(T value) noexcept
std::uint64_t constexpr dirNodeMaxPages
The maximum number of pages allowed in a directory.
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
std::size_t constexpr unfundedOfferRemoveLimit
The maximum number of unfunded offers to delete at once.
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
std::size_t constexpr maxDIDAttestationLength
The maximum length of an Attestation inside a DID.
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
std::size_t constexpr expiredOfferRemoveLimit
The maximum number of expired offers to delete at once.
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
std::size_t constexpr maxOracleURI
The maximum length of a URI inside an Oracle.
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
std::size_t constexpr maxDIDDocumentLength
The maximum length of a Data element inside a DID.
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
std::size_t constexpr oversizeMetaDataCap
The maximum number of metadata entries allowed in one transaction.
std::size_t constexpr maxOracleProvider
The maximum length of a Provider inside an Oracle.
std::size_t constexpr txMinSizeBytes
Protocol specific constants.
std::size_t constexpr maxDataPayloadLength
The maximum length of Data payload.
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
std::size_t constexpr maxTrim
The maximum percentage of outliers to trim.
std::size_t constexpr maxDomainLength
The maximum length of a domain.
std::size_t constexpr maxMPTokenMetadataLength
The maximum length of MPTokenMetadata.
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
std::uint8_t constexpr vaultMaximumIOUScale
Maximum scale factor for a Vault.
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
std::size_t constexpr maxOracleSymbolClass
The maximum length of a SymbolClass inside an Oracle.
std::size_t constexpr txMaxSizeBytes
Largest legal byte size of a transaction.
std::uint8_t constexpr vaultStrategyFirstComeFirstServe
Vault withdrawal policies.
std::size_t constexpr maxOracleDataSeries
The maximum size of a data series array inside an Oracle.
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
std::uint8_t constexpr vaultDefaultIOUScale
Default IOU scale factor for a Vault.
std::size_t constexpr maxLastUpdateTimeDelta
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.