mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
Use Trocador's current onion endpoint for exchange API (#3645)
Trocador rotated its onion service; the address in the provider was the old one and had been aliased to clearnet since CW-519. The onion serves the API paths over plain HTTP only, so build onion URLs with Uri.http. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
b88fbf32ae
commit
f008403f1f
@@ -48,8 +48,7 @@ class TrocadorExchangeProvider extends ExchangeProvider {
|
||||
|
||||
static final apiKey = isMoneroOnly ? secrets.trocadorMoneroApiKey : secrets.trocadorApiKey;
|
||||
static const clearNetAuthority = 'api.trocador.app';
|
||||
static const onionApiAuthority = clearNetAuthority;
|
||||
// static const onionApiAuthority = 'trocadorfyhlu27aefre5u7zri66gudtzdyelymftvr4yjwcxhfaqsid.onion';
|
||||
static const onionApiAuthority = '65bsisadnxvw4kfz7h7a3jwcyenrhluuj3kd5toslfzxbk5q4m3wy6qd.onion';
|
||||
static const markup = secrets.trocadorExchangeMarkup;
|
||||
static const newRatePath = '/new_rate';
|
||||
static const createTradePath = '/new_trade';
|
||||
@@ -539,7 +538,7 @@ class TrocadorExchangeProvider extends ExchangeProvider {
|
||||
}
|
||||
|
||||
Future<Uri> _getUri(String path, Map<String, String> queryParams) async {
|
||||
final uri = Uri.https(onionApiAuthority, path, queryParams);
|
||||
final uri = Uri.http(onionApiAuthority, path, queryParams);
|
||||
|
||||
if (useTorOnly) return uri;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user