Skip to content

Wire deploy optimization, add configurable friendbot/faucet support, and use dynamic Horizon URLs#144

Merged
Nanle-code merged 3 commits into
Nanle-code:masterfrom
Johnsmichael150:main
May 28, 2026
Merged

Wire deploy optimization, add configurable friendbot/faucet support, and use dynamic Horizon URLs#144
Nanle-code merged 3 commits into
Nanle-code:masterfrom
Johnsmichael150:main

Conversation

@Johnsmichael150
Copy link
Copy Markdown
Contributor

Summary

This PR enhances StarForge network portability and deploy tooling by adding configurable friendbot/faucet support, removing hardcoded Horizon faucet URLs, and wiring Soroban WASM optimization into the deploy pipeline.

Changes

  • Added optional friendbot_url to NetworkConfig
  • Enabled network add --friendbot-url
  • Updated wallet funding to use network-specific faucet URLs from config
  • Refactored src/utils/horizon.rs to resolve Horizon endpoints dynamically
  • Wired deploy --optimize support in src/commands/deploy.rs
  • Added deploy size warnings and external optimization guidance for WASM artifacts near or exceeding 128 KB
  • Updated associated CLI behavior and docs

Files changed

  • src/utils/config.rs
  • src/utils/horizon.rs
  • src/commands/deploy.rs
  • src/commands/network.rs
  • src/commands/wallet.rs
  • Cargo.lock

Testing

  • cargo run -- network add customnet --friendbot-url https://faucet.example.com
  • cargo run -- wallet fund --network customnet
  • cargo run -- deploy --optimize <args>
  • Confirm deploy warnings when artifact size approaches or exceeds 128 KB

Close #111
Close #103
Close #125
Close #110

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 26, 2026

@Johnsmichael150 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

@Nanle-code Nanle-code merged commit 3dd199e into Nanle-code:master 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

3 participants