Skip to content

Update stellar-xdr dependency to v30 - #65

Merged
jeesunikim merged 2 commits into
mainfrom
stellar-xdr-v30
Nov 2, 2026
Merged

jeesunikim merged 2 commits into
mainfrom
stellar-xdr-v30

Conversation

@jeesunikim

@jeesunikim jeesunikim commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Update stellar-xdr to 30.0.0 (Protocol 30) from the crates.io release.

Why

Protocol 30 adds CAP-0084 muxed contract addresses (W...). With 28.0.0, any XDR that contains one fails to decode. For example, Stellar Lab's View XDR rejects a valid protocol 30 TransactionEnvelope that calls a SAC transfer to a W address with xdr value invalid. Testnet upgrades to Protocol 30 on Nov 3.

Changes

  • stellar-xdr 28.0.0 → 30.0.0. The feature list is unchanged, and src/lib.rs needs no changes. CAP-0084 and CAP-0087 are ungated in the 30.0.0 crate, so no extra features are needed.
  • rust-version 1.86.0 → 1.87.0, the MSRV of stellar-xdr 30.0.0.
  • socket-scan.yml: pin the toolchain to 1.87.0 to match. With 1.86.0, cargo refuses to build the crate (heapless@0.9.3 requires rustc 1.87). The scan runs weekly and on demand, not on PRs, so this PR's CI does not cover it.
  • list_of_types test: add the new types MuxedContract (CAP-0084), StellarValueSignedMsValue, StellarValueProposedMsValue, and TimePointMs. Nothing else moved.
  • New decode_scval_muxed_contract_address / encode_scval_muxed_contract_address tests. An ScVal address holding a muxed contract decodes to {"address":"W..."} and encodes back to the same XDR.
  • deny.toml: remove the crate-git-revision 0.0.6 skip added in Update stellar-xdr dependency to v28 #61. stellar-xdr 30 depends on stellar-strkey 1.0.0, which no longer pulls in 0.0.6, so the duplicate is gone.

This supersedes the SPIKE in #63, which git-pinned an unmerged rs-stellar-xdr branch to preview CAP-0087. The released crate needs neither the git pin nor the allow-git entry.

Consumer impact

No breaking JSON changes found. The existing decode tests pass unchanged. The new types only add JSON shapes.

Verification

  • cargo fmt --all --check, cargo deny check bans licenses sources advisories, make build, and make test all pass locally under RUSTFLAGS=-Dwarnings, including 26/26 tests in headless Firefox.
  • Loaded the built pkg/ wasm in Node and decoded a real protocol 30 TransactionEnvelope submitted to a local stellar/quickstart:latest network (core v30.0.0). The W argument decodes as a strkey, and encode(decode(xdr)) round-trips to identical XDR.

🤖 Generated with Claude Code

Bump stellar-xdr 28.0.0 -> 30.0.0 (Protocol 30). Adds MuxedContract
(CAP-0084 muxed contract W... addresses), so ScAddress values that hold a
muxed contract now decode and encode.

- Raise rust-version to 1.87.0, the stellar-xdr 30 MSRV.
- list_of_types: add MuxedContract, StellarValueSignedMsValue,
  StellarValueProposedMsValue, and TimePointMs.
- Add decode/encode tests for an ScVal muxed contract address.
- deny.toml: drop the crate-git-revision 0.0.6 skip. stellar-xdr 30 uses
  stellar-strkey 1.0.0, which no longer pulls in 0.0.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Nov 2, 2026
@socket-security

socket-security Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedstellar-xdr@​28.0.0 ⏵ 30.0.089 -4100100100100

View full report

Comment thread Cargo.toml Resolved

@fnando fnando left a comment

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.

lgtm

stellar-xdr 30 needs rustc 1.87, so the scan's 1.86.0 pin can no longer
build the crate. Match the new rust-version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeesunikim
jeesunikim merged commit 987a615 into main Nov 2, 2026
11 checks passed
@jeesunikim
jeesunikim deleted the stellar-xdr-v30 branch November 2, 2026 21:40
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants