Skip to content

Commit

Permalink
Added Optimism TokenDistro
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Aug 13, 2023
1 parent c3c3071 commit abd2792
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ GNOSIS_POLL_TIME=
GOERLI_PROVIDER=
GOERLI_PROVIDER_WS=
GOERLI_POLL_TIME=
OPTIMISM_PROVIDER=
OPTIMISM_PROVIDER_WS=
OPTIMISM_POLL_TIME=
OPTIMISM_GOERLI_PROVIDER=
OPTIMISM_GOERLI_PROVIDER_WS=
OPTIMISM_GOERLI_POLL_TIME=
Expand Down
17 changes: 16 additions & 1 deletion monitorConfig/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const config: Config = {
contracts: [
{
address: '0xD93d3bDBa18ebcB3317a57119ea44ed2Cf41C2F2',
title: 'GIVPower',
title: 'Gnosis GIVPower',
startBlock: 24461201,
type: ContractType.GIVpower,
},
Expand All @@ -29,5 +29,20 @@ export const config: Config = {
},
],
},
{
networkId: 10, // Optimism
nodeUrl: process.env.OPTIMISM_PROVIDER as string,
nodeUrlWS: process.env.OPTIMISM_PROVIDER_WS,
pollTimeMS: Number(process.env.OPTIMISM_POLL_TIME) || 30_000, // 30 Seconds
maxFetchBlockRange: 1_000,
contracts: [
{
address: '0xE3Ac7b3e6B4065f4765d76fDC215606483BF3bD1',
title: 'Optimism Token Distro',
startBlock: 108004007,
type: ContractType.TokenDistro,
},
],
},
],
};

0 comments on commit abd2792

Please sign in to comment.