mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
update to rc5 of the breez sdk + minor fixes for bip39
This commit is contained in:
parent
52f7cbacf2
commit
79ce2a6bb2
4 changed files with 11 additions and 11 deletions
|
@ -211,14 +211,14 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
|
|||
_isTransactionUpdating = false;
|
||||
});
|
||||
|
||||
// TODO: get actual nds service url:
|
||||
if (Platform.isAndroid || Platform.isIOS) {
|
||||
String platform = Platform.isAndroid ? "android" : "ios";
|
||||
String token = "TODO";
|
||||
await sdk.registerWebhook(
|
||||
webhookUrl: "https://your-nds-service.com/notify?platform=$platform&token=$token",
|
||||
);
|
||||
}
|
||||
// // TODO: get actual nds service url:
|
||||
// if (Platform.isAndroid || Platform.isIOS) {
|
||||
// String platform = Platform.isAndroid ? "android" : "ios";
|
||||
// String token = "TODO";
|
||||
// await sdk.registerWebhook(
|
||||
// webhookUrl: "https://your-nds-service.com/notify?platform=$platform&token=$token",
|
||||
// );
|
||||
// }
|
||||
|
||||
print("initialized breez: ${(await sdk.isInitialized())}");
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ class LightningWalletService extends WalletService<BitcoinNewWalletCredentials,
|
|||
@override
|
||||
Future<LightningWallet> create(BitcoinNewWalletCredentials credentials, {bool? isTestnet}) async {
|
||||
final wallet = await LightningWalletBase.create(
|
||||
mnemonic: await generateMnemonic(),
|
||||
mnemonic: await generateElectrumMnemonic(),
|
||||
password: credentials.password!,
|
||||
walletInfo: credentials.walletInfo!,
|
||||
unspentCoinsInfo: unspentCoinsInfoSource,
|
||||
|
|
|
@ -32,7 +32,7 @@ dependencies:
|
|||
breez_sdk:
|
||||
git:
|
||||
url: https://github.com/breez/breez-sdk-flutter.git
|
||||
ref: v0.4.0-rc2
|
||||
ref: v0.4.0-rc5
|
||||
rxdart: ^0.27.5
|
||||
unorm_dart: ^0.2.0
|
||||
cryptography: ^2.0.5
|
||||
|
|
|
@ -115,7 +115,7 @@ dependencies:
|
|||
breez_sdk:
|
||||
git:
|
||||
url: https://github.com/breez/breez-sdk-flutter.git
|
||||
ref: v0.4.0-rc2
|
||||
ref: v0.4.0-rc5
|
||||
|
||||
|
||||
dev_dependencies:
|
||||
|
|
Loading…
Reference in a new issue