Skip to content

feat: Add filters to Contract Subscriptions #543

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

Merged
merged 9 commits into from
Jun 18, 2024
Merged

feat: Add filters to Contract Subscriptions #543

merged 9 commits into from
Jun 18, 2024

Conversation

arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Jun 4, 2024

PR-Codex overview

The focus of this PR is to enhance contract subscriptions by adding filtering capabilities for event logs and transaction receipts.

Detailed summary

  • Added filterEvents and filterFunctions columns to contract_subscriptions table.
  • Updated data models and schemas to support filtering.
  • Modified queue tasks to handle filtered data processing.
  • Improved error handling and request validation in subscription creation.

The following files were skipped due to too many changes: src/prisma/schema.prisma, src/worker/tasks/processTransactionReceiptsWorker.ts, src/worker/tasks/processEventLogsWorker.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@@ -103,7 +116,7 @@ export const createChainIndexerTask = async (args: {
}
},
{
timeout: 5 * 60000, // 3 minutes timeout
timeout: 60 * 1000, // 1 minute timeout
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowering timeout since this worker simply enqueues jobs now.

@zeet-co zeet-co bot temporarily deployed to feature/contract_indexer June 18, 2024 01:44 Inactive
Copy link
Contributor

@IDubuque IDubuque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synced over all the changes. lgtm

@arcoraven arcoraven merged commit dbf0645 into main Jun 18, 2024
6 checks passed
@arcoraven arcoraven deleted the ph/csFilters branch June 18, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants