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
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "4.6.1",
"version": "4.6.2",
"type": "module",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
@@ -18,7 +18,7 @@
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/networks": "^6.2.1",
"@polkadot/types": "4.6.1",
"@polkadot/types": "4.6.2",
"@polkadot/util": "^6.2.1",
"bn.js": "^4.11.9"
},
+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'
}
},
{