Skip to content

Stellar: v0.6.0 release#768

Merged
brozorec merged 6 commits intomasterfrom
stellar-0.6.0
Jan 29, 2026
Merged

Stellar: v0.6.0 release#768
brozorec merged 6 commits intomasterfrom
stellar-0.6.0

Conversation

@brozorec
Copy link
Contributor

@brozorec brozorec commented Jan 27, 2026

This PR:

  • adapts the contracts to work with v0.6.0 of Stellar Contracts
  • refactors access control to reflect changes in the api
  • adds MuxedAddress to fungible token transfer
  • replaces the default 18 decimals in fungible token to 7 which is default for stellar assets
  • fixes some missing imports

@brozorec brozorec requested review from a team as code owners January 27, 2026 11:20
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Walkthrough

Pull request updates OpenZeppelin Stellar contracts wizard to support OpenZeppelin Stellar Soroban Contracts v0.6.0, replacing #[default_impl] with #[contractimpl(contracttrait)], changing transfer parameter types from Address to MuxedAddress, adjusting metadata indices from 18 to 7, reordering access control parameters, and updating default fungible decimals to 7.

Changes

Cohort / File(s) Summary
Version & Compatibility Updates
.changeset/pink-eyes-judge.md, packages/core/stellar/src/utils/version.ts
Updated contract version from 0.4.1 to 0.6.0 and Soroban SDK from 22.0.8 to 23.4.0 across all version constants and changeset metadata
Trait Implementation Refactor
packages/core/stellar/src/add-pausable.ts, packages/core/stellar/src/fungible.ts, packages/core/stellar/src/non-fungible.ts, packages/core/stellar/src/set-access-control.ts
Replaced #[default_impl] macro with #[contractimpl(contracttrait)] for trait implementations; removed conditional stellar_macros imports for default implementations
Fungible Token Updates
packages/core/stellar/src/fungible.ts, packages/core/stellar/src/fungible.test.ts.md
Changed transfer function parameter type from Address to MuxedAddress; updated metadata initialization index from 18 to 7; adjusted premint decimals from 18 to 7; added explicit trait implementations for Ownable and AccessControl
Non-Fungible Token Updates
packages/core/stellar/src/non-fungible.ts, packages/core/stellar/src/non-fungible.test.ts.md
Converted default trait implementations to #[contractimpl(contracttrait)]; added explicit Ownable trait implementations; updated soroban_sdk imports to include Address unconditionally
Access Control Changes
packages/core/stellar/src/set-access-control.ts
Reordered parameters for grant_role, revoke_role, and renounce_role functions to place account/role before caller; added new get_existing_roles function returning Vec<Symbol>; updated trait tags for non-explicit implementations
Stablecoin & Extended Token Tests
packages/core/stellar/src/stablecoin.test.ts.md, packages/core/stellar/src/zip-rust.compile.test.ts.md
Updated version headers from 0.4.1 to 0.6.0; replaced default_impl patterns with contracttrait; changed transfer signatures to use MuxedAddress; updated metadata index and mint amounts; upgraded Cargo dependency versions
Contract Test Snapshots
packages/core/stellar/src/contract.test.ts.md
Updated version directives in header comments from ^0.4.1 to ^0.6.0 across all contract snapshots
UI & Documentation Updates
packages/ui/src/stellar/TraitImplementationSection.svelte, packages/common/src/ai/descriptions/stellar.ts
Updated user-facing tooltips and AI descriptions to reflect trait implementation changes; removed references to #[default_impl] macro and replaced with descriptions of default vs. explicit implementations

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

ignore-changeset

Suggested reviewers

  • ericglau
  • CoveMB
  • ozgunozerk
🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 18.18% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No pull request description was provided, making it impossible to assess whether it relates to the changeset. Add a description explaining the v0.6.0 upgrade scope, breaking changes (MuxedAddress parameter, parameter reordering, metadata index), and migration guidance for users.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Stellar: v0.6.0 release' clearly and specifically summarizes the main purpose of the changeset: upgrading Stellar contracts to version 0.6.0.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@brozorec brozorec self-assigned this Jan 27, 2026
Copy link
Member

@ericglau ericglau left a comment

Choose a reason for hiding this comment

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

Just a few comments, thanks.

@brozorec brozorec requested a review from ericglau January 28, 2026 08:51
Co-authored-by: Eric Lau <ericglau@outlook.com>
Copy link
Member

@ericglau ericglau left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@brozorec brozorec enabled auto-merge (squash) January 28, 2026 15:53
@brozorec brozorec merged commit 86fe280 into master Jan 29, 2026
26 checks passed
@brozorec brozorec deleted the stellar-0.6.0 branch January 29, 2026 09:13
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants