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

Get binding generation & publishing ready for 0.1 release #114

Merged
merged 11 commits into from
Jun 21, 2023

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented May 26, 2023

Based on #124.
Follow-up to #59.
Closes #73.

Here we'll add the final necessary steps to get bindings ready for the initial 'official' release.

@tnull tnull marked this pull request as draft May 26, 2023 10:40
@tnull tnull mentioned this pull request May 26, 2023
47 tasks
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch 5 times, most recently from 6fea98d to 527ecff Compare June 2, 2023 07:57
@tnull tnull changed the title WIP: Get binding generation & publishing ready for 0.1 release Get binding generation & publishing ready for 0.1 release Jun 5, 2023
@tnull tnull marked this pull request as ready for review June 5, 2023 10:35
@tnull tnull marked this pull request as draft June 5, 2023 10:38
@tnull tnull changed the title Get binding generation & publishing ready for 0.1 release WIP: Get binding generation & publishing ready for 0.1 release Jun 5, 2023
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch 2 times, most recently from dbb0d0d to ff7e913 Compare June 14, 2023 14:12
@tnull
Copy link
Collaborator Author

tnull commented Jun 14, 2023

Rebased on #124.

@tnull tnull added this to the 0.1 milestone Jun 15, 2023
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch 5 times, most recently from f21bd20 to 049d0e9 Compare June 19, 2023 11:28
@tnull tnull changed the title WIP: Get binding generation & publishing ready for 0.1 release Get binding generation & publishing ready for 0.1 release Jun 19, 2023
@tnull tnull marked this pull request as ready for review June 19, 2023 11:30
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch 5 times, most recently from 9e40c70 to bbb4c15 Compare June 20, 2023 08:40
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch 2 times, most recently from 0c37836 to 7f6d70a Compare June 20, 2023 09:08
@tnull tnull mentioned this pull request Jun 20, 2023
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch from 7f6d70a to 1716da5 Compare June 20, 2023 11:28
We already have `Node::spendable_onchain_balance` and
`Node::total_onchain_balance` exposed, so the general `onchain_balance`
is kind of redudant. As it is also not exposed (and not easily
exposable) in bindings, we can make the bindings and Rust APIs more
homogeneous by dropping the call.

Plus, we probably should avoid exposing any BDK types in the public API
until BDK 1.0 landed and we made the switch, as many breaking changes
will be coming with it.
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch from 1716da5 to 9e9a76f Compare June 20, 2023 16:07
@tnull
Copy link
Collaborator Author

tnull commented Jun 20, 2023

Rebased on main after #124 was merged.

Copy link
Contributor

@jurvis jurvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took a glance and looks great to me + had some questions :)

Package.swift Show resolved Hide resolved
Package.swift Outdated Show resolved Hide resolved
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch from 9e9a76f to 48d52d4 Compare June 20, 2023 17:49
Copy link

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'll let @jurvis speak to the Swift changes. Feel free to squash the fixups. IMO.

As we're using the `onchain` keyword everywhere in the API to discern
onchain-operations (e.g., `send_to_onchain_address`,
`spendable_onchain_balance`, etc.) we also align the funding API call here and
rename `new_funding_address` to `new_onchain_address`.
Now that we split out UniFFI to its own feature, we can make use of
the `missing_docs` lint again and enforce it in CI for release docs as
well as private items.
.. and use a particular nightly rev for where it's not.
@tnull tnull force-pushed the 2023-05-get-bindings-release-ready branch from 48d52d4 to 7de04b7 Compare June 21, 2023 06:48
@tnull
Copy link
Collaborator Author

tnull commented Jun 21, 2023

LGTM, but I'll let @jurvis speak to the Swift changes. Feel free to squash the fixups. IMO.

Squashed fixups without further changes.

print('Failed to read Package.swift file.', file=sys.stderr)
sys.exit(1)

package_file = original_package_file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the additional variable needed? @arik-so Do you have any insight?

@tnull tnull merged commit 68a5086 into lightningdevkit:main Jun 21, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document MSRV guarantees and enforce in CI
4 participants