Block-Equity/stellar-ios-wallet

Add option to enable testnet

Closed this issue · 5 comments

I'm submitting a...

  • Bug report
  • Feature request
  • Support request / code question

New Feature

Add option under Settings > Development to enable testnet. The app is so nice that I wish I could use it while I'm developing to Stelalr env as well.

Please detailed description of how you propose the feature could work:

With this option enabled, requests would switch from https://horizon.stellar.org to https://horizon-testnet.stellar.org.

Hey @fnando - I like this idea! There’s often times I’m working on the app and want to switch to do some testing on a testnet as well... I’ll add this to our list of “nice to haves”.

Hey @fnando, just to stay on top of open issues... after the work to extract the Stellar logic from around the application into a separate framework, this would be able to be implemented today.

I am, however, hesitant to expose this option in a consumer-facing application on the app store without some careful thinking about how to not let users accidentally enable it. My initial thoughts are to bury it a couple levels deep in the application settings.

Before I do that eventually, can you tell me a little bit more about how you run the app? Do you build it from source, or are you strictly installing from the App Store?

I only tried the App Store release.

What about adding an option under iPhone's Settings > BlockEQ > Advanced > Enable Development Mode (this view can have some additional information about why this exists).

One suggestion for this: instead of just enabling/disabling testnet, make it an input that defaults to Stellar's horizon testnet, but enabling any horizon instance to be used.

This issue is addressed by #232 and should be in the next release. I've backlogged a task to allow for custom horizon servers - I need to do some refactoring first.

Thanks @fnando!

@ndizazzo thanks a lot for this! 🎉