From 5e1a13de8d116d176393b4ac93d7933d8d16a676 Mon Sep 17 00:00:00 2001 From: Jeff Madan Date: Mon, 23 Sep 2024 13:12:24 +0800 Subject: [PATCH] feat: add mint chain (#2756) * feat: add mint network * Update chilly-vans-fold.md --------- Co-authored-by: jxom --- .changeset/chilly-vans-fold.md | 5 +++++ src/chains/definitions/mint.ts | 19 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 25 insertions(+) create mode 100644 .changeset/chilly-vans-fold.md create mode 100644 src/chains/definitions/mint.ts diff --git a/.changeset/chilly-vans-fold.md b/.changeset/chilly-vans-fold.md new file mode 100644 index 0000000000..77add80bdc --- /dev/null +++ b/.changeset/chilly-vans-fold.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Mint chain. diff --git a/src/chains/definitions/mint.ts b/src/chains/definitions/mint.ts new file mode 100644 index 0000000000..c3979b9f04 --- /dev/null +++ b/src/chains/definitions/mint.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const mint = /*#__PURE__*/ defineChain({ + id: 185, + name: 'Mint Mainnet', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.mintchain.io'], + }, + }, + blockExplorers: { + default: { + name: 'Mintchain explorer', + url: 'https://explorer.mintchain.io', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 795b15ffd9..5e701c76f3 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -199,6 +199,7 @@ export { metis } from './definitions/metis.js' export { metisGoerli } from './definitions/metisGoerli.js' export { mev } from './definitions/mev.js' export { mevTestnet } from './definitions/mevTestnet.js' +export { mint } from './definitions/mint.js' export { mintSepoliaTestnet } from './definitions/mintSepoliaTestnet.js' export { mode } from './definitions/mode.js' export { modeTestnet } from './definitions/modeTestnet.js'