Skip to content

Fix PermissionedRegistry Resource Invertibility#227

Merged
adraffy merged 12 commits intomainfrom
feat/fix-invertible-permres
Mar 4, 2026
Merged

Fix PermissionedRegistry Resource Invertibility#227
adraffy merged 12 commits intomainfrom
feat/fix-invertible-permres

Conversation

@adraffy
Copy link
Member

@adraffy adraffy commented Feb 27, 2026

  • changed PermissionedResolverLib.resource()
    • resource = namehash(name) when part = 0
  • changed PermissionedResolver
    • added event NamedResource
    • added event NamedTextResource
    • added event NamedAddrResource
    • disabled grantRoles()
    • added grantNamedRoles(name, roleBitmap, account)
    • added grantTextRoles(name, textKey, account)
    • added grantAddrRoles(name, coinType, account)
    • added tests and here

New events allow inverting named or fine-grained resources to their corresponding components.

@adraffy adraffy changed the title Fix PermissionedRegistry Resource Invertability Fix PermissionedRegistry Resource Invertibility Feb 27, 2026
@adraffy adraffy marked this pull request as ready for review February 27, 2026 06:08
@immunefi-magnus
Copy link

immunefi-magnus bot commented Feb 27, 2026

🛡️ Immunefi PR Reviews

This pull request is not eligible for a PR Reviews review. Please contact Immunefi support.

Reason: This PR can't be reviewed because no PR Reviews plan is configured for your organisation. Please ask your admin to set up a plan to enable reviews.

Base automatically changed from misc/rename-or to main March 2, 2026 10:18
@adraffy adraffy requested a review from Arachnid March 2, 2026 10:51
@adraffy adraffy merged commit b8a958f into main Mar 4, 2026
6 checks passed
@adraffy adraffy deleted the feat/fix-invertible-permres branch March 4, 2026 02:01
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.

2 participants