Crate glutton_runtime
source ·Expand description
Glutton Runtime
The purpose of the Glutton parachain is to do stress testing on the Kusama network.
There may be multiple instances of the Glutton parachain deployed and connected to Kusama.
These parachains are not holding any real value. Their purpose is to stress test the network.
Governance
Glutton defers its governance (namely, its Root origin), to its Relay
Chain parent, Kusama.
XCM
Since the main goal of Glutton is solely stress testing, the parachain will only be able receive XCM messages from Kusama via DMP. This way the Glutton parachains will be able to listen for upgrades that are coming from the Relay chain.
Modules
Macros
- Construct a runtime, with the given name and the given pallets.
- Create new implementations of the
Gettrait.
Structs
- Time to execute an empty block. Calculated by multiplying the Average with
1.0and adding0. - Const getter for a basic type.
- Const getter for a basic type.
- Const getter for a basic type.
- Const getter for a basic type.
- “OR gate” implementation of
EnsureOriginallowing for differentSuccesstypes forLandR, with them combined using anEithertype. - Time to execute a NO-OP extrinsic, for example
System::remark. Calculated by multiplying the Average with1.0and adding0. - Implementor of
WeightToFeethat maps one unit of weight to one unit of fee. - Trivial utility for implementing
Contains/OrderedMembershipwith aVec. - A pallet identifier. These are per pallet and should be stored in a registry somewhere.
- Provides an implementation of
PalletInfoto provide information about the pallet setup in the runtime. - A fixed point representation of a number in the range [0, 1].
- A fixed point representation of a number in the range [0, 1].
- By default, Substrate uses RocksDB, so this will be the weight used throughout the runtime.
- Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
Enums
- A generalized group of dispatch types.
- A
Containsimplementation that contains every value. - 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
- This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by
SLOT_DURATION.SLOT_DURATIONis picked up bypallet_timestampwhich is in turn picked up bypallet_aurato implementfn slot_duration().
Traits
- Complex storage builder stuff.
- A trait that is able to provide randomness.
- A trait for working with macro-generated storage values under the substrate storage API.
Functions
- Build
GenesisConfigfrom a JSON blob not using any defaults and store it in the storage. For more info refer tosp_genesis_builder::GenesisBuilder::build_config. - Get the default
GenesisConfigas a JSON blob. For more info refer tosp_genesis_builder::GenesisBuilder::create_default_config - 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.
- An Aura authority identifier using S/R 25519 as its crypto.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- An index to a block.
- Executive: handles dispatch to the various modules.
- GenesisConfigDeprecated
- A hash of some data used by the chain.
- Block header type as expected by this runtime.
- Index of a transaction in the chain.
- A Block signed with a Justification
- The SignedExtension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.