Skip to content

Implement token balance checks in ContractClient #11

Description

@Lakes41

ContractClient.getMembershipTokenBalance is currently a stub that throws NOT_IMPLEMENTED. Implement token balance checking using an on-chain provider.

Suggested tasks

  • Add a provider integration using viem or another agreed library
  • Use the configured rpcUrl
  • Validate wallet and contract addresses
  • Query token balance from the contract
  • Return the balance as a string
  • Add tests with a mocked provider

Acceptance criteria

  • getMembershipTokenBalance no longer throws NOT_IMPLEMENTED
  • Token balances can be queried through the SDK
  • Missing rpcUrl or contract address produces a clear error
  • Provider logic is t

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions