aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src/index.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-03-06 10:05:30 +0800
committerJacob Evans <jacob@dekz.net>2018-03-06 10:05:30 +0800
commit8521775389b2e7ddefec20f1d06331e4bc3d0540 (patch)
treeb1e040548183f51e52ffdaa7f593e95311d4829b /packages/subproviders/src/index.ts
parent994935b5da0b15796958a32c5bab0a25b9430b5a (diff)
downloaddexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.tar
dexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.tar.gz
dexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.tar.bz2
dexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.tar.lz
dexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.tar.xz
dexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.tar.zst
dexon-sol-tools-8521775389b2e7ddefec20f1d06331e4bc3d0540.zip
Update ledgerco packages
Diffstat (limited to 'packages/subproviders/src/index.ts')
-rw-r--r--packages/subproviders/src/index.ts30
1 files changed, 16 insertions, 14 deletions
diff --git a/packages/subproviders/src/index.ts b/packages/subproviders/src/index.ts
index 4da405ec0..566743fd0 100644
--- a/packages/subproviders/src/index.ts
+++ b/packages/subproviders/src/index.ts
@@ -1,8 +1,10 @@
import {
- comm_node as LedgerNodeCommunication,
- comm_u2f as LedgerBrowserCommunication,
- eth as LedgerEthereumClientFn,
-} from 'ledgerco';
+ Eth as LedgerEthereumClientFn,
+} from '@ledgerhq/hw-app-eth';
+
+import {
+ TransportU2F as LedgerBrowserCommunication,
+} from '@ledgerhq/hw-transport-u2f';
import { LedgerEthereumClient } from './types';
@@ -19,17 +21,17 @@ export { ECSignature, LedgerWalletSubprovider, LedgerCommunicationClient, NonceS
* @return LedgerEthereumClient A browser client
*/
export async function ledgerEthereumBrowserClientFactoryAsync(): Promise<LedgerEthereumClient> {
- const ledgerConnection = await LedgerBrowserCommunication.create_async();
+ const ledgerConnection = await LedgerBrowserCommunication.create();
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;
-}
+// /**
+// * 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;
+// }