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.
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.member,group_idGroupNotFound,GroupNotActive,NotMember,MemberDefaulted,AlreadyPaidThisRound,PaymentWindowClosedReference: contribute in Savings.