Skip to content

Enforce - #2120

Merged
1nonlypiece merged 4 commits into
Commitlabs-Org:masterfrom
Diamond437rough:enforce
Oct 24, 2026
Merged

Enforce#2120
1nonlypiece merged 4 commits into
Commitlabs-Org:masterfrom
Diamond437rough:enforce

Conversation

@Diamond437rough

Copy link
Copy Markdown
Contributor

Close #2064
Close #2095

- Add require_admin helper to centralize admin checks
- Fix set_grace_period to use stored admin and bound grace period
- Fix deposit_yield_pool to use stored admin instead of caller-supplied
- Replace all admin auth patterns with require_admin helper
- Add InvalidGracePeriod error for values exceeding MAX_DURATION_DAYS
- Add comprehensive admin authorization test suite
- Update README with signature changes and new error code
- Add propose_admin/accept_admin/cancel_admin_proposal for admin handover
- set_admin now alias for propose_admin (breaking behavior change)
- Add get_admin and get_pending_admin view functions
- Update transfer_ownership to create expiring pending offers (7 days)
- Add accept_ownership and cancel_ownership_transfer functions
- Add get_pending_owner view function
- Automatically clear pending ownership on state transitions
- Reject transfers to contract address and self-transfers
- Add NoPendingAdmin, NoPendingTransfer, TransferExpired errors
- Add comprehensive two-step transfer test suite
- Update README with flow documentation and behavior changes
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

@Windowlight is attempting to deploy a commit to the 1nonly's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Oct 22, 2026

Copy link
Copy Markdown

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

@Diamond437rough

Copy link
Copy Markdown
Contributor Author

@1nonlypiece please merge

1nonlypiece and others added 2 commits October 25, 2026 02:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bindings will be regenerated on master once all contract ABI changes land.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@1nonlypiece
1nonlypiece merged commit 738a359 into Commitlabs-Org:master Oct 24, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants