Skip to content

feat: implement KYC expiry, multisig governance, execution guards, an…#171

Merged
OthmanImam merged 1 commit into
PayCraftt:mainfrom
memplethee-lab:main
Apr 27, 2026
Merged

feat: implement KYC expiry, multisig governance, execution guards, an…#171
OthmanImam merged 1 commit into
PayCraftt:mainfrom
memplethee-lab:main

Conversation

@memplethee-lab

Copy link
Copy Markdown
Contributor

…d state snapshots

…d state snapshots

- Issue PayCraftt#165: Add expiry for pending KYC requests
  - Add expires_at field to KYCRecord
  - Set 30-day default expiry (7-day minimum)
  - Prevent approval of expired requests
  - Emit expiry events
  - Add comprehensive tests

- Issue PayCraftt#166: Validate multi-signature governance execution
  - Track required_signatures and total_signers per proposal
  - Prevent duplicate signatures
  - Enforce minimum signature threshold
  - Enhanced error messages with approval progress
  - Add comprehensive multisig tests

- Issue PayCraftt#167: Prevent double execution of governance proposals
  - Add Executed status to ProposalStatus enum
  - Implement execute() method with double-execution guard
  - Add execute_proposal() to GovernanceVoting
  - Validate proposal state before execution
  - Add comprehensive execution guard tests

- Issue PayCraftt#168: Enforce consistent state snapshot for critical operations
  - Create StateSnapshot module with snapshot pattern
  - Implement AtomicOperation for state-consistent execution
  - Add StateConsistencyChecker for validation
  - Create ReadConsistencyGuard for read consistency
  - Add comprehensive state snapshot tests
@drips-wave

drips-wave Bot commented Apr 27, 2026

Copy link
Copy Markdown

@memplethee-lab 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

@OthmanImam OthmanImam merged commit 55431ad into PayCraftt:main Apr 27, 2026
3 of 7 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.

Prevent Double Execution of Governance Proposals

2 participants