Skip to content

get_distributor_list accessor for indexers #232

Closed

Description

@kilodesodiq-arch

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).

Difficulty. Easy
Estimated effort. S



Backlog item #24 from `docs/maintainer-issue-backlog.md.

Activity

  1. Moonwalker-rgb commented on Jul 23, 2026

    @Moonwalker-rgb
    Contributor

    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.

  2. grantfox-oss commented on Jul 23, 2026

    @grantfox-oss

    🦊 GrantFox — @Moonwalker-rgb has been assigned to this issue as part of the Official Campaign | FWC26 campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #232)
    2. Your PR will be reviewed by the ChainForgee maintainers

    Good luck! Track your progress on GrantFox.

  3. grantfox-oss commented on Jul 28, 2026

    @grantfox-oss

    🎉 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions