aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src/index.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-06 06:33:18 +0800
committerFabio Berger <me@fabioberger.com>2017-12-06 06:33:18 +0800
commitf6321a8e703b8b91f7043b6b55e0db06bbcd0a74 (patch)
tree5c52552960dde3788180ef55e7fb1fa8b8c1fa84 /packages/subproviders/src/index.ts
parent08168c6e7d52711aeb46e27444ba26970e16e244 (diff)
downloaddexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar
dexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.gz
dexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.bz2
dexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.lz
dexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.xz
dexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.zst
dexon-sol-tools-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.zip
Fix lint issues
Diffstat (limited to 'packages/subproviders/src/index.ts')
-rw-r--r--packages/subproviders/src/index.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/subproviders/src/index.ts b/packages/subproviders/src/index.ts
index 9560c3597..9b7cab3fa 100644
--- a/packages/subproviders/src/index.ts
+++ b/packages/subproviders/src/index.ts
@@ -17,12 +17,20 @@ export {
LedgerCommunicationClient,
} from './types';
+/**
+ * A factory method for creating a LedgerEthereumClient usable in a browser context.
+ * @return LedgerEthereumClient A browser client
+ */
export async function ledgerEthereumBrowserClientFactoryAsync(): Promise<LedgerEthereumClient> {
const ledgerConnection = await LedgerBrowserCommunication.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);