From 8648bc8bd9e5501dd2ca211ff04bebb807e5e55d Mon Sep 17 00:00:00 2001 From: Zhangnong Date: Mon, 4 Nov 2024 16:36:16 +0800 Subject: [PATCH] feat: add nahmii mainnet --- .changeset/fresh-beers-tease.md | 5 +++++ src/chains/definitions/nahmii.ts | 21 +++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 27 insertions(+) create mode 100644 .changeset/fresh-beers-tease.md create mode 100644 src/chains/definitions/nahmii.ts diff --git a/.changeset/fresh-beers-tease.md b/.changeset/fresh-beers-tease.md new file mode 100644 index 0000000000..9e60931eb0 --- /dev/null +++ b/.changeset/fresh-beers-tease.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Nahmii 2 Mainnet. diff --git a/src/chains/definitions/nahmii.ts b/src/chains/definitions/nahmii.ts new file mode 100644 index 0000000000..cd274c8502 --- /dev/null +++ b/src/chains/definitions/nahmii.ts @@ -0,0 +1,21 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const nahmii = /*#__PURE__*/ defineChain({ + id: 5551, + name: 'Nahmii 2 Mainnet', + nativeCurrency: { + decimals: 18, + name: 'ETH', + symbol: 'ETH', + }, + rpcUrls: { + default: { http: ['https://l2.nahmii.io'] }, + }, + blockExplorers: { + default: { + name: 'Nahmii 2 Explorer', + url: 'https://explorer.n2.nahmii.io', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 0195a11ec2..401a604299 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -261,6 +261,7 @@ export { moonriver } from './definitions/moonriver.js' export { morph } from './definitions/morph.js' export { morphHolesky } from './definitions/morphHolesky.js' export { morphSepolia } from './definitions/morphSepolia.js' +export { nahmii } from './definitions/nahmii.js' export { nautilus } from './definitions/nautilus.js' export { neonDevnet } from './definitions/neonDevnet.js' export { neonMainnet } from './definitions/neonMainnet.js'