feat: add per-action multi-issuer permission matrix (#544) - #711
Open
sir-emmy1 wants to merge 2 commits into
Open
feat: add per-action multi-issuer permission matrix (#544)#711sir-emmy1 wants to merge 2 commits into
sir-emmy1 wants to merge 2 commits into
Conversation
sir-emmy1
commented
Jul 29, 2026
Contributor
- Add Role enum (Compliance, Treasury, Operations) with bitmask support
- Add RoleGrant struct for per-offering role assignments
- Implement grant_role, revoke_role, and assert_role helpers
- Wire role checks into blacklist_add (Compliance), deposit_revenue (Treasury), and report_revenue (Treasury) entrypoints
- Role gate is opt-in: skipped when no role grants exist for backwards compat
- Add RoleNotGranted error variant (wire value 91)
- Emit role_granted and role_revoked events for audit trail
- Add comprehensive tests for grant, revoke, enforcement, isolation, and events
- Update AUTH_MATRIX.md with role matrix documentation
- Also includes transfer-restriction override (Add transfer-restriction override attestation allowing issuer to whitelist specific transfers #589) as shared infrastructure
- Add Role enum (Compliance, Treasury, Operations) with bitmask support - Add RoleGrant struct for per-offering role assignments - Implement grant_role, revoke_role, and assert_role helpers - Wire role checks into blacklist_add (Compliance), deposit_revenue (Treasury), and report_revenue (Treasury) entrypoints - Role gate is opt-in: skipped when no role grants exist for backwards compat - Add RoleNotGranted error variant (wire value 91) - Emit role_granted and role_revoked events for audit trail - Add comprehensive tests for grant, revoke, enforcement, isolation, and events - Update AUTH_MATRIX.md with role matrix documentation - Also includes transfer-restriction override (RevoraOrg#589) as shared infrastructure
|
Hey @sir-emmy1! 👋 It looks like this PR isn't linked to any issue. If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g.,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.