feat: adding adi currency support#14805
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR adds support for the ADI (Adi Foundation) cryptocurrency to Ledger Live. ADI is an EVM-based blockchain with chainId 36900 that uses Ethereum's Ledger app and supports ERC20 tokens. The implementation follows the standard pattern for adding new EVM currencies, including feature flag configuration, RPC/explorer setup, and test coverage.
Changes:
- Added ADI currency definition with EVM family configuration (chainId 36900, Blockscout explorer)
- Added feature flag
currencyAdito control currency availability - Updated all supported currency lists across desktop, mobile, CLI, and web-tools applications
- Generated test snapshots for currency formatting and fee calculations
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| libs/ledgerjs/packages/cryptoassets/src/currencies.ts | Added ADI currency definition with EVM configuration, explorer URLs, and metadata |
| libs/ledgerjs/packages/cryptoassets/src/abandonseed.ts | Added EVM dead address for ADI abandon seed |
| libs/ledgerjs/packages/types-live/src/feature.ts | Added currencyAdi feature flag type |
| libs/ledger-live-common/src/featureFlags/defaultFeatures.ts | Registered ADI feature flag with default settings |
| libs/ledger-live-common/src/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.ts | Added ADI to feature-flagged currencies hook |
| libs/ledger-live-common/src/families/evm/config.ts | Added EVM config for ADI (RPC node, Blockscout explorer, active status) |
| libs/coin-modules/coin-evm/src/specs.ts | Set minimum balance for ADI to 0.001 |
| apps/ledger-live-desktop/src/live-common-set-supported-currencies.ts | Added ADI to desktop app supported currencies |
| apps/ledger-live-mobile/src/live-common-setup.ts | Added ADI to mobile app supported currencies |
| apps/cli/src/live-common-setup-base.ts | Added ADI to CLI supported currencies |
| apps/web-tools/src/live-common-setup.ts | Added ADI to web-tools supported currencies |
| apps/ledger-live-desktop/tests/fixtures/wallet-api.ts | Added ADI to wallet API test fixtures |
| apps/ledger-live-mobile/src/mvvm/features/Web3Hub/utils/api/mocks/manifests.ts | Added ADI to Web3Hub mock manifests |
| libs/ledger-live-common/src/tests/test-helpers/environment.ts | Added ADI to test environment |
| libs/ledger-live-common/src/tests/migration/account-migration.ts | Added ADI to migration test currencies |
| libs/live-currency-format/src/snapshots/formatCurrencyUnit.test.ts.snap | Generated snapshots for ADI currency formatting across locales |
| libs/coin-modules/coin-evm/src/editTransaction/snapshots/getFormattedFeeFields.test.ts.snap | Generated snapshots for ADI fee field formatting |
| .changeset/shy-balloons-sniff.md | Added changeset documenting ADI currency support |
|

✅ Checklist
npx changesetwas attached.Covered by automatic tests.
Impact of the changes:
https://ledgerhq.atlassian.net/browse/LIVE-26844
📝 Description
Adding ADI currency
https://github.com/LedgerHQ/ledger-live/wiki/LLC:currency
Replace this text by a clear and concise description of what this pull request is about and why it is needed. Be sure to explain the problem you're addressing and the solution you're proposing.
For libraries, you can add a code sample of how to use it.
For bug fixes, you can explain the previous behaviour and how it was fixed.
In case of visual features, please attach screenshots or video recordings to demonstrate the changes.
❓ Context
🧐 Checklist for the PR Reviewers