mythos
subscan
Mythos
Runtime Modules / CollatorStaking
Spec Version:
Events
Name
Lookup
Attributes
NewInvulnerables1500["Vec<AccountId>"]
InvulnerableAdded1501["AccountId"]
InvulnerableRemoved1502["AccountId"]
NewDesiredCandidates1503["u32"]
NewMinCandidacyBond1504["BalanceOf"]
CandidateAdded1505["AccountId","BalanceOf"]
CandidateRemoved1506["AccountId"]
InvalidInvulnerableSkipped1507["AccountId"]
StakeAdded1508["AccountId","AccountId","BalanceOf"]
StakeReleased1509["AccountId","BalanceOf"]
ReleaseRequestCreated150a["AccountId","BalanceOf","BlockNumberFor"]
StakeRemoved150b["AccountId","AccountId","BalanceOf"]
StakingRewardReceived150c["AccountId","BalanceOf"]
AutoCompoundPercentageSet150d["AccountId","Percent"]
AutoCompoundDisabled150e["AccountId"]
CollatorRewardPercentageSet150f["Percent"]
ExtraRewardSet1510["BalanceOf"]
ExtraRewardRemoved1511["BalanceOf","Option<AccountId>"]
NewMinStake1512["BalanceOf"]
SessionEnded1513["SessionIndex","BalanceOf"]
ExtraRewardPotFunded1514["AccountId","BalanceOf"]
LockExtended1515["AccountId","BalanceOf"]
CandidacyBondUpdated1516["AccountId","BalanceOf"]
Storage Functions
Name
Type
Invulnerables{"origin":"PlainType","plain_type":"Vec<H160>","PlainTypeValue":471}
Candidates{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"pallet_collator_staking:pallet:CandidateInfo","keys_id":0,"value_id":472}}
CounterForCandidates{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
SessionRemovedCandidates{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"pallet_collator_staking:pallet:CandidateInfo","keys_id":0,"value_id":472}}
LastAuthoredBlock{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["H160"],"value":"U32","keys_id":0,"value_id":4}}
DesiredCandidates{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
MinCandidacyBond{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
MinStake{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
CandidateStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["H160","H160"],"value":"pallet_collator_staking:pallet:CandidateStakeInfo","keys_id":473,"value_id":474}}
UserStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"pallet_collator_staking:pallet:UserStakeInfo","keys_id":0,"value_id":475}}
ReleaseQueues{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"Vec<pallet_collator_staking:pallet:ReleaseRequest>","keys_id":0,"value_id":479}}
CollatorRewardPercentage{"origin":"PlainType","plain_type":"U8","PlainTypeValue":75}
ExtraReward{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
TotalBlocks{"origin":"PlainType","plain_type":"Tuple:U32U32","PlainTypeValue":42}
ProducedBlocks{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"U32","keys_id":0,"value_id":4}}
CurrentSession{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
ClaimableRewards{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
PerSessionRewards{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_collator_staking:pallet:SessionInfo","keys_id":4,"value_id":482}}
CounterForPerSessionRewards{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
AutoCompound{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"U8","keys_id":0,"value_id":75}}
CandidacyBondReleases{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H160"],"value":"pallet_collator_staking:pallet:CandidacyBondRelease","keys_id":0,"value_id":488}}
Constants
Name
Type
Value
PotId[U8; 8]506f745374616b65
ExtraRewardPotId[U8; 8]4578747261506f74
ExtraRewardReceiveroption<H160>016d6f646c70792f74727372790000000000000000
MaxCandidatesU320f000000
MinEligibleCollatorsU3202000000
MaxInvulnerablesU3204000000
KickThresholdU3280700000
MaxStakedCandidatesU3203000000
MaxStakersU32400d0300
BondUnlockDelayU3200000000
StakeUnlockDelayU3200000000
RestakeUnlockDelayU3240380000
MaxRewardSessionsU326d010000
AutoCompoundingThresholdU128000090ac6e3278868700000000000000
Error Types
Name
Docs
TooManyCandidatesThe pallet has too many candidates.
TooFewEligibleCollatorsLeaving would result in too few candidates.
AlreadyCandidateAccount is already a candidate.
NotCandidateAccount is not a candidate.
TooManyInvulnerablesThere are too many Invulnerables.
DuplicatedInvulnerablesAt least one of the invulnerables is duplicated
AlreadyInvulnerableAccount is already an Invulnerable.
NotInvulnerableAccount is not an Invulnerable.
NoAssociatedCollatorIdAccount has no associated validator ID.
CollatorNotRegisteredCollator ID is not yet registered.
InsufficientStakeAmount not sufficient to be staked.
TooManyDesiredCandidatesDesiredCandidates is out of bounds.
TooManyReleaseRequestsToo many unstaking requests. Claim some of them first.
InvalidMinStakeInvalid value for MinStake. It must be lower than or equal to `MinStake`.
InvalidCandidacyBondInvalid value for CandidacyBond. It must be higher than or equal to `MinCandidacyBond`.
TooManyStakedCandidatesNumber of staked candidates is greater than `MaxStakedCandidates`.
InvalidExtraRewardExtra reward cannot be zero.
ExtraRewardAlreadyDisabledExtra rewards are already zero.
InvalidFundingAmountThe amount to fund the extra reward pot must be greater than zero.
TooManyStakersCannot add more stakers to a given candidate.
InsufficientFreeBalanceThe user does not have enough balance to be locked for staking.
InsufficientLockedBalanceThe user does not have enough locked balance to stake.
CannotUnlockCannot unlock such amount.
TooFewCandidatesUser must stake at least on one candidate.
PreviousRewardsNotClaimedRewards from previous sessions have not yet been claimed.
NoStakeOnCandidateUser has not Staked on the given Candidate.
NoPendingClaimNo rewards to claim as previous claim happened on the same session.
NotRemovedCandidateCandidate has not been removed in the current session.