orderbook endpoint should not list buying_issuer and selling_issuer, but instead it should list buying_asset_issuer and selling_asset_issuer for a correct API.
no friendbot api displayed in root for pub net
Wishlist:
Looks like it's this line that needs changing.
Hello, I'm taking a look at this issue. Given that it's a few months old, I'd like to clarify some of the points made above. Regarding points 2 & 3, I believe that 2 has been addressed but I'm confused about the behaviour. To be specific, I see a friendbot API in both testnet and public net. It seems like the redirect from $stellarURL/friendbot -> friendbot.$stellarURL is not working correctly. How can I inspect the value of the config at runtime?
thank you for taking this on @rudle !
clarifying the points below:
yes, no. 2 still needs to be addressed (after looking at https://horizon.stellar.org) -- currently we show the friendbot URL even though https://horizon.stellar.org points to the main network and we don't have friendbot enabled on the main network. The change should _delete_ this if the environment is the main network (you can also check the friendbot-url variable for this information but I'd go with the approach that we currently use to figure out whether we're in the main net or not, just to keep things consistent)
the redirection would not work on the public network since there's no friendbot instance. we should just change the URL to point to friendbot.$stellarURL to reflect the deprecation of the old option.
Thanks for bringing me up to speed @nikhilsaraf. I'm now understanding that we want to hide the friendbot-url in cases in which there is no friendbot available. I'm also now able to answer my own question about the redirect not working: it only works in the testnet! (EDIT: this is false, https://github.com/stellar/go/pull/217/files/4f1708305a05c39092dede7047774a60bfb3138b#r158850670 shows me that redirection was a temporary feature). I believe it's most correct for stellar to maintain a config for the friendbot URL on a per environment basis. Where does the configuration live for the horizon testnet?
I'll start coding on this and hopefully have a PR ready soon.
See the two PRs above, they address points 1-3.
I need some help understanding the domain a bit better before I can get to 4. Searching the code base for BaseFee and BaseReserve, I see that those are properties of a particular ledger https://github.com/stellar/go/blob/1e48159f0bd313c7cb993ca2d8cb9edf69d94841/protocols/horizon/main.go#L160 - is that true? If so, I don't think it fits in with the root resource adapter.
Yes, fee is a property of a particular ledger --I agree that the root resource is _not_ the best place for it. We are in the process of introducing a new endpoint that exposes operation fee and base reserve information in this PR: https://github.com/stellar/go/pull/586
Closing this issue since issue no. 4 will be addressed in the linked PR. Feel free to reopen if needed.