Skip to content

Commit

Permalink
Merge pull request #15 from Giveth/staging
Browse files Browse the repository at this point in the history
Add Optimism to production
  • Loading branch information
aminlatifi authored Aug 13, 2023
2 parents 1ef10c4 + 75ff747 commit 918af3c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
7 changes: 6 additions & 1 deletion config/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ GNOSIS_POLL_TIME=
GOERLI_PROVIDER=
GOERLI_PROVIDER_WS=
GOERLI_POLL_TIME=
GOERLI_POLL_TIME=
OPTIMISM_PROVIDER=
OPTIMISM_PROVIDER_WS=
OPTIMISM_POLL_TIME=
OPTIMISM_GOERLI_PROVIDER=
OPTIMISM_GOERLI_PROVIDER_WS=
OPTIMISM_GOERLI_POLL_TIME=
NOTIFICATION_CENTER_BASE_URL=
NOTIFICATION_CENTER_PASSWORD=
NOTIFICATION_CENTER_USERNAME=
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: 26572747,
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,
},
],
},
],
};
24 changes: 23 additions & 1 deletion monitorConfig/staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const config: Config = {
contracts: [
{
address: '0xDAEa66Adc97833781139373DF5B3bcEd3fdda5b1',
title: 'GIVPower',
title: 'Gnosis GIVPower',
startBlock: 24806941,
type: ContractType.GIVpower,
},
Expand Down Expand Up @@ -50,5 +50,27 @@ export const config: Config = {
// },
// ],
// },

{
networkId: 420, // Optimism Goerli
nodeUrl: process.env.OPTIMISM_GOERLI_PROVIDER as string,
nodeUrlWS: process.env.OPTIMISM_GOERLI_PROVIDER_WS,
pollTimeMS: Number(process.env.OPTIMISM_GOERLI_POLL_TIME) || 30_000, // 30 Seconds
maxFetchBlockRange: 1_000,
contracts: [
{
address: '0x632AC305ed88817480d12155A7F1244cC182C298',
title: 'Optimism Görli GIVPower',
startBlock: 12436803,
type: ContractType.GIVpower,
},
{
address: '0x8D2cBce8ea0256bFFBa6fa4bf7CEC46a1d9b43f6',
title: 'Optimism Görli Token Distro',
startBlock: 9371285,
type: ContractType.TokenDistro,
},
],
},
],
};

0 comments on commit 918af3c

Please sign in to comment.