Files
LedgerLive/step-03-coin-module/config.chain138.ts

29 lines
847 B
TypeScript

/**
* 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;