mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-25 12:06:05 +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;
|
_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())}");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue