Skip to content
ledger-thorchain / 0.1.0-alpha.2

ledger-thorchain 0.1.0-alpha.2

Install from the command line:
Learn more about npm packages
$ npm install @xdefi-tech/ledger-thorchain@0.1.0-alpha.2
Install via package.json:
"@xdefi-tech/ledger-thorchain": "0.1.0-alpha.2"

About this version

ledger-thorchain-js

License

This package provides a basic client library to communicate with a THORChain App running in a Ledger Nano S/X

We recommend using the npm package in order to receive updates/fixes.

Build

yarn build

Tests

Unit tests

yarn test:unit

e2e tests

`e2e' tests are to run some tests against your connected Ledger locally (no CI).

Create a .e2e.env (use .e2e.env.sample as template) to add THOR_PUB_KEY (public key of your Ledger) and THOR_ADDRESS (thor address of your Ledger).

Connect your Ledger, open THORChain app on it and start e2e tests locally:

yarn test:e2e

Hint: Add .only to the tests to run a single test only

Example

This repo also includes a simple Vue example for WebUSB and WebHID.

To run it locally

yarn serve

and open Chrome at https://localhost:8080/

Example

Details


Assets

  • ledger-thorchain-0.1.0-alpha.2-npm.tgz

Download activity

  • Total downloads 8,430
  • Last 30 days 1,112
  • Last week 279
  • Today 49

Recent versions

View all