Crate moonbeam_runtime

source ·
Expand description

The Moonbeam Runtime.

Primary features of this runtime include:

  • Ethereum compatibility
  • Moonbeam tokenomics

Modules

  • Asset configuration for Moonbase.
  • GLMR, the native token, uses 18 decimals of precision.
  • Governance configurations
  • Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades to even the core datastructures.
  • XCM configuration for Moonbase.

Macros

Structs

Enums

Constants

  • The asset precompile address prefix. Addresses that match against this prefix will be routed to Erc20AssetsPrecompileSet being marked as foreign
  • Current approximation of the gas/s consumption considering EVM execution over compiled WASM (on 4.4Ghz CPU). Given the 500ms Weight, from which 75% only are used for transactions, the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 15_000_000.
  • Maximum weight per block
  • This runtime version. The spec_version is composed of 2x2 digits. The first 2 digits represent major changes that can’t be skipped, such as data migration upgrades. The last 2 digits represent minor changes which can be skipped.
  • Approximate ratio of the amount of Weight per Gas. u64 works for approximations because Weight is a very small unit compared to gas.

Traits

  • Complex storage builder stuff.
  • A trait for querying a single value from a type.
  • Weight functions needed for pallet_parachain_staking.

Functions

  • The version information used to identify this runtime when compiled natively.

Type Aliases