Skip to content

Commit

Permalink
Merge pull request #25 from Giveth/23_support_zkevm_chain
Browse files Browse the repository at this point in the history
Support zkevm chain
  • Loading branch information
mohammadranjbarz authored Aug 28, 2024
2 parents f670551 + ca42923 commit 6f01bbc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions monitorConfig/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,26 @@ export const config: Config = {
},
],
},
{
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
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,
},
],
},
],
};
21 changes: 21 additions & 0 deletions monitorConfig/staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,26 @@ export const config: Config = {
},
],
},
{
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
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,
},
],
},
],
};

0 comments on commit 6f01bbc

Please sign in to comment.