@varun-ai07/covenant-mcp 1.2.0 → 1.2.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 (49) hide show
  1. package/README.md +485 -398
  2. package/dist/abis/AgentWallet.json +415 -0
  3. package/dist/abis/COVENANTRouter.json +173 -0
  4. package/dist/abis/CapabilityVerifier.json +213 -0
  5. package/dist/abis/Groth16Verifier.json +36 -0
  6. package/dist/abis/Groth16VerifierCapability.json +36 -0
  7. package/dist/abis/Groth16VerifierReputation.json +36 -0
  8. package/dist/abis/LitProtocolIntegration.json +703 -0
  9. package/dist/abis/ReputationVerifier.json +213 -0
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js +38 -1
  12. package/dist/config.js.map +1 -1
  13. package/dist/handlers/transactions.d.ts.map +1 -1
  14. package/dist/handlers/transactions.js +274 -27
  15. package/dist/handlers/transactions.js.map +1 -1
  16. package/dist/handlers/wallet.d.ts +3 -1
  17. package/dist/handlers/wallet.d.ts.map +1 -1
  18. package/dist/handlers/wallet.js +82 -2
  19. package/dist/handlers/wallet.js.map +1 -1
  20. package/dist/lib/cache.d.ts +53 -0
  21. package/dist/lib/cache.d.ts.map +1 -0
  22. package/dist/lib/cache.js +154 -0
  23. package/dist/lib/cache.js.map +1 -0
  24. package/dist/lib/events.d.ts +73 -0
  25. package/dist/lib/events.d.ts.map +1 -0
  26. package/dist/lib/events.js +203 -0
  27. package/dist/lib/events.js.map +1 -0
  28. package/dist/tools/batches.d.ts.map +1 -1
  29. package/dist/tools/batches.js +4 -3
  30. package/dist/tools/batches.js.map +1 -1
  31. package/dist/tools/collectives.d.ts.map +1 -1
  32. package/dist/tools/collectives.js +15 -6
  33. package/dist/tools/collectives.js.map +1 -1
  34. package/dist/tools/escrow.d.ts.map +1 -1
  35. package/dist/tools/escrow.js +8 -6
  36. package/dist/tools/escrow.js.map +1 -1
  37. package/dist/tools/insurance.d.ts.map +1 -1
  38. package/dist/tools/insurance.js +7 -4
  39. package/dist/tools/insurance.js.map +1 -1
  40. package/dist/tools/receipts.d.ts.map +1 -1
  41. package/dist/tools/receipts.js +49 -61
  42. package/dist/tools/receipts.js.map +1 -1
  43. package/dist/types.d.ts +7 -0
  44. package/dist/types.d.ts.map +1 -1
  45. package/dist/utils.d.ts +52 -0
  46. package/dist/utils.d.ts.map +1 -0
  47. package/dist/utils.js +217 -0
  48. package/dist/utils.js.map +1 -0
  49. package/package.json +1 -1
@@ -0,0 +1,415 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_owner",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_humanController",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "ExceedsDailyLimit",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "ExceedsPerTransactionLimit",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "ExecutionFailed",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "InvalidAddress",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "InvalidSigner",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "OnlyHumanController",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "address",
52
+ "name": "owner",
53
+ "type": "address"
54
+ }
55
+ ],
56
+ "name": "OwnableInvalidOwner",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "account",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "OwnableUnauthorizedAccount",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [],
72
+ "name": "RecipientNotWhitelisted",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [],
77
+ "name": "WalletPausedError",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "anonymous": false,
82
+ "inputs": [
83
+ {
84
+ "indexed": false,
85
+ "internalType": "address",
86
+ "name": "recipient",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "AllowedRecipientAdded",
91
+ "type": "event"
92
+ },
93
+ {
94
+ "anonymous": false,
95
+ "inputs": [
96
+ {
97
+ "indexed": false,
98
+ "internalType": "address",
99
+ "name": "recipient",
100
+ "type": "address"
101
+ }
102
+ ],
103
+ "name": "AllowedRecipientRemoved",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "anonymous": false,
108
+ "inputs": [
109
+ {
110
+ "indexed": true,
111
+ "internalType": "address",
112
+ "name": "previousOwner",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "indexed": true,
117
+ "internalType": "address",
118
+ "name": "newOwner",
119
+ "type": "address"
120
+ }
121
+ ],
122
+ "name": "OwnershipTransferred",
123
+ "type": "event"
124
+ },
125
+ {
126
+ "anonymous": false,
127
+ "inputs": [
128
+ {
129
+ "indexed": false,
130
+ "internalType": "uint256",
131
+ "name": "dailyLimit",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "perTxLimit",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "SpendingLimitsUpdated",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [],
147
+ "name": "WalletPaused",
148
+ "type": "event"
149
+ },
150
+ {
151
+ "anonymous": false,
152
+ "inputs": [],
153
+ "name": "WalletUnpaused",
154
+ "type": "event"
155
+ },
156
+ {
157
+ "inputs": [
158
+ {
159
+ "internalType": "address",
160
+ "name": "recipient",
161
+ "type": "address"
162
+ }
163
+ ],
164
+ "name": "addAllowedRecipient",
165
+ "outputs": [],
166
+ "stateMutability": "nonpayable",
167
+ "type": "function"
168
+ },
169
+ {
170
+ "inputs": [
171
+ {
172
+ "internalType": "uint256",
173
+ "name": "",
174
+ "type": "uint256"
175
+ }
176
+ ],
177
+ "name": "allowedRecipients",
178
+ "outputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "",
182
+ "type": "address"
183
+ }
184
+ ],
185
+ "stateMutability": "view",
186
+ "type": "function"
187
+ },
188
+ {
189
+ "inputs": [],
190
+ "name": "dailySpendLimit",
191
+ "outputs": [
192
+ {
193
+ "internalType": "uint256",
194
+ "name": "",
195
+ "type": "uint256"
196
+ }
197
+ ],
198
+ "stateMutability": "view",
199
+ "type": "function"
200
+ },
201
+ {
202
+ "inputs": [
203
+ {
204
+ "internalType": "uint256",
205
+ "name": "",
206
+ "type": "uint256"
207
+ }
208
+ ],
209
+ "name": "dailySpent",
210
+ "outputs": [
211
+ {
212
+ "internalType": "uint256",
213
+ "name": "",
214
+ "type": "uint256"
215
+ }
216
+ ],
217
+ "stateMutability": "view",
218
+ "type": "function"
219
+ },
220
+ {
221
+ "inputs": [],
222
+ "name": "emergencyPause",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [],
229
+ "name": "emergencyUnpause",
230
+ "outputs": [],
231
+ "stateMutability": "nonpayable",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "address",
238
+ "name": "to",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "uint256",
243
+ "name": "value",
244
+ "type": "uint256"
245
+ },
246
+ {
247
+ "internalType": "bytes",
248
+ "name": "data",
249
+ "type": "bytes"
250
+ }
251
+ ],
252
+ "name": "execute",
253
+ "outputs": [
254
+ {
255
+ "internalType": "bool",
256
+ "name": "success",
257
+ "type": "bool"
258
+ }
259
+ ],
260
+ "stateMutability": "payable",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "getDailySpent",
266
+ "outputs": [
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "",
270
+ "type": "uint256"
271
+ }
272
+ ],
273
+ "stateMutability": "view",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [],
278
+ "name": "getRemainingDailyLimit",
279
+ "outputs": [
280
+ {
281
+ "internalType": "uint256",
282
+ "name": "",
283
+ "type": "uint256"
284
+ }
285
+ ],
286
+ "stateMutability": "view",
287
+ "type": "function"
288
+ },
289
+ {
290
+ "inputs": [],
291
+ "name": "humanController",
292
+ "outputs": [
293
+ {
294
+ "internalType": "address",
295
+ "name": "",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [],
304
+ "name": "maxPerTransaction",
305
+ "outputs": [
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [],
317
+ "name": "owner",
318
+ "outputs": [
319
+ {
320
+ "internalType": "address",
321
+ "name": "",
322
+ "type": "address"
323
+ }
324
+ ],
325
+ "stateMutability": "view",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [],
330
+ "name": "paused",
331
+ "outputs": [
332
+ {
333
+ "internalType": "bool",
334
+ "name": "",
335
+ "type": "bool"
336
+ }
337
+ ],
338
+ "stateMutability": "view",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "address",
345
+ "name": "",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "name": "recipientAllowed",
350
+ "outputs": [
351
+ {
352
+ "internalType": "bool",
353
+ "name": "",
354
+ "type": "bool"
355
+ }
356
+ ],
357
+ "stateMutability": "view",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [
362
+ {
363
+ "internalType": "address",
364
+ "name": "recipient",
365
+ "type": "address"
366
+ }
367
+ ],
368
+ "name": "removeAllowedRecipient",
369
+ "outputs": [],
370
+ "stateMutability": "nonpayable",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [],
375
+ "name": "renounceOwnership",
376
+ "outputs": [],
377
+ "stateMutability": "nonpayable",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "inputs": [
382
+ {
383
+ "internalType": "uint256",
384
+ "name": "dailyLimit",
385
+ "type": "uint256"
386
+ },
387
+ {
388
+ "internalType": "uint256",
389
+ "name": "perTxLimit",
390
+ "type": "uint256"
391
+ }
392
+ ],
393
+ "name": "setLimits",
394
+ "outputs": [],
395
+ "stateMutability": "nonpayable",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [
400
+ {
401
+ "internalType": "address",
402
+ "name": "newOwner",
403
+ "type": "address"
404
+ }
405
+ ],
406
+ "name": "transferOwnership",
407
+ "outputs": [],
408
+ "stateMutability": "nonpayable",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "stateMutability": "payable",
413
+ "type": "receive"
414
+ }
415
+ ]
@@ -0,0 +1,173 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_agentRegistry",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_escrow",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_receiptVerifier",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "CallFailed",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "provided",
33
+ "type": "uint256"
34
+ },
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "required",
38
+ "type": "uint256"
39
+ }
40
+ ],
41
+ "name": "InsufficientStake",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "WrongTotalValue",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "ZeroAddress",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "agentRegistry",
57
+ "outputs": [
58
+ {
59
+ "internalType": "contract AgentRegistry",
60
+ "name": "",
61
+ "type": "address"
62
+ }
63
+ ],
64
+ "stateMutability": "view",
65
+ "type": "function"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "escrow",
70
+ "outputs": [
71
+ {
72
+ "internalType": "contract TaskEscrow",
73
+ "name": "",
74
+ "type": "address"
75
+ }
76
+ ],
77
+ "stateMutability": "view",
78
+ "type": "function"
79
+ },
80
+ {
81
+ "inputs": [
82
+ {
83
+ "components": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "target",
87
+ "type": "address"
88
+ },
89
+ {
90
+ "internalType": "uint256",
91
+ "name": "value",
92
+ "type": "uint256"
93
+ },
94
+ {
95
+ "internalType": "bytes",
96
+ "name": "data",
97
+ "type": "bytes"
98
+ }
99
+ ],
100
+ "internalType": "struct COVENANTRouter.Call[]",
101
+ "name": "calls",
102
+ "type": "tuple[]"
103
+ }
104
+ ],
105
+ "name": "multicall",
106
+ "outputs": [
107
+ {
108
+ "internalType": "bytes[]",
109
+ "name": "results",
110
+ "type": "bytes[]"
111
+ }
112
+ ],
113
+ "stateMutability": "payable",
114
+ "type": "function"
115
+ },
116
+ {
117
+ "inputs": [],
118
+ "name": "receiptVerifier",
119
+ "outputs": [
120
+ {
121
+ "internalType": "contract ReceiptVerifier",
122
+ "name": "",
123
+ "type": "address"
124
+ }
125
+ ],
126
+ "stateMutability": "view",
127
+ "type": "function"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "string",
133
+ "name": "name",
134
+ "type": "string"
135
+ },
136
+ {
137
+ "internalType": "string[]",
138
+ "name": "capabilities",
139
+ "type": "string[]"
140
+ },
141
+ {
142
+ "internalType": "address",
143
+ "name": "worker",
144
+ "type": "address"
145
+ },
146
+ {
147
+ "internalType": "uint256",
148
+ "name": "payment",
149
+ "type": "uint256"
150
+ },
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "deadline",
154
+ "type": "uint256"
155
+ },
156
+ {
157
+ "internalType": "string",
158
+ "name": "descriptionHash",
159
+ "type": "string"
160
+ }
161
+ ],
162
+ "name": "registerAndCreateTask",
163
+ "outputs": [
164
+ {
165
+ "internalType": "uint256",
166
+ "name": "taskId",
167
+ "type": "uint256"
168
+ }
169
+ ],
170
+ "stateMutability": "payable",
171
+ "type": "function"
172
+ }
173
+ ]