diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-06-28 06:13:57 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-06-30 08:25:56 +0800 |
commit | 6e1a549fcb5cc9257ee984a906db78dd2568042b (patch) | |
tree | 08432dbc8a2e12c352030ed40f62f3bd44227f97 /packages/migrations/src/globals.d.ts | |
parent | 5f0a2953c63c31daa975b587f5c5072b6f7e418c (diff) | |
download | dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.tar dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.tar.gz dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.tar.bz2 dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.tar.lz dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.tar.xz dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.tar.zst dexon-0x-contracts-6e1a549fcb5cc9257ee984a906db78dd2568042b.zip |
Use ledger subprovider
Diffstat (limited to 'packages/migrations/src/globals.d.ts')
-rw-r--r-- | packages/migrations/src/globals.d.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/migrations/src/globals.d.ts b/packages/migrations/src/globals.d.ts index 94e63a32d..b11849b05 100644 --- a/packages/migrations/src/globals.d.ts +++ b/packages/migrations/src/globals.d.ts @@ -4,3 +4,26 @@ declare module '*.json' { export default json; /* tslint:enable */ } + +declare module '@ledgerhq/hw-app-eth' { + class Eth { + public transport: LedgerTransport; + constructor(transport: LedgerTransport); + public getAddress( + path: string, + boolDisplay?: boolean, + boolChaincode?: boolean, + ): Promise<{ publicKey: string; address: string; chainCode: string }>; + public signTransaction(path: string, rawTxHex: string): Promise<ECSignatureString>; + public getAppConfiguration(): Promise<{ arbitraryDataEnabled: number; version: string }>; + public signPersonalMessage(path: string, messageHex: string): Promise<ECSignature>; + } + export default Eth; +} + +declare module '@ledgerhq/hw-transport-node-hid' { + export default class TransportNodeHid implements LedgerTransport { + public static create(): Promise<LedgerTransport>; + public close(): Promise<void>; + } +} |