From bbb6d0eda9e358dda146b232c739389cf94eb550 Mon Sep 17 00:00:00 2001 From: Arjan Zijderveld <5286904+arjanz@users.noreply.github.com> Date: Mon, 28 Jun 2021 14:03:57 +0200 Subject: [PATCH] Added `Emergency` to `ElectionPhase` (#3707) Link to new field: https://github.com/paritytech/substrate/blob/6242d37f43ec5aa9b6131a8e61b8d4e71b063907/frame/election-provider-multi-phase/src/lib.rs#L337 --- packages/types/src/interfaces/staking/definitions.ts | 3 ++- packages/types/src/interfaces/staking/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/types/src/interfaces/staking/definitions.ts b/packages/types/src/interfaces/staking/definitions.ts index 24980bd3a9..cc748e4000 100644 --- a/packages/types/src/interfaces/staking/definitions.ts +++ b/packages/types/src/interfaces/staking/definitions.ts @@ -90,7 +90,8 @@ const phragmen = { _enum: { Off: null, Signed: null, - Unsigned: '(bool, BlockNumber)' + Unsigned: '(bool, BlockNumber)', + Emergency: null } }, ElectionResult: { diff --git a/packages/types/src/interfaces/staking/types.ts b/packages/types/src/interfaces/staking/types.ts index ff9d5e7b7a..a764d57df8 100644 --- a/packages/types/src/interfaces/staking/types.ts +++ b/packages/types/src/interfaces/staking/types.ts @@ -104,6 +104,7 @@ export interface ElectionPhase extends Enum { readonly isSigned: boolean; readonly isUnsigned: boolean; readonly asUnsigned: ITuple<[bool, BlockNumber]>; + readonly isEmergency: boolean; } /** @name ElectionResult */