Add Soroban test-stablecoin with OpenZeppelin freeze support#56
Merged
alex-predicate merged 1 commit intomainfrom Mar 25, 2026
Merged
Add Soroban test-stablecoin with OpenZeppelin freeze support#56alex-predicate merged 1 commit intomainfrom
alex-predicate merged 1 commit intomainfrom
Conversation
SAC-compatible Soroban token built on OpenZeppelin Stellar Contracts 0.6.0: - FungibleToken with BlockList extension (blocks transfers, approvals, burns) - FungibleBurnable for token destruction - AccessControl with "manager" role for compliance admin - 6 decimals, admin-controlled minting - 15 tests covering token operations, block enforcement, and auth checks - CI job for Soroban build, test, and fmt check Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.
Once credits are available, reopen this pull request to trigger a review.
penDerGraft
approved these changes
Mar 25, 2026
| ${{ runner.os }}-cargo- | ||
|
|
||
| - name: Build Soroban contracts | ||
| run: cd soroban && cargo build --release --target wasm32-unknown-unknown |
Contributor
There was a problem hiding this comment.
Is unknown-unknown correct here?
Contributor
Author
There was a problem hiding this comment.
I believe so, I think we only want to make sure that the contract builds in this case
| } | ||
| } | ||
|
|
||
| #[cfg(test)] |
Contributor
There was a problem hiding this comment.
Is it a standard pattern to keep tests in the same file?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FungibleToken,BlockList,FungibleBurnable, andAccessControltraitsContract interface
transfer,approve,allowance,balance, etc.mint(to, amount)block_user(user, operator)unblock_user(user, operator)blocked(account)burn(from, amount)How to test
15 tests covering constructor, mint, transfer, block/unblock, blocked-transfer, blocked-approve, transfer_from, burn, burn-from-blocked, non-admin-mint, and non-manager-block scenarios.
What's next
Track 2 (application compliance) —
predicate-registryandpredicate-clientcontracts — will come in a follow-up PR.🤖 Generated with Claude Code