From abd2792bd01938c802fab1072622057b4adaa4f3 Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Sun, 13 Aug 2023 11:15:51 +0330 Subject: [PATCH] Added Optimism TokenDistro --- config/example.env | 3 +++ monitorConfig/production.ts | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/config/example.env b/config/example.env index 274a025..e6c7285 100644 --- a/config/example.env +++ b/config/example.env @@ -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= diff --git a/monitorConfig/production.ts b/monitorConfig/production.ts index eea8274..ddff47c 100644 --- a/monitorConfig/production.ts +++ b/monitorConfig/production.ts @@ -17,7 +17,7 @@ export const config: Config = { contracts: [ { address: '0xD93d3bDBa18ebcB3317a57119ea44ed2Cf41C2F2', - title: 'GIVPower', + title: 'Gnosis GIVPower', startBlock: 24461201, type: ContractType.GIVpower, }, @@ -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, + }, + ], + }, ], };