Skip to content

SEP-57: Add muxed address event - #2013

Merged
leighmcculloch merged 2 commits into
stellar:masterfrom
ozgunozerk:sep-57-muxed-transfer
Sep 9, 2026
Merged

SEP-57: Add muxed address event#2013
leighmcculloch merged 2 commits into
stellar:masterfrom
ozgunozerk:sep-57-muxed-transfer

Conversation

@ozgunozerk

Copy link
Copy Markdown
Contributor

Adding Muxed Address Event support to SEP-57

Copilot AI balanced review requested due to automatic review settings September 8, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates SEP-57 (T-REX) to describe how transfer events should represent muxed destinations, aligning the document with SEP-41’s muxed-address event semantics.

Changes:

  • Bumps SEP-57 metadata (Updated date and Version) and appends a changelog entry for v0.4.0.
  • Adds a “MuxedTransfer” transfer-event layout intended to carry a destination muxed ID when applicable.
Suppressed comments (1)

ecosystem/sep-0057.md:518

  • The MuxedTransfer example claims to follow SEP-41’s muxed transfer layout, but the field order here is to_muxed_id then amount. SEP-41 specifies the data shape as { amount, to_muxed_id }; keeping the same ordering makes it easier for downstream event decoders to support both the plain and muxed layouts consistently.
    /// The muxed ID of the destination
    pub to_muxed_id: Option<u64>,
    pub amount: i128,
}

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ecosystem/sep-0057.md
Comment thread ecosystem/sep-0057.md
Comment on lines +509 to +510
#[contractevent(topics = ["transfer"])]
pub struct MuxedTransfer {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Heads up that with soroban-sdk v28+ if to_muxed_id: None then the result of the MuxedTransfer event will be identical to the Transfer event and we can start describing events with a single shape.

@leighmcculloch leighmcculloch changed the title muxed address event for rwa SEP-57: Add muxed address event Sep 9, 2026
@leighmcculloch
leighmcculloch enabled auto-merge (squash) September 9, 2026 00:15
@leighmcculloch
leighmcculloch merged commit 2b45c64 into stellar:master Sep 9, 2026
5 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.

3 participants