Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to v1.0.0 alpha.11 #149

Closed
wants to merge 100 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
ddfdf70
flutter pub publish issue resolved
BitcoinZavior Sep 2, 2024
2f92e14
Merge pull request
BitcoinZavior Sep 3, 2024
983d45e
version updated to 1.0.0-alpha.11
BitcoinZavior Sep 5, 2024
7dd8f5c
bdk::keys::bip39::Error implemented for BdkError
BitcoinZavior Sep 7, 2024
79dec16
handle_mutex exposed to handle lock errors
BitcoinZavior Sep 10, 2024
112f7c7
removed all unhandled unwraps
BitcoinZavior Sep 10, 2024
f6ad409
removed all unhandled unwraps
BitcoinZavior Sep 13, 2024
ab1d5d2
implemeted handle_mutex
BitcoinZavior Sep 14, 2024
84f080d
bindings updated
BitcoinZavior Sep 14, 2024
8b04407
esplora url updated
BitcoinZavior Sep 14, 2024
c8a0b99
removed blockchain class
BitcoinZavior Sep 17, 2024
46ba1b4
custom errors updated
BitcoinZavior Sep 17, 2024
cff9f58
replaced BdkError with custom errors
BitcoinZavior Sep 18, 2024
b6c4617
exposed FfiFullScanRequestBuilder & FfiFullScanRequestBuilder
BitcoinZavior Sep 18, 2024
7436ca1
exposed connection
BitcoinZavior Sep 19, 2024
81b5cd1
seperated bitcoin mod structs
BitcoinZavior Sep 20, 2024
57a2ae9
dependencies upgraded
BitcoinZavior Sep 22, 2024
d2f0b42
version descriptancy resolved
BitcoinZavior Sep 25, 2024
cb4e3c6
flutter_rust_bridge updated to 2.4.0
BitcoinZavior Sep 26, 2024
1dbf55c
code formatted
BitcoinZavior Sep 27, 2024
7663730
exposed generic error
BitcoinZavior Sep 27, 2024
c65d5c8
exposed LocalOutput & ChangeSpendPolicy
BitcoinZavior Sep 27, 2024
bfd1e3b
code cleanup
BitcoinZavior Sep 27, 2024
512ab4d
exposed electrum mod
BitcoinZavior Sep 28, 2024
4e4e29f
code formtted
BitcoinZavior Sep 30, 2024
1070e6c
exposed esplora
BitcoinZavior Oct 1, 2024
ee6b214
test cases added
BitcoinZavior Oct 1, 2024
0736914
exposed wallet & tx_builder
BitcoinZavior Oct 3, 2024
e630504
bindings updated
BitcoinZavior Oct 3, 2024
70c26d8
exposed sign & SignerError
BitcoinZavior Oct 4, 2024
77cfa7f
mapped all the exceptions
BitcoinZavior Oct 4, 2024
654c0ed
code cleanup
BitcoinZavior Oct 5, 2024
6a1ccca
code cleanup
BitcoinZavior Oct 5, 2024
f062d64
removed Blockchain & exposed SyncRequest & FullScanRequest builders
BitcoinZavior Oct 5, 2024
e0232e3
code clean up
BitcoinZavior Oct 6, 2024
5f1e4e5
code formatted
BitcoinZavior Oct 6, 2024
caf5383
exposed EsploraClient & ElectrumClient
BitcoinZavior Oct 6, 2024
d3c59b6
code cleanup
BitcoinZavior Oct 7, 2024
4e44e81
removed remove_partial_sigs
BitcoinZavior Oct 9, 2024
4474db3
dart keyword error resolved
BitcoinZavior Oct 9, 2024
1da4571
refactor(Transaction): made all the non-constructor functions synchro…
BitcoinZavior Oct 11, 2024
f18c7be
bindings updated
BitcoinZavior Oct 11, 2024
574234b
code cleanup
BitcoinZavior Oct 11, 2024
e339722
Exposed sync in Electrum & Esplora Client
BitcoinZavior Oct 11, 2024
73cca02
fix: Updated example code for new version compliance
BitcoinZavior Oct 12, 2024
35ccc79
added integration_test
BitcoinZavior Oct 12, 2024
8026a4c
changed fullScan to false
BitcoinZavior Oct 13, 2024
eceab0a
added integration_tests
BitcoinZavior Oct 15, 2024
eacd8e5
Merge pull request
BitcoinZavior Oct 15, 2024
9afecfb
exposed & mapped BumpfeeTx exception
BitcoinZavior Oct 15, 2024
f0b2f2e
mapped exceptions
BitcoinZavior Oct 17, 2024
b645d85
doc comments updated
BitcoinZavior Oct 17, 2024
98dc360
mock tests updated
BitcoinZavior Oct 21, 2024
2ed3002
feat(FfiSyncRequestBuilder): updated progress to SyncProgress
BitcoinZavior Oct 22, 2024
66232b7
updated stop_on_error to true
BitcoinZavior Oct 24, 2024
0070e17
code cleanup
BitcoinZavior Oct 24, 2024
a9bd4e6
created todos to resolve unhandled unwraps
BitcoinZavior Oct 24, 2024
507a759
bindings updated
BitcoinZavior Oct 28, 2024
302aa4e
handled PanicExceptions
BitcoinZavior Oct 28, 2024
4290df6
code cleanup
BitcoinZavior Oct 28, 2024
2678536
sync updated
BitcoinZavior Oct 29, 2024
fc295ee
code cleanup
BitcoinZavior Oct 29, 2024
6aeba84
class name updated
BitcoinZavior Oct 31, 2024
66ecae7
Merge branch 'main' into v1.0.0-alpha.11
BitcoinZavior Nov 3, 2024
867979e
restoreWallet updated
BitcoinZavior Nov 5, 2024
85967cd
code cleanup
BitcoinZavior Nov 6, 2024
2d74b97
feat: expose wallet.policies
BitcoinZavior Nov 7, 2024
b093aae
feat: expose txBuilder.policyPath
BitcoinZavior Nov 7, 2024
8ca4b83
Update CHANGELOG.md
BitcoinZavior Nov 8, 2024
2fbb172
Update precompile_binaries.yml
BitcoinZavior Nov 8, 2024
8f01157
Merge branch 'main' into v1.0.0-alpha.11
BitcoinZavior Nov 8, 2024
200bd24
Merge pull request #148 from LtbLightning/v1-alpha
BitcoinZavior Nov 8, 2024
3113f2a
Merge remote-tracking branch 'upstream/main' into fix/v1.0.0-alpha.11
StaxoLotl Mar 7, 2025
bdb9e18
Merge pull request #161 from StaxoLotl/fix/v1.0.0-alpha.11
StaxoLotl Mar 7, 2025
b05e9c2
refactor: rename Api class to LibBdk and change async methods to sync
StaxoLotl Mar 7, 2025
d07780c
chore: update flutter_rust_bridge and related dependencies to version…
StaxoLotl Mar 7, 2025
8a209be
chore: update flutter_rust_bridge_codegen to version 2.5.0 in makefile
StaxoLotl Mar 7, 2025
2ef5c36
refactor: rename ParseError to BdkAddressParseError to avoid conflict…
StaxoLotl Mar 7, 2025
1956f65
feat: add StringParseError class for handling string parsing errors
StaxoLotl Mar 7, 2025
4343733
refactor: change sign method from async to sync
StaxoLotl Mar 7, 2025
069c75d
feat: add busy timeout to SQLite connection initialization
StaxoLotl Mar 7, 2025
e21c010
style: code formatted
StaxoLotl Mar 7, 2025
8c79694
chore: remove unused empty script method
StaxoLotl Mar 7, 2025
7e781cf
refactor: update FfiUpdate structure to use 'opaque' field instead of…
StaxoLotl Mar 7, 2025
60ac7ac
feat: exposed Condition, Satisfaction, and SatisfiableItem
StaxoLotl Mar 7, 2025
fcb5320
refactor: code cleanup
StaxoLotl Mar 7, 2025
1c6c773
chore: code cleanup
StaxoLotl Mar 7, 2025
a67f861
chore: remove redundant code
StaxoLotl Mar 7, 2025
a76f555
refactor: replace Api with LibBdk in address and client classes
StaxoLotl Mar 7, 2025
19bac89
chore: bindings updated
StaxoLotl Mar 7, 2025
b4c26f9
refactor: optimize key derivation by removing unnecessary await
StaxoLotl Mar 7, 2025
6957b9f
chore: remove multi-sig integration test file
StaxoLotl Mar 7, 2025
4d9ce16
refactor: mock tests updated
StaxoLotl Mar 7, 2025
4e4d502
refactor: add debugPrint import for improved logging
StaxoLotl Mar 7, 2025
8a135ef
chore: pin dependency versions in Cargo.toml
StaxoLotl Mar 7, 2025
eeff14e
refactor: update EsploraClient URL and remove unused UTXO handling
StaxoLotl Mar 7, 2025
afe9b64
refactor: add secondary wallet
StaxoLotl Mar 7, 2025
06e5e42
refactor: update .gitignore to include build and SwiftPM directories
StaxoLotl Mar 7, 2025
b6bcfc6
refactor: enable GPU validation mode in Runner.xcscheme
StaxoLotl Mar 7, 2025
ddfa69e
Merge pull request #162 from StaxoLotl/fix/v1.0.0-alpha.11
StaxoLotl Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## [1.0.0-alpha.11]
## [0.31.3]
#### Upgrades
- Updated `Flutter` dependencies to the latest version.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To use the `bdk_flutter` package in your project, add it as a dependency in your

```dart
dependencies:
bdk_flutter: ^0.31.3
bdk_flutter: "1.0.0-alpha.11"
```

### Examples
Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
167 changes: 0 additions & 167 deletions example/integration_test /multi_sig_test.dart

This file was deleted.

48 changes: 48 additions & 0 deletions example/integration_test/full_cycle_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import 'package:bdk_flutter/bdk_flutter.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
group('Descriptor & Keys', () {
setUp(() async {});
testWidgets('Muti-sig wallet generation', (_) async {
final descriptor = await Descriptor.create(
descriptor:
"wsh(or_d(pk([24d87569/84'/1'/0'/0/0]tpubDHebJGZWZaZ3JkhwTx5DytaRpFhK9ffFaN9PMBm7m63bdkdxqKgXkSPMzYzfDAGStx8LWt4b2CgGm86BwtNuG6PdsxsLVmuf6EjREX3oHjL/0/0/*),and_v(v:older(12),pk([24d87569/84'/1'/0'/0/0]tpubDHebJGZWZaZ3JkhwTx5DytaRpFhK9ffFaN9PMBm7m63bdkdxqKgXkSPMzYzfDAGStx8LWt4b2CgGm86BwtNuG6PdsxsLVmuf6EjREX3oHjL/0/1/*))))",
network: Network.testnet);
final changeDescriptor = await Descriptor.create(
descriptor:
"wsh(or_d(pk([24d87569/84'/1'/0'/1/0]tpubDHebJGZWZaZ3JkhwTx5DytaRpFhK9ffFaN9PMBm7m63bdkdxqKgXkSPMzYzfDAGStx8LWt4b2CgGm86BwtNuG6PdsxsLVmuf6EjREX3oHjL/1/0/*),and_v(v:older(12),pk([24d87569/84'/1'/0'/1/0]tpubDHebJGZWZaZ3JkhwTx5DytaRpFhK9ffFaN9PMBm7m63bdkdxqKgXkSPMzYzfDAGStx8LWt4b2CgGm86BwtNuG6PdsxsLVmuf6EjREX3oHjL/1/1/*))))",
network: Network.testnet);

final wallet = await Wallet.create(
descriptor: descriptor,
changeDescriptor: changeDescriptor,
network: Network.testnet,
connection: await Connection.createInMemory());
debugPrint(wallet.network().toString());
});
testWidgets('Derive descriptorSecretKey Manually', (_) async {
final mnemonic = await Mnemonic.create(WordCount.words12);
final descriptorSecretKey = await DescriptorSecretKey.create(
network: Network.testnet, mnemonic: mnemonic);
debugPrint(descriptorSecretKey.toString());

for (var e in [0, 1]) {
final derivationPath =
await DerivationPath.create(path: "m/84'/1'/0'/$e");
final derivedDescriptorSecretKey =
descriptorSecretKey.derive(derivationPath);
debugPrint(derivedDescriptorSecretKey.toString());
debugPrint(derivedDescriptorSecretKey.toPublic().toString());
final descriptor = await Descriptor.create(
descriptor: "wpkh($derivedDescriptorSecretKey)",
network: Network.testnet);

debugPrint(descriptor.toString());
}
});
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
Loading
Loading