From 1c885a25b05e107fd29fc184e9d36b6cf0d5cfa6 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 10 Aug 2019 08:02:16 +0200 Subject: [PATCH] Update Polkadot session keys (#1287) --- packages/types/src/interfaces/session/definitions.ts | 6 ++++-- packages/types/src/interfaces/session/types.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/types/src/interfaces/session/definitions.ts b/packages/types/src/interfaces/session/definitions.ts index 31d868ca31..a109f04ebe 100644 --- a/packages/types/src/interfaces/session/definitions.ts +++ b/packages/types/src/interfaces/session/definitions.ts @@ -11,8 +11,10 @@ export default { // impl_opaque_keys! { // pub struct SessionKeys { // Here we revert to tuples to keep the interfaces "opaque", as per the use - SessionKeysSubstrate: '(AccountId, AccountId, AccountId)', // Grandpa, Babe, ImOnline - SessionKeysPolkadot: '(AccountId, AccountId, AccountId)', + // For substrate: Grandpa, Babe, ImOnline + SessionKeysSubstrate: '(AccountId, AccountId, AccountId)', + // For polkadot: Grandpa, Babe, ImOnline, Parachains + SessionKeysPolkadot: '(AccountId, AccountId, AccountId, AccountId)', Keys: 'SessionKeysSubstrate' } }; diff --git a/packages/types/src/interfaces/session/types.ts b/packages/types/src/interfaces/session/types.ts index 98b101f842..8883f137e7 100644 --- a/packages/types/src/interfaces/session/types.ts +++ b/packages/types/src/interfaces/session/types.ts @@ -11,8 +11,8 @@ export type Keys = SessionKeysSubstrate; /** u32 */ export type SessionIndex = u32; -/** [AccountId, AccountId, AccountId] & Codec */ -export type SessionKeysPolkadot = [AccountId, AccountId, AccountId] & Codec; +/** [AccountId, AccountId, AccountId, AccountId] & Codec */ +export type SessionKeysPolkadot = [AccountId, AccountId, AccountId, AccountId] & Codec; /** [AccountId, AccountId, AccountId] & Codec */ export type SessionKeysSubstrate = [AccountId, AccountId, AccountId] & Codec;