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.
Problem Statement. Distributor list is stored in
Map<Address, bool>but there is noview 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_DISTRIBUTORScurrently has noget_distributor_list.Expected Outcome. A new view function returns
Vec<Address>(or paginated(cursor, limit) -> Vec<Address>) of currently-registered distributors.Acceptance Criteria.
Vecafterinitwith noadd_distributorcalls.add_distributorcalls.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.