From 2e3aade808d8ee22bf1fba7e1cfd33bd6e9e4414 Mon Sep 17 00:00:00 2001 From: Georgios Jason Efstathiou Date: Tue, 15 Apr 2025 10:16:34 +0200 Subject: [PATCH 1/2] add zksync era sepolia --- src/common/commonTypeDef.ts | 5 +++-- src/common/constants.ts | 1 + src/utils/chainSchemaMappings.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/commonTypeDef.ts b/src/common/commonTypeDef.ts index ab874c5..4c7d3a4 100644 --- a/src/common/commonTypeDef.ts +++ b/src/common/commonTypeDef.ts @@ -114,13 +114,13 @@ const commonTypeDef = gql` } union SupportItem = - DripListSupport + | DripListSupport | ProjectSupport | OneTimeDonationSupport | StreamSupport union Support = - DripListSupport + | DripListSupport | ProjectSupport | OneTimeDonationSupport | StreamSupport @@ -137,6 +137,7 @@ const commonTypeDef = gql` POLYGON_AMOY BASE_SEPOLIA FILECOIN + ZKSYNC_ERA_SEPOLIA METIS LOCALTESTNET OPTIMISM diff --git a/src/common/constants.ts b/src/common/constants.ts index f240363..a1cb335 100644 --- a/src/common/constants.ts +++ b/src/common/constants.ts @@ -38,4 +38,5 @@ export const DB_SCHEMAS = [ 'metis', 'localtestnet', 'optimism', + 'zksync_era_sepolia', ] as const; diff --git a/src/utils/chainSchemaMappings.ts b/src/utils/chainSchemaMappings.ts index d95c940..ec4f5a5 100644 --- a/src/utils/chainSchemaMappings.ts +++ b/src/utils/chainSchemaMappings.ts @@ -11,6 +11,7 @@ export const dbSchemaToChain: Record = { optimism: SupportedChain.OPTIMISM, metis: SupportedChain.METIS, localtestnet: SupportedChain.LOCALTESTNET, + zksync_era_sepolia: SupportedChain.ZKSYNC_ERA_SEPOLIA, }; export const chainToDbSchema: Record = { @@ -23,4 +24,5 @@ export const chainToDbSchema: Record = { [SupportedChain.METIS]: 'metis', [SupportedChain.LOCALTESTNET]: 'localtestnet', [SupportedChain.OPTIMISM]: 'optimism', + [SupportedChain.ZKSYNC_ERA_SEPOLIA]: 'zksync_era_sepolia', }; From f0373e00251d77ea146b86cba363a6ff419dfe1b Mon Sep 17 00:00:00 2001 From: Georgios Jason Efstathiou Date: Tue, 15 Apr 2025 10:17:43 +0200 Subject: [PATCH 2/2] add missing value --- src/common/dripsContracts.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/dripsContracts.ts b/src/common/dripsContracts.ts index 783f34d..d478134 100644 --- a/src/common/dripsContracts.ts +++ b/src/common/dripsContracts.ts @@ -72,6 +72,11 @@ const chainConfigs: Record< addressDriverAddress: '0x04693D13826a37dDdF973Be4275546Ad978cb9EE', repoDriverAddress: '0xe75f56B26857cAe06b455Bfc9481593Ae0FB4257', }, + ZKSYNC_ERA_SEPOLIA: { + dripsAddress: '0xd320F59F109c618b19707ea5C5F068020eA333B3', + addressDriverAddress: '0x0557b6BA791A24df0Fa6167E1Dc304F403ee777A', + repoDriverAddress: '0x8bDC23877A23Ce59fEF1712A1486810d9A6E2B94', + }, }; const { rpcConfig } = appSettings;