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/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; 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', };