Skip to content

feat: add IP expiry, grace period, renewal and cleanup#483

Open
levi0005 wants to merge 1 commit into
AtomicIP:mainfrom
levi0005:feature/ip-expiry-grace-period-v3
Open

feat: add IP expiry, grace period, renewal and cleanup#483
levi0005 wants to merge 1 commit into
AtomicIP:mainfrom
levi0005:feature/ip-expiry-grace-period-v3

Conversation

@levi0005
Copy link
Copy Markdown
Contributor

closes #406

  • Add expiry_timestamp and grace_period_seconds fields to IpRecord
  • Implement set_ip_expiry(ip_id, expiry_timestamp, grace_period_seconds) owner-only
  • Implement renew_ip_commitment(ip_id, new_expiry) -> bool owner-only; emits ip_renew event
  • Implement cleanup_expired_ips(ip_ids) permissionless; emits ip_clean event per removal
  • Add 8 tests covering expiry, grace period, cleanup, and events
  • Remove all test_snapshots files

- Add expiry_timestamp and grace_period_seconds fields to IpRecord
- Implement set_ip_expiry(ip_id, expiry_timestamp, grace_period_seconds) owner-only
- Implement renew_ip_commitment(ip_id, new_expiry) -> bool owner-only; emits ip_renew event
- Implement cleanup_expired_ips(ip_ids) permissionless; emits ip_clean event per removal
- Add 8 tests covering expiry, grace period, cleanup, and events
- Remove all test_snapshots files
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.

Implement IP Commitment Expiry with Grace Period

1 participant