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:
28
step-03-coin-module/config.chain138.ts
Normal file
28
step-03-coin-module/config.chain138.ts
Normal 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;
|
||||
Reference in New Issue
Block a user