Crate astar_runtime

Source
Expand description

The Astar Network runtime. This can be compiled with ``#[no_std]`, ready for Wasm.

Modules§

api
genesis_config
xcm_config

Structs§

AccountCheck
AdjustmentFactorGetter
Simple wrapper for fetching current native transaction fee weight fee multiplier.
AdjustmentVariable
AggregationDuration
AnnouncementDepositBase
AnnouncementDepositFactor
AssetAccountDeposit
AssetDeposit
AssetsStringLimit
BaseFilter
BasicDeposit
BlockGasLimit
EVM gas limit
ByteDeposit
ChainId
Ethereum-compatible chain_id:
CodeHashLockupDepositPercent
CollatorRewardPot
CollatorSelectionAccountCheck
CommunityCouncilCallFilter
CommunityCouncilMaxMembers
CommunityTreasuryAccountId
CommunityTreasuryPalletId
CouncilMaxMembers
DappsStakingPalletId
DealWithFees
DefaultBaseFeePerGas
DefaultDepositLimit
DepositBase
DepositFactor
DepositPerByte
DepositPerItem
DummyDeprecatedRandomness
Codes using the randomness functionality cannot be uploaded. Neither can contracts be instantiated from existing codes that use this deprecated functionality.
EnterDuration
ExistentialDeposit
ExtendDuration
FindAuthorTruncated
GasLimitPovSizeRatio
The amount of gas per PoV size. Value is calculated as:
InflationCycleConfig
InflationParameters
Inflation parameters.
InflationPayoutPerBlock
KickThreshold
MainTreasuryAccount
MaxAdditionalFields
MaxBaseFeePerGas
MaxCandidates
MaxDelegateDependencies
MaxInvulnerables
MaxLocks
MaxPending
MaxProposalWeight
MaxProxies
MaxRegistrars
MaxReserves
MaxSubAccounts
MaximumMultiplier
MaximumSchedulerWeight
MbmServiceWeight
MessageQueueServiceWeight
MetadataDepositBase
Key = 32 bytes, Value = 36 bytes (32+1+1+1+1)
MetadataDepositPerByte
MinBaseFeePerGas
MinCandidates
MinVestedTransfer
MinimumMultiplier
MinimumStakingAmount
NativeCurrencyId
NoPermisionlessEntry
NoPermisionlessExtension
OperationalFeeMultiplier
PalletInfo
Provides an implementation of PalletInfo to provide information about the pallet setup in the runtime.
PostBlockAndTxnHashes
PotId
PrecompilesValue
PreimageBaseDeposit
PreimageByteDeposit
PreimageHoldReason
ProposalBond
ProxyDepositBase
ProxyDepositFactor
RelayOrigin
ReservedDmpWeight
ReservedXcmpWeight
RootOperatorAccountId
Runtime
RuntimeApi
RuntimeApiImpl
Implements all runtime apis for the client side.
RuntimeBlockLength
RuntimeBlockWeights
RuntimeGenesisConfig
RuntimeOrigin
The runtime origin type representing the origin of a call.
SS58Prefix
SafeModeWhitelistedCalls
Calls that can bypass the safe-mode pallet.
Schedule
SessionKeys
SessionOffset
SessionPeriod
SlashRatio
StepLimitRatio
SubAccountDeposit
TargetBlockFullness
TechnicalCommitteeMaxMembers
TransactionLengthFeeFactor
TreasuryAccountId
TreasuryPalletId
TxPauseWhitelistedCalls
Calls that cannot be paused by the tx-pause pallet.
UnvestedFundsAllowedWithdrawReasons
UsernameDeposit
Version
WeightFeeFactor
WeightPerGas
WeightToFee
Handles converting a weight scalar to a fee value, based on the scale and granularity of the node’s balance type.
WhitelistedCalls
Filter that only allows whitelisted runtime call to pass through dispatch precompile
XcmWeightToFee
Handles coverting weight consumed by XCM into native currency fee.

Enums§

BalancesCall
Contains a variant per dispatchable extrinsic that this pallet has.
OriginCaller
ProxyType
The type used to represent the kinds of proxying allowed.
RuntimeCall
The aggregated runtime call type.
RuntimeError
RuntimeEvent
RuntimeFreezeReason
A reason for placing a freeze on funds.
RuntimeHoldReason
A reason for placing a hold on funds.
RuntimeLockId
An identifier for each lock placed on funds.
RuntimeSlashReason
A reason for slashing funds.
RuntimeTask
An aggregation of all Task enums across all pallets included in the current runtime.
SystemCall
Contains a variant per dispatchable extrinsic that this pallet has.
TierThreshold
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§

BuildStorage
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§

AccountId
Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
AllPalletsWithSystem
All pallets included in the runtime as a nested tuple of types.
AllPalletsWithoutSystem
All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
Assets
AssetsConfig
AstarAssetLocationIdConverter
AstarPrecompiles
Aura
AuraConfig
AuraExt
AuraExtConfig
AuraId
An Aura authority identifier using S/R 25519 as its crypto.
Authorship
Balance
Balance of an account.
Balances
BalancesConfig
Block
Block type as expected by this runtime.
BlockId
BlockId type as expected by this runtime.
CheckedExtrinsic
Extrinsic type that has already been checked.
CollatorSelection
CollatorSelectionConfig
CollectiveProxy
CommunityCouncil
CommunityCouncilConfig
CommunityCouncilMembership
CommunityCouncilMembershipConfig
CommunityTreasury
CommunityTreasuryConfig
Contracts
Council
CouncilConfig
CouncilMembership
CouncilMembershipConfig
CumulusXcm
DappStaking
DappStakingConfig
Democracy
DemocracyConfig
DynamicEvmBaseFee
EVM
EVMConfig
Ethereum
EthereumConfig
Executive
Executive: handles dispatch to the various modules.
Identity
Inflation
InflationConfig
MessageQueue
Migrations
All migrations that will run on the next runtime upgrade.
MultiBlockMigrations
Multisig
Oracle
OracleMembership
OracleMembershipConfig
ParachainInfo
ParachainInfoConfig
ParachainSystem
ParachainSystemConfig
Permanent
Migrations/checks that do not need to be versioned and can run on every upgrade.
PolkadotXcm
PolkadotXcmConfig
Precompiles
Preimage
PriceAggregator
PriceAggregatorConfig
Proxy
SafeMode
SafeModeConfig
Scheduler
Session
SessionConfig
Signature
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
SignedBlock
A Block signed with a Justification
SignedExtra
The SignedExtension to the basic transaction logic.
SignedPayload
The payload being signed in transactions.
System
SystemConfig
TechnicalCommittee
TechnicalCommitteeConfig
TechnicalCommitteeMembership
TechnicalCommitteeMembershipConfig
Timestamp
TransactionPayment
TransactionPaymentConfig
Treasury
TreasuryConfig
TxPause
TxPauseConfig
UncheckedExtrinsic
Unchecked extrinsic type as expected by this runtime.
Unreleased
Unreleased migrations. Add new ones here:
Utility
Vesting
VestingConfig
XTokens
XcAssetConfig
XcmpQueue