Correct CompactAssignments & RawSolution types for Polkadot (#3705)
* Correct `CompactAssignments` & `RawSolution` types for Polkadot * Default to Solution 16
This commit is contained in:
@@ -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 {}
|
||||
|
||||
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user