Skip to content

Commit 9d2142c

Browse files
committed
support avax
1 parent 12451b6 commit 9d2142c

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ by default it looks at your network from the provider you passed in and makes th
476476
| mumbai | `0xe9939e7Ea7D7fb619Ac57f648Da7B1D425832631` |
477477
| matic | `0x275617327c958bD06b5D6b871E7f491D76113dd8` |
478478
| arbitrum | `0x7a7443f8c577d537f1d8cd4a629d40a3148dd7ee` |
479+
| avalaunche fuji | `0x3D015943d2780fE97FE3f69C97edA2CCC094f78c` |
480+
| avalaunche mainnet | `0xed386Fe855C1EFf2f843B910923Dd8846E45C5A4` |
479481
480482
If you wanted this to point at a different multicall contract address just pass that in the options when creating the multicall instance, example:
481483

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-multicall",
3-
"version": "2.8.0",
3+
"version": "2.9.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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export enum Networks {
99
xdai = 100,
1010
matic = 137,
1111
mumbai = 80001,
12+
avalauncheFuji = 43113,
13+
avalauncheMainnet = 43114,
1214
etherlite = 111,
1315
arbitrum = 42161,
1416
}

src/multicall.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,10 @@ export class Multicall {
522522
return '0x21681750D7ddCB8d1240eD47338dC984f94AF2aC';
523523
case Networks.arbitrum:
524524
return '0x7a7443f8c577d537f1d8cd4a629d40a3148dd7ee';
525+
case Networks.avalauncheFuji:
526+
return '0x3D015943d2780fE97FE3f69C97edA2CCC094f78c';
527+
case Networks.avalauncheMainnet:
528+
return '0xed386Fe855C1EFf2f843B910923Dd8846E45C5A4';
525529
default:
526530
throw new Error(
527531
`Network - ${network} is not got a contract defined it only supports mainnet, kovan, rinkeby, bsc and ropsten`

0 commit comments

Comments
 (0)