From aa86f4396006e42b7bcd302dd3e6fcea02230d4b Mon Sep 17 00:00:00 2001 From: jeff-0402 Date: Sun, 22 Sep 2024 13:43:30 +0800 Subject: [PATCH] feat: add mint network --- .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..5fa894c404 --- /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 4560d09dd2..e5dfda0fde 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -198,6 +198,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'