From 907c646076f19d6de8040c800a8d6c45596d7a97 Mon Sep 17 00:00:00 2001 From: Vincent Almeida Date: Thu, 7 Nov 2024 22:28:14 +0000 Subject: [PATCH] feat: add mekong chain (#2984) * Create mekong.ts * Update mekong.ts * Update index.ts * Update mekong.ts * Remove space committed by error * Create small-cheetahs-applaud.md --------- Co-authored-by: jxom <7336481+jxom@users.noreply.github.com> --- .changeset/small-cheetahs-applaud.md | 5 +++++ src/chains/definitions/mekong.ts | 19 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 25 insertions(+) create mode 100644 .changeset/small-cheetahs-applaud.md create mode 100644 src/chains/definitions/mekong.ts diff --git a/.changeset/small-cheetahs-applaud.md b/.changeset/small-cheetahs-applaud.md new file mode 100644 index 0000000000..624b08f84b --- /dev/null +++ b/.changeset/small-cheetahs-applaud.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Mekong chain. diff --git a/src/chains/definitions/mekong.ts b/src/chains/definitions/mekong.ts new file mode 100644 index 0000000000..2885eba34a --- /dev/null +++ b/src/chains/definitions/mekong.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const mekong = /*#__PURE__*/ defineChain({ + id: 7078815900, + name: 'Mekong Pectra Devnet', + nativeCurrency: { name: 'eth', symbol: 'eth', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.mekong.ethpandaops.io'], + }, + }, + blockExplorers: { + default: { + name: 'Block Explorer', + url: 'https://explorer.mekong.ethpandaops.io', + }, + }, + testnet: true, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 99c04351b8..062c6969b9 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -238,6 +238,7 @@ export { mantleTestnet } from './definitions/mantleTestnet.js' export { mapProtocol } from './definitions/mapProtocol.js' export { matchain } from './definitions/matchain.js' export { matchainTestnet } from './definitions/matchainTestnet.js' +export { mekong } from './definitions/mekong.js'; export { meld } from './definitions/meld.js' export { merlin } from './definitions/merlin.js' export { metachain } from './definitions/metachain.js'