Summary
The TypeScript SDK currently has registry.ts and coordinator.ts, but wrappers for agent_bidding, agent_marketplace, dispute_resolution, task_store, and upgrade-manager contracts are missing. Developers need typed SDK wrappers to interact with all contracts from TypeScript/JavaScript applications.
Priority
P2
Files to work on
smart-contracts/src/agents/bidding.ts (new)
smart-contracts/src/agents/marketplace.ts (new)
smart-contracts/src/dispute/resolution.ts (new)
smart-contracts/src/tasks/store.ts (new)
smart-contracts/src/upgrade/manager.ts (new)
smart-contracts/src/shared/types.ts
Requirements
- Create
src/agents/bidding.ts: typed wrapper for agent_bidding contract (submit_bid, reveal_bid, get_winner)
- Create
src/agents/marketplace.ts: typed wrapper for agent_marketplace (list_service, search, purchase, confirm_delivery)
- Create
src/dispute/resolution.ts: typed wrapper for dispute_resolution (file_dispute, submit_evidence, vote, resolve)
- Create
src/tasks/store.ts: typed wrapper for task_store (create_task, update_status, get_task, get_history)
- Create
src/upgrade/manager.ts: typed wrapper for upgrade-manager (propose, approve, execute, rollback)
- Shared types in
src/shared/types.ts: AgentRecord, BidRecord, DisputeRecord, TaskRecord, UpgradeProposal
- Each wrapper: typed parameters, typed return values, error handling, event parsing
- Add JSDoc documentation for all public methods
- Add unit tests with mocked Soroban RPC
Acceptance Criteria
Summary
The TypeScript SDK currently has
registry.tsandcoordinator.ts, but wrappers foragent_bidding,agent_marketplace,dispute_resolution,task_store, andupgrade-managercontracts are missing. Developers need typed SDK wrappers to interact with all contracts from TypeScript/JavaScript applications.Priority
P2
Files to work on
Requirements
src/agents/bidding.ts: typed wrapper foragent_biddingcontract (submit_bid, reveal_bid, get_winner)src/agents/marketplace.ts: typed wrapper foragent_marketplace(list_service, search, purchase, confirm_delivery)src/dispute/resolution.ts: typed wrapper fordispute_resolution(file_dispute, submit_evidence, vote, resolve)src/tasks/store.ts: typed wrapper fortask_store(create_task, update_status, get_task, get_history)src/upgrade/manager.ts: typed wrapper forupgrade-manager(propose, approve, execute, rollback)src/shared/types.ts:AgentRecord,BidRecord,DisputeRecord,TaskRecord,UpgradeProposalAcceptance Criteria
any)