How to use the @ethersproject/hardware-wallets.LedgerSigner function in @ethersproject/hardware-wallets

To help you get started, we’ve selected a few @ethersproject/hardware-wallets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethereum-optimism / optimism / packages / contracts / tasks / chugsplash-deploy.ts View on Github external
.setAction(async (args, hre: any) => {
    const l2Provider = new ethers.providers.JsonRpcProvider(args.l2NodeUrl)
    const signer = new LedgerSigner(
      l2Provider,
      'default',
      args.ledgerHdPath
    )

    return await executeActionsFromConfig({
      hre,
      signer,
      chugsplashDeployerAddress: args.chugsplashDeployerAddress,
      upgradeConfigPath: args.upgradeConfigPath,
      timeoutInMs: args.timeoutInMs,
      retryIntervalInMs: args.retryIntervalInMs
    })
})

@ethersproject/hardware-wallets

Hardware Wallet support for ethers.

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis

Popular @ethersproject/hardware-wallets functions