Skip to content

feat: implement plan timeout verification methods#879

Merged
ONEONUORA merged 2 commits into
Fracverse:masterfrom
Zarmaijemimah:feat/plan-timeout-verification
Jun 28, 2026
Merged

feat: implement plan timeout verification methods#879
ONEONUORA merged 2 commits into
Fracverse:masterfrom
Zarmaijemimah:feat/plan-timeout-verification

Conversation

@Zarmaijemimah

@Zarmaijemimah Zarmaijemimah commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Closes #832


feat: implement plan timeout verification methods

- Add is_plan_timed_out() query method to check if grace period has elapsed
- Add get_timeout_deadline() method to return timeout timestamp
- Both methods read ledger timestamp and compare with last_ping + grace_period
- Existing claim() method already validates timeout before allowing claims
- Add comprehensive test coverage (10 new tests):
  * Test timeout before, at, and after grace period
  * Test timeout behavior after ping resets timer
  * Test claim rejection/acceptance based on timeout status
  * Test error handling for non-existent plans

Acceptance Criteria Met:
 Exposes query methods for external reads
 Reads current ledger timestamp
 Compares with last_ping + grace_period
 Returns boolean status
 Rejects claim operations if grace period has not elapsed
@Zarmaijemimah

Copy link
Copy Markdown
Contributor Author

close #832

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Zarmaijemimah 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

@ONEONUORA

Copy link
Copy Markdown
Contributor

@Zarmaijemimah
Make your implementation to pass CI pipeline checks

@ONEONUORA

Copy link
Copy Markdown
Contributor

@Zarmaijemimah
Update on this Pr
you will be unassign in 6hrs

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @Zarmaijemimah

Thank you for your contribution

@ONEONUORA ONEONUORA merged commit f8a3f2d into Fracverse:master Jun 28, 2026
4 checks passed
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.

[Contracts] Implement Grace Period Verification Checks

2 participants