Skip to content

Feature/compliance operator role#141

Merged
misrasamuelisiguzor-oss merged 2 commits into
WHEELBACK:mainfrom
darcszn:feature/compliance-operator-role
Jun 25, 2026
Merged

Feature/compliance operator role#141
misrasamuelisiguzor-oss merged 2 commits into
WHEELBACK:mainfrom
darcszn:feature/compliance-operator-role

Conversation

@darcszn

@darcszn darcszn commented Jun 25, 2026

Copy link
Copy Markdown

Description

Related Issue

Closes #[issue_id]

Checklist

Introduces a middle-tier Operator role for the compliance contract.
Operators can read sensitive compliance data (expiry timestamps, address
states) without holding admin privileges, enabling automated systems
such as the treasury contract to verify compliance at runtime.

Changes:
- allowlist.rs: add DataKey::Operator variant (instance storage)
- lib.rs: add set_operator(env, admin, operator) — admin-only, emits
  operator_set event; add get_allow_expiry and address_status gated to
  admin-or-operator; add require_admin_or_operator private helper
- compliance_test.rs: 13 new tests covering set_operator access control,
  operator read grants, non-operator rejection, state correctness, write
  gate enforcement, and operator replacement revocation
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

@misrasamuelisiguzor-oss
misrasamuelisiguzor-oss merged commit 59643ab into WHEELBACK:main Jun 25, 2026
0 of 6 checks passed
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.

feat(compliance): add operator role — read-only compliance queries without admin

3 participants