Version Junction and MultiLocation Types (#3932)
* version Junction and MultiLocation types * single quotes
This commit is contained in:
@@ -84,43 +84,18 @@ const location = {
|
||||
Junctions: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'Junction',
|
||||
X2: '(Junction, Junction)',
|
||||
X3: '(Junction, Junction, Junction)',
|
||||
X4: '(Junction, Junction, Junction, Junction)',
|
||||
X5: '(Junction, Junction, Junction, Junction, Junction)',
|
||||
X6: '(Junction, Junction, Junction, Junction, Junction, Junction)',
|
||||
X7: '(Junction, Junction, Junction, Junction, Junction, Junction, Junction)',
|
||||
X8: '(Junction, Junction, Junction, Junction, Junction, Junction, Junction, Junction)'
|
||||
X1: 'JunctionV1',
|
||||
X2: '(JunctionV1, JunctionV1)',
|
||||
X3: '(JunctionV1, JunctionV1, JunctionV1)',
|
||||
X4: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X5: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X6: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X7: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)',
|
||||
X8: '(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)'
|
||||
}
|
||||
},
|
||||
Junction: {
|
||||
_enum: {
|
||||
Parent: 'Null',
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkId',
|
||||
id: 'AccountId'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkId',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkId',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Vec<u8>',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyId',
|
||||
part: 'BodyPart'
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiLocation: 'Junctions',
|
||||
Junction: 'JunctionV1',
|
||||
MultiLocation: 'MultiLocationV1',
|
||||
NetworkId: {
|
||||
_enum: {
|
||||
Any: 'Null',
|
||||
|
||||
@@ -22,6 +22,32 @@ export const v0: DefinitionsTypes = {
|
||||
Blob: 'Vec<u8>'
|
||||
}
|
||||
},
|
||||
JunctionV0: {
|
||||
_enum: {
|
||||
Parent: 'Null',
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkId',
|
||||
id: 'AccountId'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkId',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkId',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Vec<u8>',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyId',
|
||||
part: 'BodyPart'
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiAssetV0: {
|
||||
_enum: {
|
||||
None: 'Null',
|
||||
@@ -50,7 +76,19 @@ export const v0: DefinitionsTypes = {
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiLocationV0: 'MultiLocation',
|
||||
MultiLocationV0: {
|
||||
_enum: {
|
||||
Here: 'Null',
|
||||
X1: 'JunctionV0',
|
||||
X2: '(JunctionV0, JunctionV0)',
|
||||
X3: '(JunctionV0, JunctionV0, JunctionV0)',
|
||||
X4: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X5: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X6: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X7: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)',
|
||||
X8: '(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)'
|
||||
}
|
||||
},
|
||||
OriginKindV0: {
|
||||
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
|
||||
},
|
||||
|
||||
@@ -18,6 +18,31 @@ export const v1: DefinitionsTypes = {
|
||||
Blob: 'Bytes'
|
||||
}
|
||||
},
|
||||
JunctionV1: {
|
||||
_enum: {
|
||||
Parachain: 'Compact<u32>',
|
||||
AccountId32: {
|
||||
network: 'NetworkId',
|
||||
id: 'AccountId'
|
||||
},
|
||||
AccountIndex64: {
|
||||
network: 'NetworkId',
|
||||
index: 'Compact<u64>'
|
||||
},
|
||||
AccountKey20: {
|
||||
network: 'NetworkId',
|
||||
key: '[u8; 20]'
|
||||
},
|
||||
PalletInstance: 'u8',
|
||||
GeneralIndex: 'Compact<u128>',
|
||||
GeneralKey: 'Vec<u8>',
|
||||
OnlyChild: 'Null',
|
||||
Plurality: {
|
||||
id: 'BodyId',
|
||||
part: 'BodyPart'
|
||||
}
|
||||
}
|
||||
},
|
||||
MultiAssetsV1: 'Vec<MultiAssetV1>',
|
||||
MultiAssetV1: {
|
||||
id: 'XcmAssetId',
|
||||
|
||||
Reference in New Issue
Block a user