Skip to content

Add spends/outputs getter fns to builders for use in change calculation#365

Merged
nuttycom merged 4 commits intozcash:mainfrom
zingolabs:add_spends_and_outputs_getters_to_builder
Jan 3, 2023
Merged

Add spends/outputs getter fns to builders for use in change calculation#365
nuttycom merged 4 commits intozcash:mainfrom
zingolabs:add_spends_and_outputs_getters_to_builder

Conversation

@AloeareV
Copy link
Contributor

@AloeareV AloeareV commented Dec 1, 2022

The Input/OutputView traits are nearly straight-copied from https://github.com/zcash/librustzcash/blob/main/zcash_primitives/src/transaction/components/sapling/fees.rs, I'm assuming that interface is the desired one to this kind of functionality.

@codecov-commenter
Copy link

Codecov Report

Base: 84.13% // Head: 83.86% // Decreases project coverage by -0.26% ⚠️

Coverage data is based on head (b3e196e) compared to base (d05b6ce).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #365      +/-   ##
==========================================
- Coverage   84.13%   83.86%   -0.27%     
==========================================
  Files          32       32              
  Lines        2672     2678       +6     
==========================================
- Hits         2248     2246       -2     
- Misses        424      432       +8     
Impacted Files Coverage Δ
src/builder.rs 65.93% <0.00%> (-2.39%) ⬇️
src/note.rs 88.57% <0.00%> (-0.17%) ⬇️
src/circuit.rs 92.51% <0.00%> (-0.03%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

The changelog needs fixing, otherwise LGTM

CHANGELOG.md Outdated
Comment on lines +24 to +26
- `orchard::builder`:
- `{SpendInfo::new, InputView, OutputView}`
- `Builder::{spends, outputs}`
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be moved to the Unreleased section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

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

Co-authored-by: Kris Nuttycombe <kris@nutty.land>
@nuttycom nuttycom merged commit e2bfd99 into zcash:main Jan 3, 2023
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.

4 participants