mech-client 0.4.0__py3-none-any.whl → 0.6.0__py3-none-any.whl

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 (32) hide show
  1. mech_client/__init__.py +1 -1
  2. mech_client/abis/AgentMech.json +718 -0
  3. mech_client/abis/AgentRegistry.json +1037 -0
  4. mech_client/abis/AgreementStoreManager.base.json +766 -0
  5. mech_client/abis/AgreementStoreManager.gnosis.json +766 -0
  6. mech_client/abis/DIDRegistry.base.json +2476 -0
  7. mech_client/abis/DIDRegistry.gnosis.json +2476 -0
  8. mech_client/abis/EscrowPaymentCondition.base.json +717 -0
  9. mech_client/abis/EscrowPaymentCondition.gnosis.json +717 -0
  10. mech_client/abis/LockPaymentCondition.base.json +874 -0
  11. mech_client/abis/LockPaymentCondition.gnosis.json +874 -0
  12. mech_client/abis/NFTSalesTemplate.base.json +698 -0
  13. mech_client/abis/NFTSalesTemplate.gnosis.json +698 -0
  14. mech_client/abis/NeverminedConfig.base.json +587 -0
  15. mech_client/abis/NeverminedConfig.gnosis.json +587 -0
  16. mech_client/abis/SubscriptionNFT.base.json +300 -0
  17. mech_client/abis/SubscriptionNFT.gnosis.json +300 -0
  18. mech_client/abis/SubscriptionToken.base.json +1393 -0
  19. mech_client/abis/TransferNFTCondition.base.json +1062 -0
  20. mech_client/abis/TransferNFTCondition.gnosis.json +1062 -0
  21. mech_client/cli.py +99 -10
  22. mech_client/configs/mechs.json +1 -7
  23. mech_client/interact.py +14 -39
  24. mech_client/marketplace_interact.py +130 -90
  25. mech_client/mech_tool_management.py +11 -5
  26. mech_client/subgraph.py +21 -35
  27. mech_client/wss.py +7 -6
  28. {mech_client-0.4.0.dist-info → mech_client-0.6.0.dist-info}/METADATA +45 -13
  29. {mech_client-0.4.0.dist-info → mech_client-0.6.0.dist-info}/RECORD +32 -13
  30. {mech_client-0.4.0.dist-info → mech_client-0.6.0.dist-info}/LICENSE +0 -0
  31. {mech_client-0.4.0.dist-info → mech_client-0.6.0.dist-info}/WHEEL +0 -0
  32. {mech_client-0.4.0.dist-info → mech_client-0.6.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,718 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_token",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "_tokenId",
12
+ "type": "uint256"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "_price",
17
+ "type": "uint256"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "agentId",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "AgentNotFound",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "provided",
39
+ "type": "uint256"
40
+ },
41
+ {
42
+ "internalType": "uint256",
43
+ "name": "expected",
44
+ "type": "uint256"
45
+ }
46
+ ],
47
+ "name": "NotEnoughPaid",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "provided",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "max",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "Overflow",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "requestId",
71
+ "type": "uint256"
72
+ }
73
+ ],
74
+ "name": "RequestIdNotFound",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "ZeroAddress",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "anonymous": false,
84
+ "inputs": [
85
+ {
86
+ "indexed": true,
87
+ "internalType": "address",
88
+ "name": "sender",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "uint256",
94
+ "name": "requestId",
95
+ "type": "uint256"
96
+ },
97
+ {
98
+ "indexed": false,
99
+ "internalType": "bytes",
100
+ "name": "data",
101
+ "type": "bytes"
102
+ }
103
+ ],
104
+ "name": "Deliver",
105
+ "type": "event"
106
+ },
107
+ {
108
+ "anonymous": false,
109
+ "inputs": [
110
+ {
111
+ "indexed": false,
112
+ "internalType": "uint256",
113
+ "name": "price",
114
+ "type": "uint256"
115
+ }
116
+ ],
117
+ "name": "PriceUpdated",
118
+ "type": "event"
119
+ },
120
+ {
121
+ "anonymous": false,
122
+ "inputs": [
123
+ {
124
+ "indexed": true,
125
+ "internalType": "address",
126
+ "name": "sender",
127
+ "type": "address"
128
+ },
129
+ {
130
+ "indexed": false,
131
+ "internalType": "uint256",
132
+ "name": "requestId",
133
+ "type": "uint256"
134
+ },
135
+ {
136
+ "indexed": false,
137
+ "internalType": "bytes",
138
+ "name": "data",
139
+ "type": "bytes"
140
+ }
141
+ ],
142
+ "name": "Request",
143
+ "type": "event"
144
+ },
145
+ {
146
+ "inputs": [
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "requestId",
150
+ "type": "uint256"
151
+ },
152
+ {
153
+ "internalType": "bytes",
154
+ "name": "data",
155
+ "type": "bytes"
156
+ }
157
+ ],
158
+ "name": "deliver",
159
+ "outputs": [],
160
+ "stateMutability": "nonpayable",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "entryPoint",
166
+ "outputs": [
167
+ {
168
+ "internalType": "contract IEntryPoint",
169
+ "name": "",
170
+ "type": "address"
171
+ }
172
+ ],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [
178
+ {
179
+ "internalType": "address",
180
+ "name": "to",
181
+ "type": "address"
182
+ },
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "value",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "internalType": "bytes",
190
+ "name": "data",
191
+ "type": "bytes"
192
+ },
193
+ {
194
+ "internalType": "enum Enum.Operation",
195
+ "name": "operation",
196
+ "type": "uint8"
197
+ },
198
+ {
199
+ "internalType": "uint256",
200
+ "name": "txGas",
201
+ "type": "uint256"
202
+ }
203
+ ],
204
+ "name": "exec",
205
+ "outputs": [
206
+ {
207
+ "internalType": "bytes",
208
+ "name": "returnData",
209
+ "type": "bytes"
210
+ }
211
+ ],
212
+ "stateMutability": "nonpayable",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "address",
219
+ "name": "account",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "internalType": "bytes",
224
+ "name": "data",
225
+ "type": "bytes"
226
+ }
227
+ ],
228
+ "name": "getRequestId",
229
+ "outputs": [
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "requestId",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "stateMutability": "pure",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [
241
+ {
242
+ "internalType": "address",
243
+ "name": "account",
244
+ "type": "address"
245
+ }
246
+ ],
247
+ "name": "getRequestsCount",
248
+ "outputs": [
249
+ {
250
+ "internalType": "uint256",
251
+ "name": "requestsCount",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "stateMutability": "view",
256
+ "type": "function"
257
+ },
258
+ {
259
+ "inputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "size",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "internalType": "uint256",
267
+ "name": "offset",
268
+ "type": "uint256"
269
+ }
270
+ ],
271
+ "name": "getUndeliveredRequestIds",
272
+ "outputs": [
273
+ {
274
+ "internalType": "uint256[]",
275
+ "name": "requestIds",
276
+ "type": "uint256[]"
277
+ }
278
+ ],
279
+ "stateMutability": "view",
280
+ "type": "function"
281
+ },
282
+ {
283
+ "inputs": [
284
+ {
285
+ "internalType": "address",
286
+ "name": "signer",
287
+ "type": "address"
288
+ }
289
+ ],
290
+ "name": "isOperator",
291
+ "outputs": [
292
+ {
293
+ "internalType": "bool",
294
+ "name": "",
295
+ "type": "bool"
296
+ }
297
+ ],
298
+ "stateMutability": "view",
299
+ "type": "function"
300
+ },
301
+ {
302
+ "inputs": [
303
+ {
304
+ "internalType": "bytes32",
305
+ "name": "hash",
306
+ "type": "bytes32"
307
+ },
308
+ {
309
+ "internalType": "bytes",
310
+ "name": "signature",
311
+ "type": "bytes"
312
+ }
313
+ ],
314
+ "name": "isValidSignature",
315
+ "outputs": [
316
+ {
317
+ "internalType": "bytes4",
318
+ "name": "magicValue",
319
+ "type": "bytes4"
320
+ }
321
+ ],
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "internalType": "uint256",
334
+ "name": "",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "mapRequestIds",
339
+ "outputs": [
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "",
343
+ "type": "uint256"
344
+ }
345
+ ],
346
+ "stateMutability": "view",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [
351
+ {
352
+ "internalType": "address",
353
+ "name": "",
354
+ "type": "address"
355
+ }
356
+ ],
357
+ "name": "mapRequestsCounts",
358
+ "outputs": [
359
+ {
360
+ "internalType": "uint256",
361
+ "name": "",
362
+ "type": "uint256"
363
+ }
364
+ ],
365
+ "stateMutability": "view",
366
+ "type": "function"
367
+ },
368
+ {
369
+ "inputs": [],
370
+ "name": "nonce",
371
+ "outputs": [
372
+ {
373
+ "internalType": "uint256",
374
+ "name": "",
375
+ "type": "uint256"
376
+ }
377
+ ],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [],
383
+ "name": "numUndeliveredRequests",
384
+ "outputs": [
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "stateMutability": "view",
392
+ "type": "function"
393
+ },
394
+ {
395
+ "inputs": [
396
+ {
397
+ "internalType": "address",
398
+ "name": "",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "address",
403
+ "name": "",
404
+ "type": "address"
405
+ },
406
+ {
407
+ "internalType": "uint256[]",
408
+ "name": "",
409
+ "type": "uint256[]"
410
+ },
411
+ {
412
+ "internalType": "uint256[]",
413
+ "name": "",
414
+ "type": "uint256[]"
415
+ },
416
+ {
417
+ "internalType": "bytes",
418
+ "name": "",
419
+ "type": "bytes"
420
+ }
421
+ ],
422
+ "name": "onERC1155BatchReceived",
423
+ "outputs": [
424
+ {
425
+ "internalType": "bytes4",
426
+ "name": "",
427
+ "type": "bytes4"
428
+ }
429
+ ],
430
+ "stateMutability": "pure",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "address",
442
+ "name": "",
443
+ "type": "address"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "",
453
+ "type": "uint256"
454
+ },
455
+ {
456
+ "internalType": "bytes",
457
+ "name": "",
458
+ "type": "bytes"
459
+ }
460
+ ],
461
+ "name": "onERC1155Received",
462
+ "outputs": [
463
+ {
464
+ "internalType": "bytes4",
465
+ "name": "",
466
+ "type": "bytes4"
467
+ }
468
+ ],
469
+ "stateMutability": "pure",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [
474
+ {
475
+ "internalType": "address",
476
+ "name": "",
477
+ "type": "address"
478
+ },
479
+ {
480
+ "internalType": "address",
481
+ "name": "",
482
+ "type": "address"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "",
487
+ "type": "uint256"
488
+ },
489
+ {
490
+ "internalType": "bytes",
491
+ "name": "",
492
+ "type": "bytes"
493
+ }
494
+ ],
495
+ "name": "onERC721Received",
496
+ "outputs": [
497
+ {
498
+ "internalType": "bytes4",
499
+ "name": "",
500
+ "type": "bytes4"
501
+ }
502
+ ],
503
+ "stateMutability": "pure",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [],
508
+ "name": "price",
509
+ "outputs": [
510
+ {
511
+ "internalType": "uint256",
512
+ "name": "",
513
+ "type": "uint256"
514
+ }
515
+ ],
516
+ "stateMutability": "view",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [
521
+ {
522
+ "internalType": "bytes",
523
+ "name": "data",
524
+ "type": "bytes"
525
+ }
526
+ ],
527
+ "name": "request",
528
+ "outputs": [
529
+ {
530
+ "internalType": "uint256",
531
+ "name": "requestId",
532
+ "type": "uint256"
533
+ }
534
+ ],
535
+ "stateMutability": "payable",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "newPrice",
543
+ "type": "uint256"
544
+ }
545
+ ],
546
+ "name": "setPrice",
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [
553
+ {
554
+ "internalType": "bytes",
555
+ "name": "initParams",
556
+ "type": "bytes"
557
+ }
558
+ ],
559
+ "name": "setUp",
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [],
566
+ "name": "token",
567
+ "outputs": [
568
+ {
569
+ "internalType": "contract IERC721",
570
+ "name": "",
571
+ "type": "address"
572
+ }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [],
579
+ "name": "tokenId",
580
+ "outputs": [
581
+ {
582
+ "internalType": "uint256",
583
+ "name": "",
584
+ "type": "uint256"
585
+ }
586
+ ],
587
+ "stateMutability": "view",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [
592
+ {
593
+ "internalType": "address",
594
+ "name": "",
595
+ "type": "address"
596
+ },
597
+ {
598
+ "internalType": "address",
599
+ "name": "",
600
+ "type": "address"
601
+ },
602
+ {
603
+ "internalType": "address",
604
+ "name": "",
605
+ "type": "address"
606
+ },
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "",
610
+ "type": "uint256"
611
+ },
612
+ {
613
+ "internalType": "bytes",
614
+ "name": "",
615
+ "type": "bytes"
616
+ },
617
+ {
618
+ "internalType": "bytes",
619
+ "name": "",
620
+ "type": "bytes"
621
+ }
622
+ ],
623
+ "name": "tokensReceived",
624
+ "outputs": [],
625
+ "stateMutability": "pure",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [
630
+ {
631
+ "components": [
632
+ {
633
+ "internalType": "address",
634
+ "name": "sender",
635
+ "type": "address"
636
+ },
637
+ {
638
+ "internalType": "uint256",
639
+ "name": "nonce",
640
+ "type": "uint256"
641
+ },
642
+ {
643
+ "internalType": "bytes",
644
+ "name": "initCode",
645
+ "type": "bytes"
646
+ },
647
+ {
648
+ "internalType": "bytes",
649
+ "name": "callData",
650
+ "type": "bytes"
651
+ },
652
+ {
653
+ "internalType": "uint256",
654
+ "name": "callGasLimit",
655
+ "type": "uint256"
656
+ },
657
+ {
658
+ "internalType": "uint256",
659
+ "name": "verificationGasLimit",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "preVerificationGas",
665
+ "type": "uint256"
666
+ },
667
+ {
668
+ "internalType": "uint256",
669
+ "name": "maxFeePerGas",
670
+ "type": "uint256"
671
+ },
672
+ {
673
+ "internalType": "uint256",
674
+ "name": "maxPriorityFeePerGas",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "internalType": "bytes",
679
+ "name": "paymasterAndData",
680
+ "type": "bytes"
681
+ },
682
+ {
683
+ "internalType": "bytes",
684
+ "name": "signature",
685
+ "type": "bytes"
686
+ }
687
+ ],
688
+ "internalType": "struct UserOperation",
689
+ "name": "userOp",
690
+ "type": "tuple"
691
+ },
692
+ {
693
+ "internalType": "bytes32",
694
+ "name": "userOpHash",
695
+ "type": "bytes32"
696
+ },
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "missingAccountFunds",
700
+ "type": "uint256"
701
+ }
702
+ ],
703
+ "name": "validateUserOp",
704
+ "outputs": [
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "validationData",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "stateMutability": "nonpayable",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "stateMutability": "payable",
716
+ "type": "receive"
717
+ }
718
+ ]