From 08da9bd54776744dab82cfb574b6a9bca37c4bda Mon Sep 17 00:00:00 2001 From: kevinb1003 Date: Wed, 2 Oct 2024 03:26:54 +0400 Subject: [PATCH] feat: add zircuit mainnet chain (#2803) * Add zircuit chain * Remove yarn file * Update fluffy-laws-chew.md --------- Co-authored-by: jxom --- .changeset/fluffy-laws-chew.md | 5 +++++ src/chains/definitions/zircuit.ts | 32 +++++++++++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 38 insertions(+) create mode 100644 .changeset/fluffy-laws-chew.md create mode 100644 src/chains/definitions/zircuit.ts diff --git a/.changeset/fluffy-laws-chew.md b/.changeset/fluffy-laws-chew.md new file mode 100644 index 0000000000..8372b8c5e8 --- /dev/null +++ b/.changeset/fluffy-laws-chew.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Zircuit chain. diff --git a/src/chains/definitions/zircuit.ts b/src/chains/definitions/zircuit.ts new file mode 100644 index 0000000000..d527ff9094 --- /dev/null +++ b/src/chains/definitions/zircuit.ts @@ -0,0 +1,32 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const zircuit = /*#__PURE__*/ defineChain({ + id: 48900, + name: 'Zircuit Mainnet', + nativeCurrency: { + decimals: 18, + name: 'Ether', + symbol: 'ETH', + }, + rpcUrls: { + default: { + http: [ + 'https://zircuit1-mainnet.p2pify.com', + 'https://zircuit1-mainnet.liquify.com', + 'https://zircuit-mainnet.drpc.org', + ], + }, + }, + blockExplorers: { + default: { + name: 'Zircuit Explorer', + url: 'https://explorer.zircuit.com', + }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 35c23ea463..d190552393 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -395,6 +395,7 @@ export { export { zora } from './definitions/zora.js' export { zoraSepolia } from './definitions/zoraSepolia.js' export { zoraTestnet } from './definitions/zoraTestnet.js' +export { zircuit } from './definitions/zircuit.js' export { zircuitTestnet } from './definitions/zircuitTestnet.js' //////////////////////////////////////////////////////////////////////////////////////