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

Feature branch for 0.5.0 #112

Merged
merged 22 commits into from
Jan 30, 2024
Merged

Feature branch for 0.5.0 #112

merged 22 commits into from
Jan 30, 2024

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Jan 12, 2024

No description provided.

str4d and others added 8 commits January 10, 2024 17:49
This enables development on non-Apple machines, and potentially in
future usage of the Swift SDK with non-Apple targets.
Conditionally compile Apple-specific APIs
Replace Sapling balance and scan progress FFIs with wallet summary FFI
This removes the type system separation between pre-ZIP 313 and ZIP 317
fees, which becomes necessary when using the transaction proposal
protobuf encoder.
Migrate to latest in-progress revision of Rust crates
@str4d str4d mentioned this pull request Jan 12, 2024
Replace `zcashlc_create_to_address, zcashlc_shield_funds` with proposal-based methods
/// - The total size `len` must be no larger than `isize::MAX`. See the safety
/// documentation of `pointer::offset`.
#[repr(C)]
pub struct FfiBoxedSlice {
Copy link
Contributor

Choose a reason for hiding this comment

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

If "Its contents must be an encoded Proposal protobuf" shouldn't this have a meaningful name indicating this so that it's not used for other purposes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I added that line to the documentation before I decided to implement this as an FfiBoxedSlice. I think it's better to just remove that requirement and allow this to contain an arbitrary byte slice, the contents of which is determined by the method it is returned from.

chain_tip_height: i32,
fully_scanned_height: i32,
scan_progress: *mut FfiScanProgress,
next_sapling_subtree_index: u64,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The protobuf constrains this to a u32, so we should do that here as well. I'll fix this in the next PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opened #118.

Copy link
Contributor Author

@str4d str4d left a comment

Choose a reason for hiding this comment

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

ACK 9a987c2.

@str4d str4d marked this pull request as ready for review January 30, 2024 07:28
Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK 9a987c2

@nuttycom nuttycom merged commit 887b214 into main Jan 30, 2024
@nuttycom nuttycom deleted the ffi-0.5.0 branch January 30, 2024 07:33
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.

3 participants