aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/src/globals.d.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-06-28 06:13:57 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-06-30 08:25:56 +0800
commit6e1a549fcb5cc9257ee984a906db78dd2568042b (patch)
tree08432dbc8a2e12c352030ed40f62f3bd44227f97 /packages/migrations/src/globals.d.ts
parent5f0a2953c63c31daa975b587f5c5072b6f7e418c (diff)
downloaddexon-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.ts23
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>;
+ }
+}