Repository navigation
Add a read-only view exposing the current settlement state #298
Copy link
Copy link
Labels
GRANTFOX OSSGrantFox open-source campaign taskGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueOfficial GrantFox campaign issueOfficial Campaign | FWC26GrantFox FWC26 official campaignGrantFox FWC26 official campaignarea:settlementsettlementsettlementpriority:mediumMedium priorityMedium prioritystack:rustRustRuststack:sorobanSoroban smart contractSoroban smart contracttype:featureNew functionalityNew functionality
Description
Expose settlement through a read view
Description
There is no O(1) read view for the settlement state, forcing callers to reconstruct it. This issue adds a bounded, read-only view.
Requirements and context
- Repository scope: Agentpay-Org/Agentpay-contracts only.
- Add a read-only entrypoint returning the settlement state without mutating storage.
- Return a sensible default (not a panic) when settlement is unset.
- Reuse stored values rather than recomputing where possible.
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/settlement-01-view- Implement changes
- Write code in: the relevant module.
- Write comprehensive tests in: cover the new behaviour and edge cases.
- Test and commit
Test and commit
- Run
cargo fmt,cargo clippy --all-targets -- -D warnings, andcargo test. - Cover edge cases: unset state, boundary values.
- Include the full test output in the PR description.
Example commit message
feat(settlement): add read view
Guidelines
- Minimum 95 percent test coverage for impacted modules.
- Clear, reviewer-focused documentation.
- Timeframe: 96 hours.
Community & contribution rewards
- 💬 Join the AgentPay community on Discord: https://discord.gg/eXvRKkgcv
- ⭐ This is a GrantFox OSS / Official Campaign task and may be rewarded. When your PR is merged you'll be prompted to rate the project — a 5-star rating is much appreciated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GRANTFOX OSSGrantFox open-source campaign taskGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueOfficial GrantFox campaign issueOfficial Campaign | FWC26GrantFox FWC26 official campaignGrantFox FWC26 official campaignarea:settlementsettlementsettlementpriority:mediumMedium priorityMedium prioritystack:rustRustRuststack:sorobanSoroban smart contractSoroban smart contracttype:featureNew functionalityNew functionality
Activity
thlpkee20-wq commentedon Jul 28, 2026
Please consider assigning this issue to me, as I’m prepared to contribute wherever it’s needed, whether that involves protocol logic, interface creation, service-layer development, visual implementation, or cross-component coordination.
mikewheeleer commentedon Jul 28, 2026
🎉 Assigned to you, @thlpkee20-wq! Thanks for applying — this is part of the Stellar Wave Program. Join our Telegram group to coordinate and get support: https://t.me/+OhR36aTevMYwYzI9
Happy building! 🚀
grantfox-oss commentedon Jul 28, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!
@thlpkee20-wq's PR #322 was approved and merged by @mikewheeleer.
🏆 @thlpkee20-wq: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (363 total points). Track your full progress on GrantFox.
👏 Great work, @thlpkee20-wq! Keep contributing to Agentpay-Org.