mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-24 01:14:22 +01:00
Reflect breaking changes on Dart & Flutter packages
Config * electrumUrl -> liquidElectrumUrl & bitcoinElectrumUrl * zeroConfMinFeeRate Rename Network to LiquidNetwork
This commit is contained in:
@@ -9,7 +9,8 @@ void main() {
|
|||||||
group('main', () {
|
group('main', () {
|
||||||
setUpAll(() async {
|
setUpAll(() async {
|
||||||
await initApi();
|
await initApi();
|
||||||
ConnectRequest connectRequest = ConnectRequest(mnemonic: "", config: defaultConfig(network: Network.testnet));
|
ConnectRequest connectRequest =
|
||||||
|
ConnectRequest(mnemonic: "", config: defaultConfig(network: LiquidNetwork.testnet));
|
||||||
sdk = await connect(req: connectRequest);
|
sdk = await connect(req: connectRequest);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -17,17 +17,21 @@ Future<Config> getConfig({
|
|||||||
extension ConfigCopyWith on Config {
|
extension ConfigCopyWith on Config {
|
||||||
Config copyWith({
|
Config copyWith({
|
||||||
String? boltzUrl,
|
String? boltzUrl,
|
||||||
String? electrumUrl,
|
String? liquidElectrumUrl,
|
||||||
|
String? bitcoinElectrumUrl,
|
||||||
String? workingDir,
|
String? workingDir,
|
||||||
LiquidNetwork? network,
|
LiquidNetwork? network,
|
||||||
BigInt? paymentTimeoutSec,
|
BigInt? paymentTimeoutSec,
|
||||||
|
double? zeroConfMinFeeRate,
|
||||||
}) {
|
}) {
|
||||||
return Config(
|
return Config(
|
||||||
boltzUrl: boltzUrl ?? this.boltzUrl,
|
boltzUrl: boltzUrl ?? this.boltzUrl,
|
||||||
electrumUrl: electrumUrl ?? this.electrumUrl,
|
liquidElectrumUrl: liquidElectrumUrl ?? this.liquidElectrumUrl,
|
||||||
|
bitcoinElectrumUrl: bitcoinElectrumUrl ?? this.bitcoinElectrumUrl,
|
||||||
workingDir: workingDir ?? this.workingDir,
|
workingDir: workingDir ?? this.workingDir,
|
||||||
network: network ?? this.network,
|
network: network ?? this.network,
|
||||||
paymentTimeoutSec: paymentTimeoutSec ?? this.paymentTimeoutSec,
|
paymentTimeoutSec: paymentTimeoutSec ?? this.paymentTimeoutSec,
|
||||||
|
zeroConfMinFeeRate: zeroConfMinFeeRate ?? this.zeroConfMinFeeRate,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user