subscan
Runtime Modules / PhalaBasePool
Spec Version:
Events
Name
Lookup
Attributes
NftCreated6000["u64","CollectionId","NftId","AccountId","BalanceOf"]
WithdrawalQueued6001["u64","AccountId","BalanceOf","NftId","Option<u64>"]
Withdrawal6002["u64","AccountId","BalanceOf","BalanceOf"]
PoolWhitelistCreated6003["u64"]
PoolWhitelistDeleted6004["u64"]
PoolWhitelistStakerAdded6005["u64","AccountId"]
PoolWhitelistStakerRemoved6006["u64","AccountId"]
Storage Functions
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":204}
PoolCount{"origin":"PlainType","plain_type":"U64","PlainTypeValue":10}
PoolCollections{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U64","keys_id":4,"value_id":10}}
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":10,"value_id":597}}
NftLocks{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32","U32"],"value":"NULL","keys_id":39,"value_id":31}}
PoolContributionWhitelists{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<AccountId>","keys_id":10,"value_id":92}}
PoolDescriptions{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U8>","keys_id":10,"value_id":342}}
Error Types
Name
Docs
MissCollectionIdbasepool's collection_id isn't founded
PoolBankruptThe 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.
InvalidShareToWithdrawCheckSub less than zero, indicate share amount is invalid
InvalidWithdrawalAmountThe withdrawal amount is too small (considered as dust)
RmrkErrorRMRK errors
PoolDoesNotExistThe Specified pid does not match to any pool
PoolTypeNotMatchTried 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.
NftIdNotFoundNftId does not match any nft
InvalidSharePriceOccurs when pool's shares is zero
AttrLockedTried to get a `NftGuard` when the nft is locked. It indicates an internal error occured.
UnauthorizedPoolOwnerThe caller is not the owner of the pool
AlreadyInContributeWhitelistCan not add the staker to whitelist because the staker is already in whitelist.
NotInContributeWhitelistInvalid staker to contribute because origin isn't in Pool's contribution whitelist.
ExceedWhitelistMaxLenToo many stakers in contribution whitelist that exceed the limit
NoWhitelistCreatedThe pool hasn't have a whitelist created
ExceedMaxDescriptionLenToo long for pool description length
NotMigrationRootMigration root not authorized
BurnNftFailedBurn nft failed
TransferSharesAmountInvalid