Skip to content

feat: add contract upload subcommand for WASM upload-only step (#109)#149

Closed
Chucks1093 wants to merge 1 commit into
Nanle-code:masterfrom
Chucks1093:feat/contract-upload-109
Closed

feat: add contract upload subcommand for WASM upload-only step (#109)#149
Chucks1093 wants to merge 1 commit into
Nanle-code:masterfrom
Chucks1093:feat/contract-upload-109

Conversation

@Chucks1093
Copy link
Copy Markdown
Contributor

Closes #109

Changes

  • Added Upload variant to ContractCommands with --wasm, --network, and --wallet args
  • Added handle_upload function in contract.rs that loads the wallet, calls soroban::upload_wasm, and prints the resulting WASM hash with the next-step command
  • Added upload_wasm helper in soroban.rs that delegates to stellar contract upload
  • Command help text links to the Stellar deploy docs

Testing

  • Compiles cleanly against existing codebase
  • Logic mirrors the existing handle_invoke pattern for wallet resolution and network validation

Notes

  • Delegates actual upload to the Stellar CLI, consistent with how the project wraps Stellar tooling

…-code#109)

- Add `starforge contract upload` subcommand with --wasm, --network, --wallet args
- Add `upload_wasm` helper in soroban.rs that shells out to the Stellar CLI
- Link to Stellar deploy docs in command help text

Closes Nanle-code#109

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Chucks1093 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Copy link
Copy Markdown
Contributor Author

Closing in favour of a single consolidated PR.

@Chucks1093 Chucks1093 closed this May 28, 2026
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.

Issue 18: Add contract upload wrapper for WASM upload-only step

1 participant