From 324f8ea6b0da4ac56a6f4a97dd72d674697189de Mon Sep 17 00:00:00 2001 From: xiaoch05 Date: Tue, 5 Nov 2024 11:44:16 +0800 Subject: [PATCH] fix ci --- package.json | 6 +++--- patch/constants.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2574e30..5ad0bdd 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "description": "Generate Helix conf", "scripts": { "codegen": "zx scripts/generate/index.mjs", - "build:ts": "npm run codegen -- --language=ts --verbose && cd generated/typescript && npm i && npm run build", + "build:ts": "npm run codegen -- --language=ts --verbose && npm run patch && cd generated/typescript && npm i && npm run build", "patch": "cp patch/constants.js generated/typescript/node_modules/ethers-multicall-provider/lib/constants.js", - "test:ts": "npm run build:ts && npm run patch && cd generated/typescript && npm run test", - "test:ts:ci": "npm run build:ts && npm run patch && cd generated/typescript && npm run test:ci" + "test:ts": "npm run build:ts && cd generated/typescript && npm run test", + "test:ts:ci": "npm run build:ts && cd generated/typescript && npm run test:ci" }, "author": "", "license": "MIT", diff --git a/patch/constants.js b/patch/constants.js index 586b2c2..84acae8 100644 --- a/patch/constants.js +++ b/patch/constants.js @@ -6,16 +6,18 @@ exports.multicall2Address = "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696"; // same address on all networks: https://www.multicall3.com/deployments exports.multicall3Address = "0xcA11bde05977b3631167028862bE2a173976CA11"; exports.multicall3ZkSyncAddress = "0xF9cda624FBC7e059355ce98a31693d299FACd963"; +exports.multicall3MorphAddress = "0x876A4f6eCF13EEb101F9E75FCeF58f19Ff383eEB"; exports.multicallAddresses = new Set([ exports.multicall2Address.toLowerCase(), exports.multicall3Address.toLowerCase(), exports.multicall3ZkSyncAddress.toLowerCase(), + exports.multicall3MorphAddress.toLowerCase(), ]); exports.multicall3ChainAddress = { 280: exports.multicall3ZkSyncAddress, // zkSync Era Goerli 300: exports.multicall3ZkSyncAddress, // zkSync Era Sepolia 324: exports.multicall3ZkSyncAddress, // zkSync Era - 2818: "0x876A4f6eCF13EEb101F9E75FCeF58f19Ff383eEB", + 2818: exports.multicall3MorphAddress, }; exports.multicall3DeploymentBlockNumbers = { 1: 14353601, // Mainnet