Name | Lookup | Parameters | |
---|---|---|---|
create | 5800 | - | |
add_worker | 5801 | 2 | |
remove_worker | 5802 | 2 | |
set_cap | 5803 | 2 | |
set_payout_pref | 5804 | 2 | |
add_staker_to_whitelist | 5805 | 2 | |
set_pool_description | 5806 | 2 | |
remove_staker_from_whitelist | 5807 | 2 | |
force_assign_reward | 5808 | 1 | |
claim_owner_rewards | 5809 | 2 | |
claim_staker_rewards | 580a | 2 | |
claim_rewards | 580b | 2 | |
contribute | 580c | 2 | |
withdraw | 580d | 2 | |
start_mining | 580e | 3 | |
stop_mining | 580f | 2 | |
reclaim_pool_worker | 5810 | 2 | |
set_mining_enable | 5811 | 1 | |
reconcile_withdraw_queue | 5812 | 2 | |
restart_mining | 5813 | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolCreated | 5800 | ["AccountId","u64"] | |
PoolCommissionSet | 5801 | ["u64","u32"] | |
PoolCapacitySet | 5802 | ["u64","BalanceOf"] | |
PoolWorkerAdded | 5803 | ["u64","WorkerPublicKey","AccountId"] | |
Contribution | 5804 | ["u64","AccountId","BalanceOf","BalanceOf"] | |
Withdrawal | 5805 | ["u64","AccountId","BalanceOf","BalanceOf"] | |
RewardsWithdrawn | 5806 | ["u64","AccountId","BalanceOf"] | |
OwnerRewardsWithdrawn | 5807 | ["u64","AccountId","BalanceOf"] | |
StakerRewardsWithdrawn | 5808 | ["u64","AccountId","BalanceOf"] | |
PoolSlashed | 5809 | ["u64","BalanceOf"] | |
SlashSettled | 580a | ["u64","AccountId","BalanceOf"] | |
RewardDismissedNotInPool | 580b | ["WorkerPublicKey","BalanceOf"] | |
RewardDismissedNoShare | 580c | ["u64","BalanceOf"] | |
RewardDismissedDust | 580d | ["u64","BalanceOf"] | |
DustRemoved | 580e | ["AccountId","BalanceOf"] | |
PoolWorkerRemoved | 580f | ["u64","WorkerPublicKey"] | |
WithdrawalQueued | 5810 | ["u64","AccountId","BalanceOf"] | |
PoolWhitelistCreated | 5811 | ["u64"] | |
PoolWhitelistDeleted | 5812 | ["u64"] | |
PoolWhitelistStakerAdded | 5813 | ["u64","AccountId"] | |
PoolWhitelistStakerRemoved | 5814 | ["u64","AccountId"] | |
WorkerReclaimed | 5815 | ["u64","WorkerPublicKey","BalanceOf"] | |
RewardReceived | 5816 | ["u64","BalanceOf","BalanceOf"] | |
MiningStarted | 5817 | ["u64","WorkerPublicKey","BalanceOf"] |
Name | Type | |
---|---|---|
StakePools | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"phala_pallets:stakepool:pallet:PoolInfo","keys_id":9,"value_id":548}} | |
PoolStakers | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:U64AccountId"],"value":"phala_pallets:stakepool:pallet:UserStakeInfo","keys_id":552,"value_id":553}} | |
PoolCount | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":9} | |
WorkerAssignments | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":119,"value_id":9}} | |
SubAccountAssignments | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U64","keys_id":0,"value_id":9}} | |
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":9,"value_id":554}} | |
WithdrawalTimestamps | {"origin":"PlainType","plain_type":"Vec<U64>","PlainTypeValue":554} | |
MiningEnabled | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":101} | |
SubAccountPreimages | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Tuple:U64[U8; 32]","keys_id":0,"value_id":555}} | |
PoolContributionWhitelists | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<AccountId>","keys_id":9,"value_id":93}} | |
PoolDescriptions | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U8>","keys_id":9,"value_id":325}} |
Name | Type | Value | |
---|---|---|---|
MinContribution | U128 | 00e40b54020000000000000000000000 | |
GracePeriod | U64 | 803a090000000000 | |
MiningEnabledByDefault | Bool | 00 | |
MaxPoolWorkers | U32 | c8000000 |
Name | Docs |
---|---|
WorkerNotRegistered | The worker is not registered in the registry when adding to the pool |
BenchmarkMissing | The worker doesn't have a valid benchmark when adding to the pool |
WorkerExists | The worker is already added to the pool |
WorkerDoesNotExist | The target worker is not in the pool |
WorkerInAnotherPool | The worker is already added to another pool |
UnauthorizedOperator | The 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` |
UnauthorizedPoolOwner | The caller is not the owner of the pool |
InadequateCapacity | The stake capacity is set too low to cover the existing stake |
StakeExceedsCapacity | The stake added to a pool exceeds its capacity |
PoolDoesNotExist | The specified pool doesn't exist |
_PoolIsBusy | |
InsufficientContribution | The contributed stake is smaller than the minimum threshold |
InsufficientBalance | Trying to contribute more than the available balance |
PoolStakeNotFound | The user doesn't have stake in a pool |
InsufficientFreeStake | Cannot start mining because there's no enough free stake |
InvalidWithdrawalAmount | The withdrawal amount is too small (considered as dust) |
FailedToBindMinerAndWorker | Couldn't bind worker and the pool mining subaccount |
InternalSubsidyPoolCannotWithdraw | Internal error: Cannot withdraw from the subsidy pool. This should never happen. |
PoolBankrupt | The 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 | There's no pending reward to claim |
FeatureNotEnabled | The StakePool is not enabled yet. |
WorkersExceedLimit | Failed to add a worker because the number of the workers exceeds the upper limit. |
CannotRestartWithLessStake | Restarted with a less stake is not allowed in the tokenomic. |
InvalidForceRewardAmount | Invalid amount of balance input when force reward. |
NotInContributeWhitelist | Invalid staker to contribute because origin isn't in Pool's contribution whitelist. |
AlreadyInContributeWhitelist | Can not add the staker to whitelist because the staker is already in whitelist. |
ExceedWhitelistMaxLen | Too many stakers in contribution whitelist that exceed the limit |
NoWhitelistCreated | The pool hasn't have a whitelist created |
ExceedMaxDescriptionLen | Too long for pool description length |