Westend runtime 50 upgrade block (& v30 session keys) (#3382)

* Westend runtime 50 upgrade block (& v30 session keys)

* Revery beefy keys

* Defer 7B keys to 51
This commit is contained in:
Jaco Greeff
2021-04-09 06:39:40 +02:00
committed by GitHub
parent 681a80d456
commit 34ff14547e
4 changed files with 30 additions and 7 deletions
+9 -2
View File
@@ -8,7 +8,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
AccountInfo: 'AccountInfoWithDualRefCount',
Address: 'MultiAddress',
Keys: 'SessionKeys6',
Keys: 'SessionKeys7B',
LookupSource: 'MultiAddress',
ProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy']
@@ -165,7 +165,14 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [2028, undefined],
minmax: [2028, 2029],
types: {
...sharedTypes,
Keys: 'SessionKeys6'
}
},
{
minmax: [2030, undefined],
types: {
...sharedTypes
}
+9 -2
View File
@@ -8,7 +8,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
AccountInfo: 'AccountInfoWithDualRefCount',
Address: 'MultiAddress',
Keys: 'SessionKeys6',
Keys: 'SessionKeys7B',
LookupSource: 'MultiAddress',
ProxyType: {
_enum: {
@@ -69,7 +69,14 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [28, undefined],
minmax: [28, 29],
types: {
...sharedTypes,
Keys: 'SessionKeys6'
}
},
{
minmax: [30, undefined],
types: {
...sharedTypes
}
+10 -2
View File
@@ -8,7 +8,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
AccountInfo: 'AccountInfoWithDualRefCount',
Address: 'MultiAddress',
Keys: 'SessionKeys6',
Keys: 'SessionKeys7B',
LookupSource: 'MultiAddress',
ProxyType: {
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy'
@@ -73,7 +73,15 @@ const versioned: OverrideVersionedType[] = [
}
},
{
minmax: [48, undefined],
// 50 was supposed to have Beefy, didn't
minmax: [48, 50],
types: {
...sharedTypes,
Keys: 'SessionKeys6'
}
},
{
minmax: [51, undefined],
types: {
...sharedTypes
}
+2 -1
View File
@@ -8,7 +8,8 @@ const upgrades: ChainUpgradesRaw = [
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
[1431703, 36], [1433369, 37], [1490972, 41], [2087397, 43], [2316688, 44],
[2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49]
[2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49],
[5124076, 50]
];
export default upgrades;