This repository contains the Avalanche BOLOS application for the Ledger Nano S and Ledger Nano X and tools for testing the application. While this app is currently under development, we do not recommend using it.
This application has been developed against our fork of Avalanche.js. Most instructions assume you have the Nix Package Manager, which you can install on any Linux distribution or MacOS. Application and wallet developers who would like to support Ledger can do so with LedgerJS.
To install from the source directory, ensure that you have nix installed, run
./nix/install.sh -t s
and accept the prompts on your ledger device.
nix-shell -A wallet.s --run 'make all'
nix-shell -A wallet.s --run 'make load'
nix-shell -A wallet.x --run 'make all'
Ledger Nano X does not currently have a way to load unsigned apps. Testing need to be done through Ledger Live.
You can run automated tests through speculos via the ./test.sh script. Just run this:
nix-shell -A wallet.s --run 'make test'
Running the same test suite on a live ledger currently requires that the ledger be configured with the recovery phrase
glory promote mansion idle axis finger extra february uncover one trip resource
lawn turtle enact monster seven myth punch hobby comfort wild raise skin
and then you can (with the ledger connected) run
nix-shell -A wallet.s --run 'make; ./test.sh -h'
The test suite currently does not test any rejections, so just accept every prompt that happens.