Skip to content

Add blocker role and deploy script for Soroban TestStablecoin#59

Merged
alex-predicate merged 1 commit intomainfrom
soroban-blocker-role-and-deploy-script
Mar 27, 2026
Merged

Add blocker role and deploy script for Soroban TestStablecoin#59
alex-predicate merged 1 commit intomainfrom
soroban-blocker-role-and-deploy-script

Conversation

@alex-predicate
Copy link
Copy Markdown
Contributor

Summary

  • Separate block/unblock into a dedicated blocker role instead of reusing manager
  • Add blocker parameter to the TestStablecoin constructor with grant_role_no_auth
  • Update all tests to use the new blocker role (15/15 passing)
  • Add soroban/scripts/deploy.sh for testnet deployment

Details

The block_user and unblock_user functions now require the blocker role via ensure_role. The constructor accepts a blocker address alongside admin and manager, granting each role independently for finer-grained access control.

The deploy script builds, optimizes, and deploys the WASM to Stellar testnet with constructor initialization in a single command.

Test plan

  • All 15 Soroban tests pass (cargo test)
  • Deploy to testnet via ./soroban/scripts/deploy.sh <identity>
  • Verify block/unblock works with blocker identity

🤖 Generated with Claude Code

Separate block/unblock authorization into a dedicated "blocker" role
instead of reusing the "manager" role, giving finer-grained access
control for asset compliance operations.

- Add `blocker` parameter to TestStablecoin constructor
- Grant blocker role via `grant_role_no_auth` during initialization
- Update all tests to use the new blocker role
- Add `soroban/scripts/deploy.sh` for testnet deployment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@alex-predicate alex-predicate merged commit 7c4efed into main Mar 27, 2026
4 checks passed
@alex-predicate alex-predicate deleted the soroban-blocker-role-and-deploy-script branch March 27, 2026 18:50
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