Write contracts/docs/api-group-treasury.md documenting every public function in contracts/contracts/group_treasury/src/lib.rs — initialize, get_threshold, add_member/remove_member, is_member/get_members, deposit/withdraw/balance, and the multisig withdrawal-proposal functions (propose_withdraw, approve_withdraw, reject_withdraw, get_proposal, list_proposals, get_pending_proposals).
Acceptance criteria:
- Every public function is documented with its full signature, authorization requirements, and panics/error conditions
- The multisig withdrawal flow (
propose_withdraw → approve_withdraw×N → execution) is documented as a worked example end-to-end
- Verified against the current
lib.rs
Write
contracts/docs/api-group-treasury.mddocumenting every public function incontracts/contracts/group_treasury/src/lib.rs—initialize,get_threshold,add_member/remove_member,is_member/get_members,deposit/withdraw/balance, and the multisig withdrawal-proposal functions (propose_withdraw,approve_withdraw,reject_withdraw,get_proposal,list_proposals,get_pending_proposals).Acceptance criteria:
propose_withdraw→approve_withdraw×N → execution) is documented as a worked example end-to-endlib.rs