Skip to content

smartcontract: add AdminGroupBits ResourceExtension (#3343)#3389

Open
Rhovian wants to merge 1 commit intomalbeclabs:mainfrom
Rhovian:admin-group-bits-resource-extension
Open

smartcontract: add AdminGroupBits ResourceExtension (#3343)#3389
Rhovian wants to merge 1 commit intomalbeclabs:mainfrom
Rhovian:admin-group-bits-resource-extension

Conversation

@Rhovian
Copy link

@Rhovian Rhovian commented Mar 27, 2026

Summary of Changes

This PR adds AdminGroupBits as a new ResourceExtension type, including PDA derivation, seed wiring, range definition (0..32), and focused allocator/resource-extension tests for lowest-available allocation and exhaustion.

Assumptions for follow-up work:

  • This PR does not change global bootstrap or SDK/CLI SetGlobalConfig account lists, so AdminGroupBits is expected to be created explicitly by the future RFC-18 LinkColorInfo flow.
  • The “bits are never reused after deletion” policy is also deferred to that consumer logic by not calling deallocate_id() when a color is removed, rather than changing the generic IdAllocator behavior.

Testing Verification

Screenshot 2026-03-26 at 6 19 43 PM

cc @ben-malbeclabs

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.

1 participant