Name | Lookup | Parameters | |
---|---|---|---|
create | 5900 | - | |
add_worker | 5901 | 2 | |
remove_worker | 5902 | 2 | |
set_cap | 5903 | 2 | |
set_payout_pref | 5904 | 2 | |
claim_legacy_rewards | 5905 | 2 | |
claim_owner_rewards | 5907 | 2 | |
check_and_maybe_force_withdraw | 5908 | 1 | |
contribute | 5909 | 3 | |
withdraw | 590a | 3 | |
start_computing | 590d | 3 | |
stop_computing | 590e | 2 | |
reclaim_pool_worker | 590f | 2 | |
restart_computing | 5911 | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolCreated | 5900 | ["AccountId","u64","CollectionId","AccountId"] | |
PoolCommissionSet | 5901 | ["u64","u32"] | |
PoolCapacitySet | 5902 | ["u64","BalanceOf"] | |
PoolWorkerAdded | 5903 | ["u64","WorkerPublicKey","AccountId"] | |
Contribution | 5904 | ["u64","AccountId","BalanceOf","BalanceOf","Option<u64>"] | |
OwnerRewardsWithdrawn | 5905 | ["u64","AccountId","BalanceOf"] | |
PoolSlashed | 5906 | ["u64","BalanceOf"] | |
SlashSettled | 5907 | ["u64","AccountId","BalanceOf"] | |
RewardDismissedNotInPool | 5908 | ["WorkerPublicKey","BalanceOf"] | |
RewardDismissedNoShare | 5909 | ["u64","BalanceOf"] | |
RewardDismissedDust | 590a | ["u64","BalanceOf"] | |
PoolWorkerRemoved | 590b | ["u64","WorkerPublicKey"] | |
WorkerReclaimed | 590c | ["u64","WorkerPublicKey"] | |
RewardReceived | 590d | ["u64","BalanceOf","BalanceOf"] | |
WorkingStarted | 590e | ["u64","WorkerPublicKey","BalanceOf"] | |
RewardToOwnerDismissedDust | 590f | ["u64","BalanceOf"] | |
RewardToDistributionDismissedDust | 5910 | ["u64","BalanceOf"] |
Name | Type | |
---|---|---|
LegacyRewards | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId","U64"],"value":"U128","keys_id":631,"value_id":6}} | |
WorkerAssignments | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":137,"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":629}} | |
StakepoolIterateStartPos | {"origin":"PlainType","plain_type":"option<U64>","PlainTypeValue":140} |
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 |