Commit Graph

1072 Commits

Author SHA1 Message Date
Steve Myers
dfb350e206 Merge bitcoindevkit/bdk-ffi#193: Update bdk dependency to 0.22
3c6075ad96 Add Balance struct and conversion from BdkBalance (thunderbiscuit)
4e15badb14 Update BDK to version 0.22 (thunderbiscuit)

Pull request description:

  The bindings do not build when attempting this upgrade because `get_balance()` now returns a `Balance` struct (this was merged in bitcoindevkit/bdk#640)

  ```sh
  error[E0308]: mismatched types
     --> src/lib.rs:433:9
      |
  432 |     fn get_balance(&self) -> Result<u64, Error> {
      |                              ------------------ expected `Result<u64, bdk::Error>` because of return type
  433 |         self.get_wallet().get_balance()
      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found struct `Balance`
      |
      = note: expected enum `Result<u64, _>`
                 found enum `Result<Balance, _>`

  For more information about this error, try `rustc --explain E0308`.
  error: could not compile `bdk-ffi` due to previous error
  ```

  When we upgrade to `0.22.0` we could decide to add the `Balance` struct to the bindings, or simply return the total by calling `get_total()`, which returns a `u64` (same as we have now).

ACKs for top commit:
  notmandatory:
    ACK 3c6075ad96

Tree-SHA512: 13d2f83f992735f4f9619ae339d7834df08385129edf06bac830c298b433571af3f211e92a6da1f4f9646dec27dbd2c6133a035f26eac8757b7a1c94b54b463d
2022-09-08 13:58:27 -05:00
thunderbiscuit
4e14e8d22a Merge pull request #87 from bitcoindevkit/publish-to-staging
Publish bdk-jvm and bdk-android to Maven Central
2022-09-08 10:45:00 -04:00
thunderbiscuit
222d1594ca Enable full bdk-jvm and bdk-android publishing workflow 2022-09-08 09:50:13 -04:00
thunderbiscuit
3c6075ad96 Add Balance struct and conversion from BdkBalance 2022-09-08 08:35:10 -05:00
thunderbiscuit
4e15badb14 Update BDK to version 0.22 2022-09-08 08:34:56 -05:00
thunderbiscuit
3cd252f877 Remove dokka-related markdown files 2022-09-08 08:47:46 -04:00
thunderbiscuit
b259d376b0 Pick up Nexus credentials from GitHub secrets 2022-09-08 08:47:43 -04:00
thunderbiscuit
fc288bc92b Add bdk-android publishing workflow 2022-09-08 08:47:39 -04:00
thunderbiscuit
7e25684399 Add publish to staging repository task 2022-09-08 08:47:36 -04:00
thunderbiscuit
a0adc8fc74 Remove unused Dokka blocks and imports 2022-09-08 08:47:33 -04:00
thunderbiscuit
8b042ef470 Fix bdk-android gradle script signing block 2022-09-08 08:47:31 -04:00
thunderbiscuit
db4ad1a78d Sign bdk-jvm artifact in CI 2022-09-08 08:47:09 -04:00
Steve Myers
f05a6648a7 Refactor TransactionDetails to include confirmation_time (#190) 2022-09-05 14:02:29 -04:00
thunderbiscuit
297680b7c2 Merge pull request #194 from thunderbiscuit/update/uniffi-bindgen
Update uniffi-bindgen to 0.19.5
2022-09-05 13:36:07 -04:00
Steve Myers
8166f820b4 Add README info badges for MSRV and other links 2022-09-05 12:04:08 -05:00
Steve Myers
4f20966ddd Update CI test rust versions to 1.61 and 1.63 2022-09-05 11:46:26 -05:00
thunderbiscuit
d447aac9ae Update uniffi-bindgen to 0.19.5 2022-09-02 13:11:31 -04:00
thunderbiscuit
9c485a952f Bump bdk-ffi submodule to v0.8.1 tag (#78) 2022-08-30 16:29:36 -04:00
thunderbiscuit
159e7ab4af Pin version of uniffi-bindgen in bdk-ffi-bindgen tool (#189) 2022-08-29 22:08:38 -04:00
thunderbiscuit
3750a7ebd6 Add workflow to publish bdk-jvm (#76) 2022-08-29 20:25:05 -04:00
thunderbiscuit
bfe03b91b2 Add inline documentation (#171)
* Add docs for AddressInfo and AddressIndex structs

* Add docs for DatabaseConfig and ElectrumConfig

* Add docs for EsploraConfig struct

* Add docs for TransactionDetails struct

* Add docs for OutPoint struct

* Add docs for TxOut struct

* Add docs for TxBuilder
2022-08-29 15:47:37 -04:00
Pedro
3b028ecab1 Expose set_recipients API from TxBuiler (#186) 2022-08-29 09:58:46 -04:00
Kirill Zhukov
989b7339a0 Convert Gradle script plugin for generating UniFfi bindings into a composite build. 2022-08-24 11:12:44 -07:00
thunderbiscuit
d00813e1d6 Fix CI test workflow using pinned Android NDK 2022-08-19 07:53:50 -04:00
thunderbiscuit
aa004201b2 Fix method names to mirror Rust bdk API (#185)
* Fix method names to mirror Rust bdk API

* Fix method names to mirror Rust bdk API
2022-08-18 14:35:17 -04:00
thunderbiscuit
eed5554551 Merge pull request #184 from thunderbiscuit/block-height-hash
Add `get_height` and `get_block_hash` methods on blockchain
2022-08-18 14:14:03 -04:00
thunderbiscuit
88427e4a05 Update CHANGELOG.md
Co-authored-by: Steve Myers <github@notmandatory.org>
2022-08-18 14:04:31 -04:00
thunderbiscuit
8248660c52 Merge branch 'master' into block-height-hash 2022-08-18 13:43:18 -04:00
thunderbiscuit
25963ec982 Add get_height and get_block_hash methods on blockchain 2022-08-18 13:39:00 -04:00
Steve Myers
7da28658a5 Merge bitcoindevkit/bdk-ffi#154: Add child key pair generation api
5944756b78 Added tests for DescriptorSecretKey and DescriptorPublicKey (dhruvbaliyan)
58fea6b205 Added interfaces DescriptorSecretKey and DescriptorPublicKey (dhruvbaliyan)
4977cb6d68 Added interface DerivationPath (dhruvbaliyan)
930a1f1eb4 Added generate_mnemonic method (dhruvbaliyan)
973013cbdf Removed ExtendedKeyInfo & related methods (dhruvbaliyan)

Pull request description:

  Would like to know if anything can be improved. Completes #87

Top commit has no ACKs.

Tree-SHA512: a480535c8965015d860336c717ec3c394778ac08194b0336eeba4209f3e3eff2072873a190dd8c9e4fac1e2f712c7040c838dc1c1a757d53c28866f118c99c17
2022-08-18 12:14:35 -05:00
dhruvbaliyan
5944756b78 Added tests for DescriptorSecretKey and DescriptorPublicKey 2022-08-18 04:24:03 +05:30
dhruvbaliyan
58fea6b205 Added interfaces DescriptorSecretKey and DescriptorPublicKey 2022-08-18 04:24:02 +05:30
dhruvbaliyan
4977cb6d68 Added interface DerivationPath 2022-08-18 04:24:02 +05:30
dhruvbaliyan
930a1f1eb4 Added generate_mnemonic method 2022-08-18 04:24:02 +05:30
dhruvbaliyan
973013cbdf Removed ExtendedKeyInfo & related methods 2022-08-18 04:24:01 +05:30
thunderbiscuit
d38737669d Fix bdk-python link in readme (#182) 2022-08-17 17:20:20 -04:00
thunderbiscuit
fbf9792b38 Bump version to 0.3.0.dev0 2022-08-07 15:48:59 -04:00
thunderbiscuit
184dcba882 Merge pull request #23 from thunderbiscuit/bump-ffi-080
Bump bdk-ffi to v0.8.0 tag
2022-08-07 13:48:15 -04:00
thunderbiscuit
d916fbd7be Fix CHANGELOG.md
Co-authored-by: Steve Myers <github@notmandatory.org>
2022-08-07 13:26:41 -04:00
thunderbiscuit
66376f05ec Refactors to setup.py 2022-08-05 10:31:24 -04:00
thunderbiscuit
d633d6d2a9 Update changelog to reflect 0.2.0 changes 2022-08-05 10:30:23 -04:00
thunderbiscuit
7a9a6f5169 Bump bdk-ffi to v0.8.0 tag 2022-08-05 09:45:33 -04:00
thunderbiscuit
b19f776e68 Merge pull request #20 from kornpow/build/fix-tests
Fix tox build and tests
2022-08-04 15:12:47 -04:00
Sam Korn
4396ebaa72 fix tox build and tests
Signed-off-by: Sam Korn <korn94sam@gmail.com>
2022-08-04 12:13:05 -06:00
thunderbiscuit
697b58d33e Bump version to 0.9.0-SNAPSHOT 2022-08-01 22:27:05 -04:00
thunderbiscuit
b8129ccd15 Bump bdk-ffi submodule to version 0.8.0
Signed-off-by: thunderbiscuit <thunderbiscuit@protonmail.com>
2022-07-29 14:26:25 -04:00
thunderbiscuit
6896097eb7 Release/0.8 (#177)
* Update changelog to reflect 0.8.0 additions

* Bump version to 0.8.0
2022-07-29 14:08:23 -04:00
Steve Myers
7d95433c28 Merge bitcoindevkit/bdk-ffi#175: Set project MSRV to 1.57.0
6d53cbeb25 Fix fmt error (Steve Myers)
1a12f37a2f Set MSRV to 1.57.0 (Steve Myers)

Pull request description:

  ### Description

  The `master` branch is currently not passing the new github checks.

  A required dependency of `bdk-ffi-bindgen` is `uniffi_bindgen` and it depends on `os_str_bytes` v6.2.0 which has a MSRV of 1.57.0. I therefore had to make the MSRV of `bdk-ffi` also 1.57.0 and update the github actions. This PR also fixes a small `cargo fmt` warning.

  ### Notes to the reviewers

  ```shell
  % cargo +1.56.1 build
  error: package `os_str_bytes v6.2.0` cannot be built because it requires rustc 1.57.0 or newer, while the currently active rustc version is 1.56.1
  ```

  ```shell
  % cargo tree -i os_str_bytes
  os_str_bytes v6.2.0
  └── clap_lex v0.2.4
      └── clap v3.1.18
          └── uniffi_bindgen v0.19.3
              └── bdk-ffi-bindgen v0.2.0 (/Users/steve/git/notmandatory/bdk-ffi/bdk-ffi-bindgen)
  ```

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

Top commit has no ACKs.

Tree-SHA512: 87ad4a02d91184b421871354b1f5c31d906bf7460fe992db15666da32a65f13d8fbaf4ae53928f410a7206b195c8dff76af07210c144a4d02854ceb6af265f7e
2022-07-29 09:43:16 -07:00
Steve Myers
6d53cbeb25 Fix fmt error 2022-07-26 12:36:07 -07:00
Steve Myers
1a12f37a2f Set MSRV to 1.57.0 2022-07-26 12:35:41 -07:00