Bump bdk-ffi submodule to 0.7.0 tag

This commit is contained in:
thunderbiscuit 2022-06-23 15:21:48 -04:00
parent 03b2097173
commit 5db9b1bc7b
No known key found for this signature in database
GPG Key ID: 88253696EB836462
6 changed files with 20 additions and 17 deletions

2
.gitignore vendored
View File

@ -11,3 +11,5 @@ libbdkffi.dylib
src/bdkpython/bdk.py src/bdkpython/bdk.py
*.whl *.whl
build/ build/
testing-setup-py-simple-example.py

View File

@ -10,14 +10,12 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- Community related files (bug report, feature request, and pull request templates) - Community related files (bug report, feature request, and pull request templates)
- Changelog - Changelog
- MIT and Apache 2.0 licenses - MIT and Apache 2.0 licenses
- Update BDK to version 0.18.0 - Update BDK to version `0.19.0`
- Add BumpFeeTxBuilder to bump the fee on an unconfirmed tx created by the Wallet - Add `BumpFeeTxBuilder` to bump the fee on an unconfirmed tx created by the Wallet
- Change TxBuilder.build() to TxBuilder.finish() to align with bdk function name - Add `Blockchain.broadcast` function (does not return anything)
- Fix Wallet.broadcast function, now returns a tx id as a hex string - Add TxBuilder for creating new spending `PartiallySignedBitcoinTransaction`
- Remove creating a new spending Transaction via the PartiallySignedBitcoinTransaction constructor - Add TxBuilder `add_recipient`, `fee_rate`, and `finish` functions
- Add TxBuilder for creating new spending PartiallySignedBitcoinTransaction - Add TxBuilder `drain_wallet` and `drain_to` functions
- Add TxBuilder .add_recipient, .fee_rate, and .build functions
- Add TxBuilder .drain_wallet and .drain_to functions
- Update generate cli tool to generate all binding languages and rename to bdk-ffi-bindgen - Update generate cli tool to generate all binding languages and rename to bdk-ffi-bindgen
- Add sqlite database support - Add sqlite database support
- Fix memory database configuration enum, remove junk field - Fix memory database configuration enum, remove junk field

@ -1 +1 @@
Subproject commit 30e54ac067f68e8c22d652837b4d5901c12e3384 Subproject commit 80ed21e4c9e61d6224e074258229a4d6da6cc049

View File

@ -6,7 +6,7 @@ from setuptools import setup
from setuptools_rust import Binding, RustExtension from setuptools_rust import Binding, RustExtension
LONG_DESCRIPTION = """# bdkpython LONG_DESCRIPTION = """# bdkpython
The Python language bindings for the [bitcoindevkit](https://github.com/bitcoindevkit). The Python language bindings for the [Bitcoin Dev Kit](https://github.com/bitcoindevkit).
## Install the package ## Install the package
```shell ```shell
@ -39,8 +39,10 @@ wallet = bdk.Wallet(
) )
# print new receive address # print new receive address
address = wallet.get_new_address() address_info = wallet.get_address(bdk.AddressIndex.LAST_UNUSED)
print(f"New BIP84 testnet address: {address}") address = address_info.address
index = address_info.index
print(f"New BIP84 testnet address: {address} at index {index}")
# print wallet balance # print wallet balance
@ -57,8 +59,8 @@ rust_ext = RustExtension(
setup( setup(
name='bdkpython', name='bdkpython',
version = '0.1.0.dev', version='0.1.0.dev',
description="The Python language bindings for the bitcoindevkit", description="The Python language bindings for the Bitcoin Dev Kit",
long_description=LONG_DESCRIPTION, long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
rust_extensions=[rust_ext], rust_extensions=[rust_ext],

View File

@ -24,7 +24,8 @@ class TestSimpleBip84Wallet(unittest.TestCase):
network=bdk.Network.TESTNET, network=bdk.Network.TESTNET,
database_config=db_config database_config=db_config
) )
address = wallet.get_new_address() address_info = wallet.get_address(bdk.AddressIndex.LAST_UNUSED)
address = address_info.address
# print(f"New address is {address}") # print(f"New address is {address}")
assert address == "tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e", f"Wrong address {address}, should be tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e" assert address == "tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e", f"Wrong address {address}, should be tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e"