Files
proxmox/pr-workspace/ledger-chain138-integration/step-07-wallet-api
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00
..

Step 7 — Wallet API

  1. wallet-api repo — If Ethereum family already supports multiple chainIds, add 138 to validation and routing. Otherwise use:
    • validation.ethereum-chain138.ts — Zod schema allowing chainId 138.
    • types.ethereum-chain138.ts — Transaction types.
    • serializer.ethereum-chain138.ts — Serialize/deserialize for JSON-RPC.
    • In packages/core/src/families/common.ts ensure FAMILIES includes the family; in validation.ts and serializer.ts add the new type to the union.
  2. ledger-live repo — Bump @ledgerhq/wallet-api-core, -server, -client. Add or extend walletApiAdapter.chain138.ts in libs/ledger-live-common/src/families/ethereum/walletApiAdapter.ts so WalletAPI transactions with chainId 138 map to LL transactions. Do not edit the generated generated/walletApiAdapter.ts by hand; add the source adapter and run the sync-families-dispatch script.
  3. Changelogpnpm changelog, create changeset for @ledgerhq/wallet-api-core (minor), open PR.