Crate gdev_runtime
source ·Re-exports§
pub use pallet_universal_dividend;
pub use self::parameters::*;
Modules§
- benches 🔒
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§
- Time to execute an empty block. Calculated by multiplying the Average with
1.0
and adding0
. ParityDB
can be enabled with a feature flag, but is still experimental. These weights are available for brave runtime engineers who may want to try this out as default.- Implementation of [
PrivilegeCmp
] that only checks for equal origins. - Time to execute a NO-OP extrinsic, for example
System::remark
. Calculated by multiplying the Average with1.0
and adding0
. - An identifier for a type of cryptographic key.
- Runtime handler for OnNewIdty, calling all implementations of OnNewIdty and implementing logic at the runtime level.
- Runtime handler for OnNewMembership, calling all implementations of OnNewMembership and implementing logic at the runtime level.
- OnNewSession handler for the runtime calling all the implementation of OnNewSession
- Runtime handler for OnRemoveIdty, calling all implementations of OnRemoveIdty and implementing logic at the runtime level.
- Runtime handler for OnRemoveMembership, calling all implementations of OnRemoveMembership and implementing logic at the runtime level. As the weight accounting is not trivial in this handler, the weight is done at the handler level.
- Runtime handler for OnSmithDelete.
- 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.
- Runtime handler for TreasurySpendFunds.
- One coefficient and its position in the
WeightToFee
.
Enums§
- Contains a variant per dispatchable extrinsic that this pallet has.
- 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.
- An aggregation of all
Task
enums across all pallets included in the current runtime. - Contains a variant per dispatchable extrinsic that this pallet has.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- The BABE epoch configuration at genesis.
- This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by
SLOT_DURATION
.SLOT_DURATION
is picked up bypallet_timestamp
which is in turn picked up bypallet_babe
to implementfn slot_duration()
.
Traits§
- Complex storage builder stuff.
- Something which can compute and check proofs of a historical key owner and return full identification data of that key owner.
- A trait that is able to provide randomness.
- A trait for working with macro-generated storage values under the substrate storage API.
- A trait that describes the weight to fee calculation as polynomial.
Functions§
- The version information used to identify this runtime when compiled natively.
Type Aliases§
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- 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.
- Balance of an account.
- Block type as expected by this runtime.
- An index to a block.
- CreditOf 🔒
- Executive: handles dispatch to the various modules.
- A hash of some data used by the chain.
- Block header type
- Index of an identity
- An i’m online identifier using sr25519 as its crypto.
- Index of a transaction in the chain.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- The SignedExtension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.
- A list of coefficients that represent a polynomial.