stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.03k stars 835 forks source link

Provide initialize.sh option to a remote rpc #113

Closed sreuland closed 1 year ago

sreuland commented 1 year ago

What problem does your feature solve?

./initialize.sh futurenet defaults to rpc on localhost url

What would you like to see?

./initialize.sh futurenet <optional_rpc_url>

such as

./initialize.sh futurenet https://rpc-futurenet.stellar.org:443

What alternatives are there?

do the same commands as initialize.sh and save results manually in local .soroban-example-dapp

chadoh commented 1 year ago

Would it be worth having ./initialize.sh futurenet use remote RPC URL by default, with fallback option for localhost? Or maybe even always use remote?

sreuland commented 1 year ago

that default sounds more idiomatic for futurenet reference, and can still retain ability to override that with a custom url seems flexible enough, unless anyone has objections?

chadoh commented 1 year ago

implementing it now; PR soon