Expand description
The Astar Network runtime. This can be compiled with ``#[no_std]`, ready for Wasm.
Modules§
Structs§
- Account
Check - Adjustment
Factor Getter - Simple wrapper for fetching current native transaction fee weight fee multiplier.
- Adjustment
Variable - Aggregation
Duration - Announcement
Deposit Base - Announcement
Deposit Factor - Asset
Account Deposit - Asset
Deposit - Assets
String Limit - Base
Filter - Basic
Deposit - Block
GasLimit - EVM gas limit
- Byte
Deposit - ChainId
- Ethereum-compatible chain_id:
- Code
Hash Lockup Deposit Percent - Collator
Reward Pot - Collator
Selection Account Check - Community
Council Call Filter - Community
Council MaxMembers - Community
Treasury Account Id - Community
Treasury Pallet Id - Council
MaxMembers - Dapps
Staking Pallet Id - Deal
With Fees - Default
Base FeePer Gas - Default
Deposit Limit - Deposit
Base - Deposit
Factor - Deposit
PerByte - Deposit
PerItem - Dummy
Deprecated Randomness - Codes using the randomness functionality cannot be uploaded. Neither can contracts be instantiated from existing codes that use this deprecated functionality.
- Enter
Duration - Existential
Deposit - Extend
Duration - Find
Author Truncated - GasLimit
PovSize Ratio - The amount of gas per PoV size. Value is calculated as:
- Inflation
Cycle Config - Inflation
Parameters - Inflation parameters.
- Inflation
Payout PerBlock - Kick
Threshold - Main
Treasury Account - MaxAdditional
Fields - MaxBase
FeePer Gas - MaxCandidates
- MaxDelegate
Dependencies - MaxInvulnerables
- MaxLocks
- MaxPending
- MaxProposal
Weight - MaxProxies
- MaxRegistrars
- MaxReserves
- MaxSub
Accounts - Maximum
Multiplier - Maximum
Scheduler Weight - MbmService
Weight - Message
Queue Service Weight - Metadata
Deposit Base - Key = 32 bytes, Value = 36 bytes (32+1+1+1+1)
- Metadata
Deposit PerByte - MinBase
FeePer Gas - MinCandidates
- MinVested
Transfer - Minimum
Multiplier - Minimum
Staking Amount - Native
Currency Id - NoPermisionless
Entry - NoPermisionless
Extension - Operational
FeeMultiplier - Pallet
Info - Provides an implementation of
PalletInfoto provide information about the pallet setup in the runtime. - Post
Block AndTxn Hashes - PotId
- Precompiles
Value - Preimage
Base Deposit - Preimage
Byte Deposit - Preimage
Hold Reason - Proposal
Bond - Proxy
Deposit Base - Proxy
Deposit Factor - Relay
Origin - Reserved
DmpWeight - Reserved
Xcmp Weight - Root
Operator Account Id - Runtime
- Runtime
Api - Runtime
ApiImpl - Implements all runtime apis for the client side.
- Runtime
Block Length - Runtime
Block Weights - Runtime
Genesis Config - Runtime
Origin - The runtime origin type representing the origin of a call.
- SS58
Prefix - Safe
Mode Whitelisted Calls - Calls that can bypass the safe-mode pallet.
- Schedule
- Session
Keys - Session
Offset - Session
Period - Slash
Ratio - Step
Limit Ratio - SubAccount
Deposit - Target
Block Fullness - Technical
Committee MaxMembers - Transaction
Length FeeFactor - Treasury
Account Id - Treasury
Pallet Id - TxPause
Whitelisted Calls - Calls that cannot be paused by the tx-pause pallet.
- Unvested
Funds Allowed Withdraw Reasons - Username
Deposit - Version
- Weight
FeeFactor - Weight
PerGas - Weight
ToFee - Handles converting a weight scalar to a fee value, based on the scale and granularity of the node’s balance type.
- Whitelisted
Calls - Filter that only allows whitelisted runtime call to pass through dispatch precompile
- XcmWeight
ToFee - Handles coverting weight consumed by XCM into native currency fee.
Enums§
- Balances
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- Origin
Caller - Proxy
Type - The type used to represent the kinds of proxying allowed.
- Runtime
Call - The aggregated runtime call type.
- Runtime
Error - Runtime
Event - Runtime
Freeze Reason - A reason for placing a freeze on funds.
- Runtime
Hold Reason - A reason for placing a hold on funds.
- Runtime
Lock Id - An identifier for each lock placed on funds.
- Runtime
Slash Reason - A reason for slashing funds.
- Runtime
Task - An aggregation of all
Taskenums across all pallets included in the current runtime. - System
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- Tier
Threshold - Description of tier entry requirement.
Constants§
- ASSET_
PRECOMPILE_ ADDRESS_ PREFIX - The asset precompile address prefix. Addresses that match against this prefix will be routed to Erc20AssetsPrecompileSet
- ASTR
- BLOCK_
PROCESSING_ VELOCITY - How many parachain blocks are processed by the relay chain per parent. Limits the number of blocks authored per slot.
- DAYS
- GAS_
PER_ SECOND - 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.
- HOURS
- MICROASTR
- Constant values used within the runtime.
- MILLIASTR
- MILLISECS_
PER_ BLOCK - Change this to adjust the block time.
- MINUTES
- RELAY_
CHAIN_ SLOT_ DURATION_ MILLIS - Relay chain slot duration, in milliseconds.
- RUNTIME_
API_ VERSIONS - SLOT_
DURATION - STORAGE_
BYTE_ FEE - UNINCLUDED_
SEGMENT_ CAPACITY - Maximum number of blocks simultaneously accepted by the Runtime, not yet included into the relay chain.
- VERSION
- Runtime version.
- WASM_
BINARY - WASM_
BINARY_ BLOATY - WASM_
BINARY_ PATH - WEIGHT_
PER_ GAS - Approximate ratio of the amount of Weight per Gas. u64 works for approximations because Weight is a very small unit compared to gas.
Traits§
- Build
Storage - Complex storage builder stuff.
Functions§
- contracts_
deposit - Charge fee for stored bytes and items as part of
pallet-contracts. - deposit
- Charge fee for stored bytes and items.
- native_
version - Native version.
- wasm_
binary_ unwrap - Wasm binary unwrapped. If built with
BUILD_DUMMY_WASM_BINARY, the function panics.
Type Aliases§
- Account
Id - Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- AllPallets
With System - All pallets included in the runtime as a nested tuple of types.
- AllPallets
Without System - All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- Assets
- Assets
Config - Astar
Asset Location IdConverter - Astar
Precompiles - Aura
- Aura
Config - AuraExt
- Aura
ExtConfig - AuraId
- An Aura authority identifier using S/R 25519 as its crypto.
- Authorship
- Balance
- Balance of an account.
- Balances
- Balances
Config - Block
- Block type as expected by this runtime.
- BlockId
- BlockId type as expected by this runtime.
- Checked
Extrinsic - Extrinsic type that has already been checked.
- Collator
Selection - Collator
Selection Config - Collective
Proxy - Community
Council - Community
Council Config - Community
Council Membership - Community
Council Membership Config - Community
Treasury - Community
Treasury Config - Contracts
- Council
- Council
Config - Council
Membership - Council
Membership Config - Cumulus
Xcm - Dapp
Staking - Dapp
Staking Config - Democracy
- Democracy
Config - Dynamic
EvmBase Fee - EVM
- EVMConfig
- Ethereum
- Ethereum
Config - Executive
- Executive: handles dispatch to the various modules.
- Identity
- Inflation
- Inflation
Config - Message
Queue - Migrations
- All migrations that will run on the next runtime upgrade.
- Multi
Block Migrations - Multisig
- Oracle
- Oracle
Membership - Oracle
Membership Config - Parachain
Info - Parachain
Info Config - Parachain
System - Parachain
System Config - Permanent
- Migrations/checks that do not need to be versioned and can run on every upgrade.
- Polkadot
Xcm - Polkadot
XcmConfig - Precompiles
- Preimage
- Price
Aggregator - Price
Aggregator Config - Proxy
- Safe
Mode - Safe
Mode Config - Scheduler
- Session
- Session
Config - Signature
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- Signed
Block - A Block signed with a Justification
- Signed
Extra - The SignedExtension to the basic transaction logic.
- Signed
Payload - The payload being signed in transactions.
- System
- System
Config - Technical
Committee - Technical
Committee Config - Technical
Committee Membership - Technical
Committee Membership Config - Timestamp
- Transaction
Payment - Transaction
Payment Config - Treasury
- Treasury
Config - TxPause
- TxPause
Config - Unchecked
Extrinsic - Unchecked extrinsic type as expected by this runtime.
- Unreleased
- Unreleased migrations. Add new ones here:
- Utility
- Vesting
- Vesting
Config - XTokens
- XcAsset
Config - Xcmp
Queue