Skip to content

Commit 1582caa

Browse files
committed
feat: support base, polygon zkevm and zora
1 parent 89c4ae7 commit 1582caa

File tree

4 files changed

+81
-59
lines changed

4 files changed

+81
-59
lines changed

README.md

+66-58
Original file line numberDiff line numberDiff line change
@@ -13,64 +13,72 @@ ethereum-multicall is fully written in typescript so has full compile time suppo
1313

1414
The below networks are supported by default, and custom networks can be supported by providing your own instance of a deployed Multicall contract.
1515

16-
| Chain | Chain ID |
17-
| ----------------------- | ---------- |
18-
| Mainnet | 1 |
19-
| Kovan | 3 |
20-
| Rinkeby | 4 |
21-
| Görli | 5 |
22-
| Ropsten | 10 |
23-
| Sepolia | 42 |
24-
| Optimism | 137 |
25-
| Optimism Kovan | 69 |
26-
| Optimism Görli | 100 |
27-
| Arbitrum | 420 |
28-
| Arbitrum Görli | 42161 |
29-
| Arbitrum Rinkeby | 421611 |
30-
| Polygon | 421613 |
31-
| Mumbai | 80001 |
32-
| Gnosis Chain (xDai) | 11155111 |
33-
| Avalanche | 43114 |
34-
| Avalanche Fuji | 43113 |
35-
| Fantom Testnet | 4002 |
36-
| Fantom Opera | 250 |
37-
| BNB Smart Chain | 56 |
38-
| BNB Smart Chain Testnet | 97 |
39-
| Moonbeam | 1284 |
40-
| Moonriver | 1285 |
41-
| Moonbase Alpha Testnet | 1287 |
42-
| Harmony | 1666600000 |
43-
| Cronos | 25 |
44-
| Fuse | 122 |
45-
| Songbird Canary Network | 19 |
46-
| Coston Testnet | 16 |
47-
| Boba | 288 |
48-
| Aurora | 1313161554 |
49-
| Astar | 592 |
50-
| OKC | 66 |
51-
| Heco Chain | 128 |
52-
| Metis | 1088 |
53-
| RSK | 30 |
54-
| RSK Testnet | 31 |
55-
| Evmos | 9001 |
56-
| Evmos Testnet | 9000 |
57-
| Thundercore | 108 |
58-
| Thundercore Testnet | 18 |
59-
| Oasis | 26863 |
60-
| Celo | 42220 |
61-
| Godwoken | 71402 |
62-
| Godwoken Testnet | 71401 |
63-
| Klatyn | 8217 |
64-
| Milkomeda | 2001 |
65-
| KCC | 321 |
66-
| Etherlite | 111 |
67-
| Linea Testnet | 59140 |
68-
| Linea | 59144 |
69-
| Scroll Alpha | 534352 |
70-
| zkSync Era | 324 |
71-
| zkSync Era Testnet | 280 |
72-
| Mantle | 5000 |
73-
| Mantle Testnet | 5001 |
16+
| Chain | Chain ID |
17+
| --------------------- | ---------- |
18+
| Mainnet | 1 |
19+
| Ropsten | 3 |
20+
| Rinkeby | 4 |
21+
| Görli | 5 |
22+
| Optimism | 10 |
23+
| Kovan | 42 |
24+
| Matic | 137 |
25+
| KovanOptimism | 69 |
26+
| xDai | 100 |
27+
| xDaiTestnet | 10200 |
28+
| GoerliOptimism | 420 |
29+
| Arbitrum | 42161 |
30+
| RinkebyArbitrum | 421611 |
31+
| GoerliArbitrum | 421613 |
32+
| Mumbai | 80001 |
33+
| Sepolia | 11155111 |
34+
| AvalancheMainnet | 43114 |
35+
| AvalancheFuji | 43113 |
36+
| FantomTestnet | 4002 |
37+
| Fantom | 250 |
38+
| BSC | 56 |
39+
| BSC_Testnet | 97 |
40+
| Moonbeam | 1284 |
41+
| Moonriver | 1285 |
42+
| MoonbaseAlphaTestnet | 1287 |
43+
| Harmony | 1666600000 |
44+
| Cronos | 25 |
45+
| Fuse | 122 |
46+
| SongbirdCanaryNetwork | 19 |
47+
| CostonTestnet | 16 |
48+
| Boba | 288 |
49+
| Aurora | 1313161554 |
50+
| Astar | 592 |
51+
| OKC | 66 |
52+
| Heco | 128 |
53+
| Metis | 1088 |
54+
| RSK | 30 |
55+
| RSKTestnet | 31 |
56+
| Evmos | 9001 |
57+
| EvmosTestnet | 9000 |
58+
| Thundercore | 108 |
59+
| ThundercoreTestnet | 18 |
60+
| Oasis | 26863 |
61+
| Celo | 42220 |
62+
| Godwoken | 71402 |
63+
| GodwokenTestnet | 71401 |
64+
| Klatyn | 8217 |
65+
| Milkomeda | 2001 |
66+
| KCC | 321 |
67+
| Etherlite | 111 |
68+
| Linea Testnet | 59140 |
69+
| Linea | 59144 |
70+
| Scroll Alpha | 534352 |
71+
| zkSync Era | 324 |
72+
| zkSync Era Testnet | 280 |
73+
| Shibarium | 109 |
74+
| Mantle | 5000 |
75+
| Mantle Testnet | 5001 |
76+
| Base | 8453 |
77+
| Base Testnet | 84531 |
78+
| PolygonZkEvm | 1101 |
79+
| PolygonZkEvmTestnet | 1442 |
80+
| Zora | 7777777 |
81+
| Zora Testnet | 999 |
7482

7583
## Installation
7684

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-multicall",
3-
"version": "2.20.0",
3+
"version": "2.21.0",
44
"description": "Multicall allows multiple smart contract constant function calls to be grouped into a single call and the results aggregated into a single result",
55
"main": "dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

src/enums/networks.ts

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export enum Networks {
88
matic = 137,
99
kovanOptimism = 69,
1010
xdai = 100,
11+
xDaiTestnet = 10200,
1112
goerliOptimism = 420,
1213
arbitrum = 42161,
1314
rinkebyArbitrum = 421611,
@@ -56,4 +57,10 @@ export enum Networks {
5657
shibarium = 109,
5758
mantle = 5000,
5859
mantleTestnet = 5001,
60+
base = 8453,
61+
baseTestnet = 84531,
62+
polygonZkEvm = 1101,
63+
polygonZkEvmTestnet = 1442,
64+
zora = 7777777,
65+
zoraTestnet = 999,
5966
}

src/multicall.ts

+7
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ export class Multicall {
555555
case Networks.matic:
556556
case Networks.kovanOptimism:
557557
case Networks.xdai:
558+
case Networks.xDaiTestnet:
558559
case Networks.goerliOptimism:
559560
case Networks.arbitrum:
560561
case Networks.rinkebyArbitrum:
@@ -598,6 +599,12 @@ export class Multicall {
598599
case Networks.linea:
599600
case Networks.mantle:
600601
case Networks.mantleTestnet:
602+
case Networks.base:
603+
case Networks.baseTestnet:
604+
case Networks.polygonZkEvm:
605+
case Networks.polygonZkEvmTestnet:
606+
case Networks.zora:
607+
case Networks.zoraTestnet:
601608
return '0xcA11bde05977b3631167028862bE2a173976CA11';
602609
case Networks.etherlite:
603610
return '0x21681750D7ddCB8d1240eD47338dC984f94AF2aC';

0 commit comments

Comments
 (0)