Socket
Socket
Sign inDemoInstall

ethereum-multicall

Package Overview
Dependencies
47
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.18.0 to 2.19.0

5

dist/cjs/enums/networks.d.ts

@@ -52,3 +52,6 @@ export declare enum Networks {

lineaTestnet = 59140,
linea = 59144
linea = 59144,
scroll = 534352,
zkSyncEra = 324,
zkSyncEraTestnet = 280
}

3

dist/cjs/enums/networks.js

@@ -57,2 +57,5 @@ "use strict";

Networks[Networks["linea"] = 59144] = "linea";
Networks[Networks["scroll"] = 534352] = "scroll";
Networks[Networks["zkSyncEra"] = 324] = "zkSyncEra";
Networks[Networks["zkSyncEraTestnet"] = 280] = "zkSyncEraTestnet";
})(Networks = exports.Networks || (exports.Networks = {}));

@@ -454,5 +454,9 @@ "use strict";

case enums_1.Networks.linea:
case enums_1.Networks.scroll:
return '0xcA11bde05977b3631167028862bE2a173976CA11';
case enums_1.Networks.etherlite:
return '0x21681750D7ddCB8d1240eD47338dC984f94AF2aC';
case enums_1.Networks.zkSyncEra:
case enums_1.Networks.zkSyncEraTestnet:
return '0xF9cda624FBC7e059355ce98a31693d299FACd963';
default:

@@ -459,0 +463,0 @@ throw new Error("Network - " + network + " doesn't have a multicall contract address defined. Please check your network or deploy your own contract on it.");

@@ -52,3 +52,6 @@ export declare enum Networks {

lineaTestnet = 59140,
linea = 59144
linea = 59144,
scroll = 534352,
zkSyncEra = 324,
zkSyncEraTestnet = 280
}

@@ -54,2 +54,5 @@ export var Networks;

Networks[Networks["linea"] = 59144] = "linea";
Networks[Networks["scroll"] = 534352] = "scroll";
Networks[Networks["zkSyncEra"] = 324] = "zkSyncEra";
Networks[Networks["zkSyncEraTestnet"] = 280] = "zkSyncEraTestnet";
})(Networks || (Networks = {}));

@@ -451,5 +451,9 @@ var __assign = (this && this.__assign) || function () {

case Networks.linea:
case Networks.scroll:
return '0xcA11bde05977b3631167028862bE2a173976CA11';
case Networks.etherlite:
return '0x21681750D7ddCB8d1240eD47338dC984f94AF2aC';
case Networks.zkSyncEra:
case Networks.zkSyncEraTestnet:
return '0xF9cda624FBC7e059355ce98a31693d299FACd963';
default:

@@ -456,0 +460,0 @@ throw new Error("Network - " + network + " doesn't have a multicall contract address defined. Please check your network or deploy your own contract on it.");

{
"name": "ethereum-multicall",
"version": "2.18.0",
"version": "2.19.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",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -14,3 +14,3 @@ [![npm version](https://badge.fury.io/js/ethereum-multicall.svg)](https://badge.fury.io/js/ethereum-multicall)

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

@@ -70,2 +70,5 @@ | Chain | Chain ID |

| Linea | 59144 |
| Scroll | 534352 |
| zkSync Era | 324 |
| zkSync Era Testnet | 280 |

@@ -92,3 +95,3 @@ ## Installation

> Due to signature overloading, multiple functions can have the same name. The first function specifed in the ABI will be bound to its name. To access overloaded functions, use the full typed signature of the functions (e.g. contract["foobar(address,uint256)"]).
> Due to signature overloading, multiple functions can have the same name. The first function specified in the ABI will be bound to its name. To access overloaded functions, use the full typed signature of the functions (e.g. contract["foobar(address,uint256)"]).

@@ -381,3 +384,3 @@ So, when creating the contract call context, under the calls array property we should have that in mind and use the method signature rather than the method name. E.g.

If you want store any context or state so you don't need to look back over arrays once you got the result back. it can be stored in `context` within `ContractCallContext`.
If you want to store any context or state so you don't need to look back over arrays once you got the result back. it can be stored in `context` within `ContractCallContext`.

@@ -384,0 +387,0 @@ ```ts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc