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

Support zkevm chain #25

Merged
merged 3 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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: 10, // ZKEVM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 is optimism mainnet network id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aminlatifi Thanks, fixed and replaced with 1101(and 2442 for staging)

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: 10, // ZKEVM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likewise

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,
},
],
},
],
};