Swap Xcm to defaults instead of V0, Polkadot runtime 9100+ (#4033)
* Swap Xcm to V1 (defaults), Polkadot runtime 9100+ * V1/V2 (latest is V1 at 9100) * Various versions * formatting * V1 <= 9105, V2 >= 9106
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
import { mapXcm } from '@polkadot/types/interfaces/xcm/definitions';
|
||||
|
||||
const sharedTypes = {
|
||||
CompactAssignments: 'CompactAssignmentsWith24',
|
||||
RawSolution: 'RawSolutionWith24',
|
||||
@@ -191,15 +193,25 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [9010, undefined],
|
||||
minmax: [9010, 9099],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
...mapXcm('V0')
|
||||
}
|
||||
},
|
||||
{
|
||||
// jump from 9100 to 9110, however align with Rococo
|
||||
minmax: [9100, 9105],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
...mapXcm('V1')
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
minmax: [9106, undefined],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -74,7 +74,14 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [30, undefined],
|
||||
minmax: [30, 9109],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
minmax: [9110, undefined],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
import { mapXcm } from '@polkadot/types/interfaces/xcm/definitions';
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
@@ -38,15 +40,24 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [229, undefined],
|
||||
minmax: [229, 9099],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
...mapXcm('V0')
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [9100, 9105],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
...mapXcm('V1')
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
minmax: [9106, undefined],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
import { mapXcm } from '@polkadot/types/interfaces/xcm/definitions';
|
||||
|
||||
const sharedTypes = {
|
||||
// 16 validators
|
||||
CompactAssignments: 'CompactAssignmentsWith16',
|
||||
@@ -89,15 +91,24 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [50, undefined],
|
||||
minmax: [50, 9099],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
AssetInstance: 'AssetInstanceV0',
|
||||
MultiAsset: 'MultiAssetV0',
|
||||
MultiLocation: 'MultiLocationV0',
|
||||
Response: 'ResponseV0',
|
||||
Xcm: 'XcmV0',
|
||||
XcmOrder: 'XcmOrderV0'
|
||||
...mapXcm('V0')
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [9100, 9105],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
...mapXcm('V1')
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
minmax: [9106, undefined],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -11,7 +11,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49],
|
||||
[5124076, 50], [5478664, 900], [5482450, 9000], [5584305, 9010], [5784566, 9030],
|
||||
[5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
|
||||
[6379314, 9080], [6979141, 9090]
|
||||
[6379314, 9080], [6979141, 9090], [7568453, 9100]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
Reference in New Issue
Block a user