Use swapper proxy to extract referral ID (#329)

* Use swapper proxy to extract referral ID

* Derive swapper API base URL from proxy URL

* Update RN bindings

* Remove referral_id from Config, move proxy_url parsing to swapper

* Fix tests

* Cache swapper proxy URL

* Move boltz_url from Config to swapper

* Silently fail when fetching proxy swapper URLs

* Update RN bindings

* Fix sdk-common dependency

* Fix dependency issues
This commit is contained in:
ok300
2024-06-25 17:19:02 +00:00
committed by GitHub
parent 0e2f185472
commit 7bd9b6ddb2
22 changed files with 379 additions and 94 deletions

View File

@@ -31,7 +31,6 @@ class BackupRequest {
/// Configuration for the Liquid SDK
class Config {
final String boltzUrl;
final String liquidElectrumUrl;
final String bitcoinElectrumUrl;
@@ -52,7 +51,6 @@ class Config {
final BigInt? zeroConfMaxAmountSat;
const Config({
required this.boltzUrl,
required this.liquidElectrumUrl,
required this.bitcoinElectrumUrl,
required this.workingDir,
@@ -64,7 +62,6 @@ class Config {
@override
int get hashCode =>
boltzUrl.hashCode ^
liquidElectrumUrl.hashCode ^
bitcoinElectrumUrl.hashCode ^
workingDir.hashCode ^
@@ -78,7 +75,6 @@ class Config {
identical(this, other) ||
other is Config &&
runtimeType == other.runtimeType &&
boltzUrl == other.boltzUrl &&
liquidElectrumUrl == other.liquidElectrumUrl &&
bitcoinElectrumUrl == other.bitcoinElectrumUrl &&
workingDir == other.workingDir &&