diff options
author | Jacob Evans <jacob@dekz.net> | 2018-03-06 10:07:07 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-03-06 10:07:07 +0800 |
commit | 71e7e9c9c3ed89c1c25f46085c0968a62099cb5a (patch) | |
tree | 58542a9fcd88756d628f8eab72013621210fac9f /packages/subproviders/src | |
parent | 8521775389b2e7ddefec20f1d06331e4bc3d0540 (diff) | |
download | dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.tar dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.tar.gz dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.tar.bz2 dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.tar.lz dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.tar.xz dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.tar.zst dexon-sol-tools-71e7e9c9c3ed89c1c25f46085c0968a62099cb5a.zip |
Remove old ledger
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 29 | ||||
-rw-r--r-- | packages/subproviders/src/index.ts | 10 |
2 files changed, 0 insertions, 39 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 0c8b3fed3..1a9b2ad61 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -54,35 +54,6 @@ declare module '@ledgerhq/hw-transport-u2f' { } } -declare module 'ledgerco' { - interface comm { - close_async(): Promise<void>; - } - export class comm_node implements comm { - public static create_async(timeoutMilliseconds?: number): Promise<comm_node>; - public close_async(): Promise<void>; - } - export class comm_u2f implements comm { - public static create_async(): Promise<comm_u2f>; - public close_async(): Promise<void>; - } - export class eth { - public comm: comm; - constructor(comm: comm); - public getAddress_async( - path: string, - display?: boolean, - chaincode?: boolean, - ): Promise<{ publicKey: string; address: string; chainCode: string }>; - public signTransaction_async(path: string, rawTxHex: string): Promise<ECSignatureString>; - public getAppConfiguration_async(): Promise<{ - arbitraryDataEnabled: number; - version: string; - }>; - public signPersonalMessage_async(path: string, messageHex: string): Promise<ECSignature>; - } -} - // Semaphore-async-await declarations declare module 'semaphore-async-await' { class Semaphore { diff --git a/packages/subproviders/src/index.ts b/packages/subproviders/src/index.ts index 566743fd0..d296c7be6 100644 --- a/packages/subproviders/src/index.ts +++ b/packages/subproviders/src/index.ts @@ -25,13 +25,3 @@ export async function ledgerEthereumBrowserClientFactoryAsync(): Promise<LedgerE const ledgerEthClient = new LedgerEthereumClientFn(ledgerConnection); return ledgerEthClient; } - -// /** -// * A factory for creating a LedgerEthereumClient usable in a Node.js context. -// * @return LedgerEthereumClient A Node.js client -// */ -// export async function ledgerEthereumNodeJsClientFactoryAsync(): Promise<LedgerEthereumClient> { -// const ledgerConnection = await LedgerNodeCommunication.create_async(); -// const ledgerEthClient = new LedgerEthereumClientFn(ledgerConnection); -// return ledgerEthClient; -// } |