subscan
Runtime Modules / Portfolio
Spec Version:
Storage Functions
Name
Type
NextPortfolioNumber{"origin":"MapType","map_type":{"key":"IdentityId","hasher":"Identity","value":"PortfolioNumber","isLinked":false}}
Portfolios{"origin":"DoubleMapType","double_map_type":{"key":"IdentityId","key2":"PortfolioNumber","hasher":"Identity","key2Hasher":"Twox64Concat","value":"PortfolioName","isLinked":false}}
NameToNumber{"origin":"DoubleMapType","double_map_type":{"key":"IdentityId","key2":"PortfolioName","hasher":"Identity","key2Hasher":"Blake2_128Concat","value":"PortfolioNumber","isLinked":false}}
PortfolioAssetCount{"origin":"MapType","map_type":{"key":"PortfolioId","hasher":"Twox64Concat","value":"u64","isLinked":false}}
PortfolioAssetBalances{"origin":"DoubleMapType","double_map_type":{"key":"PortfolioId","key2":"Ticker","hasher":"Twox64Concat","key2Hasher":"Blake2_128Concat","value":"Balance","isLinked":false}}
PortfolioLockedAssets{"origin":"DoubleMapType","double_map_type":{"key":"PortfolioId","key2":"Ticker","hasher":"Twox64Concat","key2Hasher":"Blake2_128Concat","value":"Balance","isLinked":false}}
PortfolioCustodian{"origin":"MapType","map_type":{"key":"PortfolioId","hasher":"Twox64Concat","value":"IdentityId","isLinked":false}}
PortfoliosInCustody{"origin":"DoubleMapType","double_map_type":{"key":"IdentityId","key2":"PortfolioId","hasher":"Identity","key2Hasher":"Twox64Concat","value":"bool","isLinked":false}}
StorageVersion{"origin":"PlainType","plain_type":"Version"}
Error Types
Name
Docs
PortfolioDoesNotExist The portfolio doesn't exist.
InsufficientPortfolioBalance Insufficient balance for a transaction.
DestinationIsSamePortfolio The source and destination portfolios should be different.
PortfolioNameAlreadyInUse The portfolio couldn't be renamed because the chosen name is already in use.
SecondaryKeyNotAuthorizedForPortfolio The secondary key is not authorized to access the portfolio(s).
UnauthorizedCustodian The porfolio's custody is with someone other than the caller.
InsufficientTokensLocked Can not unlock more tokens than what are locked
PortfolioNotEmpty The portfolio still has some asset balance left
DifferentIdentityPortfolios The portfolios belong to different identities