Skip to content

[CT-32] Add revenue distribution query functions #796

@yusuftomilola

Description

@yusuftomilola

Overview

Add read-only query functions for the revenue_distribution contract. Work inside contracts/sandbox/revenue_distribution/.

Acceptance Criteria

  • get_beneficiaries(env) -> Vec<Beneficiary> returns current beneficiary list
  • get_distribution(env, id) -> Result<Distribution, Error> returns distribution record
  • get_all_distributions(env) -> Vec<String> returns all distribution IDs
  • has_claimed(env, distribution_id, beneficiary) -> bool
  • get_contract_balance(env) -> u128 returns current token balance held by the contract
  • Code compiles with cargo build

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions