Step 7 — Wallet API
- 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.tsensureFAMILIESincludes the family; invalidation.tsandserializer.tsadd the new type to the union.
- ledger-live repo — Bump
@ledgerhq/wallet-api-core,-server,-client. Add or extend walletApiAdapter.chain138.ts inlibs/ledger-live-common/src/families/ethereum/walletApiAdapter.tsso WalletAPI transactions with chainId 138 map to LL transactions. Do not edit the generatedgenerated/walletApiAdapter.tsby hand; add the source adapter and run the sync-families-dispatch script. - Changelog —
pnpm changelog, create changeset for@ledgerhq/wallet-api-core(minor), open PR.