@ledgerhq/coin-tester v0.6.0
Coin-tester
What is the coin config
Find more information here
Setup
Prerequisites
- Ledger Live development setup
git clone git@github.com:LedgerHQ/ledger-live.git
cd ledger-live
pnpm install
pnpm build:libsBuild the speculos image
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.gitPatch 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 .Environment variables
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
.envin the folder where your test resides. For exemple forcoin-evmcreate the file should be located in:coin-tester-modules/coin-tester-evm/.env.
Copy .env.example.
cp .env.example .envA .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=speculosIf you want you can generate a new seed using this tool
Coin Module Specific setup
Polkadot
To coin Polkadot Coin tester we will need to build the local test node Docker image.
Run tests for a coin module
pnpm coin:tester:<coin-tester-modules-name> start
# e.g
# pnpm coin:tester:evm start
# pnpm coin:tester:polkadot start
# pnpm coin:tester:solana startTroubleshooting
EVM 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
9 months ago
6 months ago
8 months ago
1 year ago
12 months ago
8 months ago
6 months ago
7 months ago
6 months ago
6 months ago
9 months ago
6 months ago
1 year ago
6 months ago
1 year ago
6 months ago
1 year ago
8 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
9 months ago
1 year ago
6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago