Find more information here
- Ledger Live development setup
git clone git@github.com:LedgerHQ/ledger-live.git
cd ledger-live
pnpm install
pnpm build:libs
You only have to build speculos locally if you are on a Mac M1. Otherwise you can uncomment the image provided in the docker-compose.yml
-
Clone speculos:
git clone git@github.com:LedgerHQ/speculos.git
-
Patch Dockerfile:
# before
FROM ghcr.io/ledgerhq/speculos-builder:latest AS builder
# after
FROM speculos-builder:latest AS builder
- Build image
cd speculos
docker build -f build.Dockerfile -t speculos-builder:latest .
docker build -f Dockerfile -t speculos:latest .
-
Generate a Github token classic and give it full "repo" and "project" rights. Make sure to authorize Ledger SSO.
-
Go in the coin-module you want to test and create a
.env
in the folder where your test resides. For exemple forcoin-evm
create the file should be located in:src/__test__/coin-tester/.env
.
Copy .env.example
.
cp .env.example .env
A .env
should have at the very least the following attributes:
SEED=chronic find success crew board merit elder life achieve scout gravity soul brief pen job
GH_TOKEN=
SPECULOS_API_PORT=4040
SPECULOS_IMAGE=speculos
If you want you can generate a new seed using this tool
To coin Polkadot Coin tester we will need to build the local test node Docker image.
cd libs/coin-modules/coin-polkadot/src/test/coin-tester
make build
pnpm coin:<coin-module-name> coin-tester
# e.g
# pnpm coin:evm coin-tester
# pnpm coin:polkadot coin-tester
The "RPC" variable is not set. Defaulting to a blank string.
This error can safely be ignored. The RPC is passed as a variable env at runtime. Check here and here