Skip to content

SDK: Add contract binding and test for contribute (Savings contract) #375

@A6dulmalik

Description

@A6dulmalik

Implementation path: sdk/src/savings/contribute.ts (tests: sdk/src/savings/__tests__/contribute.test.ts)

Add an SDK binding for contribute, which records a member's contribution for the current round.

  • Maps input params: member, group_id
  • Maps error variants: GroupNotFound, GroupNotActive, NotMember, MemberDefaulted, AlreadyPaidThisRound, PaymentWindowClosed
  • Includes unit tests for success, double-pay, defaulted member, and closed window
  • Includes usage documentation

Reference: contribute in Savings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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