Module scrypto::prelude::radix_engine_common::constants
source · Expand description
RE protocol constants
Constants§
- The native package for access controllers.
- The non-fungible badge resource which is used for account ownership, if accounts have been set up with simple account creation, or have been securified.
- The native package for accounts.
- The price for adding a single byte to archive storage, in XRD. 1 MB = 6 USD This is primarily for transaction payload, events and logs.
- Depth limit for various types of blueprint payload
- The consensus manager native component - in charge of validators, consensus and epochs.
- The native package for the consensus manager.
- The default tip percentage to use when building a transaction.
- The non-fungible badge resource which is used for virtual proofs of EdDSA Ed25519 transacton signatures in the transaction processor.
- The execution cost unit limit.
- The execution cost units loaned from system
- The price of execution cost unit, in XRD.
- The faucet native component - use this on testnets for getting XRD and locking fee.
- The name of the faucet blueprint under the
FAUCET_PACKAGE
. - The faucet native component - use this on testnets for getting XRD and locking fee.
- The scrypto package for the faucet
- The finalization cost unit limit.
- The price of finalization cost unit, in XRD.
- The genesis helper scrypto component - used for sorting out genesis.
- The name of the genesis helper blueprint under the
GENESIS_HELPER_PACKAGE
. - The scrypto package for the genesis helper.
- The non-fungible badge resource which is used for virtual proofs which represent the global ancestor of the actor which made the latest global call.
- The non-fungible badge resource which is used for identity ownership, if identities have been set up with simple account creation, or have been securified.
- The native package for identities.
- Depth limit for the key and value of an entry in
KeyValueStore
- 0x4d = M in ASCII for Manifest - (77 in decimal)
- The max depth of an access rule, to protect unbounded native stack usage
- The max number of access rule nodes in an access rule
- The max length of a blueprint identifier
- The max call depth, used by transaction executor.
- The max epoch range Should be ~ 1 month. The below is ~30 days given 5 minute epochs.
- The max length of an event name
- The max event size
- The max length of a feature name
- The max length of a function name
- The max total heap substate size.
- The maximum initial table size
- The maximum invoke payload size.
- The max log size
- The maximum memory size (per call frame): 64 * 64KiB = 4MiB
- The max SBOR size of metadata key
- The max SBOR size of metadata value
- The max number of fields a blueprint can have
- The max number of labels of a table jump, excluding the default
- The maximum number of “live” buffers maintained by Scrypto runtime.
- The max number of events
- The max number of functions
- The max number of function local variables
- The max number of function parameters
- The max number of global variables
- The max number of logs
- The max length of an Origin in metadata
- The max panic message size
- The maximum that a package or component owner is allowed to set their method royalty to. 10 USD
- The max number of roles in a Role Specification
- The max length of a role name
- The maximum substate key read and write size
- The maximum substate read and write size.
- The maximum value of tip percentage
- The max total track substate size.
- The max transaction size
- The max length of a registered type name
- The max length of a URL in metadata
- The native package for the metadata module.
- The minimum value of tip percentage
- The proposer’s share of network fees (execution, finalization and storage)
- The validator set’s share of network fees (execution, finalization and storage)
- The non-fungible badge resource which is used for virtual proofs which represent the package of the immediate caller - ie the actor which made the latest (global or internal) call.
- The non-fungible badge resource which is used for package ownership when creating packages with the simple package creation set-up.
- The native package for package deployment.
- The native package for pools.
- The free credit amount used by preview. 1000000 XRD = $60000, which should be enough to cover all sensible preview requests.
- The native package for resource managers, proofs, buckets, vaults etc.
- The ROLA hash which is signed is created as
hash(ROLA_HASHABLE_PAYLOAD_PREFIX || ..)
- The native package for the role assignment module.
- The native package for the royalty module.
- 0x5c for [5c]rypto - (92 in decimal)
- The non-fungible badge resource which is used for virtual proofs of ECDSA Secp256k1 transacton signatures in the transaction processor.
- The price for adding a single byte to state storage, in XRD. 1 MB = 6 USD
- The non-fungible badge resource which is used for virtual proofs representing the fact that the current transaction is a system transaction.
- The native package for test utils.
- The proposer’s share of tips
- The validator set’s share of tips
- The Transaction hash which is signed is created as:
hash(TRANSACTION_HASHABLE_PAYLOAD_PREFIX || version prefix according to type of transaction payload || ..)
- The native package for the transaction processor.
- The intent hash store component
- Depth limit for the default value of a transient substate
- The USD price, in XRD. 1 XRD = 0.06 USD
- The non-fungible badge resource which is used for validator ownership.
- The number of entries in the engine cache
- XRD is the native token of the Radix ledger. It is a fungible token, measured in attos (
10^-18
).