-
Notifications
You must be signed in to change notification settings - Fork 113
UniFFI bindings #25
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
UniFFI bindings #25
Conversation
933cc5c to
7eb0707
Compare
78e2f18 to
f4df595
Compare
|
Rebased on current state of #11. |
f4df595 to
45c7724
Compare
b7622d9 to
4b449b4
Compare
|
Rebased on #11. |
a364bb0 to
2d9fe37
Compare
8481816 to
1b70183
Compare
32d3675 to
4fcfebc
Compare
7921080 to
40c5031
Compare
49f7f59 to
dfad7f1
Compare
|
Squashed fixups and rebased. Dropped part of the last WIP commit, as this is getting too big anyways. We should land this and then add CI bindings testing in a follow-up. |
dfad7f1 to
13ab9b6
Compare
|
Rebased on main. |
jkczyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the "bindings generation support" commits generated from somewhere?
b4fecbb to
8cf01a0
Compare
| val address2 = node2.newFundingAddress() | ||
| println("Funding address 2: $address2") | ||
|
|
||
| //sendToAddress(address1, 100000u) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why this is commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, as the way I'm issuing commands to the bitcoind regtest node in the JVM version doesn't work on Android (no bitcoin-cli available there, and not even the Runtime JVM object I use to run the commands) . So it's still WIP how to actually integrate the Android library tests with a) any bitcoind/electrsd backend b) run them in the Android device simulator and c) run all of it in CI.
All of it will be a bunch of work that I don't expect to land in this PR, very likely not even for 0.1. I now dropped the commented-out parts and would defer any further changes to a dedicated follow-up.
bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt
Outdated
Show resolved
Hide resolved
58d6868 to
ea53a29
Compare
jkczyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please squash fix-ups.
We generate the scaffolding from an UDL file and include it in `lib.rs`. Furthermore, we add a bindings generation shell script for convenience.
ea53a29 to
cf92ff1
Compare
Squashed without further changes. |
Based on
#9,#10,#11,#13,#52.This PR provides the starting point for UniFFI bindings. Depending on how much code changes are required for the binding generation, we may want to move this to a separate repository.