AssetRegistry¶
Calls¶
register_asset¶
Attributes¶
Name | Type |
---|---|
metadata | AssetMetadata<T::Balance, T::CustomMetadata> |
asset_id | Option<T::AssetId> |
Python¶
call = substrate.compose_call(
'AssetRegistry', 'register_asset', {
'asset_id': (
None,
{
'Native': None,
'Stellar': {
'AlphaNum12': {
'code': '[u8; 12]',
'issuer': '[u8; 32]',
},
'AlphaNum4': {
'code': '[u8; 4]',
'issuer': '[u8; 32]',
},
'StellarNative': None,
},
'Token': 'u64',
'XCM': 'u8',
'ZenlinkLPToken': (
'u8',
'u8',
'u8',
'u8',
),
},
),
'metadata': {
'additional': {
'dia_keys': {
'blockchain': 'Bytes',
'symbol': 'Bytes',
},
'fee_per_second': 'u128',
},
'decimals': 'u32',
'existential_deposit': 'u128',
'location': (
None,
{
None: None,
'V2': {
'interior': {
'Here': None,
'X1': {
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'Bytes',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
'X2': (
'scale_info::109',
'scale_info::109',
),
'X3': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X4': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X5': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X6': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X7': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X8': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
},
'parents': 'u8',
},
'V3': {
'interior': {
'Here': None,
'X1': {
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::69',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
'X2': (
'scale_info::66',
'scale_info::66',
),
'X3': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X4': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X5': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X6': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X7': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X8': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
},
'parents': 'u8',
},
},
),
'name': 'Bytes',
'symbol': 'Bytes',
},
}
)
update_asset¶
Attributes¶
Name | Type |
---|---|
asset_id | T::AssetId |
decimals | Option<u32> |
name | Option<Vec<u8>> |
symbol | Option<Vec<u8>> |
existential_deposit | Option<T::Balance> |
location | Option<Option<VersionedMultiLocation>> |
additional | Option<T::CustomMetadata> |
Python¶
call = substrate.compose_call(
'AssetRegistry', 'update_asset', {
'additional': (
None,
{
'dia_keys': {
'blockchain': 'Bytes',
'symbol': 'Bytes',
},
'fee_per_second': 'u128',
},
),
'asset_id': {
'Native': None,
'Stellar': {
'AlphaNum12': {
'code': '[u8; 12]',
'issuer': '[u8; 32]',
},
'AlphaNum4': {
'code': '[u8; 4]',
'issuer': '[u8; 32]',
},
'StellarNative': None,
},
'Token': 'u64',
'XCM': 'u8',
'ZenlinkLPToken': (
'u8',
'u8',
'u8',
'u8',
),
},
'decimals': (None, 'u32'),
'existential_deposit': (
None,
'u128',
),
'location': (
None,
(
None,
{
None: None,
'V2': {
'interior': {
'Here': None,
'X1': {
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'Bytes',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
'X2': (
'scale_info::109',
'scale_info::109',
),
'X3': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X4': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X5': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X6': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X7': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X8': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
},
'parents': 'u8',
},
'V3': {
'interior': {
'Here': None,
'X1': {
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::69',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
'X2': (
'scale_info::66',
'scale_info::66',
),
'X3': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X4': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X5': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X6': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X7': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X8': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
},
'parents': 'u8',
},
},
),
),
'name': (None, 'Bytes'),
'symbol': (None, 'Bytes'),
}
)
Events¶
RegisteredAsset¶
Attributes¶
Name | Type | Composition |
---|---|---|
asset_id | T::AssetId |
{'Native': None, 'XCM': 'u8', 'Stellar': {'StellarNative': None, 'AlphaNum4': {'code': '[u8; 4]', 'issuer': '[u8; 32]'}, 'AlphaNum12': {'code': '[u8; 12]', 'issuer': '[u8; 32]'}}, 'ZenlinkLPToken': ('u8', 'u8', 'u8', 'u8'), 'Token': 'u64'} |
metadata | AssetMetadata<T::Balance, T::CustomMetadata> |
{'decimals': 'u32', 'name': 'Bytes', 'symbol': 'Bytes', 'existential_deposit': 'u128', 'location': (None, {None: None, 'V2': {'parents': 'u8', 'interior': {'Here': None, 'X1': 'scale_info::109', 'X2': ('scale_info::109', 'scale_info::109'), 'X3': ('scale_info::109', 'scale_info::109', 'scale_info::109'), 'X4': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X5': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X6': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X7': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X8': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109')}}, 'V3': {'parents': 'u8', 'interior': {'Here': None, 'X1': 'scale_info::66', 'X2': ('scale_info::66', 'scale_info::66'), 'X3': ('scale_info::66', 'scale_info::66', 'scale_info::66'), 'X4': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X5': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X6': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X7': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X8': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66')}}}), 'additional': {'dia_keys': {'blockchain': 'Bytes', 'symbol': 'Bytes'}, 'fee_per_second': 'u128'}} |
UpdatedAsset¶
Attributes¶
Name | Type | Composition |
---|---|---|
asset_id | T::AssetId |
{'Native': None, 'XCM': 'u8', 'Stellar': {'StellarNative': None, 'AlphaNum4': {'code': '[u8; 4]', 'issuer': '[u8; 32]'}, 'AlphaNum12': {'code': '[u8; 12]', 'issuer': '[u8; 32]'}}, 'ZenlinkLPToken': ('u8', 'u8', 'u8', 'u8'), 'Token': 'u64'} |
metadata | AssetMetadata<T::Balance, T::CustomMetadata> |
{'decimals': 'u32', 'name': 'Bytes', 'symbol': 'Bytes', 'existential_deposit': 'u128', 'location': (None, {None: None, 'V2': {'parents': 'u8', 'interior': {'Here': None, 'X1': 'scale_info::109', 'X2': ('scale_info::109', 'scale_info::109'), 'X3': ('scale_info::109', 'scale_info::109', 'scale_info::109'), 'X4': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X5': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X6': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X7': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109'), 'X8': ('scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109', 'scale_info::109')}}, 'V3': {'parents': 'u8', 'interior': {'Here': None, 'X1': 'scale_info::66', 'X2': ('scale_info::66', 'scale_info::66'), 'X3': ('scale_info::66', 'scale_info::66', 'scale_info::66'), 'X4': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X5': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X6': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X7': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66'), 'X8': ('scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66', 'scale_info::66')}}}), 'additional': {'dia_keys': {'blockchain': 'Bytes', 'symbol': 'Bytes'}, 'fee_per_second': 'u128'}} |
Storage functions¶
LastAssetId¶
The last processed asset id - used when assigning a sequential id.
Python¶
result = substrate.query(
'AssetRegistry', 'LastAssetId', []
)
Return value¶
{
'Native': None,
'Stellar': {
'AlphaNum12': {'code': '[u8; 12]', 'issuer': '[u8; 32]'},
'AlphaNum4': {'code': '[u8; 4]', 'issuer': '[u8; 32]'},
'StellarNative': None,
},
'Token': 'u64',
'XCM': 'u8',
'ZenlinkLPToken': ('u8', 'u8', 'u8', 'u8'),
}
LocationToAssetId¶
Maps a multilocation to an asset id - useful when processing xcm messages.
Python¶
result = substrate.query(
'AssetRegistry', 'LocationToAssetId', [
{
'interior': {
'Here': None,
'X1': {
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
{
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
{
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
{
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': {
'denom': 'u32',
'nom': 'u32',
},
'Fraction': {
'denom': 'u32',
'nom': 'u32',
},
'Members': {
'count': 'u32',
},
'MoreThanProportion': {
'denom': 'u32',
'nom': 'u32',
},
'Voice': None,
},
},
},
'X2': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
'X3': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
'X4': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
'X5': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
'X6': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
'X7': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
'X8': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::69',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::69',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::69',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
),
},
'parents': 'u8',
},
]
)
Return value¶
{
'Native': None,
'Stellar': {
'AlphaNum12': {'code': '[u8; 12]', 'issuer': '[u8; 32]'},
'AlphaNum4': {'code': '[u8; 4]', 'issuer': '[u8; 32]'},
'StellarNative': None,
},
'Token': 'u64',
'XCM': 'u8',
'ZenlinkLPToken': ('u8', 'u8', 'u8', 'u8'),
}
Metadata¶
The metadata of an asset, indexed by asset id.
Python¶
result = substrate.query(
'AssetRegistry', 'Metadata', [
{
'Native': None,
'Stellar': {
'AlphaNum12': {
'code': '[u8; 12]',
'issuer': '[u8; 32]',
},
'AlphaNum4': {
'code': '[u8; 4]',
'issuer': '[u8; 32]',
},
'StellarNative': None,
},
'Token': 'u64',
'XCM': 'u8',
'ZenlinkLPToken': (
'u8',
'u8',
'u8',
'u8',
),
},
]
)
Return value¶
{
'additional': {'dia_keys': {'blockchain': 'Bytes', 'symbol': 'Bytes'}, 'fee_per_second': 'u128'},
'decimals': 'u32',
'existential_deposit': 'u128',
'location': (
None,
{
None: None,
'V2': {
'interior': {
'Here': None,
'X1': 'scale_info::109',
'X2': ('scale_info::109', 'scale_info::109'),
'X3': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X4': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X5': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X6': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X7': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
'X8': (
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
'scale_info::109',
),
},
'parents': 'u8',
},
'V3': {
'interior': {
'Here': None,
'X1': 'scale_info::66',
'X2': ('scale_info::66', 'scale_info::66'),
'X3': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X4': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X5': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X6': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X7': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
'X8': (
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
'scale_info::66',
),
},
'parents': 'u8',
},
},
),
'name': 'Bytes',
'symbol': 'Bytes',
}
Errors¶
AssetNotFound¶
Asset was not found.
BadVersion¶
The version of the VersionedMultiLocation
value used is not able
to be interpreted.
ConflictingAssetId¶
Another asset was already register with this asset id.
ConflictingLocation¶
Another asset was already register with this location.
InvalidAssetId¶
The asset id is invalid.