Name | Lookup | Parameters | |
|---|---|---|---|
| add_staker_to_whitelist | 6000 | 2 | |
| set_pool_description | 6001 | 2 | |
| remove_staker_from_whitelist | 6004 | 2 | |
| claim_reimbursement | 6005 | 2 | |
| set_reimbursements | 6006 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| NftCreated | 6000 | ["u64","CollectionId","NftId","AccountId","BalanceOf"] | |
| WithdrawalQueued | 6001 | ["u64","AccountId","BalanceOf","NftId","Option<u64>","NftId"] | |
| Withdrawal | 6002 | ["u64","AccountId","BalanceOf","BalanceOf","BalanceOf"] | |
| PoolWhitelistCreated | 6003 | ["u64"] | |
| PoolWhitelistDeleted | 6004 | ["u64"] | |
| PoolWhitelistStakerAdded | 6005 | ["u64","AccountId"] | |
| PoolWhitelistStakerRemoved | 6006 | ["u64","AccountId"] |
Name | Type | |
|---|---|---|
| NextNftId | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":4}} | |
| LockIterateStartPos | {"origin":"PlainType","plain_type":"option<Tuple:U32U32>","PlainTypeValue":236} | |
| PoolCount | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
| PoolCollections | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U64","keys_id":4,"value_id":11}} | |
| CollectionIndex | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| Pools | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"phala_pallets:compute:pool_proxy:PoolProxy","keys_id":11,"value_id":667}} | |
| NftLocks | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:U32U32"],"value":"NULL","keys_id":40,"value_id":32}} | |
| PoolContributionWhitelists | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<AccountId>","keys_id":11,"value_id":109}} | |
| PoolDescriptions | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U8>","keys_id":11,"value_id":365}} | |
| Reimbursements | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Tuple:AccountIdU64"],"value":"U128","keys_id":658,"value_id":6}} |
Name | Docs |
|---|---|
| MissCollectionId | basepool's collection_id isn't founded |
| 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. |
| InvalidShareToWithdraw | CheckSub less than zero, indicate share amount is invalid |
| InvalidWithdrawalAmount | The withdrawal amount is too small (considered as dust) |
| RmrkError | RMRK errors |
| PoolDoesNotExist | The Specified pid does not match to any pool |
| PoolTypeNotMatch | Tried to access a pool type that doesn't match the actual pool type in the storage.E.g. Try to access a vault but it's actually a stake pool. |
| NftIdNotFound | NftId does not match any nft |
| InvalidSharePrice | Occurs when pool's shares is zero |
| AttrLocked | Tried to get a `NftGuard` when the nft is locked. It indicates an internal error occured. |
| UnauthorizedPoolOwner | The caller is not the owner of the pool |
| AlreadyInContributeWhitelist | Can not add the staker to whitelist because the staker is already in whitelist. |
| NotInContributeWhitelist | Invalid staker to contribute because origin isn't in Pool's contribution 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 |
| NotMigrationRoot | Migration root not authorized |
| BurnNftFailed | Burn nft failed |
| DeprecatedTransferSharesAmountInvalid | |
| NoReimbursementToClaim | No reimbursement to claim |
| InternalSubsidyPoolCannotWithdraw |