Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Rollback Only Satsuma tmp fix #35

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ export async function initComponents(): Promise<AppComponents> {
l2CollectionsSubGraphUrl
)

const onlySatsumaL2CollectionsSubGraphUrl = await config.getString('ONLY_SATSUMA_COLLECTIONS_L2_SUBGRAPH_URL')
const onlySatsumaL2CollectionsSubGraph = await createSubgraphComponent(
{ config, logs, metrics, fetch },
onlySatsumaL2CollectionsSubGraphUrl || l2CollectionsSubGraphUrl
)

const rentalsSubGraphUrl = await config.requireString('RENTALS_SUBGRAPH_URL')
const rentalsSubGraph = await createSubgraphComponent({ config, logs, metrics, fetch }, rentalsSubGraphUrl)

Expand All @@ -91,10 +85,7 @@ export async function initComponents(): Promise<AppComponents> {
// Create the producer registry and add all the producers
const producerRegistry = await createProducerRegistry({ logs })
producerRegistry.addProducer(
await createProducer(
{ logs, database, eventPublisher },
await itemSoldProducer({ config, l2CollectionsSubGraph: onlySatsumaL2CollectionsSubGraph }) // Temp fix to only listen to satsuma until the Subquid has the fix too
)
await createProducer({ logs, database, eventPublisher }, await itemSoldProducer({ config, l2CollectionsSubGraph }))
)
producerRegistry.addProducer(
await createProducer({ logs, database, eventPublisher }, await itemPublishedProducer({ l2CollectionsSubGraph }))
Expand Down
Loading