Skip to content

Issue/415 prevent duplicate webhooks#463

Open
originaldefiboy wants to merge 3 commits intoSoroScan:mainfrom
originaldefiboy:issue/415-prevent-duplicate-webhooks
Open

Issue/415 prevent duplicate webhooks#463
originaldefiboy wants to merge 3 commits intoSoroScan:mainfrom
originaldefiboy:issue/415-prevent-duplicate-webhooks

Conversation

@originaldefiboy
Copy link
Copy Markdown
Contributor

@originaldefiboy originaldefiboy commented Apr 29, 2026

Closes #415


- Add db_index=True to contract_address field in ContractEvent model
- Add migration 0041 to add the field with index

Fixes SoroScan#406
- Store process start time in IngestConfig.start_time on boot
- Expose uptime_seconds and uptime (DH:M:S format) in /api/health/
- Add tests to verify uptime is present and positive

Fixes SoroScan#414
- Add UniqueConstraint for (target_url, contract) on WebhookSubscription
- Add migration 0042 to add the constraint
- Add validation in serializer to check for duplicates before save
- Return friendly error message on duplicate attempt

Fixes SoroScan#415
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@originaldefiboy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Prevent duplicate webhook subscriptions for the same URL and contract

1 participant