Skip to content

Cron-based Automated Claim Expiration Handler #218

@Cedarich

Description

@Cedarich

Complexity Score: 100

Description

Automatically clean up expired claims and update the contract/database state when a claim's expiresAt passes.

Requirements

  • Implement a @Cron job in ClaimsService (e.g., running every hour).
  • Identify requested or verified claims where expiresAt < now.
  • Update database status to archived or expired.
  • Trigger the onchain revoke or refund logic via OnchainService if applicable.
  • Log cleanup results in the AuditLog.

Tech Stack

  • NestJS Scheduler, Prisma, BullMQ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions