From ea771de608a0940f535b83d255bcd69c323beea1 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 14 Jan 2019 14:52:39 +0100 Subject: [PATCH] Expose encodeAddress/decodeAddress types on keyring interface (#62) * Expose encodeAddress/decodeAddress types of keyring * Update types.ts --- packages/ui-keyring/src/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui-keyring/src/types.ts b/packages/ui-keyring/src/types.ts index 5a8bea80..e565b518 100644 --- a/packages/ui-keyring/src/types.ts +++ b/packages/ui-keyring/src/types.ts @@ -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;