Expand description
Core types and aliases for the Authors system.
This module defines the primary structures and type aliases used by
pallet_authors. These types are publicly exposed and used across
the pallet’s APIs for representing Author-related data.
Trait implementations provided by this crate’s Pallet can use these types
via trait-bound equality constraints to ensure type alignment with this pallet’s
concrete implementations if necessary.
§Example
ⓘ
mod pallet {
use pallet_authors::types::AuthorInfo;
pub trait Config: frame_system::Config {
type RoleAdapter: RoleManager<Meta = AuthorInfo<Self>>;
}
}Structs§
- Author
Info - Represents the on-chain record of an
Authorrole within the runtime.
Enums§
- Author
Status - Represents the lifecycle state of an
Authorrole within the runtime. - Force
Genesis Config - Enumerates configurable runtime-stored parameters that influences probation, rewards, penalties, election constraints, or economic limits may be forcibly overridden at runtime through privileged (root/governance) operations.
- Fortitude
Wrapper - Wrapper type for [
Fortitude] used in extrinsics. - Funder
- Represents the entity responsible for backing or funding an
Authorrole. - Funding
Target - Specifies the destination or mechanism by which funds are allocated within the authors / roles system.
- Precision
Wrapper - Wrapper type for [
Precision] used in extrinsics.
Type Aliases§
- Author
- Represents an on-chain account that can hold an
Authorrole. - Author
Asset - Represents the asset or balance type associated with an
Authorin the context of funding, staking, or collateral. - Author
Digest - Represents a cryptographic digest, a unique identifier for an
Author. - Backer
- Represents the account that provides backing to an
Author, either directly or through an index or pool funding mechanism. - Backing
Election Weight - A single backing contribution used in backing-based election.
- Commission
- Commission Type used by the Pallet for Pool Commissions.
- Elect
ViaBacking - Election input for backing-based selection.
- Elect
ViaInfluence - Election input for influence-based selection.
- Elected
Authors - A list of authors selected by an election round.
- Index
Digest - Represents a digest identifier for an indexed commitment (unmanaged pools)
backing an
Authorrole. - Pool
Digest - Represents a digest identifier for a pool commitment (managed collective commitment)
funding source for an
Authorrole. - Ratio
- Penalty ratio type used by the Author Roles subsystem.
- Shares
- Shares Type used by the Pallet for Index/Pool shares.