update to rc5 of the breez sdk + minor fixes for bip39

This commit is contained in:
Matthew Fosse 2024-05-01 09:18:57 -07:00
parent 52f7cbacf2
commit 79ce2a6bb2
4 changed files with 11 additions and 11 deletions

View file

@ -211,14 +211,14 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
_isTransactionUpdating = false; _isTransactionUpdating = false;
}); });
// TODO: get actual nds service url: // // TODO: get actual nds service url:
if (Platform.isAndroid || Platform.isIOS) { // if (Platform.isAndroid || Platform.isIOS) {
String platform = Platform.isAndroid ? "android" : "ios"; // String platform = Platform.isAndroid ? "android" : "ios";
String token = "TODO"; // String token = "TODO";
await sdk.registerWebhook( // await sdk.registerWebhook(
webhookUrl: "https://your-nds-service.com/notify?platform=$platform&token=$token", // webhookUrl: "https://your-nds-service.com/notify?platform=$platform&token=$token",
); // );
} // }
print("initialized breez: ${(await sdk.isInitialized())}"); print("initialized breez: ${(await sdk.isInitialized())}");
} }

View file

@ -26,7 +26,7 @@ class LightningWalletService extends WalletService<BitcoinNewWalletCredentials,
@override @override
Future<LightningWallet> create(BitcoinNewWalletCredentials credentials, {bool? isTestnet}) async { Future<LightningWallet> create(BitcoinNewWalletCredentials credentials, {bool? isTestnet}) async {
final wallet = await LightningWalletBase.create( final wallet = await LightningWalletBase.create(
mnemonic: await generateMnemonic(), mnemonic: await generateElectrumMnemonic(),
password: credentials.password!, password: credentials.password!,
walletInfo: credentials.walletInfo!, walletInfo: credentials.walletInfo!,
unspentCoinsInfo: unspentCoinsInfoSource, unspentCoinsInfo: unspentCoinsInfoSource,

View file

@ -32,7 +32,7 @@ dependencies:
breez_sdk: breez_sdk:
git: git:
url: https://github.com/breez/breez-sdk-flutter.git url: https://github.com/breez/breez-sdk-flutter.git
ref: v0.4.0-rc2 ref: v0.4.0-rc5
rxdart: ^0.27.5 rxdart: ^0.27.5
unorm_dart: ^0.2.0 unorm_dart: ^0.2.0
cryptography: ^2.0.5 cryptography: ^2.0.5

View file

@ -115,7 +115,7 @@ dependencies:
breez_sdk: breez_sdk:
git: git:
url: https://github.com/breez/breez-sdk-flutter.git url: https://github.com/breez/breez-sdk-flutter.git
ref: v0.4.0-rc2 ref: v0.4.0-rc5
dev_dependencies: dev_dependencies: