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","BalanceOf"]
Withdrawal5805["u64","AccountId","BalanceOf","BalanceOf"]
RewardsWithdrawn5806["u64","AccountId","BalanceOf"]
OwnerRewardsWithdrawn5807["u64","AccountId","BalanceOf"]
StakerRewardsWithdrawn5808["u64","AccountId","BalanceOf"]
PoolSlashed5809["u64","BalanceOf"]
SlashSettled580a["u64","AccountId","BalanceOf"]
RewardDismissedNotInPool580b["WorkerPublicKey","BalanceOf"]
RewardDismissedNoShare580c["u64","BalanceOf"]
RewardDismissedDust580d["u64","BalanceOf"]
DustRemoved580e["AccountId","BalanceOf"]
PoolWorkerRemoved580f["u64","WorkerPublicKey"]
WithdrawalQueued5810["u64","AccountId","BalanceOf"]
PoolWhitelistCreated5811["u64"]
PoolWhitelistDeleted5812["u64"]
PoolWhitelistStakerAdded5813["u64","AccountId"]
PoolWhitelistStakerRemoved5814["u64","AccountId"]
WorkerReclaimed5815["u64","WorkerPublicKey"]
RewardReceived5816["u64","BalanceOf","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":505}}
PoolStakers{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64","AccountId"],"value":"phala_pallets:stakepool:pallet:UserStakeInfo","keys_id":509,"value_id":510}}
PoolCount{"origin":"PlainType","plain_type":"U64","PlainTypeValue":8}
WorkerAssignments{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":116,"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":511}}
WithdrawalTimestamps{"origin":"PlainType","plain_type":"Vec<U64>","PlainTypeValue":511}
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":512}}
PoolContributionWhitelists{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<AccountId>","keys_id":8,"value_id":90}}
PoolDescriptions{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U8>","keys_id":8,"value_id":298}}
Constants
Name
Type
Value
MinContributionU12800e40b54020000000000000000000000
GracePeriodU64803a090000000000
MiningEnabledByDefaultBool00
MaxPoolWorkersU32c8000000
Error Types
Name
Docs
WorkerNotRegisteredThe worker is not registered in the registry when adding to the pool
BenchmarkMissingThe worker doesn't have a valid benchmark when adding to the pool
WorkerExistsThe worker is already added to the pool
WorkerDoesNotExistThe target worker is not in the pool
WorkerInAnotherPoolThe worker is already added to another pool
UnauthorizedOperatorThe owner of the pool doesn't have the access to the workerThe access to a worker is granted by it's `operator` parameter set by `register_worker`
UnauthorizedPoolOwnerThe caller is not the owner of the pool
InadequateCapacityThe stake capacity is set too low to cover the existing stake
StakeExceedsCapacityThe stake added to a pool exceeds its capacity
PoolDoesNotExistThe specified pool doesn't exist
_PoolIsBusy
InsufficientContributionThe contributed stake is smaller than the minimum threshold
InsufficientBalanceTrying to contribute more than the available balance
PoolStakeNotFoundThe user doesn't have stake in a pool
InsufficientFreeStakeCannot start mining because there's no enough free stake
InvalidWithdrawalAmountThe withdrawal amount is too small (considered as dust)
FailedToBindMinerAndWorkerCouldn't bind worker and the pool mining subaccount
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.
NoRewardToClaimThere's no pending reward to claim
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.
InvalidForceRewardAmountInvalid amount of balance input when force reward.
NotInContributeWhitelistInvalid staker to contribute because origin isn't in Pool's contribution whitelist.
AlreadyInContributeWhitelistCan not add the staker to whitelist because the staker is already in whitelist.
ExceedWhitelistMaxLenToo many stakers in contribution whitelist that exceed the limit
NoWhitelistCreatedThe pool hasn't have a whitelist created
ExceedMaxDescriptionLenToo long for pool description length