To build the artifacts for Ledger devices, run the following command:
make release
Start the Speculos simulator:
make run-speculos-<device>
Run the tests:
cd js/docker && docker compose up -d && cd ..
npm install && MODEL=<device> npm run speculos-test
Connect your Ledger device and run the tests:
cd js && npm run device-test
To test a specific test case, change it
to it.only
in the test file wallet.test.ts
. This allows Jest to run only that test case.
To install the Alephium app on your Ledger device, you will need the ledgerctl tool. Follow the official installation guide here: https://github.com/LedgerHQ/ledgerctl#quick-install.
To install the app for Nano S:
make install_nanos
To install the app for Nano S+:
make install_nanosplus
Note: Manual installation for Nano X is not supported as the device no longer supports application side-loading.
To uninstall the Alephium app from your Ledger device:
ledgerctl delete Alephium