diff --git a/networks.json b/networks.json index d49be409..1a9d863d 100644 --- a/networks.json +++ b/networks.json @@ -59,7 +59,7 @@ "startBlock": 12637075 } }, - "zora": { + "zora-mainnet": { "Factory": { "address": "0x7145F8aeef1f6510E92164038E1B6F8cB2c42Cbb", "startBlock": 10320368 diff --git a/src/utils/chains.ts b/src/utils/chains.ts index 096d3b39..a0a86154 100644 --- a/src/utils/chains.ts +++ b/src/utils/chains.ts @@ -14,7 +14,7 @@ export enum ChainId { MATIC = 137, OPTIMISM = 10, ZKSYNC_ERA = 324, - ZORA = 7777777, + ZORA_MAINNET = 7777777, } // subgraph does not support string enums, hence these constants @@ -28,7 +28,7 @@ const MAINNET_NETWORK_NAME = 'mainnet' const MATIC_NETWORK_NAME = 'matic' const OPTIMISM_NETWORK_NAME = 'optimism' const ZKSYNC_ERA_NETWORK_NAME = 'zksync-era' -const ZORA_NETWORK_NAME = 'zora' +const ZORA_MAINNET_NETWORK_NAME = 'zora-mainnet' // Note: All token and pool addresses should be lowercased! export class SubgraphConfig { @@ -392,7 +392,7 @@ export function getSubgraphConfig(): SubgraphConfig { poolsToSkip: [], poolMappings: [], } - } else if (selectedNetwork == ZORA_NETWORK_NAME) { + } else if (selectedNetwork == ZORA_MAINNET_NETWORK_NAME) { return { factoryAddress: '0x7145f8aeef1f6510e92164038e1b6f8cb2c42cbb', stablecoinWrappedNativePoolAddress: '0xbc59f8f3b275aa56a90d13bae7cce5e6e11a3b17', // WETH/USDzC 3% pool diff --git a/subgraph.yaml b/subgraph.yaml index 395f99b4..6427135f 100644 --- a/subgraph.yaml +++ b/subgraph.yaml @@ -9,11 +9,11 @@ features: dataSources: - kind: ethereum/contract name: Factory - network: mainnet + network: zora-mainnet source: - address: '0x1F98431c8aD98523631AE4a59f267346ea31F984' + address: "0x7145F8aeef1f6510E92164038E1B6F8cB2c42Cbb" abi: Factory - startBlock: 12369621 + startBlock: 10320368 mapping: kind: ethereum/events apiVersion: 0.0.7 @@ -39,7 +39,7 @@ dataSources: templates: - kind: ethereum/contract name: Pool - network: mainnet + network: zora-mainnet source: abi: Pool mapping: