subscan
Runtime Modules / Portfolio
Spec Version:
Events
Name
Lookup
Attributes
PortfolioCreated2200["IdentityId","PortfolioNumber","PortfolioName"]
PortfolioDeleted2201["IdentityId","PortfolioNumber"]
PortfolioRenamed2202["IdentityId","PortfolioNumber","PortfolioName"]
UserPortfolios2203["IdentityId","Vec<(PortfolioNumber, PortfolioName)>"]
PortfolioCustodianChanged2204["IdentityId","PortfolioId","IdentityId"]
FundsMovedBetweenPortfolios2205["IdentityId","PortfolioId","PortfolioId","FundDescription","Option<Memo>"]
PreApprovedPortfolio2206["IdentityId","PortfolioId","Ticker"]
RevokePreApprovedPortfolio2207["IdentityId","PortfolioId","Ticker"]
Storage Functions
Name
Type
NextPortfolioNumber{"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":32,"value_id":58}}
Portfolios{"origin":"Map","n_map_type":{"hashers":["Identity","Twox64Concat"],"key_vec":["[U8; 32]","U64"],"value":"Vec<U8>","keys_id":663,"value_id":233}}
NameToNumber{"origin":"Map","n_map_type":{"hashers":["Identity","Blake2_128Concat"],"key_vec":["[U8; 32]","Vec<U8>"],"value":"U64","keys_id":664,"value_id":58}}
PortfolioAssetCount{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId"],"value":"U64","keys_id":56,"value_id":10}}
PortfolioAssetBalances{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Blake2_128Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId","[U8; 12]"],"value":"U128","keys_id":665,"value_id":6}}
PortfolioLockedAssets{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Blake2_128Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId","[U8; 12]"],"value":"U128","keys_id":665,"value_id":6}}
PortfolioCustodian{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId"],"value":"[U8; 32]","keys_id":56,"value_id":32}}
PortfoliosInCustody{"origin":"Map","n_map_type":{"hashers":["Identity","Twox64Concat"],"key_vec":["[U8; 32]","polymesh_primitives:identity_id:PortfolioId"],"value":"Bool","keys_id":666,"value_id":74}}
PortfolioNFT{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Blake2_128Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId","Tuple:[U8; 12]U64"],"value":"Bool","keys_id":667,"value_id":74}}
PortfolioLockedNFT{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Blake2_128Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId","Tuple:[U8; 12]U64"],"value":"Bool","keys_id":667,"value_id":74}}
PreApprovedPortfolios{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Blake2_128Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId","[U8; 12]"],"value":"Bool","keys_id":665,"value_id":74}}
AllowedCustodians{"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["[U8; 32]","[U8; 32]"],"value":"Bool","keys_id":369,"value_id":74}}
StorageVersion{"origin":"PlainType","plain_type":"U8","PlainTypeValue":669}
Error Types
Name
Docs
PortfolioDoesNotExistThe portfolio doesn't exist.
InsufficientPortfolioBalanceInsufficient balance for a transaction.
DestinationIsSamePortfolioThe source and destination portfolios should be different.
PortfolioNameAlreadyInUseThe portfolio couldn't be renamed because the chosen name is already in use.
SecondaryKeyNotAuthorizedForPortfolioThe secondary key is not authorized to access the portfolio(s).
UnauthorizedCustodianThe porfolio's custody is with someone other than the caller.
InsufficientTokensLockedCan not unlock more tokens than what are locked
PortfolioNotEmptyThe portfolio still has some asset balance left
DifferentIdentityPortfoliosThe portfolios belong to different identities
NoDuplicateAssetsAllowedDuplicate asset among the items.
NFTNotFoundInPortfolioThe NFT does not exist in the portfolio.
NFTAlreadyLockedThe NFT is already locked.
NFTNotLockedThe NFT has never been locked.
InvalidTransferNFTNotOwnedOnly owned NFTs can be moved between portfolios.
InvalidTransferNFTIsLockedLocked NFTs can not be moved between portfolios.
EmptyTransferTrying to move an amount of zero assets.
MissingOwnersPermissionThe caller doesn't have permission to create portfolios on the owner's behalf.