mech-client 0.4.0__py3-none-any.whl → 0.7.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 (34) 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/SubscriptionProvider.base.json +294 -0
  19. mech_client/abis/SubscriptionProvider.gnosis.json +294 -0
  20. mech_client/abis/SubscriptionToken.base.json +1393 -0
  21. mech_client/abis/TransferNFTCondition.base.json +1062 -0
  22. mech_client/abis/TransferNFTCondition.gnosis.json +1062 -0
  23. mech_client/cli.py +99 -10
  24. mech_client/configs/mechs.json +1 -7
  25. mech_client/interact.py +14 -39
  26. mech_client/marketplace_interact.py +130 -90
  27. mech_client/mech_tool_management.py +11 -5
  28. mech_client/subgraph.py +21 -35
  29. mech_client/wss.py +7 -6
  30. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/METADATA +53 -19
  31. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/RECORD +34 -13
  32. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/LICENSE +0 -0
  33. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/WHEEL +0 -0
  34. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,1037 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "string",
6
+ "name": "_name",
7
+ "type": "string"
8
+ },
9
+ {
10
+ "internalType": "string",
11
+ "name": "_symbol",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "internalType": "string",
16
+ "name": "_baseURI",
17
+ "type": "string"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "address",
27
+ "name": "operator",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "AgentInstanceRegistered",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "serviceId",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "name": "AgentInstancesSlotsFilled",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "uint256",
49
+ "name": "agentId",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "AgentNotFound",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "agentId",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "internalType": "uint256",
65
+ "name": "serviceId",
66
+ "type": "uint256"
67
+ }
68
+ ],
69
+ "name": "AgentNotInService",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "componentId",
77
+ "type": "uint256"
78
+ }
79
+ ],
80
+ "name": "ComponentNotFound",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "HashExists",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "sent",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "expected",
98
+ "type": "uint256"
99
+ },
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "serviceId",
103
+ "type": "uint256"
104
+ }
105
+ ],
106
+ "name": "IncorrectAgentBondingValue",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "uint256",
113
+ "name": "sent",
114
+ "type": "uint256"
115
+ },
116
+ {
117
+ "internalType": "uint256",
118
+ "name": "expected",
119
+ "type": "uint256"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "serviceId",
124
+ "type": "uint256"
125
+ }
126
+ ],
127
+ "name": "IncorrectRegistrationDepositValue",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "address",
134
+ "name": "sender",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "internalType": "address",
139
+ "name": "manager",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "name": "ManagerOnly",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address",
150
+ "name": "provided",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "internalType": "address",
155
+ "name": "expected",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "serviceId",
161
+ "type": "uint256"
162
+ }
163
+ ],
164
+ "name": "OnlyOwnServiceMultisig",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [
169
+ {
170
+ "internalType": "address",
171
+ "name": "operator",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "serviceId",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "name": "OperatorHasNoInstances",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "sender",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "internalType": "address",
192
+ "name": "owner",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "internalType": "uint256",
197
+ "name": "agentId",
198
+ "type": "uint256"
199
+ }
200
+ ],
201
+ "name": "OperatorOnly",
202
+ "type": "error"
203
+ },
204
+ {
205
+ "inputs": [
206
+ {
207
+ "internalType": "uint256",
208
+ "name": "provided",
209
+ "type": "uint256"
210
+ },
211
+ {
212
+ "internalType": "uint256",
213
+ "name": "max",
214
+ "type": "uint256"
215
+ }
216
+ ],
217
+ "name": "Overflow",
218
+ "type": "error"
219
+ },
220
+ {
221
+ "inputs": [
222
+ {
223
+ "internalType": "address",
224
+ "name": "sender",
225
+ "type": "address"
226
+ },
227
+ {
228
+ "internalType": "address",
229
+ "name": "owner",
230
+ "type": "address"
231
+ }
232
+ ],
233
+ "name": "OwnerOnly",
234
+ "type": "error"
235
+ },
236
+ {
237
+ "inputs": [],
238
+ "name": "Paused",
239
+ "type": "error"
240
+ },
241
+ {
242
+ "inputs": [],
243
+ "name": "ReentrancyGuard",
244
+ "type": "error"
245
+ },
246
+ {
247
+ "inputs": [
248
+ {
249
+ "internalType": "uint256",
250
+ "name": "serviceId",
251
+ "type": "uint256"
252
+ }
253
+ ],
254
+ "name": "ServiceMustBeInactive",
255
+ "type": "error"
256
+ },
257
+ {
258
+ "inputs": [
259
+ {
260
+ "internalType": "address",
261
+ "name": "token",
262
+ "type": "address"
263
+ },
264
+ {
265
+ "internalType": "address",
266
+ "name": "from",
267
+ "type": "address"
268
+ },
269
+ {
270
+ "internalType": "address",
271
+ "name": "to",
272
+ "type": "address"
273
+ },
274
+ {
275
+ "internalType": "uint256",
276
+ "name": "value",
277
+ "type": "uint256"
278
+ }
279
+ ],
280
+ "name": "TransferFailed",
281
+ "type": "error"
282
+ },
283
+ {
284
+ "inputs": [
285
+ {
286
+ "internalType": "address",
287
+ "name": "multisig",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "name": "UnauthorizedMultisig",
292
+ "type": "error"
293
+ },
294
+ {
295
+ "inputs": [
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "agentId",
299
+ "type": "uint256"
300
+ }
301
+ ],
302
+ "name": "WrongAgentId",
303
+ "type": "error"
304
+ },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "numValues1",
310
+ "type": "uint256"
311
+ },
312
+ {
313
+ "internalType": "uint256",
314
+ "name": "numValues2",
315
+ "type": "uint256"
316
+ }
317
+ ],
318
+ "name": "WrongArrayLength",
319
+ "type": "error"
320
+ },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "serviceId",
326
+ "type": "uint256"
327
+ }
328
+ ],
329
+ "name": "WrongOperator",
330
+ "type": "error"
331
+ },
332
+ {
333
+ "inputs": [
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "state",
337
+ "type": "uint256"
338
+ },
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "serviceId",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "name": "WrongServiceState",
346
+ "type": "error"
347
+ },
348
+ {
349
+ "inputs": [
350
+ {
351
+ "internalType": "uint256",
352
+ "name": "currentThreshold",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "internalType": "uint256",
357
+ "name": "minThreshold",
358
+ "type": "uint256"
359
+ },
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "maxThreshold",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "name": "WrongThreshold",
367
+ "type": "error"
368
+ },
369
+ {
370
+ "inputs": [],
371
+ "name": "ZeroAddress",
372
+ "type": "error"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "ZeroValue",
377
+ "type": "error"
378
+ },
379
+ {
380
+ "anonymous": false,
381
+ "inputs": [
382
+ {
383
+ "indexed": true,
384
+ "internalType": "address",
385
+ "name": "owner",
386
+ "type": "address"
387
+ },
388
+ {
389
+ "indexed": true,
390
+ "internalType": "address",
391
+ "name": "spender",
392
+ "type": "address"
393
+ },
394
+ {
395
+ "indexed": true,
396
+ "internalType": "uint256",
397
+ "name": "id",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "name": "Approval",
402
+ "type": "event"
403
+ },
404
+ {
405
+ "anonymous": false,
406
+ "inputs": [
407
+ {
408
+ "indexed": true,
409
+ "internalType": "address",
410
+ "name": "owner",
411
+ "type": "address"
412
+ },
413
+ {
414
+ "indexed": true,
415
+ "internalType": "address",
416
+ "name": "operator",
417
+ "type": "address"
418
+ },
419
+ {
420
+ "indexed": false,
421
+ "internalType": "bool",
422
+ "name": "approved",
423
+ "type": "bool"
424
+ }
425
+ ],
426
+ "name": "ApprovalForAll",
427
+ "type": "event"
428
+ },
429
+ {
430
+ "anonymous": false,
431
+ "inputs": [
432
+ {
433
+ "indexed": false,
434
+ "internalType": "string",
435
+ "name": "baseURI",
436
+ "type": "string"
437
+ }
438
+ ],
439
+ "name": "BaseURIChanged",
440
+ "type": "event"
441
+ },
442
+ {
443
+ "anonymous": false,
444
+ "inputs": [
445
+ {
446
+ "indexed": true,
447
+ "internalType": "uint256",
448
+ "name": "agentId",
449
+ "type": "uint256"
450
+ },
451
+ {
452
+ "indexed": false,
453
+ "internalType": "bytes32",
454
+ "name": "agentHash",
455
+ "type": "bytes32"
456
+ }
457
+ ],
458
+ "name": "CreateAgent",
459
+ "type": "event"
460
+ },
461
+ {
462
+ "anonymous": false,
463
+ "inputs": [
464
+ {
465
+ "indexed": true,
466
+ "internalType": "address",
467
+ "name": "manager",
468
+ "type": "address"
469
+ }
470
+ ],
471
+ "name": "ManagerUpdated",
472
+ "type": "event"
473
+ },
474
+ {
475
+ "anonymous": false,
476
+ "inputs": [
477
+ {
478
+ "indexed": true,
479
+ "internalType": "address",
480
+ "name": "owner",
481
+ "type": "address"
482
+ }
483
+ ],
484
+ "name": "OwnerUpdated",
485
+ "type": "event"
486
+ },
487
+ {
488
+ "anonymous": false,
489
+ "inputs": [
490
+ {
491
+ "indexed": true,
492
+ "internalType": "address",
493
+ "name": "from",
494
+ "type": "address"
495
+ },
496
+ {
497
+ "indexed": true,
498
+ "internalType": "address",
499
+ "name": "to",
500
+ "type": "address"
501
+ },
502
+ {
503
+ "indexed": true,
504
+ "internalType": "uint256",
505
+ "name": "id",
506
+ "type": "uint256"
507
+ }
508
+ ],
509
+ "name": "Transfer",
510
+ "type": "event"
511
+ },
512
+ {
513
+ "anonymous": false,
514
+ "inputs": [
515
+ {
516
+ "indexed": true,
517
+ "internalType": "uint256",
518
+ "name": "agentId",
519
+ "type": "uint256"
520
+ },
521
+ {
522
+ "indexed": false,
523
+ "internalType": "bytes32",
524
+ "name": "agentHash",
525
+ "type": "bytes32"
526
+ }
527
+ ],
528
+ "name": "UpdateAgentHash",
529
+ "type": "event"
530
+ },
531
+ {
532
+ "inputs": [],
533
+ "name": "CID_PREFIX",
534
+ "outputs": [
535
+ {
536
+ "internalType": "string",
537
+ "name": "",
538
+ "type": "string"
539
+ }
540
+ ],
541
+ "stateMutability": "view",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [],
546
+ "name": "VERSION",
547
+ "outputs": [
548
+ {
549
+ "internalType": "string",
550
+ "name": "",
551
+ "type": "string"
552
+ }
553
+ ],
554
+ "stateMutability": "view",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "inputs": [
559
+ {
560
+ "internalType": "address",
561
+ "name": "spender",
562
+ "type": "address"
563
+ },
564
+ {
565
+ "internalType": "uint256",
566
+ "name": "id",
567
+ "type": "uint256"
568
+ }
569
+ ],
570
+ "name": "approve",
571
+ "outputs": [],
572
+ "stateMutability": "nonpayable",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [
577
+ {
578
+ "internalType": "address",
579
+ "name": "owner",
580
+ "type": "address"
581
+ }
582
+ ],
583
+ "name": "balanceOf",
584
+ "outputs": [
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "",
588
+ "type": "uint256"
589
+ }
590
+ ],
591
+ "stateMutability": "view",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [],
596
+ "name": "baseURI",
597
+ "outputs": [
598
+ {
599
+ "internalType": "string",
600
+ "name": "",
601
+ "type": "string"
602
+ }
603
+ ],
604
+ "stateMutability": "view",
605
+ "type": "function"
606
+ },
607
+ {
608
+ "inputs": [
609
+ {
610
+ "internalType": "address",
611
+ "name": "newManager",
612
+ "type": "address"
613
+ }
614
+ ],
615
+ "name": "changeManager",
616
+ "outputs": [],
617
+ "stateMutability": "nonpayable",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ {
623
+ "internalType": "address",
624
+ "name": "newOwner",
625
+ "type": "address"
626
+ }
627
+ ],
628
+ "name": "changeOwner",
629
+ "outputs": [],
630
+ "stateMutability": "nonpayable",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [
635
+ {
636
+ "internalType": "address",
637
+ "name": "agentOwner",
638
+ "type": "address"
639
+ },
640
+ {
641
+ "internalType": "bytes32",
642
+ "name": "agentHash",
643
+ "type": "bytes32"
644
+ }
645
+ ],
646
+ "name": "create",
647
+ "outputs": [
648
+ {
649
+ "internalType": "uint256",
650
+ "name": "agentId",
651
+ "type": "uint256"
652
+ }
653
+ ],
654
+ "stateMutability": "nonpayable",
655
+ "type": "function"
656
+ },
657
+ {
658
+ "inputs": [
659
+ {
660
+ "internalType": "uint256",
661
+ "name": "unitId",
662
+ "type": "uint256"
663
+ }
664
+ ],
665
+ "name": "exists",
666
+ "outputs": [
667
+ {
668
+ "internalType": "bool",
669
+ "name": "",
670
+ "type": "bool"
671
+ }
672
+ ],
673
+ "stateMutability": "view",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [
678
+ {
679
+ "internalType": "uint256",
680
+ "name": "",
681
+ "type": "uint256"
682
+ }
683
+ ],
684
+ "name": "getApproved",
685
+ "outputs": [
686
+ {
687
+ "internalType": "address",
688
+ "name": "",
689
+ "type": "address"
690
+ }
691
+ ],
692
+ "stateMutability": "view",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "agentId",
700
+ "type": "uint256"
701
+ }
702
+ ],
703
+ "name": "getHashes",
704
+ "outputs": [
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "numHashes",
708
+ "type": "uint256"
709
+ },
710
+ {
711
+ "internalType": "bytes32[]",
712
+ "name": "agentHashes",
713
+ "type": "bytes32[]"
714
+ }
715
+ ],
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [
721
+ {
722
+ "internalType": "address",
723
+ "name": "",
724
+ "type": "address"
725
+ },
726
+ {
727
+ "internalType": "address",
728
+ "name": "",
729
+ "type": "address"
730
+ }
731
+ ],
732
+ "name": "isApprovedForAll",
733
+ "outputs": [
734
+ {
735
+ "internalType": "bool",
736
+ "name": "",
737
+ "type": "bool"
738
+ }
739
+ ],
740
+ "stateMutability": "view",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [],
745
+ "name": "manager",
746
+ "outputs": [
747
+ {
748
+ "internalType": "address",
749
+ "name": "",
750
+ "type": "address"
751
+ }
752
+ ],
753
+ "stateMutability": "view",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "inputs": [
758
+ {
759
+ "internalType": "uint256",
760
+ "name": "",
761
+ "type": "uint256"
762
+ },
763
+ {
764
+ "internalType": "uint256",
765
+ "name": "",
766
+ "type": "uint256"
767
+ }
768
+ ],
769
+ "name": "mapAgentIdHashes",
770
+ "outputs": [
771
+ {
772
+ "internalType": "bytes32",
773
+ "name": "",
774
+ "type": "bytes32"
775
+ }
776
+ ],
777
+ "stateMutability": "view",
778
+ "type": "function"
779
+ },
780
+ {
781
+ "inputs": [],
782
+ "name": "name",
783
+ "outputs": [
784
+ {
785
+ "internalType": "string",
786
+ "name": "",
787
+ "type": "string"
788
+ }
789
+ ],
790
+ "stateMutability": "view",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [],
795
+ "name": "owner",
796
+ "outputs": [
797
+ {
798
+ "internalType": "address",
799
+ "name": "",
800
+ "type": "address"
801
+ }
802
+ ],
803
+ "stateMutability": "view",
804
+ "type": "function"
805
+ },
806
+ {
807
+ "inputs": [
808
+ {
809
+ "internalType": "uint256",
810
+ "name": "id",
811
+ "type": "uint256"
812
+ }
813
+ ],
814
+ "name": "ownerOf",
815
+ "outputs": [
816
+ {
817
+ "internalType": "address",
818
+ "name": "owner",
819
+ "type": "address"
820
+ }
821
+ ],
822
+ "stateMutability": "view",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [
827
+ {
828
+ "internalType": "address",
829
+ "name": "from",
830
+ "type": "address"
831
+ },
832
+ {
833
+ "internalType": "address",
834
+ "name": "to",
835
+ "type": "address"
836
+ },
837
+ {
838
+ "internalType": "uint256",
839
+ "name": "id",
840
+ "type": "uint256"
841
+ }
842
+ ],
843
+ "name": "safeTransferFrom",
844
+ "outputs": [],
845
+ "stateMutability": "nonpayable",
846
+ "type": "function"
847
+ },
848
+ {
849
+ "inputs": [
850
+ {
851
+ "internalType": "address",
852
+ "name": "from",
853
+ "type": "address"
854
+ },
855
+ {
856
+ "internalType": "address",
857
+ "name": "to",
858
+ "type": "address"
859
+ },
860
+ {
861
+ "internalType": "uint256",
862
+ "name": "id",
863
+ "type": "uint256"
864
+ },
865
+ {
866
+ "internalType": "bytes",
867
+ "name": "data",
868
+ "type": "bytes"
869
+ }
870
+ ],
871
+ "name": "safeTransferFrom",
872
+ "outputs": [],
873
+ "stateMutability": "nonpayable",
874
+ "type": "function"
875
+ },
876
+ {
877
+ "inputs": [
878
+ {
879
+ "internalType": "address",
880
+ "name": "operator",
881
+ "type": "address"
882
+ },
883
+ {
884
+ "internalType": "bool",
885
+ "name": "approved",
886
+ "type": "bool"
887
+ }
888
+ ],
889
+ "name": "setApprovalForAll",
890
+ "outputs": [],
891
+ "stateMutability": "nonpayable",
892
+ "type": "function"
893
+ },
894
+ {
895
+ "inputs": [
896
+ {
897
+ "internalType": "string",
898
+ "name": "bURI",
899
+ "type": "string"
900
+ }
901
+ ],
902
+ "name": "setBaseURI",
903
+ "outputs": [],
904
+ "stateMutability": "nonpayable",
905
+ "type": "function"
906
+ },
907
+ {
908
+ "inputs": [
909
+ {
910
+ "internalType": "bytes4",
911
+ "name": "interfaceId",
912
+ "type": "bytes4"
913
+ }
914
+ ],
915
+ "name": "supportsInterface",
916
+ "outputs": [
917
+ {
918
+ "internalType": "bool",
919
+ "name": "",
920
+ "type": "bool"
921
+ }
922
+ ],
923
+ "stateMutability": "view",
924
+ "type": "function"
925
+ },
926
+ {
927
+ "inputs": [],
928
+ "name": "symbol",
929
+ "outputs": [
930
+ {
931
+ "internalType": "string",
932
+ "name": "",
933
+ "type": "string"
934
+ }
935
+ ],
936
+ "stateMutability": "view",
937
+ "type": "function"
938
+ },
939
+ {
940
+ "inputs": [
941
+ {
942
+ "internalType": "uint256",
943
+ "name": "id",
944
+ "type": "uint256"
945
+ }
946
+ ],
947
+ "name": "tokenByIndex",
948
+ "outputs": [
949
+ {
950
+ "internalType": "uint256",
951
+ "name": "unitId",
952
+ "type": "uint256"
953
+ }
954
+ ],
955
+ "stateMutability": "view",
956
+ "type": "function"
957
+ },
958
+ {
959
+ "inputs": [
960
+ {
961
+ "internalType": "uint256",
962
+ "name": "unitId",
963
+ "type": "uint256"
964
+ }
965
+ ],
966
+ "name": "tokenURI",
967
+ "outputs": [
968
+ {
969
+ "internalType": "string",
970
+ "name": "",
971
+ "type": "string"
972
+ }
973
+ ],
974
+ "stateMutability": "view",
975
+ "type": "function"
976
+ },
977
+ {
978
+ "inputs": [],
979
+ "name": "totalSupply",
980
+ "outputs": [
981
+ {
982
+ "internalType": "uint256",
983
+ "name": "",
984
+ "type": "uint256"
985
+ }
986
+ ],
987
+ "stateMutability": "view",
988
+ "type": "function"
989
+ },
990
+ {
991
+ "inputs": [
992
+ {
993
+ "internalType": "address",
994
+ "name": "from",
995
+ "type": "address"
996
+ },
997
+ {
998
+ "internalType": "address",
999
+ "name": "to",
1000
+ "type": "address"
1001
+ },
1002
+ {
1003
+ "internalType": "uint256",
1004
+ "name": "id",
1005
+ "type": "uint256"
1006
+ }
1007
+ ],
1008
+ "name": "transferFrom",
1009
+ "outputs": [],
1010
+ "stateMutability": "nonpayable",
1011
+ "type": "function"
1012
+ },
1013
+ {
1014
+ "inputs": [
1015
+ {
1016
+ "internalType": "uint256",
1017
+ "name": "agentId",
1018
+ "type": "uint256"
1019
+ },
1020
+ {
1021
+ "internalType": "bytes32",
1022
+ "name": "agentHash",
1023
+ "type": "bytes32"
1024
+ }
1025
+ ],
1026
+ "name": "updateHash",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "bool",
1030
+ "name": "success",
1031
+ "type": "bool"
1032
+ }
1033
+ ],
1034
+ "stateMutability": "nonpayable",
1035
+ "type": "function"
1036
+ }
1037
+ ]