SessionId extraction for 2.x (#1127)

* SessionId extraction for 2.x

* Run through e2e & update
This commit is contained in:
Jaco Greeff
2019-07-15 15:01:36 +02:00
committed by GitHub
parent 283f0c0d64
commit ee27e31275
4 changed files with 190 additions and 152 deletions
+3 -11
View File
@@ -13,22 +13,14 @@ import SessionKey from './SessionKey';
export default class SessionKeys extends Struct {
public constructor (value?: any) {
super({
grandpaKey: SessionKey,
auraKey: SessionKey
ed25519: SessionKey
}, value);
}
/**
* @description The Aura session
*/
public get auraKey (): SessionKey {
return this.get('auraKey') as SessionKey;
}
/**
* @description The Grandpa Authority
*/
public get grandpaKey (): SessionKey {
return this.get('grandpaKey') as SessionKey;
public get ed25519 (): SessionKey {
return this.get('ed25519') as SessionKey;
}
}