Name | Lookup | Parameters | |
|---|---|---|---|
| create | 5d00 | - | |
| add_worker | 5d01 | 2 | |
| remove_worker | 5d02 | 2 | |
| set_cap | 5d03 | 2 | |
| set_payout_pref | 5d04 | 2 | |
| claim_legacy_rewards | 5d05 | 2 | |
| claim_owner_rewards | 5d07 | 2 | |
| check_and_maybe_force_withdraw | 5d08 | 1 | |
| contribute | 5d09 | 3 | |
| withdraw | 5d0a | 3 | |
| start_computing | 5d0d | 3 | |
| stop_computing | 5d0e | 2 | |
| reclaim_pool_worker | 5d0f | 2 | |
| restart_computing | 5d11 | 3 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PoolCreated | 5d00 | ["AccountId","u64","CollectionId","AccountId"] | |
| PoolCommissionSet | 5d01 | ["u64","u32"] | |
| PoolCapacitySet | 5d02 | ["u64","BalanceOf"] | |
| PoolWorkerAdded | 5d03 | ["u64","WorkerPublicKey","AccountId"] | |
| Contribution | 5d04 | ["u64","AccountId","BalanceOf","BalanceOf","Option<u64>"] | |
| OwnerRewardsWithdrawn | 5d05 | ["u64","AccountId","BalanceOf"] | |
| PoolSlashed | 5d06 | ["u64","BalanceOf"] | |
| SlashSettled | 5d07 | ["u64","AccountId","BalanceOf"] | |
| RewardDismissedNotInPool | 5d08 | ["WorkerPublicKey","BalanceOf"] | |
| RewardDismissedNoShare | 5d09 | ["u64","BalanceOf"] | |
| RewardDismissedDust | 5d0a | ["u64","BalanceOf"] | |
| PoolWorkerRemoved | 5d0b | ["u64","WorkerPublicKey"] | |
| WorkerReclaimed | 5d0c | ["u64","WorkerPublicKey"] | |
| RewardReceived | 5d0d | ["u64","BalanceOf","BalanceOf"] | |
| WorkingStarted | 5d0e | ["u64","WorkerPublicKey","BalanceOf"] | |
| RewardToOwnerDismissedDust | 5d0f | ["u64","BalanceOf"] | |
| RewardToDistributionDismissedDust | 5d10 | ["u64","BalanceOf"] |
Name | Type | |
|---|---|---|
| LegacyRewards | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:AccountIdU64"],"value":"U128","keys_id":658,"value_id":6}} | |
| WorkerAssignments | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":135,"value_id":11}} | |
| SubAccountAssignments | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U64","keys_id":0,"value_id":11}} | |
| SubAccountPreimages | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Tuple:U64[U8; 32]","keys_id":0,"value_id":640}} | |
| StakepoolIterateStartPos | {"origin":"PlainType","plain_type":"option<U64>","PlainTypeValue":138} |
Name | Type | Value | |
|---|---|---|---|
| MinContribution | U128 | 00e40b54020000000000000000000000 | |
| GracePeriod | U64 | 803a090000000000 | |
| 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 |
| WorkerAlreadyStopped | The worker is already in cd_workers |
| 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 |
| NoNftToWithdraw | The caller has no nft to withdraw |
| InsufficientBalance | Trying to contribute more than the available balance |
| PoolStakeNotFound | The user doesn't have stake in a pool |
| InsufficientFreeStake | Cannot start computing because there's no enough free stake |
| InvalidWithdrawalAmount | The withdrawal amount is too small (considered as dust) |
| FailedToBindSessionAndWorker | Couldn't bind worker and the pool computing 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. |
| WithdrawQueueNotEmpty | Withdraw queue is not empty so that we can't restart computing |
| MissingCollectionId | Stakepool's collection_id isn't founded |
| VaultIsLocked | Vault is forced locked for it has some expired withdrawal |
| SessionDoesNotExist | The target miner is not in the `miner` storage |
| WorkerIsNotReady | The target worker is not reclaimed and can not be removed from a pool. |
| LockAccountStakeError | |
| NoLegacyRewardToClaim |