Expose encodeAddress/decodeAddress types on keyring interface (#62)

* Expose encodeAddress/decodeAddress types of keyring

* Update types.ts
This commit is contained in:
Jaco Greeff
2019-01-14 14:52:39 +01:00
committed by GitHub
parent deccbca646
commit ea771de608
+2
View File
@@ -37,6 +37,8 @@ export interface KeyringStruct {
createAccount: (seed: Uint8Array, password?: string, meta?: KeyringPair$Meta) => KeyringPair;
createAccountExternal: (publicKey: Uint8Array, meta?: KeyringPair$Meta) => KeyringPair;
createAccountMnemonic: (seed: string, password?: string, meta?: KeyringPair$Meta) => KeyringPair;
decodeAddress: (key: string | Uint8Array) => Uint8Array;
encodeAddress: (key: string | Uint8Array) => string;
encryptAccount: (pair: KeyringPair, password: string) => void;
forgetAccount: (address: string) => void;
forgetAddress: (address: string) => void;