Skip to content

get_distributor_list accessor for indexers #232

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions