From ba1e002ef0ca9f6e4f8ac5c9f443f9b04a349acc Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Mon, 26 Aug 2024 11:29:34 +0330 Subject: [PATCH 1/3] Support zkevm chain related to #23 --- monitorConfig/production.ts | 21 +++++++++++++++++++++ monitorConfig/staging.ts | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/monitorConfig/production.ts b/monitorConfig/production.ts index 73d717d..83f0588 100644 --- a/monitorConfig/production.ts +++ b/monitorConfig/production.ts @@ -50,5 +50,26 @@ export const config: Config = { }, ], }, + { + networkId: 10, // ZKEVM + nodeUrl: process.env.ZKEVM_PROVIDER as string, + nodeUrlWS: process.env.ZKEVM_PROVIDER_WS, + pollTimeMS: Number(process.env.ZKEVM_POLL_TIME) || 30_000, // 30 Seconds + maxFetchBlockRange: 1_000, + contracts: [ + { + address: '0xc790f82bf6f8709aa4a56dc11afad7af7c2a9867', + title: 'ZKEVM GIVPower', + startBlock: 15130779, + type: ContractType.GIVpower, + }, + { + address: '0x4fB9B10ECDe1b048DBC79aBEAB3793edc93a0d54', + title: 'ZKEVM Token Distro', + startBlock: 15130401, + type: ContractType.TokenDistro, + }, + ], + }, ], }; diff --git a/monitorConfig/staging.ts b/monitorConfig/staging.ts index b52b021..9f4479a 100644 --- a/monitorConfig/staging.ts +++ b/monitorConfig/staging.ts @@ -72,5 +72,26 @@ export const config: Config = { }, ], }, + { + networkId: 10, // ZKEVM + nodeUrl: process.env.ZKEVM_PROVIDER as string, + nodeUrlWS: process.env.ZKEVM_PROVIDER_WS, + pollTimeMS: Number(process.env.ZKEVM_POLL_TIME) || 30_000, // 30 Seconds + maxFetchBlockRange: 1_000, + contracts: [ + { + address: '0x7E9f30A74fCDf035018bc007f9930aA171863E33', + title: 'ZKEVM GIVPower', + startBlock: 5386646, + type: ContractType.GIVpower, + }, + { + address: '0x2Df3e67Be4e441Cddd2d29c3d41DFd7D516f18e6', + title: 'ZKEVM Token Distro', + startBlock: 5356116, + type: ContractType.TokenDistro, + }, + ], + }, ], }; From f0f40aae55e26b0222ec402e65d68a70ddfc12e5 Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Tue, 27 Aug 2024 13:26:18 +0330 Subject: [PATCH 2/3] Fix zkevm networkId --- monitorConfig/production.ts | 2 +- monitorConfig/staging.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitorConfig/production.ts b/monitorConfig/production.ts index 83f0588..1ce4b0a 100644 --- a/monitorConfig/production.ts +++ b/monitorConfig/production.ts @@ -51,7 +51,7 @@ export const config: Config = { ], }, { - networkId: 10, // ZKEVM + networkId: 1101, // ZKEVM nodeUrl: process.env.ZKEVM_PROVIDER as string, nodeUrlWS: process.env.ZKEVM_PROVIDER_WS, pollTimeMS: Number(process.env.ZKEVM_POLL_TIME) || 30_000, // 30 Seconds diff --git a/monitorConfig/staging.ts b/monitorConfig/staging.ts index 9f4479a..3e853d8 100644 --- a/monitorConfig/staging.ts +++ b/monitorConfig/staging.ts @@ -73,7 +73,7 @@ export const config: Config = { ], }, { - networkId: 10, // ZKEVM + networkId: 1101, // ZKEVM nodeUrl: process.env.ZKEVM_PROVIDER as string, nodeUrlWS: process.env.ZKEVM_PROVIDER_WS, pollTimeMS: Number(process.env.ZKEVM_POLL_TIME) || 30_000, // 30 Seconds From ca4292375820574de62f3cf9ccb7fe1e4d6942fd Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Tue, 27 Aug 2024 13:27:15 +0330 Subject: [PATCH 3/3] Fix zkevm networkId --- monitorConfig/staging.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitorConfig/staging.ts b/monitorConfig/staging.ts index 3e853d8..a95d6e8 100644 --- a/monitorConfig/staging.ts +++ b/monitorConfig/staging.ts @@ -73,7 +73,7 @@ export const config: Config = { ], }, { - networkId: 1101, // ZKEVM + networkId: 2442, // ZKEVM CARDONA nodeUrl: process.env.ZKEVM_PROVIDER as string, nodeUrlWS: process.env.ZKEVM_PROVIDER_WS, pollTimeMS: Number(process.env.ZKEVM_POLL_TIME) || 30_000, // 30 Seconds