Update Polkadot session keys (#1287)

This commit is contained in:
Jaco Greeff
2019-08-10 08:02:16 +02:00
committed by GitHub
parent 825f45e467
commit 1c885a25b0
2 changed files with 6 additions and 4 deletions
@@ -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'
}
};
@@ -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;