Files
proxmox/pr-workspace/ledger-chain138-integration/step-03-coin-module
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 3 — Create coin module

For Chain 138 we extend the Ethereum family in ledger-live (no new coin-module). Use:

Note: network-explorer.ts uses Blockscout REST v2 API (GET /api/v2/addresses/{address}/transactions) with next_page_params pagination. Do not use Etherscan-style module=account&action=txlist — Blockscout uses a different API.

  • config.chain138.ts — Chain 138 RPC and explorer config; plug into Ethereum family config or currency config.
  • network-explorer.ts — Example network layer (getLastBlock, getBalance, getTransactionCount, getAddressTransactions). Adapt to the Ethereum coin-modules network/bridge API (e.g. wrap in the same interface as other EVM chains).

If Ledger requests a dedicated coin-module, create libs/coin-modules/coin-defi_oracle_meta/ with:

  • bridge/ — sync, buildTransaction, signOperation, broadcast, getFeesForTransaction, getTransactionStatus
  • logic/ — core logic (no bridge imports)
  • network/ — this explorer + RPC wrapper
  • signer/ — Step 4 getAddress + sign
  • types/ — bridge, signer, errors
  • config.ts, index.ts

Dependency rule: logicnetwork only; bridgelogic, network, signer.