aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-03-07 09:25:21 +0800
committerJacob Evans <jacob@dekz.net>2018-03-07 09:37:09 +0800
commitd7373a5c0455ef81a5a1852123136e4724f13e36 (patch)
treef9b4650cbb81ae640eb11b6650ffe8806221c397 /packages/subproviders/src
parentf3026e33fd439bbd550e1814b5f067c36290638b (diff)
downloaddexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.tar
dexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.tar.gz
dexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.tar.bz2
dexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.tar.lz
dexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.tar.xz
dexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.tar.zst
dexon-sol-tools-d7373a5c0455ef81a5a1852123136e4724f13e36.zip
Add ledger-node package as optional dependency
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/globals.d.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts
index 238d9be78..e258ef947 100644
--- a/packages/subproviders/src/globals.d.ts
+++ b/packages/subproviders/src/globals.d.ts
@@ -39,6 +39,7 @@ interface LedgerTransport {
declare module '@ledgerhq/hw-app-eth' {
class Eth {
+ public transport: LedgerTransport;
constructor(transport: LedgerTransport);
public getAddress(
path: string,
@@ -48,10 +49,10 @@ declare module '@ledgerhq/hw-app-eth' {
public signTransaction(path: string, rawTxHex: string): Promise<ECSignatureString>;
public getAppConfiguration(): Promise<{ arbitraryDataEnabled: number; version: string }>;
public signPersonalMessage(path: string, messageHex: string): Promise<ECSignature>;
- transport: LedgerTransport;
}
export default Eth;
}
+
declare module '@ledgerhq/hw-transport-u2f' {
export default class TransportU2F {
public static create(): Promise<LedgerTransport>;
@@ -59,6 +60,13 @@ declare module '@ledgerhq/hw-transport-u2f' {
}
}
+declare module '@ledgerhq/hw-transport-node-hid' {
+ export default class TransportNodeHid {
+ public static create(): Promise<LedgerTransport>;
+ public close(): Promise<void>;
+ }
+}
+
// Semaphore-async-await declarations
declare module 'semaphore-async-await' {
class Semaphore {