Name | Lookup | Parameters | |
---|---|---|---|
create | 5800 | - | |
add_worker | 5801 | 2 | |
remove_worker | 5802 | 2 | |
set_cap | 5803 | 2 | |
set_payout_pref | 5804 | 2 | |
claim_rewards | 5805 | 2 | |
contribute | 5806 | 2 | |
withdraw | 5807 | 2 | |
start_mining | 5808 | 3 | |
stop_mining | 5809 | 2 | |
reclaim_pool_worker | 580a | 2 | |
set_mining_enable | 580b | 1 | |
reconcile_withdraw_queue | 580c | 2 | |
restart_mining | 580d | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolCreated | 5800 | ["AccountId","u64"] | |
PoolCommissionSet | 5801 | ["u64","u32"] | |
PoolCapacitySet | 5802 | ["u64","BalanceOf"] | |
PoolWorkerAdded | 5803 | ["u64","WorkerPublicKey"] | |
Contribution | 5804 | ["u64","AccountId","BalanceOf"] | |
Withdrawal | 5805 | ["u64","AccountId","BalanceOf"] | |
RewardsWithdrawn | 5806 | ["u64","AccountId","BalanceOf"] | |
PoolSlashed | 5807 | ["u64","BalanceOf"] | |
SlashSettled | 5808 | ["u64","AccountId","BalanceOf"] | |
RewardDismissedNotInPool | 5809 | ["WorkerPublicKey","BalanceOf"] | |
RewardDismissedNoShare | 580a | ["u64","BalanceOf"] | |
RewardDismissedDust | 580b | ["u64","BalanceOf"] | |
DustRemoved | 580c | ["AccountId","BalanceOf"] | |
PoolWorkerRemoved | 580d | ["u64","WorkerPublicKey"] | |
WithdrawalQueued | 580e | ["u64","AccountId","BalanceOf"] |
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":["Tuple:U64AccountId"],"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}} |
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. |