Name | Lookup | Parameters | |
|---|---|---|---|
| create_portfolio | 2200 | 1 | |
| delete_portfolio | 2201 | 1 | |
| move_portfolio_funds | 2202 | 3 | |
| rename_portfolio | 2203 | 2 | |
| quit_portfolio_custody | 2204 | 1 | |
| accept_portfolio_custody | 2205 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PortfolioCreated | 2200 | ["IdentityId","PortfolioNumber","PortfolioName"] | |
| PortfolioDeleted | 2201 | ["IdentityId","PortfolioNumber"] | |
| MovedBetweenPortfolios | 2202 | ["IdentityId","PortfolioId","PortfolioId","Ticker","Balance","Option<Memo>"] | |
| PortfolioRenamed | 2203 | ["IdentityId","PortfolioNumber","PortfolioName"] | |
| UserPortfolios | 2204 | ["IdentityId","Vec<(PortfolioNumber, PortfolioName)>"] | |
| PortfolioCustodianChanged | 2205 | ["IdentityId","PortfolioId","IdentityId"] |
Name | Type | |
|---|---|---|
| NextPortfolioNumber | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["[U8; 32]"],"value":"U64","keys_id":30,"value_id":55}} | |
| Portfolios | {"origin":"Map","n_map_type":{"hashers":["Identity","Twox64Concat"],"key_vec":["[U8; 32]","U64"],"value":"Vec<U8>","keys_id":637,"value_id":227}} | |
| NameToNumber | {"origin":"Map","n_map_type":{"hashers":["Identity","Blake2_128Concat"],"key_vec":["[U8; 32]","Vec<U8>"],"value":"U64","keys_id":638,"value_id":55}} | |
| PortfolioAssetCount | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId"],"value":"U64","keys_id":53,"value_id":8}} | |
| PortfolioAssetBalances | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Blake2_128Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId","[U8; 12]"],"value":"U128","keys_id":639,"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":639,"value_id":6}} | |
| PortfolioCustodian | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["polymesh_primitives:identity_id:PortfolioId"],"value":"[U8; 32]","keys_id":53,"value_id":30}} | |
| PortfoliosInCustody | {"origin":"Map","n_map_type":{"hashers":["Identity","Twox64Concat"],"key_vec":["[U8; 32]","polymesh_primitives:identity_id:PortfolioId"],"value":"Bool","keys_id":640,"value_id":71}} | |
| StorageVersion | {"origin":"PlainType","plain_type":"U8","PlainTypeValue":641} |
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 |