-
Notifications
You must be signed in to change notification settings - Fork 85
Cron-based Automated Claim Expiration Handler #218
Copy link
Copy link
Open
Labels
BackendStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Complexity Score: 100
Description
Automatically clean up expired claims and update the contract/database state when a claim's expiresAt passes.
Requirements
- Implement a
@Cronjob inClaimsService(e.g., running every hour). - Identify
requestedorverifiedclaims whereexpiresAt < now. - Update database status to
archivedorexpired. - Trigger the onchain
revokeorrefundlogic viaOnchainServiceif applicable. - Log cleanup results in the
AuditLog.
Tech Stack
- NestJS Scheduler, Prisma, BullMQ.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BackendStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed