Co-authored-by: Cursor <cursoragent@cursor.com>
Ledger Chain 138 Integration — Generated Code for All 8 Steps
Purpose: Drop-in or reference code for integrating Defi Oracle Meta Mainnet (Chain ID 138) with Ledger Wallet. Use after Ledger has accepted the integration request.
Reference: LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE.md | ADD_CHAIN138_TO_LEDGER_LIVE.md | DEFI_ORACLE_META_MAINNET_PROJECT_DESCRIPTION.md
Layout
| Step | Path | Description |
|---|---|---|
| 1 | step-01-currency/ |
Cryptoassets currency entry for ledger-live |
| 2 | step-02-device-app-lib/ |
App-ethereum network entry (patch/snippet) |
| 3 | step-03-coin-module/ |
Coin-module skeleton (Ethereum family extension) |
| 4 | step-04-signer/ |
Signer types and getAddress resolver |
| 5 | step-05-api/ |
RPC/explorer config and network module |
| 6 | step-06-lld-llm/ |
live-common setup and config |
| 7 | step-07-wallet-api/ |
Wallet API family (validation, types, serializer) |
| 8 | step-08-manual-tests/ |
Manual test plan and checklist script |
Additional files:
| Path | Description |
|---|---|
chains/eip155-138.json |
Chain spec for ChainList / Ledger chains registry |
app-ethereum/makefile_conf/chain/defi_oracle.mk |
Device app (nanos) build config for Chain 138 |
docs/ |
Full integration guide, project description, and Ledger form instructions |
Gaps and missing integrations
See GAPS_AND_MISSING_INTEGRATIONS.md for test results, fixes applied (e.g. Step 3 Blockscout v2 API), and a checklist of possible missing pieces (tokens/CAL, swap, staking, Clear Signing, i18n, E2E tests, etc.).
Usage
- Submit the Ledger form and wait for approval.
- Fork/clone LedgerHQ/ledger-live and optionally LedgerHQ/wallet-api.
- Copy or adapt the files from each step into the Ledger repos as instructed in the step README or comments.
- Run Step 8 manual tests before submitting to Ledger.
Description
Languages
TypeScript
93.9%
C
3.1%
Shell
2.5%
Makefile
0.5%