mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 08:54:22 +01:00
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:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user