Repository navigation
Update stellar-xdr dependency to v30 - #65
Merged
Merged
Conversation
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>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
quietbits
approved these changes
Nov 2, 2026
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>
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.
Update
stellar-xdrto 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 30TransactionEnvelopethat calls a SACtransferto aWaddress withxdr value invalid. Testnet upgrades to Protocol 30 on Nov 3.Changes
stellar-xdr28.0.0 → 30.0.0. The feature list is unchanged, andsrc/lib.rsneeds no changes. CAP-0084 and CAP-0087 are ungated in the 30.0.0 crate, so no extra features are needed.rust-version1.86.0 → 1.87.0, the MSRV ofstellar-xdr30.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_typestest: add the new typesMuxedContract(CAP-0084),StellarValueSignedMsValue,StellarValueProposedMsValue, andTimePointMs. Nothing else moved.decode_scval_muxed_contract_address/encode_scval_muxed_contract_addresstests. AnScValaddress holding a muxed contract decodes to{"address":"W..."}and encodes back to the same XDR.deny.toml: remove thecrate-git-revision0.0.6 skip added in Update stellar-xdr dependency to v28 #61.stellar-xdr30 depends onstellar-strkey1.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-gitentry.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, andmake testall pass locally underRUSTFLAGS=-Dwarnings, including 26/26 tests in headless Firefox.pkg/wasm in Node and decoded a real protocol 30TransactionEnvelopesubmitted to a localstellar/quickstart:latestnetwork (core v30.0.0). TheWargument decodes as a strkey, andencode(decode(xdr))round-trips to identical XDR.🤖 Generated with Claude Code