From 0a6e6daa355ea0540ccf0aaf913f4efb120fce76 Mon Sep 17 00:00:00 2001 From: ChefJoJo <94336009+chef-jojo@users.noreply.github.com> Date: Fri, 7 Jul 2023 04:12:39 +0800 Subject: [PATCH] feat: add multicall3 to Polygon zkEVM (#408) --- .changeset/yellow-shirts-bake.md | 5 +++++ packages/chains/src/polygonZkEvm.ts | 6 ++++++ packages/chains/src/polygonZkEvmTestnet.ts | 12 +++++++++++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .changeset/yellow-shirts-bake.md diff --git a/.changeset/yellow-shirts-bake.md b/.changeset/yellow-shirts-bake.md new file mode 100644 index 00000000..80589c59 --- /dev/null +++ b/.changeset/yellow-shirts-bake.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": minor +--- + +Add multicall3 to Polygon zkEVM diff --git a/packages/chains/src/polygonZkEvm.ts b/packages/chains/src/polygonZkEvm.ts index 77ea0771..ee0fa422 100644 --- a/packages/chains/src/polygonZkEvm.ts +++ b/packages/chains/src/polygonZkEvm.ts @@ -19,4 +19,10 @@ export const polygonZkEvm = { url: 'https://zkevm.polygonscan.com', }, }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 57746, + }, + }, } as const satisfies Chain diff --git a/packages/chains/src/polygonZkEvmTestnet.ts b/packages/chains/src/polygonZkEvmTestnet.ts index b29b9b5d..f0a15dfb 100644 --- a/packages/chains/src/polygonZkEvmTestnet.ts +++ b/packages/chains/src/polygonZkEvmTestnet.ts @@ -14,10 +14,20 @@ export const polygonZkEvmTestnet = { }, }, blockExplorers: { - default: { + blockscout: { name: 'Blockscout', url: 'https://explorer.public.zkevm-test.net', }, + default: { + name: 'PolygonScan', + url: 'https://testnet-zkevm.polygonscan.com', + }, }, testnet: true, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 525686, + }, + }, } as const satisfies Chain