Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
matteenm committed Oct 4, 2024
1 parent 8fa2adb commit 05a7f3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"startBlock": 12637075
}
},
"zora": {
"zora-mainnet": {
"Factory": {
"address": "0x7145F8aeef1f6510E92164038E1B6F8cB2c42Cbb",
"startBlock": 10320368
Expand Down
6 changes: 3 additions & 3 deletions src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,7 +39,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pool
network: mainnet
network: zora-mainnet
source:
abi: Pool
mapping:
Expand Down

0 comments on commit 05a7f3a

Please sign in to comment.