Crate glutton_westend_runtime
source ·Expand description
§Glutton Westend Runtime
The purpose of the Glutton parachain is to do stress testing on the Kusama network. This runtime targets the Westend runtime to allow development separate to the Kusama runtime.
There may be multiple instances of the Glutton parachain deployed and connected to its parent relay chain.
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 (or Westend for development purposes).
§XCM
Since the main goal of Glutton is solely stress testing, the parachain will only be able receive XCM messages from the Relay Chain via DMP. This way the Glutton parachains will be able to listen for upgrades that are coming from the Relay chain.
Modules§
Macros§
- Calls
add_benchmark
with all configs fromdefine_benchmarks
and passes the first two parameters on. - Construct a runtime, with the given name and the given pallets.
- Calls
list_benchmark
with all configs fromdefine_benchmarks
and passes the first two parameters on. - Create new implementations of the
Get
trait.
Structs§
- Weight of executing an empty block. Calculated by multiplying the Average with
1.0
and 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
EnsureOrigin
allowing for differentSuccess
types forL
andR
, with them combined using anEither
type. - Weight of executing a NO-OP extrinsic, for example
System::remark
. Calculated by multiplying the Average with1.0
and adding0
. - Implementor of
WeightToFee
that maps one unit of weight to one unit of fee. - Trivial utility for implementing
Contains
/OrderedMembership
with aVec
. - A pallet identifier. These are per pallet and should be stored in a registry somewhere.
- Provides an implementation of
PalletInfo
to 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
Contains
implementation that contains every value. - The aggregated runtime call type.
- 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.
- An aggregation of all
Task
enums across all pallets included in the current runtime.
Constants§
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
GenesisConfig
from a JSON blob not using any defaults and store it in the storage. For more info refer tosp_genesis_builder::GenesisBuilder::build_state
. - Get the default
GenesisConfig
as a JSON blob ifname
is None. - The version information used to identify this runtime when compiled natively.
Type Aliases§
- The address format for describing accounts.
- All pallets included in the runtime as a nested tuple of types.
- All pallets included in the runtime as a nested tuple of types. 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.
- 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 extension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.
Attribute Macros§
- This attribute can be used to derive a full implementation of a trait based on a local partial impl and an external impl containing defaults that can be overridden in the local impl.