You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Statement. Distributor list is stored in Map<Address, bool> but there is no
view function. Off-chain indexers and dashboards have to maintain a parallel list.
Why it matters. Indexer accuracy depends on source-of-truth accessors. Without one,
audit UIs grow stale.
Technical Context.KEY_DISTRIBUTORS currently has no get_distributor_list.
Expected Outcome. A new view function returns Vec<Address> (or paginated (cursor, limit) -> Vec<Address>) of currently-registered distributors.
Acceptance Criteria.
Returns empty Vec after init with no add_distributor calls.
Returns sorted list after 3 add_distributor calls.
Files or modules likely to be affected.src/lib.rs, docs/onchain/api.md (new).
I would like to request assignment for this smart contract ticket to add a view function for our distributor list.
I will implement a getter function in src/lib.rs to retrieve the registered distributors as a sorted vector from the underlying mapping, ensuring off-chain indexers and audit UIs have direct access to the single source of truth, and document the new API in docs/onchain/api.md.
🏆 @Moonwalker-rgb: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (592 total points). Track your full progress on GrantFox.
👏 Great work, @Moonwalker-rgb! Keep contributing to ChainForgee.
Activity
Moonwalker-rgb commentedon Jul 23, 2026
Hi maintainer,
I would like to request assignment for this smart contract ticket to add a view function for our distributor list.
I will implement a getter function in src/lib.rs to retrieve the registered distributors as a sorted vector from the underlying mapping, ensuring off-chain indexers and audit UIs have direct access to the single source of truth, and document the new API in docs/onchain/api.md.
grantfox-oss commentedon Jul 23, 2026
🦊 GrantFox — @Moonwalker-rgb has been assigned to this issue as part of the Official Campaign | FWC26 campaign!
Next steps:
Closes #232)Good luck! Track your progress on GrantFox.
grantfox-oss commentedon Jul 28, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!
@Moonwalker-rgb's PR #417 was approved and merged by @kilodesodiq-arch.
🏆 @Moonwalker-rgb: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (592 total points). Track your full progress on GrantFox.
👏 Great work, @Moonwalker-rgb! Keep contributing to ChainForgee.
feat(onchain): add get_distributor_list accessor for indexers (ChainF…