Westend has 16 nominator slots (#3544)

* Westend has 16 nominator slots

* CHANGELOG
This commit is contained in:
Jaco
2021-05-18 20:53:06 +02:00
committed by GitHub
parent 4e81bbc43c
commit fea9ae8f97
2 changed files with 7 additions and 12 deletions
+1
View File
@@ -5,6 +5,7 @@
Changes:
- Return additional error information from internal u8a decoding failures
- Adjust Westend types for 16 nominators-only
## 4.10.1 May 17, 2021
+6 -12
View File
@@ -6,6 +6,10 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
// 16 validators
CompactAssignments: 'CompactAssignmentsWith16',
RawSolution: 'RawSolutionWith16',
// general
Keys: 'SessionKeys6',
ProxyType: {
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
@@ -73,21 +77,11 @@ const versioned: OverrideVersionedType[] = [
minmax: [48, 49],
types: {
...sharedTypes,
AccountInfo: 'AccountInfoWithDualRefCount',
CompactAssignments: 'CompactAssignmentsWith16',
RawSolution: 'RawSolutionWith16'
AccountInfo: 'AccountInfoWithDualRefCount'
}
},
{
minmax: [50, 9000],
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsWith16',
RawSolution: 'RawSolutionWith16'
}
},
{
minmax: [9010, undefined],
minmax: [50, undefined],
types: {
...sharedTypes
}