Module types

Source
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:

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§

AffidavitWindow
Represents the affidavit submission window for the current session.
DeclareAffidavit 🔒
Operational context for affidavit declaration and key rotation.
ElectionWindow
Represents the election execution window for the current session.
InitAffidavitKey 🔒
Operational context for affidavit key initialization.
RotateAffidavitKey 🔒
Operational context for affidavit key rotation.
TryElection 🔒
Operational context for election transaction execution.

Enums§

ForceGenesisConfig
Enumerates configurable runtime-stored parameters that may be forcibly overridden at runtime through privileged (root/governance) operations.

Type Aliases§

ActualAsset
The concrete fungible balance type of the asset associated with an author.
AffidavitId
The runtime-storable identifier of an affidavit key.
AffidavitPayloadOf
Runtime-specialized payload type for affidavit declaration.
AssetOf
The asset type associated with an author-role.
AuthorOf
The AccountId type representing an author in this runtime.
AuthorTimeStampOf
Timestamp associated with an author role for various operations such as deffered rewards and penalities
BackerOf
Type representing an entity or account backing an author, as managed by FundRoles.
Duration
Type representing relative session duration.
ElectionElects
Set of authors successfully elected by the author-role election module.
ElectionParams
Parameters for configuring an election i.e, the input authors and their corresponding election weight.
ElectionPayloadOf
Runtime-specialized payload type for author election execution.
ElectionVia
Type representing the election weight of an author.
ElectionWeight
Represents a singular election weight of numerous weights holded by the author.
OffenceReporter
Type alias representing the reporting account that detected the offence.
Offender
Type alias representing an offending validator in session history.
PayeeList
Represents a collection of authors and their final rewards for a given reward cycle.
PayoutFor
Represents a collection of authors and their ephemeral points (e.g., block producer points) for a single reward cycle.
PenaltyFor
Collection of authors and their proportional penalties for a given cycle.
PenaltyOf
Represents a single penalty as a proportion of a total value.
PenaltyRatio
Type representing the penalty ratio applied to a author for bad-behaviour.
SessionId
Type alias for the Validator ID used by [pallet_session].
SessionIndex
Represents the index of a block production session.
ValidatePayloadOf
Runtime-specialized payload type for affidavit key validation.