Crate asset_hub_polkadot_runtime
source ·Expand description
Asset Hub Polkadot Runtime
Asset Hub Polkadot is a parachain that provides an interface to create, manage, and use assets. Assets may be fungible or non-fungible.
Renaming
This chain was originally known as “Statemint”. You may see references to Statemint, Statemine, and Westmint throughout the codebase. These are synonymous with “Asset Hub Polkadot, Kusama, and Westend”, respectively.
Assets
- Fungibles: Configuration of
pallet-assets
. - Non-Fungibles (NFTs): Configuration of
pallet-uniques
.
Other Functionality
Native Balances
Asset Hub Polkadot uses its parent DOT token as its native asset.
Governance
As a system parachain, Asset Hub defers its governance (namely, its Root
origin), to its
Relay Chain parent, Polkadot.
Collator Selection
Asset Hub uses pallet-collator-selection
, a simple first-come-first-served registration
system where collators can reserve a small bond to join the block producer set. There is no
slashing.
XCM
Because Asset Hub is fully under the control of the Relay Chain, it is meant to be a
TrustedTeleporter
. It can also serve as a reserve location to other parachains for DOT as well
as other local assets.
Re-exports
pub use parachains_common as common;
Modules
Structs
- Key = 32 bytes, Value = 36 bytes (32+1+1+1+1)
- Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
- Relay Chain
TransactionByteFee
/ 10
Enums
- The type used to represent the kinds of proxying allowed.
- A reason for placing a freeze on funds.
- A reason for placing a hold on funds.
- An identifier for each lock placed on funds.
- A reason for slashing funds.
Constants
Traits
- Complex storage builder stuff.
Functions
- The version information used to identify this runtime when compiled natively.
Type Aliases
- The address format for describing accounts.
- AllPalletsDeprecatedAll pallets included in the runtime as a nested tuple of types.
- AllPalletsReversedWithSystemFirstDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. With the system pallet first.
- All pallets included in the runtime as a nested tuple of types.
- AllPalletsWithSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- AllPalletsWithoutSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. Excludes the System pallet.
- We allow root to execute privileged asset operations.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- We allow root and the
StakingAdmin
to execute privileged collator selection operations. - Executive: handles dispatch to the various modules.
- Assets managed by some foreign location. Note: we do not declare a
ForeignAssetsCall
type, as this type is used in proxy definitions. We assume that a foreign location would not want to set an individual, local account as a proxy for the issuance of their assets. This issuance should be managed by the foreign location’s governance. - GenesisConfigDeprecated
- Migrations to apply on runtime upgrade.
- A Block signed with a Justification
- The SignedExtension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.