Repository navigation
Add a read-only view exposing the current events state #288
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:eventseventseventspriority:mediumMedium priorityMedium prioritystack:rustRustRuststack:sorobanSoroban smart contractSoroban smart contracttype:featureNew functionalityNew functionality
Description
Expose events through a read view
Description
There is no O(1) read view for the events 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 events state without mutating storage.
- Return a sensible default (not a panic) when events is unset.
- Reuse stored values rather than recomputing where possible.
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/events-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(events): 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:eventseventseventspriority:mediumMedium priorityMedium prioritystack:rustRustRuststack:sorobanSoroban smart contractSoroban smart contracttype:featureNew functionalityNew functionality
Activity
Jagadeeshftw commentedon Jul 28, 2026
Hi, I’d love to take on this issue! With my expertise in Rust, Stellar, and smart contract development, I can implement a clean and efficient solution.
🚀 Why Me?
⏱ Timeline
I estimate completing this within 24 hours. Let me know if I can proceed!
grantfox-oss commentedon Jul 28, 2026
🦊 GrantFox — @Jagadeeshftw has been assigned to this issue as part of the Official Campaign | FWC26 campaign!
Next steps:
Closes #288)Good luck! Track your progress on GrantFox.
mikewheeleer commentedon Jul 28, 2026
🎉 You're assigned, @Jagadeeshftw! Part of the Stellar Wave Program — join our Telegram to coordinate: https://t.me/+OhR36aTevMYwYzI9 🚀
grantfox-oss commentedon Jul 29, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!
@Jagadeeshftw's PR #435 was approved and merged by @mikewheeleer.
🏆 @Jagadeeshftw: You earned 45 FoxPoints for this contribution! Your current tier: Specialist (3,761 total points). Track your full progress on GrantFox.
👏 Great work, @Jagadeeshftw! Keep contributing to Agentpay-Org.