Correct CompactAssignments & RawSolution types for Polkadot (#3705)

* Correct `CompactAssignments` & `RawSolution` types for Polkadot

* Default to Solution 16
This commit is contained in:
Jaco
2021-06-27 05:55:11 +02:00
committed by GitHub
parent bf2c560db5
commit e8f352930d
25 changed files with 96 additions and 95 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "4.16.1",
"version": "4.16.2",
"type": "module",
"description": "Implementation of the Parity codec",
"main": "index.js",
@@ -20,7 +20,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.14.6",
"@polkadot/metadata": "4.16.1",
"@polkadot/metadata": "4.16.2",
"@polkadot/util": "^6.10.1",
"@polkadot/util-crypto": "^6.10.1",
"@polkadot/x-rxjs": "^6.10.1"
@@ -15,7 +15,7 @@ const deprecated = {
};
const phragmen = {
CompactAssignments: 'CompactAssignmentsWith24',
CompactAssignments: 'CompactAssignmentsWith16',
CompactAssignmentsWith16: {
votes1: 'Vec<(NominatorIndexCompact, ValidatorIndexCompact)>',
votes2: 'Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>',
@@ -111,7 +111,7 @@ const phragmen = {
}
},
ExtendedBalance: 'u128',
RawSolution: 'RawSolutionWith24',
RawSolution: 'RawSolutionWith16',
RawSolutionWith16: {
compact: 'CompactAssignmentsWith16',
score: 'ElectionScore',
@@ -12,7 +12,7 @@ export interface ActiveEraInfo extends Struct {
}
/** @name CompactAssignments */
export interface CompactAssignments extends CompactAssignmentsWith24 {}
export interface CompactAssignments extends CompactAssignmentsWith16 {}
/** @name CompactAssignmentsTo257 */
export interface CompactAssignmentsTo257 extends Struct {
@@ -207,7 +207,7 @@ export interface PhragmenScore extends Vec<u128> {}
export interface Points extends u32 {}
/** @name RawSolution */
export interface RawSolution extends RawSolutionWith24 {}
export interface RawSolution extends RawSolutionWith16 {}
/** @name RawSolutionTo265 */
export interface RawSolutionTo265 extends RawSolutionWith16 {}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/types', version: '4.16.1' };
export const packageInfo = { name: '@polkadot/types', version: '4.16.2' };