Add full Chain 138 integration: 8 steps, chain spec, app-ethereum config, docs

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-02-12 15:57:08 -08:00
parent 17020ba236
commit bee1d29d55
33 changed files with 1444 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
/**
* Step 3 — Create coin module (config for Ethereum family + Chain 138)
* Target: ledger-live libs/coin-modules (or extend libs/ledger-live-common/src/families/ethereum)
*
* For Chain 138 we extend the Ethereum family. This config is used by the bridge/network.
*/
export const CHAIN_ID = 138 as const;
export const RPC_URLS = [
"https://rpc-http-pub.d-bis.org",
"https://rpc.d-bis.org",
"https://rpc2.d-bis.org",
"https://rpc.public-0138.defi-oracle.io",
"https://rpc.defi-oracle.io",
] as const;
export const EXPLORER_BASE = "https://explorer.d-bis.org" as const;
export const chain138Config = {
chainId: CHAIN_ID,
rpcUrls: RPC_URLS,
explorer: {
address: `${EXPLORER_BASE}/address/$address`,
tx: `${EXPLORER_BASE}/tx/$hash`,
token: `${EXPLORER_BASE}/token/$contractAddress?a=$address`,
},
} as const;