Expand description
Core types and aliases for the Chain Manager system.
This module primarily defines type aliases, public structs, and
runtime-specialized unsigned payloads used across
pallet_chain_manager.
The Chain Manager relies on external trait adapters such as:
Config::RoleAdapterConfig::ElectionAdapterConfig::Asset(fungible-adapter)Config::PointsAdapter
These abstractions delegate core logic to other pallets/framework layers, while the types in this module provide a unified, runtime-bound view and are used in the pallet’s public APIs.
Raw unsigned payload types are defined in crate::crypto, but it is
recommended to use the aliases here to ensure correct runtime binding
to offchain signing types.
§Example
ⓘ
use pallet_chain_manager::types::ElectionPayloadOf;
let payload = ElectionPayloadOf::<T> { ... };
SubmitTransaction::<T, Call<T>>::submit_unsigned_transaction(
Call::elect { payload }.into()
);Structs§
- Affidavit
Window - Represents the affidavit submission window for the current session.
- Declare
Affidavit 🔒 - Operational context for affidavit declaration and key rotation.
- Election
Window - Represents the election execution window for the current session.
- Init
Affidavit 🔒Key - Operational context for affidavit key initialization.
- Rotate
Affidavit 🔒Key - Operational context for affidavit key rotation.
- TryElection 🔒
- Operational context for election transaction execution.
Enums§
- Force
Genesis Config - Enumerates configurable runtime-stored parameters that may be forcibly overridden at runtime through privileged (root/governance) operations.
Type Aliases§
- Actual
Asset - The concrete fungible balance type of the asset associated with an author.
- Affidavit
Id - The runtime-storable identifier of an affidavit key.
- Affidavit
Payload Of - Runtime-specialized payload type for affidavit declaration.
- AssetOf
- The asset type associated with an author-role.
- Author
Of - The
AccountIdtype representing an author in this runtime. - Author
Time Stamp Of - Timestamp associated with an author role for various operations such as deffered rewards and penalities
- Backer
Of - Type representing an entity or account backing an author, as managed by
FundRoles. - Duration
- Type representing relative session duration.
- Election
Elects - Set of authors successfully elected by the author-role election module.
- Election
Params - Parameters for configuring an election i.e, the input authors and their corresponding election weight.
- Election
Payload Of - Runtime-specialized payload type for author election execution.
- Election
Via - Type representing the election weight of an author.
- Election
Weight - Represents a singular election weight of numerous weights holded by the author.
- Offence
Reporter - Type alias representing the reporting account that detected the offence.
- Offender
- Type alias representing an offending validator in session history.
- Payee
List - Represents a collection of authors and their final rewards for a given reward cycle.
- Payout
For - Represents a collection of authors and their ephemeral points (e.g., block producer points) for a single reward cycle.
- Penalty
For - Collection of authors and their proportional penalties for a given cycle.
- Penalty
Of - Represents a single penalty as a proportion of a total value.
- Penalty
Ratio - Type representing the penalty ratio applied to a author for bad-behaviour.
- Session
Id - Type alias for the Validator ID used by [
pallet_session]. - Session
Index - Represents the index of a block production session.
- Validate
Payload Of - Runtime-specialized payload type for affidavit key validation.