Correct Kusama/Polkadot runtime 30 session key definitions (#3409)

* Correct Kusama/Polkadot runtime 30 session key definitions

* Remove duplicates
This commit is contained in:
Jaco
2021-04-19 12:38:48 +02:00
committed by GitHub
parent 282b39d27a
commit 5eb2a95ef2
14 changed files with 82 additions and 81 deletions
+3 -7
View File
@@ -6,14 +6,10 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
AccountInfo: 'AccountInfoWithDualRefCount',
Address: 'MultiAddress',
Keys: 'SessionKeys7B',
LookupSource: 'MultiAddress',
Keys: 'SessionKeys6',
ProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy']
},
ValidatorPrefs: 'ValidatorPrefsWithBlocked'
}
};
const addrIndicesTypes = {
@@ -168,7 +164,7 @@ const versioned: OverrideVersionedType[] = [
minmax: [2028, 2029],
types: {
...sharedTypes,
Keys: 'SessionKeys6'
AccountInfo: 'AccountInfoWithDualRefCount'
}
},
{
+3 -7
View File
@@ -6,10 +6,7 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
AccountInfo: 'AccountInfoWithDualRefCount',
Address: 'MultiAddress',
Keys: 'SessionKeys7B',
LookupSource: 'MultiAddress',
Keys: 'SessionKeys6',
ProxyType: {
_enum: {
Any: 0,
@@ -20,8 +17,7 @@ const sharedTypes = {
IdentityJudgement: 5,
CancelProxy: 6
}
},
ValidatorPrefs: 'ValidatorPrefsWithBlocked'
}
};
const addrAccountIdTypes = {
@@ -72,7 +68,7 @@ const versioned: OverrideVersionedType[] = [
minmax: [28, 29],
types: {
...sharedTypes,
Keys: 'SessionKeys6'
AccountInfo: 'AccountInfoWithDualRefCount'
}
},
{