Skip to content

Implement IP Commitment Expiry with Grace Period #406

@fejilaup-cloud

Description

@fejilaup-cloud

Description

IP commitments should have an expiry, but inventors should have a grace period to renew before permanent deletion. This prevents accidental loss of IP records.

Tasks

  • Add expiry_timestamp: u64 and grace_period_seconds: u64 to IpRecord
  • Implement renew_ip_commitment(env, ip_id, new_expiry) -> bool — owner-only
  • Implement cleanup_expired_ips(env) — anyone can call to remove expired IPs after grace period
  • Add tests for expiry, grace period, and cleanup
  • Emit events for renewal and cleanup

Priority: Medium | Estimated Time: 2 hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions