Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pulsechain and Flare support #71

Merged
merged 2 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ethereum-multicall is fully written in typescript so has full compile time suppo
The below networks are supported by default, and custom networks can be supported by providing your own instance of a deployed Multicall contract.

| Chain | Chain ID |
| --------------------- | ---------- |
|-----------------------|------------|
| Mainnet | 1 |
| Ropsten | 3 |
| Rinkeby | 4 |
Expand Down Expand Up @@ -79,6 +79,8 @@ The below networks are supported by default, and custom networks can be supporte
| PolygonZkEvmTestnet | 1442 |
| Zora | 7777777 |
| Zora Testnet | 999 |
| Flare Mainnet | 14 |
| Pulsechain Mainnet | 369 |

## Installation

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-multicall",
"version": "2.21.0",
"version": "2.22.0",
"description": "Multicall allows multiple smart contract constant function calls to be grouped into a single call and the results aggregated into a single result",
"main": "dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand All @@ -13,7 +13,8 @@
"watch": "tsc --module commonjs --outDir dist/cjs --watch",
"test": "npm test",
"gen-multicall-abi": "abi-types-generator ./src/ABI/multicall-abi.json --output=./src/ABI/types --name=multicall --provider=ethers",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"prepare": "npm run build"
},
"author": "joshstevens19@hotmail.co.uk",
"license": "ISC",
Expand Down
2 changes: 2 additions & 0 deletions src/enums/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ export enum Networks {
polygonZkEvmTestnet = 1442,
zora = 7777777,
zoraTestnet = 999,
flare = 14,
pulsechain = 369,
}
2 changes: 2 additions & 0 deletions src/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ export class Multicall {
case Networks.polygonZkEvmTestnet:
case Networks.zora:
case Networks.zoraTestnet:
case Networks.flare:
case Networks.pulsechain:
return '0xcA11bde05977b3631167028862bE2a173976CA11';
case Networks.etherlite:
return '0x21681750D7ddCB8d1240eD47338dC984f94AF2aC';
Expand Down