diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-06 06:33:18 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-06 06:33:18 +0800 |
commit | f6321a8e703b8b91f7043b6b55e0db06bbcd0a74 (patch) | |
tree | 5c52552960dde3788180ef55e7fb1fa8b8c1fa84 /packages/subproviders/src/index.ts | |
parent | 08168c6e7d52711aeb46e27444ba26970e16e244 (diff) | |
download | dexon-0x-contracts-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.gz dexon-0x-contracts-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.tar.zst dexon-0x-contracts-f6321a8e703b8b91f7043b6b55e0db06bbcd0a74.zip |
Fix lint issues
Diffstat (limited to 'packages/subproviders/src/index.ts')
-rw-r--r-- | packages/subproviders/src/index.ts | 8 |
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); |