Skip to content

Upgrade rs-soroban-sdk version - #2171

Closed
sagpatil wants to merge 12 commits into
mainfrom
test-ci-system
Closed

sagpatil wants to merge 12 commits into
mainfrom
test-ci-system

Conversation

@sagpatil

Copy link
Copy Markdown
Contributor

test: add comment to trigger CI system test

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Aug 29, 2025
The soroban-sdk has renamed StellarAssetSpec to StellarAssetFnSpec.
This fixes the compilation errors in CI where the symbol could not be found.
@socket-security

socket-security Bot commented Aug 29, 2025 •

Copy link
Copy Markdown

- Update workspace dependencies to use soroban-sdk v23.0.0-rc.3
- Add stellar-asset-spec dependency
- Replace StellarAssetFnSpec::spec_xdr() with stellar_asset_spec::xdr()
- The new API uses a dedicated crate for stellar asset contract specs
@sagpatil sagpatil changed the title test: add comment to trigger CI system test Upgrade soroban-sdk version as it broke the build Aug 29, 2025
- Migrate hello_world and token test fixtures from deprecated events().publish() to #[contractevent] system
- Update soroban-token-sdk event usage to use new event structs (Approve, TransferWithAmountOnly, Burn, MintWithAmountOnly)
- Fix token Interface implementation to use MuxedAddress for transfer parameter
- Add custom SetAdmin event struct for token admin changes

This resolves CI build failures on Windows, macOS, and Linux caused by deprecated API warnings being treated as errors.
- Format imports in hello_world fixture (split long line)
- Format imports and event publish calls in token fixture
- Ensure consistent formatting according to rustfmt standards
Update hello_world integration test to expect the new contractevent format:
- Old: Event: [{"symbol":"hello"},{"symbol":""}] = {"symbol":"world"}
- New: Event: [{"symbol":"hello_event"}] = {"map":[{"key":{"symbol":"str"},"val":{"symbol":"world"}}]}

This aligns the test with the updated hello_world fixture that uses the new #[contractevent] system.
@sagpatil sagpatil changed the title Upgrade soroban-sdk version as it broke the build Upgrade rs-soroban-sdk version as it broke the build Aug 29, 2025
- Add Event variant to Entry enum for proper EventV0 handling
- Replace todo! macro with proper EventV0 processing
- Fixes cookbook integration test failures caused by rs-soroban-sdk v23.0.0-rc.3 upgrade
- Resolves panic when processing contracts with #[contractevent] attributes
- Fix transfer command to use correct --from --to --amount argument order
- Matches the working syntax used in asset-management.mdx
- Resolves cookbook test failure for stellar asset contract operations
Comment thread README.md
- Video Tutorial on `network container`, `keys`, and `contract init`: https://developers.stellar.org/meetings/2024/06/27
- Video Tutorial on `alias` and `snapshot`: https://developers.stellar.org/meetings/2024/09/12

<!-- CI system test comment -->

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

need to remove this

@sagpatil
sagpatil requested review from leighmcculloch and removed request for leighmcculloch August 29, 2025 07:24
- Handle both Address and MuxedAddress types in argument parsing
- Resolve address aliases and extract signers for both types
- Fixes cookbook test failures with MuxedAddress arguments
@sagpatil sagpatil changed the title Upgrade rs-soroban-sdk version as it broke the build Upgrade rs-soroban-sdk version Aug 29, 2025
@sagpatil
sagpatil requested a review from anupsdf August 29, 2025 16:58
@anupsdf

anupsdf commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

Claude is attempting to add parsing of MuxedAddress in cmd/crates/soroban-spec-tools/src/lib.rs in my PR. You might need that here.

@sagpatil

Copy link
Copy Markdown
Contributor Author

closing this in favor of #2173

@sagpatil sagpatil closed this Aug 29, 2025
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Aug 29, 2025
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.

2 participants