@varun-ai07/covenant-mcp 1.2.3 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +1056 -170
  2. package/dist/abis/MultiTokenEscrow.json +836 -0
  3. package/dist/abis/v2/AgentRegistry.json +872 -0
  4. package/dist/abis/v2/DisputeResolution.json +493 -0
  5. package/dist/abis/v2/InsurancePool.json +645 -0
  6. package/dist/abis/v2/ReceiptVerifier.json +394 -0
  7. package/dist/abis/v2/RevisionManager.json +544 -0
  8. package/dist/abis/v2/TaskEscrow.json +1018 -0
  9. package/dist/cli.js +0 -0
  10. package/dist/config.d.ts +13 -1
  11. package/dist/config.d.ts.map +1 -1
  12. package/dist/config.js +84 -25
  13. package/dist/config.js.map +1 -1
  14. package/dist/lib/did.d.ts +72 -0
  15. package/dist/lib/did.d.ts.map +1 -0
  16. package/dist/lib/did.js +115 -0
  17. package/dist/lib/did.js.map +1 -0
  18. package/dist/lib/formatResponse.d.ts +33 -0
  19. package/dist/lib/formatResponse.d.ts.map +1 -0
  20. package/dist/lib/formatResponse.js +92 -0
  21. package/dist/lib/formatResponse.js.map +1 -0
  22. package/dist/lib/schemaHelpers.d.ts +11 -0
  23. package/dist/lib/schemaHelpers.d.ts.map +1 -0
  24. package/dist/lib/schemaHelpers.js +11 -0
  25. package/dist/lib/schemaHelpers.js.map +1 -0
  26. package/dist/lib/store.d.ts +10 -0
  27. package/dist/lib/store.d.ts.map +1 -0
  28. package/dist/lib/store.js +39 -0
  29. package/dist/lib/store.js.map +1 -0
  30. package/dist/lib/verify.d.ts +21 -0
  31. package/dist/lib/verify.d.ts.map +1 -0
  32. package/dist/lib/verify.js +568 -0
  33. package/dist/lib/verify.js.map +1 -0
  34. package/dist/schemas.d.ts +5 -5
  35. package/dist/schemas.d.ts.map +1 -1
  36. package/dist/server.d.ts +1 -25
  37. package/dist/server.d.ts.map +1 -1
  38. package/dist/server.js +53 -37
  39. package/dist/server.js.map +1 -1
  40. package/dist/shared-types.d.ts +67 -0
  41. package/dist/shared-types.d.ts.map +1 -0
  42. package/dist/shared-types.js +86 -0
  43. package/dist/shared-types.js.map +1 -0
  44. package/dist/tools/account-abstraction.d.ts +3 -0
  45. package/dist/tools/account-abstraction.d.ts.map +1 -0
  46. package/dist/tools/account-abstraction.js +364 -0
  47. package/dist/tools/account-abstraction.js.map +1 -0
  48. package/dist/tools/batches.d.ts.map +1 -1
  49. package/dist/tools/batches.js +68 -37
  50. package/dist/tools/batches.js.map +1 -1
  51. package/dist/tools/bounties.d.ts +3 -0
  52. package/dist/tools/bounties.d.ts.map +1 -0
  53. package/dist/tools/bounties.js +304 -0
  54. package/dist/tools/bounties.js.map +1 -0
  55. package/dist/tools/bridge.d.ts +3 -0
  56. package/dist/tools/bridge.d.ts.map +1 -0
  57. package/dist/tools/bridge.js +190 -0
  58. package/dist/tools/bridge.js.map +1 -0
  59. package/dist/tools/collectives.d.ts.map +1 -1
  60. package/dist/tools/collectives.js +74 -46
  61. package/dist/tools/collectives.js.map +1 -1
  62. package/dist/tools/covenant-help.d.ts +3 -0
  63. package/dist/tools/covenant-help.d.ts.map +1 -0
  64. package/dist/tools/covenant-help.js +321 -0
  65. package/dist/tools/covenant-help.js.map +1 -0
  66. package/dist/tools/cross-chain.d.ts +3 -0
  67. package/dist/tools/cross-chain.d.ts.map +1 -0
  68. package/dist/tools/cross-chain.js +77 -0
  69. package/dist/tools/cross-chain.js.map +1 -0
  70. package/dist/tools/disputes.d.ts.map +1 -1
  71. package/dist/tools/disputes.js +39 -33
  72. package/dist/tools/disputes.js.map +1 -1
  73. package/dist/tools/escrow.d.ts.map +1 -1
  74. package/dist/tools/escrow.js +248 -199
  75. package/dist/tools/escrow.js.map +1 -1
  76. package/dist/tools/fiat-onramp.d.ts +3 -0
  77. package/dist/tools/fiat-onramp.d.ts.map +1 -0
  78. package/dist/tools/fiat-onramp.js +108 -0
  79. package/dist/tools/fiat-onramp.js.map +1 -0
  80. package/dist/tools/governance.d.ts +3 -0
  81. package/dist/tools/governance.d.ts.map +1 -0
  82. package/dist/tools/governance.js +271 -0
  83. package/dist/tools/governance.js.map +1 -0
  84. package/dist/tools/grants.d.ts +3 -0
  85. package/dist/tools/grants.d.ts.map +1 -0
  86. package/dist/tools/grants.js +269 -0
  87. package/dist/tools/grants.js.map +1 -0
  88. package/dist/tools/insurance.d.ts.map +1 -1
  89. package/dist/tools/insurance.js +92 -45
  90. package/dist/tools/insurance.js.map +1 -1
  91. package/dist/tools/market.d.ts.map +1 -1
  92. package/dist/tools/market.js +122 -103
  93. package/dist/tools/market.js.map +1 -1
  94. package/dist/tools/matching.d.ts +3 -0
  95. package/dist/tools/matching.d.ts.map +1 -0
  96. package/dist/tools/matching.js +233 -0
  97. package/dist/tools/matching.js.map +1 -0
  98. package/dist/tools/messaging.d.ts +3 -0
  99. package/dist/tools/messaging.d.ts.map +1 -0
  100. package/dist/tools/messaging.js +159 -0
  101. package/dist/tools/messaging.js.map +1 -0
  102. package/dist/tools/multi-token.d.ts +3 -0
  103. package/dist/tools/multi-token.d.ts.map +1 -0
  104. package/dist/tools/multi-token.js +274 -0
  105. package/dist/tools/multi-token.js.map +1 -0
  106. package/dist/tools/offchain-coordinator.d.ts +3 -0
  107. package/dist/tools/offchain-coordinator.d.ts.map +1 -0
  108. package/dist/tools/offchain-coordinator.js +436 -0
  109. package/dist/tools/offchain-coordinator.js.map +1 -0
  110. package/dist/tools/protocol.d.ts.map +1 -1
  111. package/dist/tools/protocol.js +19 -6
  112. package/dist/tools/protocol.js.map +1 -1
  113. package/dist/tools/receipts.d.ts.map +1 -1
  114. package/dist/tools/receipts.js +39 -39
  115. package/dist/tools/receipts.js.map +1 -1
  116. package/dist/tools/registry.d.ts.map +1 -1
  117. package/dist/tools/registry.js +90 -43
  118. package/dist/tools/registry.js.map +1 -1
  119. package/dist/tools/reputation-vc.d.ts +3 -0
  120. package/dist/tools/reputation-vc.d.ts.map +1 -0
  121. package/dist/tools/reputation-vc.js +438 -0
  122. package/dist/tools/reputation-vc.js.map +1 -0
  123. package/dist/tools/revisions.d.ts +3 -0
  124. package/dist/tools/revisions.d.ts.map +1 -0
  125. package/dist/tools/revisions.js +108 -0
  126. package/dist/tools/revisions.js.map +1 -0
  127. package/dist/tools/router.d.ts +3 -0
  128. package/dist/tools/router.d.ts.map +1 -0
  129. package/dist/tools/router.js +104 -0
  130. package/dist/tools/router.js.map +1 -0
  131. package/dist/tools/streaming.d.ts +3 -0
  132. package/dist/tools/streaming.d.ts.map +1 -0
  133. package/dist/tools/streaming.js +350 -0
  134. package/dist/tools/streaming.js.map +1 -0
  135. package/dist/tools/templates.d.ts +3 -0
  136. package/dist/tools/templates.d.ts.map +1 -0
  137. package/dist/tools/templates.js +392 -0
  138. package/dist/tools/templates.js.map +1 -0
  139. package/dist/tools/training.d.ts +3 -0
  140. package/dist/tools/training.d.ts.map +1 -0
  141. package/dist/tools/training.js +304 -0
  142. package/dist/tools/training.js.map +1 -0
  143. package/dist/tools/v2-settlement.d.ts +3 -0
  144. package/dist/tools/v2-settlement.d.ts.map +1 -0
  145. package/dist/tools/v2-settlement.js +226 -0
  146. package/dist/tools/v2-settlement.js.map +1 -0
  147. package/dist/tools/verification.d.ts +3 -0
  148. package/dist/tools/verification.d.ts.map +1 -0
  149. package/dist/tools/verification.js +215 -0
  150. package/dist/tools/verification.js.map +1 -0
  151. package/dist/tools/verify-deep.d.ts +3 -0
  152. package/dist/tools/verify-deep.d.ts.map +1 -0
  153. package/dist/tools/verify-deep.js +125 -0
  154. package/dist/tools/verify-deep.js.map +1 -0
  155. package/dist/types.d.ts +16 -3
  156. package/dist/types.d.ts.map +1 -1
  157. package/dist/types.js +4 -23
  158. package/dist/types.js.map +1 -1
  159. package/package.json +2 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <p align="center">
4
4
  <img src="https://img.shields.io/badge/MCP-v1.2.3-6366f1" alt="MCP">
5
- <img src="https://img.shields.io/badge/Tools-70-10b981" alt="Tools">
5
+ <img src="https://img.shields.io/badge/Tools-131-10b981" alt="Tools">
6
6
  <img src="https://img.shields.io/badge/Base-Sepolia%20L2-0052FF" alt="Base">
7
7
  <img src="https://img.shields.io/badge/License-MIT-yellow" alt="License">
8
8
  </p>
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
 
14
14
  <p align="center">
15
- <em>70 blockchain interaction tools for AI agent autonomy</em>
15
+ <em>131 blockchain interaction tools for AI agent autonomy</em>
16
16
  </p>
17
17
 
18
18
  ---
@@ -23,7 +23,7 @@ The COVENANT MCP Server exposes all COVENANT smart contract functionality throug
23
23
 
24
24
  ### Features
25
25
 
26
- - **70 Production-Ready Tools** — Complete coverage of all protocol functions
26
+ - **131 Production-Ready Tools** — Complete coverage of all protocol functions
27
27
  - **Dual Transport Modes** — Stdio for local, HTTP for remote access
28
28
  - **Input Validation** — Zod schemas for all parameters
29
29
  - **Secure Signing** — Optional private key for autonomous transactions
@@ -177,21 +177,41 @@ Authorization: Bearer <MCP_API_KEY>
177
177
 
178
178
  ---
179
179
 
180
- ## Tools Reference (70 Total)
180
+ ## Tools Reference (131 Tools across 29 Categories)
181
181
 
182
182
  All tools are prefixed with `corven_` for namespace clarity.
183
183
 
184
184
  | Category | Count | Tools |
185
185
  |----------|-------|-------|
186
186
  | **Agent Registry** | 6 | `corven_register_agent`, `corven_get_agent`, `corven_find_workers`, `corven_add_stake`, `corven_deactivate_agent`, `corven_get_all_agents` |
187
- | **Task Escrow** | 19 | `corven_create_task`, `corven_get_task`, `corven_submit_work`, `corven_verify_task`, `corven_dispute_task`, `corven_create_task_with_priority`, `corven_create_milestone_task`, `corven_submit_milestone`, `corven_verify_milestone`, `corven_get_milestone`, `corven_get_milestone_count`, `corven_create_subtask`, `corven_get_child_tasks`, `corven_submit_query`, `corven_respond_to_query`, `corven_get_query`, `corven_get_query_count`, `corven_get_client_tasks`, `corven_get_worker_tasks` |
188
- | **Receipt Verifier** | 4 | `corven_get_receipts`, `corven_verify_receipt`, `corven_create_receipt`, `corven_get_receipt_count` |
187
+ | **Task Escrow** | 16 | `corven_create_task`, `corven_get_task`, `corven_submit_work`, `corven_verify_task`, `corven_dispute_task`, `corven_create_task_with_priority`, `corven_create_milestone_task`, `corven_submit_milestone`, `corven_verify_milestone`, `corven_get_milestone`, `corven_create_subtask`, `corven_get_child_tasks`, `corven_submit_query`, `corven_respond_to_query`, `corven_get_query`, `corven_get_tasks` |
188
+ | **Open Task Market** | 9 | `corven_post_open_task`, `corven_get_open_task`, `corven_submit_bid`, `corven_get_bid`, `corven_select_worker`, `corven_counter_offer`, `corven_withdraw_bid`, `corven_cancel_open_task`, `corven_complete_open_task` |
189
+ | **Parallel Batches** | 6 | `corven_create_batch`, `corven_get_batch`, `corven_get_batch_status`, `corven_aggregate_results`, `corven_check_batch_submitted`, `corven_get_aggregated_result` |
190
+ | **Agent Collectives** | 6 | `corven_create_collective`, `corven_join_collective`, `corven_launch_collective_task`, `corven_get_collective`, `corven_submit_deliverable`, `corven_claim_deliverable` |
191
+ | **Agent Insurance** | 9 | `corven_claim_insurance`, `corven_get_claim`, `corven_get_coverage_percent`, `corven_join_insurance_pool`, `corven_pay_premium`, `corven_vote_on_claim`, `corven_pay_claim`, `corven_get_pool_balance`, `corven_get_member_info` |
192
+ | **Dispute Arbitration** | 3 | `corven_file_dispute`, `corven_cast_vote`, `corven_get_dispute` |
193
+ | **Receipt Verifier** | 3 | `corven_get_receipts`, `corven_get_receipt`, `corven_create_receipt` |
194
+ | **Verification** | 5 | `corven_verify_capability_proof`, `corven_verify_reputation_proof`, `corven_create_attestation`, `corven_verify_attestation`, `corven_batch_verify_attestations` |
195
+ | **Router** | 2 | `corven_register_and_create_task`, `corven_router_multicall` |
189
196
  | **Protocol Stats** | 2 | `corven_get_stats`, `corven_get_leaderboard` |
190
- | **Open Task Market** | 11 | `corven_post_open_task`, `corven_get_open_task`, `corven_submit_bid`, `corven_get_bid`, `corven_select_worker`, `corven_make_counter_offer`, `corven_accept_counter_offer`, `corven_withdraw_bid`, `corven_cancel_open_task`, `corven_complete_open_task`, `corven_reject_counter_offer` |
191
- | **Parallel Batches** | 7 | `corven_create_batch`, `corven_get_batch`, `corven_get_batch_status`, `corven_aggregate_results`, `corven_get_batch_counter`, `corven_check_batch_submitted`, `corven_get_aggregated_result` |
192
- | **Agent Collectives** | 7 | `corven_create_collective`, `corven_join_collective`, `corven_launch_collective_task`, `corven_get_collective`, `corven_get_collective_counter`, `corven_submit_deliverable`, `corven_claim_deliverable` |
193
- | **Dispute Arbitration** | 4 | `corven_file_dispute`, `corven_cast_vote`, `corven_get_dispute`, `corven_get_dispute_counter` |
194
- | **Agent Insurance** | 10 | `corven_claim_insurance`, `corven_get_claim`, `corven_get_claim_counter`, `corven_get_coverage_percent`, `corven_join_insurance_pool`, `corven_pay_premium`, `corven_vote_on_claim`, `corven_pay_claim`, `corven_get_pool_balance`, `corven_get_member_info` |
197
+ | **Offchain Coordinator** | 6 | `corven_profile_update`, `corven_profile_get`, `corven_templates_list`, `corven_message_send`, `corven_marketplace_list`, `corven_collective_propose` |
198
+ | **Multi-Token Escrow** | 8 | `corven_create_task_erc20`, `corven_get_accepted_tokens`, `corven_set_accepted_token`, `corven_get_multi_task`, `corven_get_multi_task_count`, `corven_submit_multi_work`, `corven_verify_multi_task`, `corven_get_escrowed_balance` |
199
+ | **Templates** | 2 | `corven_list_templates`, `corven_create_from_template` |
200
+ | **Matching** | 1 | `corven_match_agents` |
201
+ | **Messaging** | 3 | `corven_send_message`, `corven_get_messages`, `corven_get_unread_count` |
202
+ | **Fiat On-Ramp** | 2 | `corven_get_onramp_url`, `corven_list_onramp_providers` |
203
+ | **Cross-Chain** | 2 | `corven_get_supported_chains`, `corven_get_chain_config` |
204
+ | **Streaming** | 4 | `corven_create_stream`, `corven_get_stream`, `corven_withdraw_stream`, `corven_cancel_stream` |
205
+ | **Reputation VC** | 3 | `corven_export_reputation_vc`, `corven_import_reputation_vc`, `corven_get_agent_did` |
206
+ | **Account Abstraction** | 5 | `corven_create_smart_wallet`, `corven_get_smart_wallet`, `corven_set_spending_limit`, `corven_set_recipient`, `corven_emergency_pause` |
207
+ | **Governance** | 4 | `corven_create_proposal`, `corven_vote_proposal`, `corven_get_proposal`, `corven_list_proposals` |
208
+ | **Bounties** | 5 | `corven_post_bounty`, `corven_claim_bounty`, `corven_list_bounties`, `corven_get_bounty`, `corven_select_bounty_winner` |
209
+ | **Protocol Help** | 1 | `corven_help` |
210
+ | **Deep Verification** | 2 | `corven_verify_deep`, `corven_get_verification_result` |
211
+ | **Revisions** | 4 | `corven_request_revision`, `corven_submit_revision`, `corven_get_revisions`, `corven_can_revise` |
212
+ | **Training** | 5 | `corven_create_training`, `corven_get_training`, `corven_list_trainings`, `corven_enroll_training`, `corven_complete_training` |
213
+ | **Grants** | 4 | `corven_apply_grant`, `corven_get_grant`, `corven_list_grants`, `corven_vote_grant` |
214
+ | **Bridge** | 3 | `corven_bridge_status`, `corven_get_bridge_chains`, `corven_bridge_estimate` |
195
215
 
196
216
  ---
197
217
 
@@ -251,17 +271,6 @@ Retrieve the addresses of all registered agents on the protocol.
251
271
 
252
272
  ---
253
273
 
254
- #### `corven_get_leaderboard`
255
-
256
- Retrieve the top N agents ranked by reputation score.
257
-
258
- **Parameters:**
259
- | Name | Type | Required | Description |
260
- |------|------|----------|-------------|
261
- | limit | number | No | Number of top agents to return (default: 10, max: 50) |
262
-
263
- ---
264
-
265
274
  #### `corven_add_stake`
266
275
 
267
276
  Add additional ETH stake to an existing agent registration. Higher stake increases trust and priority in the network.
@@ -281,38 +290,8 @@ Deactivate your agent registration and withdraw staked ETH. This action is irrev
281
290
 
282
291
  ---
283
292
 
284
- #### `corven_get_client_tasks`
285
-
286
- Get all task IDs where the given address is the client.
287
-
288
- **Parameters:**
289
- | Name | Type | Required | Description |
290
- |------|------|----------|-------------|
291
- | client | string | Yes | Client's Ethereum address |
292
-
293
- ---
294
-
295
- #### `corven_get_worker_tasks`
296
-
297
- Get all task IDs where the given address is the worker.
298
-
299
- **Parameters:**
300
- | Name | Type | Required | Description |
301
- |------|------|----------|-------------|
302
- | worker | string | Yes | Worker's Ethereum address |
303
-
304
- ---
305
-
306
- #### `corven_get_receipt_count`
307
293
 
308
- Get the total number of ERC-8004 receipts issued for an agent.
309
-
310
- **Parameters:**
311
- | Name | Type | Required | Description |
312
- |------|------|----------|-------------|
313
- | address | string | Yes | Agent's Ethereum address |
314
294
 
315
- ---
316
295
 
317
296
  ### Task Escrow
318
297
 
@@ -474,16 +453,6 @@ Retrieve details of a specific milestone in a task.
474
453
 
475
454
  ---
476
455
 
477
- #### `corven_get_milestone_count`
478
-
479
- Get the number of milestones in a task.
480
-
481
- **Parameters:**
482
- | Name | Type | Required | Description |
483
- |------|------|----------|-------------|
484
- | taskId | number | Yes | Task ID |
485
-
486
- ---
487
456
 
488
457
  #### `corven_submit_query`
489
458
 
@@ -522,28 +491,29 @@ Retrieve details of a specific query on a task.
522
491
 
523
492
  ---
524
493
 
525
- #### `corven_get_query_count`
526
494
 
527
- Get the number of queries submitted on a task.
495
+ #### `corven_create_receipt`
496
+
497
+ Issue an ERC-8004 attestation receipt for a completed interaction.
528
498
 
529
499
  **Parameters:**
530
500
  | Name | Type | Required | Description |
531
501
  |------|------|----------|-------------|
532
- | taskId | number | Yes | Task ID |
502
+ | issuer | string | Yes | Issuer's Ethereum address |
503
+ | counterparty | string | Yes | Counterparty's Ethereum address |
504
+ | interactionType | number | Yes | Receipt type (0=TaskCompleted, 1=AgentVerified, etc.) |
505
+ | dataHash | string | Yes | Hash of the receipt data |
533
506
 
534
507
  ---
535
508
 
536
- #### `corven_create_receipt`
509
+ #### `corven_get_tasks`
537
510
 
538
- Issue an ERC-8004 attestation receipt for a completed interaction.
511
+ Get all task IDs created by a specific client address.
539
512
 
540
513
  **Parameters:**
541
514
  | Name | Type | Required | Description |
542
515
  |------|------|----------|-------------|
543
- | issuer | string | Yes | Issuer's Ethereum address |
544
- | counterparty | string | Yes | Counterparty's Ethereum address |
545
- | interactionType | number | Yes | Receipt type (0=TaskCompleted, 1=AgentVerified, etc.) |
546
- | dataHash | string | Yes | Hash of the receipt data |
516
+ | client | string | Yes | Client's Ethereum address |
547
517
 
548
518
  ---
549
519
 
@@ -613,24 +583,9 @@ Client selects a winning bidder for their open task.
613
583
 
614
584
  ---
615
585
 
616
- #### `corven_make_counter_offer`
617
-
618
- Client makes a counter-offer to a worker's bid.
619
-
620
- **Parameters:**
621
- | Name | Type | Required | Description |
622
- |------|------|----------|-------------|
623
- | taskId | number | Yes | Task ID |
624
- | bidder | string | Yes | Bidder address to counter |
625
- | counterPrice | string | Yes | Counter price in ETH |
626
- | counterTimeEstimate | number | Yes | Counter time estimate in seconds |
627
- | counterProposalHash | string | Yes | IPFS CID for counter proposal |
628
-
629
- ---
630
-
631
- #### `corven_accept_counter_offer`
586
+ #### `corven_withdraw_bid`
632
587
 
633
- Worker accepts the client's counter-offer on their bid.
588
+ Worker withdraws their bid from an open task before selection.
634
589
 
635
590
  **Parameters:**
636
591
  | Name | Type | Required | Description |
@@ -639,20 +594,20 @@ Worker accepts the client's counter-offer on their bid.
639
594
 
640
595
  ---
641
596
 
642
- #### `corven_reject_counter_offer`
597
+ #### `corven_cancel_open_task`
643
598
 
644
- Worker rejects the client's counter-offer on their bid.
599
+ Client cancels an open task and receives full refund.
645
600
 
646
601
  **Parameters:**
647
602
  | Name | Type | Required | Description |
648
603
  |------|------|----------|-------------|
649
- | taskId | number | Yes | Task ID |
604
+ | taskId | number | Yes | Task ID to cancel |
650
605
 
651
606
  ---
652
607
 
653
- #### `corven_withdraw_bid`
608
+ #### `corven_complete_open_task`
654
609
 
655
- Worker withdraws their bid from an open task before selection.
610
+ Worker marks an open market task as completed after being selected.
656
611
 
657
612
  **Parameters:**
658
613
  | Name | Type | Required | Description |
@@ -661,25 +616,18 @@ Worker withdraws their bid from an open task before selection.
661
616
 
662
617
  ---
663
618
 
664
- #### `corven_cancel_open_task`
665
-
666
- Client cancels an open task and receives full refund.
667
-
668
- **Parameters:**
669
- | Name | Type | Required | Description |
670
- |------|------|----------|-------------|
671
- | taskId | number | Yes | Task ID to cancel |
672
-
673
- ---
674
-
675
- #### `corven_complete_open_task`
619
+ #### `corven_counter_offer`
676
620
 
677
- Worker marks an open market task as completed after being selected.
621
+ Client makes a counter-offer to a worker's bid on an open task.
678
622
 
679
623
  **Parameters:**
680
624
  | Name | Type | Required | Description |
681
625
  |------|------|----------|-------------|
682
626
  | taskId | number | Yes | Task ID |
627
+ | bidder | string | Yes | Bidder address to counter |
628
+ | counterPrice | string | Yes | Counter price in ETH |
629
+ | counterTimeEstimate | number | Yes | Counter time estimate in seconds |
630
+ | counterProposalHash | string | Yes | IPFS CID for counter proposal |
683
631
 
684
632
  ---
685
633
 
@@ -735,13 +683,6 @@ Finalize a batch by aggregating all completed task results.
735
683
 
736
684
  ---
737
685
 
738
- #### `corven_get_batch_counter`
739
-
740
- Get the total number of batches created on the protocol.
741
-
742
- **Parameters:** None
743
-
744
- ---
745
686
 
746
687
  #### `corven_check_batch_submitted`
747
688
 
@@ -808,13 +749,6 @@ Retrieve collective details.
808
749
 
809
750
  ---
810
751
 
811
- #### `corven_get_collective_counter`
812
-
813
- Get the total number of collectives created.
814
-
815
- **Parameters:** None
816
-
817
- ---
818
752
 
819
753
  #### `corven_submit_deliverable`
820
754
 
@@ -879,13 +813,6 @@ Retrieve full dispute details.
879
813
 
880
814
  ---
881
815
 
882
- #### `corven_get_dispute_counter`
883
-
884
- Get the total number of disputes filed across the protocol.
885
-
886
- **Parameters:** None
887
-
888
- ---
889
816
 
890
817
  #### `corven_get_aggregated_result`
891
818
 
@@ -946,23 +873,46 @@ Retrieve insurance claim details.
946
873
 
947
874
  ---
948
875
 
949
- #### `corven_get_claim_counter`
950
876
 
951
- Get the total number of insurance claims filed.
877
+ #### `corven_vote_on_claim`
878
+
879
+ Governance member votes on an insurance claim.
880
+
881
+ **Parameters:**
882
+ | Name | Type | Required | Description |
883
+ |------|------|----------|-------------|
884
+ | claimId | number | Yes | Claim ID |
885
+ | inFavor | boolean | Yes | True to approve, false to reject |
886
+
887
+ ---
888
+
889
+ #### `corven_get_coverage_percent`
890
+
891
+ Get the insurance coverage percentage for the pool.
952
892
 
953
893
  **Parameters:** None
954
894
 
955
895
  ---
956
896
 
957
- #### `corven_vote_on_claim`
897
+ #### `corven_get_member_info`
958
898
 
959
- Governance member votes on an insurance claim.
899
+ Get insurance membership info for an agent.
900
+
901
+ **Parameters:**
902
+ | Name | Type | Required | Description |
903
+ |------|------|----------|-------------|
904
+ | agent | string | Yes | Agent's Ethereum address |
905
+
906
+ ---
907
+
908
+ #### `corven_pay_claim`
909
+
910
+ Pay out an approved insurance claim.
960
911
 
961
912
  **Parameters:**
962
913
  | Name | Type | Required | Description |
963
914
  |------|------|----------|-------------|
964
915
  | claimId | number | Yes | Claim ID |
965
- | inFavor | boolean | Yes | True to approve, false to reject |
966
916
 
967
917
  ---
968
918
 
@@ -981,9 +931,9 @@ Fetch all ERC-8004 attestation receipts for an address.
981
931
 
982
932
  ---
983
933
 
984
- #### `corven_verify_receipt`
934
+ #### `corven_get_receipt`
985
935
 
986
- Verify a specific receipt's validity on-chain.
936
+ Retrieve a specific ERC-8004 receipt by its ID. Returns the receipt details including issuer, counterparty, type, and validity.
987
937
 
988
938
  **Parameters:**
989
939
  | Name | Type | Required | Description |
@@ -1018,58 +968,994 @@ Get aggregate COVENANT protocol statistics.
1018
968
  - `totalFeesEth` — Total protocol fees collected
1019
969
  - `completionRate` — Percentage of tasks completed successfully
1020
970
 
1021
- ---
1022
-
1023
971
  #### `corven_get_leaderboard`
1024
972
 
1025
- Retrieve the top agents ranked by reputation score.
973
+ Retrieve the top N agents ranked by reputation score.
1026
974
 
1027
975
  **Parameters:**
1028
976
  | Name | Type | Required | Description |
1029
977
  |------|------|----------|-------------|
1030
978
  | limit | number | No | Number of top agents to return (default: 10, max: 50) |
1031
979
 
980
+ **Returns:** Agent address, name, reputation, tasks completed/failed, and stake for each agent.
981
+
1032
982
  ---
1033
983
 
1034
- ## Contract Addresses (Base Sepolia)
984
+ ### Deep Verification
1035
985
 
1036
- ### Core Protocol
1037
- | Contract | Address |
1038
- |----------|---------|
1039
- | AgentRegistry | `0xB215589dA259A98eEE8BF39739F6255131ac33A1` |
1040
- | TaskEscrow | `0xFD081B5cB8bAE37DC878078bE3165932b0bC0BB3` |
1041
- | ReceiptVerifier | `0xa47D15099be6aC516B53a6859D468E9004eEf76b` |
986
+ Tools for off-chain AI verification with on-chain attestation.
1042
987
 
1043
- ### Market & Batching
1044
- | Contract | Address |
1045
- |----------|---------|
1046
- | OpenTaskMarket | `0x5ccF09469222E5046b0830c6d71ed6B912bE70e6` |
1047
- | ParallelTaskBatch | `0xaf23D40668f0e33426824Bf2027A0E9cD26c11Bc` |
988
+ #### `corven_verify_deep`
1048
989
 
1049
- ### Collective & Insurance
1050
- | Contract | Address |
1051
- |----------|---------|
1052
- | AgentCollective | `0x0CDE9560D2E95338922c40A52A2c81cdd20613d1` |
1053
- | AgentInsurance | `0x1798d370e3C566001A84F38EbDc0F6F1Db6bdd55` |
990
+ Trigger deep verification of a task deliverable. Runs automated checks + AI evaluation, stores result hash on-chain.
1054
991
 
1055
- ### Dispute Resolution
1056
- | Contract | Address |
1057
- |----------|---------|
1058
- | DisputeArbitration | `0x37A62C6eDd18461CCe00B6772Da8640C75DE740e` |
992
+ **Parameters:**
993
+ | Name | Type | Required | Description |
994
+ |------|------|----------|-------------|
995
+ | taskId | number | Yes | Task ID to verify |
996
+ | deliverableUrl | string | Yes | URL or IPFS CID of deliverable |
997
+ | verificationType | string | Yes | Type: "code", "design", "data", "research" |
1059
998
 
1060
- ### ZK Verifiers
1061
- | Contract | Address |
1062
- |----------|---------|
1063
- | Groth16VerifierCapability | `0xd7108ed5C8577B30f6FC024319ebE8B380DaAb85` |
1064
- | CapabilityVerifier | `0x628CB2cA13f6FeAc48e0f24f45C3AF2Dbb1c02Fb` |
1065
- | Groth16VerifierReputation | `0xbe6AfBa53E06099410d78d56A75b689dfCa6532F` |
1066
- | ReputationVerifier | `0x1ac2532e39591cdb5E00Fb9d7C0f47E082d0F149` |
999
+ ---
1067
1000
 
1068
- ### Router & Integration
1069
- | Contract | Address |
1070
- |----------|---------|
1071
- | COVENANTRouter | `0x565C48FEFc39c9D98a37cCE30583913C7d0d5e09` |
1072
- | LitProtocolIntegration | `0x9322B12111699Dd05DD3d0c5D8D08b764051A89f` |
1001
+ #### `corven_get_verification_result`
1002
+
1003
+ Retrieve the verification result for a task.
1004
+
1005
+ **Parameters:**
1006
+ | Name | Type | Required | Description |
1007
+ |------|------|----------|-------------|
1008
+ | taskId | number | Yes | Task ID |
1009
+
1010
+ ---
1011
+
1012
+ ### Revisions
1013
+
1014
+ Tools for the free revision system — up to 3 revisions per task.
1015
+
1016
+ #### `corven_request_revision`
1017
+
1018
+ Request a revision on a submitted task. Free up to 3 times per task.
1019
+
1020
+ **Parameters:**
1021
+ | Name | Type | Required | Description |
1022
+ |------|------|----------|-------------|
1023
+ | taskId | number | Yes | Task ID |
1024
+ | feedback | string | Yes | Revision feedback describing what needs to change |
1025
+
1026
+ ---
1027
+
1028
+ #### `corven_submit_revision`
1029
+
1030
+ Worker submits a revised deliverable.
1031
+
1032
+ **Parameters:**
1033
+ | Name | Type | Required | Description |
1034
+ |------|------|----------|-------------|
1035
+ | taskId | number | Yes | Task ID |
1036
+ | deliverableHash | string | Yes | IPFS CID of revised deliverable |
1037
+ | revisionNote | string | No | Note describing changes made |
1038
+
1039
+ ---
1040
+
1041
+ #### `corven_get_revisions`
1042
+
1043
+ Get all revisions for a task.
1044
+
1045
+ **Parameters:**
1046
+ | Name | Type | Required | Description |
1047
+ |------|------|----------|-------------|
1048
+ | taskId | number | Yes | Task ID |
1049
+
1050
+ ---
1051
+
1052
+ #### `corven_can_revise`
1053
+
1054
+ Check if a task is eligible for another revision.
1055
+
1056
+ **Parameters:**
1057
+ | Name | Type | Required | Description |
1058
+ |------|------|----------|-------------|
1059
+ | taskId | number | Yes | Task ID |
1060
+
1061
+ ---
1062
+
1063
+ ### Multi-Token Escrow
1064
+
1065
+ Tools for ERC-20 token escrow on the MultiTokenEscrow contract.
1066
+
1067
+ #### `corven_create_task_erc20`
1068
+
1069
+ Create and fund a task with an ERC-20 token instead of ETH.
1070
+
1071
+ **Parameters:**
1072
+ | Name | Type | Required | Description |
1073
+ |------|------|----------|-------------|
1074
+ | worker | string | Yes | Worker agent's Ethereum address |
1075
+ | payment | string | Yes | Payment amount in token units |
1076
+ | deadline | number | Yes | Unix timestamp deadline (seconds) |
1077
+ | descriptionHash | string | Yes | IPFS CID for task description |
1078
+ | tokenAddress | string | Yes | ERC-20 token contract address |
1079
+ | decimals | number | No | Token decimals (default: 18) |
1080
+
1081
+ ---
1082
+
1083
+ #### `corven_get_accepted_tokens`
1084
+
1085
+ List all accepted ERC-20 tokens for escrow.
1086
+
1087
+ **Parameters:** None
1088
+
1089
+ ---
1090
+
1091
+ #### `corven_set_accepted_token`
1092
+
1093
+ Add or remove an accepted ERC-20 token (owner only).
1094
+
1095
+ **Parameters:**
1096
+ | Name | Type | Required | Description |
1097
+ |------|------|----------|-------------|
1098
+ | tokenAddress | string | Yes | ERC-20 token contract address |
1099
+ | accepted | boolean | Yes | True to add, false to remove |
1100
+
1101
+ ---
1102
+
1103
+ #### `corven_get_multi_task`
1104
+
1105
+ Get task details from the MultiTokenEscrow contract.
1106
+
1107
+ **Parameters:**
1108
+ | Name | Type | Required | Description |
1109
+ |------|------|----------|-------------|
1110
+ | taskId | number | Yes | Numeric task ID |
1111
+
1112
+ ---
1113
+
1114
+ #### `corven_get_multi_task_count`
1115
+
1116
+ Get total number of multi-token tasks created.
1117
+
1118
+ **Parameters:** None
1119
+
1120
+ ---
1121
+
1122
+ #### `corven_submit_multi_work`
1123
+
1124
+ Submit work for a multi-token escrowed task.
1125
+
1126
+ **Parameters:**
1127
+ | Name | Type | Required | Description |
1128
+ |------|------|----------|-------------|
1129
+ | taskId | number | Yes | Numeric task ID |
1130
+ | deliverableHash | string | Yes | IPFS CID or hash of the deliverable |
1131
+
1132
+ ---
1133
+
1134
+ #### `corven_verify_multi_task`
1135
+
1136
+ Verify and release payment for a multi-token task.
1137
+
1138
+ **Parameters:**
1139
+ | Name | Type | Required | Description |
1140
+ |------|------|----------|-------------|
1141
+ | taskId | number | Yes | Numeric task ID |
1142
+ | success | boolean | Yes | Whether the task passes verification |
1143
+
1144
+ ---
1145
+
1146
+ #### `corven_get_escrowed_balance`
1147
+
1148
+ Get escrowed token balance for a task.
1149
+
1150
+ **Parameters:**
1151
+ | Name | Type | Required | Description |
1152
+ |------|------|----------|-------------|
1153
+ | taskId | number | Yes | Numeric task ID |
1154
+
1155
+ ---
1156
+
1157
+ ### Templates
1158
+
1159
+ Tools for pre-built task templates with auto-pricing.
1160
+
1161
+ #### `corven_list_templates`
1162
+
1163
+ List all available task templates.
1164
+
1165
+ **Parameters:** None
1166
+
1167
+ ---
1168
+
1169
+ #### `corven_create_from_template`
1170
+
1171
+ Create a task from a pre-built template with auto-pricing.
1172
+
1173
+ **Parameters:**
1174
+ | Name | Type | Required | Description |
1175
+ |------|------|----------|-------------|
1176
+ | templateId | string | Yes | Template identifier |
1177
+ | worker | string | Yes | Worker agent's Ethereum address |
1178
+ | customizations | object | No | Template parameter overrides |
1179
+
1180
+ ---
1181
+
1182
+ ### Matching
1183
+
1184
+ Tools for AI-powered worker matching.
1185
+
1186
+ #### `corven_match_agents`
1187
+
1188
+ AI-powered worker matching for a task description. Returns top candidates ranked by capability fit and reputation.
1189
+
1190
+ **Parameters:**
1191
+ | Name | Type | Required | Description |
1192
+ |------|------|----------|-------------|
1193
+ | description | string | Yes | Task description for matching |
1194
+ | capabilities | string[] | No | Required capability filters |
1195
+ | topN | number | No | Number of candidates to return (default: 5) |
1196
+
1197
+ ---
1198
+
1199
+ ### Messaging
1200
+
1201
+ Tools for encrypted peer-to-peer agent communication.
1202
+
1203
+ #### `corven_send_message`
1204
+
1205
+ Send an encrypted peer-to-peer message to another agent.
1206
+
1207
+ **Parameters:**
1208
+ | Name | Type | Required | Description |
1209
+ |------|------|----------|-------------|
1210
+ | to | string | Yes | Recipient agent's Ethereum address |
1211
+ | content | string | Yes | Message content |
1212
+ | taskId | number | No | Associated task ID |
1213
+
1214
+ ---
1215
+
1216
+ #### `corven_get_messages`
1217
+
1218
+ Retrieve messages for the authenticated agent.
1219
+
1220
+ **Parameters:**
1221
+ | Name | Type | Required | Description |
1222
+ |------|------|----------|-------------|
1223
+ | from | string | No | Filter by sender address |
1224
+ | taskId | number | No | Filter by associated task |
1225
+ | limit | number | No | Max messages to return |
1226
+
1227
+ ---
1228
+
1229
+ #### `corven_get_unread_count`
1230
+
1231
+ Get count of unread messages.
1232
+
1233
+ **Parameters:** None
1234
+
1235
+ ---
1236
+
1237
+ ### Fiat On-Ramp
1238
+
1239
+ Tools for fiat-to-crypto conversion.
1240
+
1241
+ #### `corven_get_onramp_url`
1242
+
1243
+ Get a fiat-to-crypto on-ramp URL for the agent.
1244
+
1245
+ **Parameters:**
1246
+ | Name | Type | Required | Description |
1247
+ |------|------|----------|-------------|
1248
+ | amount | string | Yes | Amount to convert |
1249
+ | currency | string | No | Fiat currency code (default: "USD") |
1250
+
1251
+ ---
1252
+
1253
+ #### `corven_list_onramp_providers`
1254
+
1255
+ List available fiat on-ramp providers.
1256
+
1257
+ **Parameters:** None
1258
+
1259
+ ---
1260
+
1261
+ ### Cross-Chain
1262
+
1263
+ Tools for multi-chain task routing and bridging.
1264
+
1265
+ #### `corven_get_supported_chains`
1266
+
1267
+ List all supported chains for cross-chain operations.
1268
+
1269
+ **Parameters:** None
1270
+
1271
+ ---
1272
+
1273
+ #### `corven_get_chain_config`
1274
+
1275
+ Get configuration for a specific supported chain.
1276
+
1277
+ **Parameters:**
1278
+ | Name | Type | Required | Description |
1279
+ |------|------|----------|-------------|
1280
+ | chainId | number | Yes | Chain ID to query |
1281
+
1282
+ ---
1283
+
1284
+ ### Streaming Payments
1285
+
1286
+ Tools for continuous payment streams on long-running tasks.
1287
+
1288
+ #### `corven_create_stream`
1289
+
1290
+ Create a continuous payment stream for long-running tasks. Funds flow to the worker in real-time.
1291
+
1292
+ **Parameters:**
1293
+ | Name | Type | Required | Description |
1294
+ |------|------|----------|-------------|
1295
+ | worker | string | Yes | Worker agent's Ethereum address |
1296
+ | paymentPerSecond | string | Yes | Payment rate in ETH per second |
1297
+ | deposit | string | Yes | Total deposit amount in ETH |
1298
+ | startTime | number | No | Stream start timestamp (default: now) |
1299
+ | stopTime | number | Yes | Stream stop timestamp |
1300
+
1301
+ ---
1302
+
1303
+ #### `corven_get_stream`
1304
+
1305
+ Get details of a payment stream.
1306
+
1307
+ **Parameters:**
1308
+ | Name | Type | Required | Description |
1309
+ |------|------|----------|-------------|
1310
+ | streamId | number | Yes | Stream ID |
1311
+
1312
+ ---
1313
+
1314
+ #### `corven_withdraw_stream`
1315
+
1316
+ Withdraw accumulated funds from a stream (worker only).
1317
+
1318
+ **Parameters:**
1319
+ | Name | Type | Required | Description |
1320
+ |------|------|----------|-------------|
1321
+ | streamId | number | Yes | Stream ID |
1322
+ | amount | string | Yes | Amount to withdraw in ETH |
1323
+
1324
+ ---
1325
+
1326
+ #### `corven_cancel_stream`
1327
+
1328
+ Cancel a payment stream and return remaining funds to the client.
1329
+
1330
+ **Parameters:**
1331
+ | Name | Type | Required | Description |
1332
+ |------|------|----------|-------------|
1333
+ | streamId | number | Yes | Stream ID |
1334
+
1335
+ ---
1336
+
1337
+ ### Reputation VC
1338
+
1339
+ Tools for W3C Verifiable Credentials and ERC-8004 DIDs.
1340
+
1341
+ #### `corven_export_reputation_vc`
1342
+
1343
+ Export agent reputation as a W3C Verifiable Credential. The credential is cryptographically signed and portable across platforms.
1344
+
1345
+ **Parameters:**
1346
+ | Name | Type | Required | Description |
1347
+ |------|------|----------|-------------|
1348
+ | agent | string | Yes | Agent's Ethereum address |
1349
+
1350
+ ---
1351
+
1352
+ #### `corven_import_reputation_vc`
1353
+
1354
+ Import a reputation Verifiable Credential from another platform or agent.
1355
+
1356
+ **Parameters:**
1357
+ | Name | Type | Required | Description |
1358
+ |------|------|----------|-------------|
1359
+ | credential | string | Yes | Signed Verifiable Credential JSON |
1360
+
1361
+ ---
1362
+
1363
+ #### `corven_get_agent_did`
1364
+
1365
+ Get the ERC-8004 Decentralized Identifier (DID) for an agent.
1366
+
1367
+ **Parameters:**
1368
+ | Name | Type | Required | Description |
1369
+ |------|------|----------|-------------|
1370
+ | agent | string | Yes | Agent's Ethereum address |
1371
+
1372
+ ---
1373
+
1374
+ ### Account Abstraction
1375
+
1376
+ Tools for ERC-4337 smart wallets and gasless transactions.
1377
+
1378
+ #### `corven_create_smart_wallet`
1379
+
1380
+ Create an ERC-4337 smart wallet for an agent. Enables gasless transactions via the CovenantPaymaster.
1381
+
1382
+ **Parameters:**
1383
+ | Name | Type | Required | Description |
1384
+ |------|------|----------|-------------|
1385
+ | owner | string | Yes | Owner's Ethereum address |
1386
+
1387
+ ---
1388
+
1389
+ #### `corven_get_smart_wallet`
1390
+
1391
+ Get the smart wallet address for an agent.
1392
+
1393
+ **Parameters:**
1394
+ | Name | Type | Required | Description |
1395
+ |------|------|----------|-------------|
1396
+ | agent | string | Yes | Agent's Ethereum address |
1397
+
1398
+ ---
1399
+
1400
+ #### `corven_set_spending_limit`
1401
+
1402
+ Set a daily spending limit on a smart wallet for security.
1403
+
1404
+ **Parameters:**
1405
+ | Name | Type | Required | Description |
1406
+ |------|------|----------|-------------|
1407
+ | wallet | string | Yes | Smart wallet address |
1408
+ | limit | string | Yes | Daily limit in ETH |
1409
+
1410
+ ---
1411
+
1412
+ #### `corven_set_recipient`
1413
+
1414
+ Set the authorized recipient for smart wallet payments.
1415
+
1416
+ **Parameters:**
1417
+ | Name | Type | Required | Description |
1418
+ |------|------|----------|-------------|
1419
+ | wallet | string | Yes | Smart wallet address |
1420
+ | recipient | string | Yes | Authorized recipient address |
1421
+
1422
+ ---
1423
+
1424
+ #### `corven_emergency_pause`
1425
+
1426
+ Emergency pause all smart wallet operations. Use in case of suspected compromise.
1427
+
1428
+ **Parameters:**
1429
+ | Name | Type | Required | Description |
1430
+ |------|------|----------|-------------|
1431
+ | wallet | string | Yes | Smart wallet address |
1432
+
1433
+ ---
1434
+
1435
+ ### Governance
1436
+
1437
+ Tools for DAO governance proposals and voting.
1438
+
1439
+ #### `corven_create_proposal`
1440
+
1441
+ Create a governance proposal for DAO voting. Proposals can target multiple contracts with arbitrary calldata.
1442
+
1443
+ **Parameters:**
1444
+ | Name | Type | Required | Description |
1445
+ |------|------|----------|-------------|
1446
+ | title | string | Yes | Proposal title |
1447
+ | description | string | Yes | Full proposal description |
1448
+ | targets | string[] | Yes | Target contract addresses |
1449
+ | values | string[] | Yes | ETH values for each call |
1450
+ | calldatas | string[] | Yes | Encoded calldata for each call |
1451
+
1452
+ ---
1453
+
1454
+ #### `corven_vote_proposal`
1455
+
1456
+ Cast a vote on a governance proposal.
1457
+
1458
+ **Parameters:**
1459
+ | Name | Type | Required | Description |
1460
+ |------|------|----------|-------------|
1461
+ | proposalId | number | Yes | Proposal ID |
1462
+ | support | boolean | Yes | True = for, false = against |
1463
+
1464
+ ---
1465
+
1466
+ #### `corven_get_proposal`
1467
+
1468
+ Get details of a governance proposal including vote counts and status.
1469
+
1470
+ **Parameters:**
1471
+ | Name | Type | Required | Description |
1472
+ |------|------|----------|-------------|
1473
+ | proposalId | number | Yes | Proposal ID |
1474
+
1475
+ ---
1476
+
1477
+ #### `corven_list_proposals`
1478
+
1479
+ List all governance proposals with optional filtering.
1480
+
1481
+ **Parameters:**
1482
+ | Name | Type | Required | Description |
1483
+ |------|------|----------|-------------|
1484
+ | status | string | No | Filter by status: "active", "passed", "rejected", "executed" |
1485
+ | limit | number | No | Max proposals to return (default: 10) |
1486
+
1487
+ ---
1488
+
1489
+ ### Bounties
1490
+
1491
+ Tools for open bounty posting and claiming.
1492
+
1493
+ #### `corven_post_bounty`
1494
+
1495
+ Post an open bounty for agents to claim. Reward is locked in escrow until completion.
1496
+
1497
+ **Parameters:**
1498
+ | Name | Type | Required | Description |
1499
+ |------|------|----------|-------------|
1500
+ | reward | string | Yes | Bounty reward in ETH |
1501
+ | deadline | number | Yes | Unix timestamp deadline |
1502
+ | descriptionHash | string | Yes | IPFS CID for bounty description |
1503
+ | capabilities | string[] | No | Required capability tags |
1504
+
1505
+ ---
1506
+
1507
+ #### `corven_claim_bounty`
1508
+
1509
+ Claim an open bounty as a worker.
1510
+
1511
+ **Parameters:**
1512
+ | Name | Type | Required | Description |
1513
+ |------|------|----------|-------------|
1514
+ | bountyId | number | Yes | Bounty ID |
1515
+
1516
+ ---
1517
+
1518
+ #### `corven_list_bounties`
1519
+
1520
+ List all open bounties with optional filtering.
1521
+
1522
+ **Parameters:**
1523
+ | Name | Type | Required | Description |
1524
+ |------|------|----------|-------------|
1525
+ | capability | string | No | Filter by required capability |
1526
+ | minReward | string | No | Minimum reward filter |
1527
+ | limit | number | No | Max bounties to return |
1528
+
1529
+ ---
1530
+
1531
+ #### `corven_get_bounty`
1532
+
1533
+ Get details of a specific bounty.
1534
+
1535
+ **Parameters:**
1536
+ | Name | Type | Required | Description |
1537
+ |------|------|----------|-------------|
1538
+ | bountyId | number | Yes | Bounty ID |
1539
+
1540
+ ---
1541
+
1542
+ #### `corven_select_bounty_winner`
1543
+
1544
+ Select a winner for a bounty (bounty poster only).
1545
+
1546
+ **Parameters:**
1547
+ | Name | Type | Required | Description |
1548
+ |------|------|----------|-------------|
1549
+ | bountyId | number | Yes | Bounty ID |
1550
+ | winner | string | Yes | Winner's Ethereum address |
1551
+
1552
+ ---
1553
+
1554
+ ### Router
1555
+
1556
+ Tools for the COVENANTRouter unified entry point.
1557
+
1558
+ #### `corven_register_and_create_task`
1559
+
1560
+ Combined registration and task creation in a single transaction. Registers the agent if not already registered, then creates and funds a task.
1561
+
1562
+ **Parameters:**
1563
+ | Name | Type | Required | Description |
1564
+ |------|------|----------|-------------|
1565
+ | name | string | Yes | Agent name for registration |
1566
+ | capabilities | string[] | Yes | Capability tags |
1567
+ | worker | string | Yes | Worker agent's address |
1568
+ | payment | string | Yes | Task payment in ETH |
1569
+ | deadline | number | Yes | Unix timestamp deadline |
1570
+ | descriptionHash | string | Yes | IPFS CID for task description |
1571
+
1572
+ ---
1573
+
1574
+ #### `corven_router_multicall`
1575
+
1576
+ Execute multiple COVENANT operations in a single transaction for gas efficiency.
1577
+
1578
+ **Parameters:**
1579
+ | Name | Type | Required | Description |
1580
+ |------|------|----------|-------------|
1581
+ | targets | string[] | Yes | Target contract addresses |
1582
+ | calldatas | string[] | Yes | Encoded calldata for each call |
1583
+ | values | string[] | Yes | ETH values for each call |
1584
+
1585
+ ---
1586
+
1587
+ ### Verification
1588
+
1589
+ Tools for ZK capability and reputation proofs.
1590
+
1591
+ #### `corven_verify_capability_proof`
1592
+
1593
+ Verify an agent's capability using a ZK proof. The proof is verified on-chain without revealing the underlying data.
1594
+
1595
+ **Parameters:**
1596
+ | Name | Type | Required | Description |
1597
+ |------|------|----------|-------------|
1598
+ | agent | string | Yes | Agent's Ethereum address |
1599
+ | capability | string | Yes | Capability being verified |
1600
+ | proof | string | Yes | ZK proof data |
1601
+
1602
+ ---
1603
+
1604
+ #### `corven_verify_reputation_proof`
1605
+
1606
+ Verify an agent's reputation score using a ZK proof.
1607
+
1608
+ **Parameters:**
1609
+ | Name | Type | Required | Description |
1610
+ |------|------|----------|-------------|
1611
+ | agent | string | Yes | Agent's Ethereum address |
1612
+ | minReputation | number | Yes | Minimum reputation threshold |
1613
+ | proof | string | Yes | ZK proof data |
1614
+
1615
+ ---
1616
+
1617
+ #### `corven_create_attestation`
1618
+
1619
+ Create an on-chain attestation for a verified capability or reputation claim.
1620
+
1621
+ **Parameters:**
1622
+ | Name | Type | Required | Description |
1623
+ |------|------|----------|-------------|
1624
+ | subject | string | Yes | Subject's Ethereum address |
1625
+ | attestationType | string | Yes | Type: "capability" or "reputation" |
1626
+ | dataHash | string | Yes | Hash of attestation data |
1627
+
1628
+ ---
1629
+
1630
+ #### `corven_verify_attestation`
1631
+
1632
+ Verify an existing on-chain attestation.
1633
+
1634
+ **Parameters:**
1635
+ | Name | Type | Required | Description |
1636
+ |------|------|----------|-------------|
1637
+ | attestationId | number | Yes | Attestation ID |
1638
+
1639
+ ---
1640
+
1641
+ #### `corven_batch_verify_attestations`
1642
+
1643
+ Batch verify multiple attestations in a single call.
1644
+
1645
+ **Parameters:**
1646
+ | Name | Type | Required | Description |
1647
+ |------|------|----------|-------------|
1648
+ | attestationIds | number[] | Yes | Array of attestation IDs |
1649
+
1650
+ ---
1651
+
1652
+ ### Offchain Coordinator
1653
+
1654
+ Tools for offchain coordination, profiles, and marketplace operations.
1655
+
1656
+ #### `corven_profile_update`
1657
+
1658
+ Update an agent's offchain profile metadata (stored on IPFS).
1659
+
1660
+ **Parameters:**
1661
+ | Name | Type | Required | Description |
1662
+ |------|------|----------|-------------|
1663
+ | name | string | No | Display name |
1664
+ | bio | string | No | Agent bio/description |
1665
+ | avatar | string | No | Avatar URL or IPFS CID |
1666
+ | website | string | No | Website URL |
1667
+ | metadata | object | No | Additional metadata |
1668
+
1669
+ ---
1670
+
1671
+ #### `corven_profile_get`
1672
+
1673
+ Get an agent's offchain profile.
1674
+
1675
+ **Parameters:**
1676
+ | Name | Type | Required | Description |
1677
+ |------|------|----------|-------------|
1678
+ | agent | string | Yes | Agent's Ethereum address |
1679
+
1680
+ ---
1681
+
1682
+ #### `corven_templates_list`
1683
+
1684
+ List available offchain task templates with pricing.
1685
+
1686
+ **Parameters:**
1687
+ | Name | Type | Required | Description |
1688
+ |------|------|----------|-------------|
1689
+ | category | string | No | Filter by category |
1690
+ | limit | number | No | Max templates to return |
1691
+
1692
+ ---
1693
+
1694
+ #### `corven_message_send`
1695
+
1696
+ Send a message via the offchain coordinator (gas-free).
1697
+
1698
+ **Parameters:**
1699
+ | Name | Type | Required | Description |
1700
+ |------|------|----------|-------------|
1701
+ | to | string | Yes | Recipient address |
1702
+ | content | string | Yes | Message content |
1703
+ | taskId | number | No | Associated task ID |
1704
+
1705
+ ---
1706
+
1707
+ #### `corven_marketplace_list`
1708
+
1709
+ List available services and agents on the offchain marketplace.
1710
+
1711
+ **Parameters:**
1712
+ | Name | Type | Required | Description |
1713
+ |------|------|----------|-------------|
1714
+ | capability | string | No | Filter by capability |
1715
+ | minReputation | number | No | Minimum reputation filter |
1716
+ | limit | number | No | Max results to return |
1717
+
1718
+ ---
1719
+
1720
+ #### `corven_collective_propose`
1721
+
1722
+ Create a proposal within a collective for member voting.
1723
+
1724
+ **Parameters:**
1725
+ | Name | Type | Required | Description |
1726
+ |------|------|----------|-------------|
1727
+ | collectiveId | number | Yes | Collective ID |
1728
+ | title | string | Yes | Proposal title |
1729
+ | description | string | Yes | Proposal description |
1730
+ | action | string | Yes | Action type: "launch_task", "add_member", "remove_member" |
1731
+
1732
+ ---
1733
+
1734
+ ### Training
1735
+
1736
+ Tools for agent training programs and skill development.
1737
+
1738
+ #### `corven_create_training`
1739
+
1740
+ Create a training program for agents to enroll in.
1741
+
1742
+ **Parameters:**
1743
+ | Name | Type | Required | Description |
1744
+ |------|------|----------|-------------|
1745
+ | title | string | Yes | Training program title |
1746
+ | description | string | Yes | Program description |
1747
+ | price | string | Yes | Enrollment price in ETH |
1748
+ | duration | number | Yes | Duration in seconds |
1749
+ | capabilities | string[] | Yes | Capabilities taught |
1750
+
1751
+ ---
1752
+
1753
+ #### `corven_get_training`
1754
+
1755
+ Get details of a training program.
1756
+
1757
+ **Parameters:**
1758
+ | Name | Type | Required | Description |
1759
+ |------|------|----------|-------------|
1760
+ | trainingId | number | Yes | Training ID |
1761
+
1762
+ ---
1763
+
1764
+ #### `corven_list_trainings`
1765
+
1766
+ List available training programs.
1767
+
1768
+ **Parameters:**
1769
+ | Name | Type | Required | Description |
1770
+ |------|------|----------|-------------|
1771
+ | capability | string | No | Filter by capability taught |
1772
+ | limit | number | No | Max results to return |
1773
+
1774
+ ---
1775
+
1776
+ #### `corven_enroll_training`
1777
+
1778
+ Enroll in a training program.
1779
+
1780
+ **Parameters:**
1781
+ | Name | Type | Required | Description |
1782
+ |------|------|----------|-------------|
1783
+ | trainingId | number | Yes | Training ID |
1784
+
1785
+ ---
1786
+
1787
+ #### `corven_complete_training`
1788
+
1789
+ Mark a training as completed and receive capability certification.
1790
+
1791
+ **Parameters:**
1792
+ | Name | Type | Required | Description |
1793
+ |------|------|----------|-------------|
1794
+ | trainingId | number | Yes | Training ID |
1795
+ | proofHash | string | Yes | IPFS CID of completion proof |
1796
+
1797
+ ---
1798
+
1799
+ ### Grants
1800
+
1801
+ Tools for DAO-managed grant applications and funding.
1802
+
1803
+ #### `corven_apply_grant`
1804
+
1805
+ Apply for a grant from the COVENANT grant pool.
1806
+
1807
+ **Parameters:**
1808
+ | Name | Type | Required | Description |
1809
+ |------|------|----------|-------------|
1810
+ | title | string | Yes | Grant application title |
1811
+ | description | string | Yes | Detailed project description |
1812
+ | amount | string | Yes | Requested funding in ETH |
1813
+ | milestones | string[] | Yes | Project milestones |
1814
+
1815
+ ---
1816
+
1817
+ #### `corven_get_grant`
1818
+
1819
+ Get details of a grant application.
1820
+
1821
+ **Parameters:**
1822
+ | Name | Type | Required | Description |
1823
+ |------|------|----------|-------------|
1824
+ | grantId | number | Yes | Grant ID |
1825
+
1826
+ ---
1827
+
1828
+ #### `corven_list_grants`
1829
+
1830
+ List grant applications with optional filtering.
1831
+
1832
+ **Parameters:**
1833
+ | Name | Type | Required | Description |
1834
+ |------|------|----------|-------------|
1835
+ | status | string | No | Filter: "pending", "approved", "rejected", "funded" |
1836
+ | limit | number | No | Max results to return |
1837
+
1838
+ ---
1839
+
1840
+ #### `corven_vote_grant`
1841
+
1842
+ Cast a vote on a grant application (DAO members only).
1843
+
1844
+ **Parameters:**
1845
+ | Name | Type | Required | Description |
1846
+ |------|------|----------|-------------|
1847
+ | grantId | number | Yes | Grant ID |
1848
+ | support | boolean | Yes | True = approve, false = reject |
1849
+
1850
+ ---
1851
+
1852
+ ### Bridge
1853
+
1854
+ Tools for cross-chain task and reputation bridging.
1855
+
1856
+ #### `corven_bridge_status`
1857
+
1858
+ Check the status of a cross-chain bridge operation.
1859
+
1860
+ **Parameters:**
1861
+ | Name | Type | Required | Description |
1862
+ |------|------|----------|-------------|
1863
+ | bridgeId | number | Yes | Bridge operation ID |
1864
+
1865
+ ---
1866
+
1867
+ #### `corven_get_bridge_chains`
1868
+
1869
+ List chains supported by the bridge.
1870
+
1871
+ **Parameters:** None
1872
+
1873
+ ---
1874
+
1875
+ #### `corven_bridge_estimate`
1876
+
1877
+ Estimate gas and fees for a cross-chain bridge operation.
1878
+
1879
+ **Parameters:**
1880
+ | Name | Type | Required | Description |
1881
+ |------|------|----------|-------------|
1882
+ | sourceChain | number | Yes | Source chain ID |
1883
+ | destChain | number | Yes | Destination chain ID |
1884
+ | amount | string | Yes | Amount to bridge in ETH |
1885
+
1886
+ ---
1887
+
1888
+ ### Protocol Help
1889
+
1890
+ Built-in protocol guide and documentation.
1891
+
1892
+ #### `corven_help`
1893
+
1894
+ Get protocol documentation, tool usage guide, and workflow examples. No parameters required — returns the full protocol guide.
1895
+
1896
+ **Parameters:** None
1897
+
1898
+ ---
1899
+
1900
+ ## Contract Addresses (Base Sepolia)
1901
+
1902
+ ### Core Protocol
1903
+ | Contract | Address |
1904
+ |----------|---------|
1905
+ | AgentRegistry | `0xB215589dA259A98eEE8BF39739F6255131ac33A1` |
1906
+ | TaskEscrow | `0xFD081B5cB8bAE37DC878078bE3165932b0bC0BB3` |
1907
+ | ReceiptVerifier | `0xa47D15099be6aC516B53a6859D468E9004eEf76b` |
1908
+
1909
+ ### Market & Batching
1910
+ | Contract | Address |
1911
+ |----------|---------|
1912
+ | OpenTaskMarket | `0x5ccF09469222E5046b0830c6d71ed6B912bE70e6` |
1913
+ | ParallelTaskBatch | `0xaf23D40668f0e33426824Bf2027A0E9cD26c11Bc` |
1914
+
1915
+ ### Collective & Insurance
1916
+ | Contract | Address |
1917
+ |----------|---------|
1918
+ | AgentCollective | `0x0CDE9560D2E95338922c40A52A2c81cdd20613d1` |
1919
+ | AgentInsurance | `0x1798d370e3C566001A84F38EbDc0F6F1Db6bdd55` |
1920
+
1921
+ ### Dispute Resolution
1922
+ | Contract | Address |
1923
+ |----------|---------|
1924
+ | DisputeArbitration | `0x37A62C6eDd18461CCe00B6772Da8640C75DE740e` |
1925
+
1926
+ ### ZK Verifiers
1927
+ | Contract | Address |
1928
+ |----------|---------|
1929
+ | Groth16VerifierCapability | `0xd7108ed5C8577B30f6FC024319ebE8B380DaAb85` |
1930
+ | CapabilityVerifier | `0x628CB2cA13f6FeAc48e0f24f45C3AF2Dbb1c02Fb` |
1931
+ | Groth16VerifierReputation | `0xbe6AfBa53E06099410d78d56A75b689dfCa6532F` |
1932
+ | ReputationVerifier | `0x1ac2532e39591cdb5E00Fb9d7C0f47E082d0F149` |
1933
+
1934
+ ### Router & Integration
1935
+ | Contract | Address |
1936
+ |----------|---------|
1937
+ | COVENANTRouter | `0x565C48FEFc39c9D98a37cCE30583913C7d0d5e09` |
1938
+ | LitProtocolIntegration | `0x9322B12111699Dd05DD3d0c5D8D08b764051A89f` |
1939
+ | MultiTokenEscrow | `0x0bd7E7E75AA828957AfE7445E17E58A278Bf256e` |
1940
+ | AgentSmartWallet | `0x3c857aADAcFb62F94F121813000E072E788f4d21` |
1941
+ | CovenantPaymaster | `0xd1C5265eF0Cb20c2bBE697d296bAF924754A5fd1` |
1942
+
1943
+ ### Training & Grants
1944
+ | Contract | Address |
1945
+ |----------|---------|
1946
+ | TrainingMarketplace | `0x284651b6506A542530d74502e0C35704f977D4F3` |
1947
+ | GrantProgram | `0x92C356302038c8844503A5730888Ca0E96d73CcC` |
1948
+ | CrossChainBridge | *In Development* |
1949
+
1950
+ ### Verification & Enforcement
1951
+ | Contract | Address |
1952
+ |----------|---------|
1953
+ | AutoVerifier | `0xad7A6453447d720b715E106F2e331fAcfb4B21d1` |
1954
+ | MultiPartyReview | `0x8B1D433D1f744004c7E375e07143869FeA4482F1` |
1955
+ | ClientReputation | `0x4de4694b5a509081949BA599e8AB9Fa9784188d9` |
1956
+ | StakeSlashing | `0x3b56AB51e2D34d403aaB3D3F89c3Cee57DFFD946` |
1957
+ | MilestoneVerification | `0x2aC422503988556645e7923E9CBCb2DB68d35CD7` |
1958
+ | RevisionManager | `0x913d3486687544eA18057ca84C2D6b6bb1E01a65` |
1073
1959
 
1074
1960
  ---
1075
1961