Skip to content

feat(token): separate minter role from admin role#112

Open
oche2920 wants to merge 1 commit into
BCPathway:mainfrom
oche2920:feat/separate-minter-role
Open

feat(token): separate minter role from admin role#112
oche2920 wants to merge 1 commit into
BCPathway:mainfrom
oche2920:feat/separate-minter-role

Conversation

@oche2920
Copy link
Copy Markdown

feat(token): separate minter role from admin role

  • Add DataKey::Minter(Address) to token contract storage keys
  • Add grant_minter/revoke_minter admin-only functions
  • Add is_minter query function
  • Update mint and batch_mint to require Role::Minter instead of admin
  • Emit mtr_grnt/mtr_rvk events on role changes
  • Fix AdminKey enum: move AdminPool, Threshold, Proposal, ProposalIdCounter
    out of Role enum where they were incorrectly merged
  • Fix missing closing braces in admin has_role and require_role (merge artifacts)
  • Fix symbol_short names exceeding 9-char limit in events.rs
  • Clean up duplicate use statements and function bodies in token lib.rs
  • Update all tests and proptests to use new mint(minter, to, amount) signature

Closes #54

- Add DataKey::Minter(Address) to token contract storage keys
- Add grant_minter/revoke_minter admin-only functions
- Add is_minter query function
- Update mint and batch_mint to require Role::Minter instead of admin
- Emit mtr_grnt/mtr_rvk events on role changes
- Fix AdminKey enum: move AdminPool, Threshold, Proposal, ProposalIdCounter
  out of Role enum where they were incorrectly merged
- Fix missing closing braces in admin has_role and require_role (merge artifacts)
- Fix symbol_short names exceeding 9-char limit in events.rs
- Clean up duplicate use statements and function bodies in token lib.rs
- Update all tests and proptests to use new mint(minter, to, amount) signature

Closes BCPathway#54
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@oche2920 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

@p3ris0n
Copy link
Copy Markdown
Contributor

p3ris0n commented May 27, 2026

@oche2920 please resolve conflicts

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.

[Contract] Re-implement Role-Based Access Control (RBAC)

2 participants