subscan
Runtime Modules / PhalaStakePool
Spec Version:
Events
Name
Lookup
Attributes
PoolCreated5800["AccountId","u64"]
PoolCommissionSet5801["u64","u32"]
PoolCapacitySet5802["u64","BalanceOf"]
PoolWorkerAdded5803["u64","WorkerPublicKey"]
Contribution5804["u64","AccountId","BalanceOf"]
Withdrawal5805["u64","AccountId","BalanceOf"]
RewardsWithdrawn5806["u64","AccountId","BalanceOf"]
PoolSlashed5807["u64","BalanceOf"]
SlashSettled5808["u64","AccountId","BalanceOf"]
RewardDismissedNotInPool5809["WorkerPublicKey","BalanceOf"]
RewardDismissedNoShare580a["u64","BalanceOf"]
RewardDismissedDust580b["u64","BalanceOf"]
DustRemoved580c["AccountId","BalanceOf"]
PoolWorkerRemoved580d["u64","WorkerPublicKey"]
WithdrawalQueued580e["u64","AccountId","BalanceOf"]
Storage Functions
Name
Type
StakePools{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"phala_pallets:stakepool:pallet:PoolInfo","keys_id":8,"value_id":467}}
PoolStakers{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64","AccountId"],"value":"phala_pallets:stakepool:pallet:UserStakeInfo","keys_id":472,"value_id":473}}
PoolCount{"origin":"PlainType","plain_type":"U64","PlainTypeValue":8}
WorkerAssignments{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":117,"value_id":8}}
SubAccountAssignments{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U64","keys_id":0,"value_id":8}}
StakeLedger{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
WithdrawalQueuedPools{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U64>","keys_id":8,"value_id":474}}
WithdrawalTimestamps{"origin":"PlainType","plain_type":"Vec<U64>","PlainTypeValue":474}
MiningEnabled{"origin":"PlainType","plain_type":"Bool","PlainTypeValue":98}
SubAccountPreimages{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Tuple:U64[U8; 32]","keys_id":0,"value_id":475}}
Constants
Name
Type
Value
MinContributionU12800e40b54020000000000000000000000
GracePeriodU64803a090000000000
MiningEnabledByDefaultBool00
MaxPoolWorkersU32c8000000
Error Types
Name
Docs
WorkerNotRegistered
BenchmarkMissing
WorkerExists
WorkerDoesNotExist
WorkerInAnotherPool
UnauthorizedOperator
UnauthorizedPoolOwner
InadequateCapacityThe stake capacity is set too low for the existing stake
StakeExceedsCapacity
PoolDoesNotExist
_PoolIsBusy
InsufficientContribution
InsufficientBalance
PoolStakeNotFound
InsufficientFreeStake
InvalidWithdrawalAmount
FailedToBindMinerAndWorker
InternalSubsidyPoolCannotWithdrawInternal error: Cannot withdraw from the subsidy pool. This should never happen.
PoolBankruptThe pool has already got all the stake completely slashed.In this case, no more funds can be contributed to the pool until all the pending slashhas been resolved.
NoRewardToClaim
FeatureNotEnabledThe StakePool is not enabled yet.
WorkersExceedLimitFailed to add a worker because the number of the workers exceeds the upper limit.
CannotRestartWithLessStakeRestarted with a less stake is not allowed in the tokenomic.