-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update to payjoin-0.21 #1
Conversation
98cba40
to
024b334
Compare
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.
I don't know much about FFI but this looks fairly straightforward.
Out of curiosity, is it possible to use bitcoin-ffi for the rust-bitcoin bindings instead of making our own?
Yes it is possible to depend on edit: see #3 |
Add compilation flags so tests don't cause build problems. Simplify lib.rs with `pub use ...::*` wildcards.
Add bitcoin, ohttp, request modules. Remove types module.
5ea6a5a
to
53460a9
Compare
README.md
Outdated
@@ -63,7 +63,7 @@ The integration tests illustrates and verify integration using bitcoin core and | |||
```shell | |||
|
|||
# Run the integration test | |||
cargo test --package payjoin_ffi --test bitcoin_core_integration_test v1_to_v1_full_cycle | |||
cargo test --package payjoin_ffi --test bitcoin_core_integration v1_to_v1_full_cycle |
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.
This test was deleted afaict
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.
fixed by removing much of this section of the readme since we spin up using bitcoind
crate now
src/send/uni.rs
Outdated
|
||
#[uniffi::export] | ||
impl SenderBuilder { | ||
//TODO: Replicate all functions like this & remove duplicate code |
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.
Should we create a follow-up issue for this?
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.
shoot I thought I removed this. The TODO item is actually completed and I think was copied over from the original to make separate ffi/uniffi fns
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.
fixed
Remove support for v1 send,receive code. Separate uniffi exports where wrappers are required in order to support payjoin-flutter and other non-uniffi bindings. Use procedural macros to define uniffi bindings. Irrelevant v1-to-v1 tests were removed.
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.
utACK c96d28c
|
||
```shell | ||
|
||
# Run the integration test | ||
cargo test --package payjoin_ffi --test bitcoin_core_integration_test v1_to_v1_full_cycle | ||
cargo test --package payjoin_ffi --test bdk_integration_test v1_to_v1_full_cycle |
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.
sorry i missed this one in my earlier review but this test is also obsolete.
PYTHON INTEGRATION IS NOW WRONG! V1-to-V1 tests ARE NOW WRONG / USELESS, and were removed. these must be FIXED: #2. I have deleted the v1-to-v1 tests but they may be revived to satisfy v2.
Python is being ignored since our immediate goal is to get payjoin-flutter working