Add get endorsees for plaintext chain for wildcat#577
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds functionality to extract and list holders (endorsees) from a plaintext bill chain and updates the project version.
- Introduces
BillBlockPlaintextWrapper::get_holderto uniformly retrieve holder, signer, and signatory data. - Adds
get_endorsees_from_chain_with_plaintextto collect all recipients of applicable operations in a chain. - Bumps workspace version and records the new feature in the changelog.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| crates/bcr-ebill-core/src/blockchain/bill/chain.rs | Added get_holder, get_endorsees_from_chain_with_plaintext, and associated test assertion. |
| Cargo.toml | Updated workspace version to 0.4.2 |
| CHANGELOG.md | Added entry for 0.4.2 noting endorsees logic |
Comments suppressed due to low confidence (1)
crates/bcr-ebill-core/src/blockchain/bill/chain.rs:202
- [nitpick] The name
get_endorsees_from_chain_with_plaintextimplies only endorsement recipients, but it also collects holders from mint, sell, and recourse operations. Consider renaming or updating the doc comment to clarify the full set of included operations.
pub fn get_endorsees_from_chain_with_plaintext(
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
User description
📝 Description
Relates to #561
✅ Checklist
Please ensure the following tasks are completed before requesting a review:
cargo fmt.cargo clippy.🚀 Changes Made
See above.
💡 How to Test
Please provide clear instructions on how reviewers can test your changes:
🤝 Related Issues
List any related issues, pull requests, or discussions:
📋 Review Guidelines
Please focus on the following while reviewing:
PR Type
Enhancement
Description
Add
get_endorsees_from_chain_with_plaintextfunction for extracting endorseesImplement
get_holdermethod forBillBlockPlaintextWrapperAdd test coverage for plaintext chain endorsee extraction
Version bump to 0.4.2
Changes diagram
Changes walkthrough 📝
chain.rs
Add endorsee extraction for plaintext chainscrates/bcr-ebill-core/src/blockchain/bill/chain.rs
get_holdermethod to extract holder information from differentblock types
get_endorsees_from_chain_with_plaintextfunction to collectendorsees
HolderFromBlocktypeCHANGELOG.md
Document endorsee extraction featureCHANGELOG.md
Cargo.toml
Version bump to 0.4.2Cargo.toml