mech-client 0.3.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 (33) 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/BalanceTrackerNvmSubscriptionToken.json +660 -0
  7. mech_client/abis/DIDRegistry.base.json +2476 -0
  8. mech_client/abis/DIDRegistry.gnosis.json +2476 -0
  9. mech_client/abis/EscrowPaymentCondition.base.json +717 -0
  10. mech_client/abis/EscrowPaymentCondition.gnosis.json +717 -0
  11. mech_client/abis/LockPaymentCondition.base.json +874 -0
  12. mech_client/abis/LockPaymentCondition.gnosis.json +874 -0
  13. mech_client/abis/NFTSalesTemplate.base.json +698 -0
  14. mech_client/abis/NFTSalesTemplate.gnosis.json +698 -0
  15. mech_client/abis/NeverminedConfig.base.json +587 -0
  16. mech_client/abis/NeverminedConfig.gnosis.json +587 -0
  17. mech_client/abis/SubscriptionNFT.base.json +300 -0
  18. mech_client/abis/SubscriptionNFT.gnosis.json +300 -0
  19. mech_client/abis/SubscriptionToken.base.json +1393 -0
  20. mech_client/abis/TransferNFTCondition.base.json +1062 -0
  21. mech_client/abis/TransferNFTCondition.gnosis.json +1062 -0
  22. mech_client/cli.py +99 -10
  23. mech_client/configs/mechs.json +3 -9
  24. mech_client/interact.py +14 -39
  25. mech_client/marketplace_interact.py +199 -156
  26. mech_client/mech_tool_management.py +11 -5
  27. mech_client/subgraph.py +21 -35
  28. mech_client/wss.py +7 -6
  29. {mech_client-0.3.0.dist-info → mech_client-0.6.0.dist-info}/METADATA +45 -13
  30. {mech_client-0.3.0.dist-info → mech_client-0.6.0.dist-info}/RECORD +33 -13
  31. {mech_client-0.3.0.dist-info → mech_client-0.6.0.dist-info}/LICENSE +0 -0
  32. {mech_client-0.3.0.dist-info → mech_client-0.6.0.dist-info}/WHEEL +0 -0
  33. {mech_client-0.3.0.dist-info → mech_client-0.6.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,660 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_mechMarketplace",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_drainer",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_token",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "current",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "required",
33
+ "type": "uint256"
34
+ }
35
+ ],
36
+ "name": "InsufficientBalance",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "address",
43
+ "name": "sender",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "internalType": "address",
48
+ "name": "marketplace",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "MarketplaceOnly",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "amount",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "NoDepositAllowed",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "provided",
71
+ "type": "uint256"
72
+ },
73
+ {
74
+ "internalType": "uint256",
75
+ "name": "max",
76
+ "type": "uint256"
77
+ }
78
+ ],
79
+ "name": "Overflow",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "sender",
87
+ "type": "address"
88
+ },
89
+ {
90
+ "internalType": "address",
91
+ "name": "owner",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "OwnerOnly",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "ReentrancyGuard",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "account",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "UnauthorizedAccount",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "ZeroAddress",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "ZeroValue",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "anonymous": false,
126
+ "inputs": [
127
+ {
128
+ "indexed": true,
129
+ "internalType": "address",
130
+ "name": "account",
131
+ "type": "address"
132
+ },
133
+ {
134
+ "indexed": true,
135
+ "internalType": "address",
136
+ "name": "token",
137
+ "type": "address"
138
+ },
139
+ {
140
+ "indexed": false,
141
+ "internalType": "uint256",
142
+ "name": "amount",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "name": "Deposit",
147
+ "type": "event"
148
+ },
149
+ {
150
+ "anonymous": false,
151
+ "inputs": [
152
+ {
153
+ "indexed": true,
154
+ "internalType": "address",
155
+ "name": "token",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "uint256",
161
+ "name": "collectedFees",
162
+ "type": "uint256"
163
+ }
164
+ ],
165
+ "name": "Drained",
166
+ "type": "event"
167
+ },
168
+ {
169
+ "anonymous": false,
170
+ "inputs": [
171
+ {
172
+ "indexed": true,
173
+ "internalType": "address",
174
+ "name": "mech",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "indexed": false,
179
+ "internalType": "uint256",
180
+ "name": "deliveryRate",
181
+ "type": "uint256"
182
+ },
183
+ {
184
+ "indexed": false,
185
+ "internalType": "uint256",
186
+ "name": "balance",
187
+ "type": "uint256"
188
+ },
189
+ {
190
+ "indexed": false,
191
+ "internalType": "uint256",
192
+ "name": "rateDiff",
193
+ "type": "uint256"
194
+ }
195
+ ],
196
+ "name": "MechBalanceAdjusted",
197
+ "type": "event"
198
+ },
199
+ {
200
+ "anonymous": false,
201
+ "inputs": [
202
+ {
203
+ "indexed": true,
204
+ "internalType": "address",
205
+ "name": "requester",
206
+ "type": "address"
207
+ },
208
+ {
209
+ "indexed": false,
210
+ "internalType": "uint256",
211
+ "name": "deliveryRate",
212
+ "type": "uint256"
213
+ },
214
+ {
215
+ "indexed": false,
216
+ "internalType": "uint256",
217
+ "name": "balance",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "name": "RequesterBalanceAdjusted",
222
+ "type": "event"
223
+ },
224
+ {
225
+ "anonymous": false,
226
+ "inputs": [
227
+ {
228
+ "indexed": true,
229
+ "internalType": "address",
230
+ "name": "account",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "indexed": false,
235
+ "internalType": "uint256",
236
+ "name": "amount",
237
+ "type": "uint256"
238
+ }
239
+ ],
240
+ "name": "RequesterCreditsRedeemed",
241
+ "type": "event"
242
+ },
243
+ {
244
+ "anonymous": false,
245
+ "inputs": [
246
+ {
247
+ "indexed": true,
248
+ "internalType": "address",
249
+ "name": "token",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "indexed": true,
254
+ "internalType": "uint256",
255
+ "name": "tokenId",
256
+ "type": "uint256"
257
+ }
258
+ ],
259
+ "name": "SubscriptionSet",
260
+ "type": "event"
261
+ },
262
+ {
263
+ "anonymous": false,
264
+ "inputs": [
265
+ {
266
+ "indexed": true,
267
+ "internalType": "address",
268
+ "name": "account",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "indexed": true,
273
+ "internalType": "address",
274
+ "name": "token",
275
+ "type": "address"
276
+ },
277
+ {
278
+ "indexed": false,
279
+ "internalType": "uint256",
280
+ "name": "amount",
281
+ "type": "uint256"
282
+ }
283
+ ],
284
+ "name": "Withdraw",
285
+ "type": "event"
286
+ },
287
+ {
288
+ "inputs": [],
289
+ "name": "MAX_FEE_FACTOR",
290
+ "outputs": [
291
+ {
292
+ "internalType": "uint256",
293
+ "name": "",
294
+ "type": "uint256"
295
+ }
296
+ ],
297
+ "stateMutability": "view",
298
+ "type": "function"
299
+ },
300
+ {
301
+ "inputs": [],
302
+ "name": "MIN_MECH_BALANCE",
303
+ "outputs": [
304
+ {
305
+ "internalType": "uint256",
306
+ "name": "",
307
+ "type": "uint256"
308
+ }
309
+ ],
310
+ "stateMutability": "view",
311
+ "type": "function"
312
+ },
313
+ {
314
+ "inputs": [
315
+ {
316
+ "internalType": "address",
317
+ "name": "mech",
318
+ "type": "address"
319
+ },
320
+ {
321
+ "internalType": "address",
322
+ "name": "requester",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "internalType": "uint256[]",
327
+ "name": "mechDeliveryRates",
328
+ "type": "uint256[]"
329
+ },
330
+ {
331
+ "internalType": "bytes",
332
+ "name": "paymentData",
333
+ "type": "bytes"
334
+ }
335
+ ],
336
+ "name": "adjustMechRequesterBalances",
337
+ "outputs": [],
338
+ "stateMutability": "nonpayable",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "address",
345
+ "name": "requester",
346
+ "type": "address"
347
+ },
348
+ {
349
+ "internalType": "uint256",
350
+ "name": "numRequests",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "internalType": "uint256",
355
+ "name": "deliveryRate",
356
+ "type": "uint256"
357
+ },
358
+ {
359
+ "internalType": "bytes",
360
+ "name": "paymentData",
361
+ "type": "bytes"
362
+ }
363
+ ],
364
+ "name": "checkAndRecordDeliveryRates",
365
+ "outputs": [],
366
+ "stateMutability": "payable",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [],
371
+ "name": "collectedFees",
372
+ "outputs": [
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "",
376
+ "type": "uint256"
377
+ }
378
+ ],
379
+ "stateMutability": "view",
380
+ "type": "function"
381
+ },
382
+ {
383
+ "inputs": [
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "amount",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "name": "deposit",
391
+ "outputs": [],
392
+ "stateMutability": "pure",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "address",
399
+ "name": "",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "amount",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "name": "depositFor",
409
+ "outputs": [],
410
+ "stateMutability": "pure",
411
+ "type": "function"
412
+ },
413
+ {
414
+ "inputs": [],
415
+ "name": "drain",
416
+ "outputs": [],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [],
422
+ "name": "drainer",
423
+ "outputs": [
424
+ {
425
+ "internalType": "address",
426
+ "name": "",
427
+ "type": "address"
428
+ }
429
+ ],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "mech",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "address[]",
442
+ "name": "requesters",
443
+ "type": "address[]"
444
+ },
445
+ {
446
+ "internalType": "bool[]",
447
+ "name": "deliveredRequests",
448
+ "type": "bool[]"
449
+ },
450
+ {
451
+ "internalType": "uint256[]",
452
+ "name": "mechDeliveryRates",
453
+ "type": "uint256[]"
454
+ },
455
+ {
456
+ "internalType": "uint256[]",
457
+ "name": "requesterDeliveryRates",
458
+ "type": "uint256[]"
459
+ }
460
+ ],
461
+ "name": "finalizeDeliveryRates",
462
+ "outputs": [],
463
+ "stateMutability": "nonpayable",
464
+ "type": "function"
465
+ },
466
+ {
467
+ "inputs": [
468
+ {
469
+ "internalType": "address",
470
+ "name": "",
471
+ "type": "address"
472
+ }
473
+ ],
474
+ "name": "mapMechBalances",
475
+ "outputs": [
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "stateMutability": "view",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "address",
489
+ "name": "",
490
+ "type": "address"
491
+ }
492
+ ],
493
+ "name": "mapRequesterBalances",
494
+ "outputs": [
495
+ {
496
+ "internalType": "uint256",
497
+ "name": "",
498
+ "type": "uint256"
499
+ }
500
+ ],
501
+ "stateMutability": "view",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [],
506
+ "name": "mechMarketplace",
507
+ "outputs": [
508
+ {
509
+ "internalType": "address",
510
+ "name": "",
511
+ "type": "address"
512
+ }
513
+ ],
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [],
519
+ "name": "owner",
520
+ "outputs": [
521
+ {
522
+ "internalType": "address",
523
+ "name": "",
524
+ "type": "address"
525
+ }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [],
532
+ "name": "processPayment",
533
+ "outputs": [
534
+ {
535
+ "internalType": "uint256",
536
+ "name": "mechPayment",
537
+ "type": "uint256"
538
+ },
539
+ {
540
+ "internalType": "uint256",
541
+ "name": "marketplaceFee",
542
+ "type": "uint256"
543
+ }
544
+ ],
545
+ "stateMutability": "nonpayable",
546
+ "type": "function"
547
+ },
548
+ {
549
+ "inputs": [
550
+ {
551
+ "internalType": "address",
552
+ "name": "mech",
553
+ "type": "address"
554
+ }
555
+ ],
556
+ "name": "processPaymentByMultisig",
557
+ "outputs": [
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "mechPayment",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "marketplaceFee",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ {
575
+ "internalType": "address",
576
+ "name": "_subscriptionNFT",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "internalType": "uint256",
581
+ "name": "_subscriptionTokenId",
582
+ "type": "uint256"
583
+ },
584
+ {
585
+ "internalType": "uint256",
586
+ "name": "_tokenCreditRatio",
587
+ "type": "uint256"
588
+ }
589
+ ],
590
+ "name": "setSubscription",
591
+ "outputs": [],
592
+ "stateMutability": "nonpayable",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [],
597
+ "name": "subscriptionNFT",
598
+ "outputs": [
599
+ {
600
+ "internalType": "address",
601
+ "name": "",
602
+ "type": "address"
603
+ }
604
+ ],
605
+ "stateMutability": "view",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [],
610
+ "name": "subscriptionTokenId",
611
+ "outputs": [
612
+ {
613
+ "internalType": "uint256",
614
+ "name": "",
615
+ "type": "uint256"
616
+ }
617
+ ],
618
+ "stateMutability": "view",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [],
623
+ "name": "token",
624
+ "outputs": [
625
+ {
626
+ "internalType": "address",
627
+ "name": "",
628
+ "type": "address"
629
+ }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [],
636
+ "name": "tokenCreditRatio",
637
+ "outputs": [
638
+ {
639
+ "internalType": "uint256",
640
+ "name": "",
641
+ "type": "uint256"
642
+ }
643
+ ],
644
+ "stateMutability": "view",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [],
649
+ "name": "trackerBalance",
650
+ "outputs": [
651
+ {
652
+ "internalType": "uint256",
653
+ "name": "",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "stateMutability": "view",
658
+ "type": "function"
659
+ }
660
+ ]