Skip to content

Conversation

@Neros0
Copy link
Member

@Neros0 Neros0 commented Sep 29, 2025

Description

This PR expands the IIdentityManagerV2 interface with three new events designed to improve observability and automation across verification workflows. These events enable off-chain services, indexers, or governance modules to react to identity state transitions in real time.


✅ Added Events

Event Purpose Parameters
UserTypeUpdated Emitted when a user’s classification changes (e.g. Regular → Admin → KYC’d, etc.) user, oldType, newType
VerificationRenewed Fired when a user successfully extends or refreshes their verification credentials user, newExpirationTimestamp
BatchVerificationCompleted Signals completion of mass verification / admin approval actions admin, count, userType

🧠 Why This Matters

These additions make the contract fully indexer-friendly, allowing:

  • 🪝 Automated role syncing (e.g. Discord/Telegram bot hooks)
  • 📊 Analytics and compliance tracking
  • 🔄 Event-driven renewal reminders or governance incentives

📜 Code Changes (Minimal & Non-Breaking)

 interface IIdentityManagerV2 {
   ...
   event UserVerificationRevoked(address indexed user, address indexed revoker, string reason);
+  event UserTypeUpdated(address indexed user, UserType oldType, UserType newType);
+  event VerificationRenewed(address indexed user, uint256 newExpirationTimestamp);
+  event BatchVerificationCompleted(address indexed admin, uint256 count, UserType userType);
 }

@SynnekOG SynnekOG self-requested a review September 29, 2025 18:49
@SynnekOG SynnekOG added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 29, 2025
@SynnekOG SynnekOG merged commit e49cce9 into main Sep 29, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants