iwa 0.0.1a2__py3-none-any.whl → 0.0.1a4__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 (67) hide show
  1. iwa/core/chain/interface.py +51 -61
  2. iwa/core/chain/models.py +7 -7
  3. iwa/core/chain/rate_limiter.py +21 -10
  4. iwa/core/cli.py +27 -2
  5. iwa/core/constants.py +6 -5
  6. iwa/core/contracts/abis/erc20.json +930 -0
  7. iwa/core/contracts/abis/multisend.json +24 -0
  8. iwa/core/contracts/abis/multisend_call_only.json +17 -0
  9. iwa/core/contracts/contract.py +16 -4
  10. iwa/core/ipfs.py +149 -0
  11. iwa/core/keys.py +259 -29
  12. iwa/core/mnemonic.py +3 -13
  13. iwa/core/models.py +28 -6
  14. iwa/core/pricing.py +4 -4
  15. iwa/core/secrets.py +77 -0
  16. iwa/core/services/safe.py +3 -3
  17. iwa/core/utils.py +6 -1
  18. iwa/core/wallet.py +4 -0
  19. iwa/plugins/gnosis/safe.py +2 -2
  20. iwa/plugins/gnosis/tests/test_safe.py +1 -1
  21. iwa/plugins/olas/constants.py +8 -0
  22. iwa/plugins/olas/contracts/abis/activity_checker.json +110 -0
  23. iwa/plugins/olas/contracts/abis/mech.json +740 -0
  24. iwa/plugins/olas/contracts/abis/mech_marketplace.json +1293 -0
  25. iwa/plugins/olas/contracts/abis/mech_new.json +954 -0
  26. iwa/plugins/olas/contracts/abis/service_manager.json +1382 -0
  27. iwa/plugins/olas/contracts/abis/service_registry.json +1909 -0
  28. iwa/plugins/olas/contracts/abis/staking.json +1400 -0
  29. iwa/plugins/olas/contracts/abis/staking_token.json +1274 -0
  30. iwa/plugins/olas/contracts/mech.py +30 -2
  31. iwa/plugins/olas/plugin.py +2 -2
  32. iwa/plugins/olas/tests/test_plugin_full.py +3 -3
  33. iwa/plugins/olas/tests/test_staking_integration.py +2 -2
  34. iwa/tools/__init__.py +1 -0
  35. iwa/tools/check_profile.py +6 -5
  36. iwa/tools/list_contracts.py +136 -0
  37. iwa/tools/release.py +9 -3
  38. iwa/tools/reset_env.py +2 -2
  39. iwa/tools/reset_tenderly.py +26 -24
  40. iwa/tools/wallet_check.py +150 -0
  41. iwa/web/dependencies.py +4 -4
  42. iwa/web/routers/state.py +1 -0
  43. iwa/web/static/app.js +3096 -0
  44. iwa/web/static/index.html +543 -0
  45. iwa/web/static/style.css +1443 -0
  46. iwa/web/tests/test_web_endpoints.py +3 -2
  47. iwa/web/tests/test_web_swap_coverage.py +156 -0
  48. {iwa-0.0.1a2.dist-info → iwa-0.0.1a4.dist-info}/METADATA +6 -3
  49. {iwa-0.0.1a2.dist-info → iwa-0.0.1a4.dist-info}/RECORD +64 -44
  50. iwa-0.0.1a4.dist-info/entry_points.txt +6 -0
  51. {iwa-0.0.1a2.dist-info → iwa-0.0.1a4.dist-info}/top_level.txt +0 -1
  52. tests/test_chain.py +1 -1
  53. tests/test_chain_interface_coverage.py +92 -0
  54. tests/test_contract.py +2 -0
  55. tests/test_keys.py +58 -15
  56. tests/test_migration.py +52 -0
  57. tests/test_mnemonic.py +1 -1
  58. tests/test_pricing.py +7 -7
  59. tests/test_safe_coverage.py +1 -1
  60. tests/test_safe_service.py +3 -3
  61. tests/test_staking_router.py +13 -1
  62. tools/verify_drain.py +1 -1
  63. conftest.py +0 -22
  64. iwa/core/settings.py +0 -95
  65. iwa-0.0.1a2.dist-info/entry_points.txt +0 -2
  66. {iwa-0.0.1a2.dist-info → iwa-0.0.1a4.dist-info}/WHEEL +0 -0
  67. {iwa-0.0.1a2.dist-info → iwa-0.0.1a4.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,1382 @@
1
+ [
2
+ {
3
+ "inputs":[
4
+ {
5
+ "internalType":"address",
6
+ "name":"_serviceRegistry",
7
+ "type":"address"
8
+ },
9
+ {
10
+ "internalType":"address",
11
+ "name":"_serviceRegistryTokenUtility",
12
+ "type":"address"
13
+ },
14
+ {
15
+ "internalType":"address",
16
+ "name":"_operatorWhitelist",
17
+ "type":"address"
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
+
86
+ ],
87
+ "name":"HashExists",
88
+ "type":"error"
89
+ },
90
+ {
91
+ "inputs":[
92
+ {
93
+ "internalType":"address",
94
+ "name":"operator",
95
+ "type":"address"
96
+ },
97
+ {
98
+ "internalType":"bytes32",
99
+ "name":"msgHash",
100
+ "type":"bytes32"
101
+ },
102
+ {
103
+ "internalType":"bytes",
104
+ "name":"signature",
105
+ "type":"bytes"
106
+ }
107
+ ],
108
+ "name":"HashNotApproved",
109
+ "type":"error"
110
+ },
111
+ {
112
+ "inputs":[
113
+ {
114
+ "internalType":"address",
115
+ "name":"operator",
116
+ "type":"address"
117
+ },
118
+ {
119
+ "internalType":"bytes32",
120
+ "name":"msgHash",
121
+ "type":"bytes32"
122
+ },
123
+ {
124
+ "internalType":"bytes",
125
+ "name":"signature",
126
+ "type":"bytes"
127
+ }
128
+ ],
129
+ "name":"HashNotValidated",
130
+ "type":"error"
131
+ },
132
+ {
133
+ "inputs":[
134
+ {
135
+ "internalType":"uint256",
136
+ "name":"sent",
137
+ "type":"uint256"
138
+ },
139
+ {
140
+ "internalType":"uint256",
141
+ "name":"expected",
142
+ "type":"uint256"
143
+ },
144
+ {
145
+ "internalType":"uint256",
146
+ "name":"serviceId",
147
+ "type":"uint256"
148
+ }
149
+ ],
150
+ "name":"IncorrectAgentBondingValue",
151
+ "type":"error"
152
+ },
153
+ {
154
+ "inputs":[
155
+ {
156
+ "internalType":"uint256",
157
+ "name":"sent",
158
+ "type":"uint256"
159
+ },
160
+ {
161
+ "internalType":"uint256",
162
+ "name":"expected",
163
+ "type":"uint256"
164
+ },
165
+ {
166
+ "internalType":"uint256",
167
+ "name":"serviceId",
168
+ "type":"uint256"
169
+ }
170
+ ],
171
+ "name":"IncorrectRegistrationDepositValue",
172
+ "type":"error"
173
+ },
174
+ {
175
+ "inputs":[
176
+ {
177
+ "internalType":"bytes",
178
+ "name":"signature",
179
+ "type":"bytes"
180
+ },
181
+ {
182
+ "internalType":"uint256",
183
+ "name":"provided",
184
+ "type":"uint256"
185
+ },
186
+ {
187
+ "internalType":"uint256",
188
+ "name":"expected",
189
+ "type":"uint256"
190
+ }
191
+ ],
192
+ "name":"IncorrectSignatureLength",
193
+ "type":"error"
194
+ },
195
+ {
196
+ "inputs":[
197
+ {
198
+ "internalType":"address",
199
+ "name":"sender",
200
+ "type":"address"
201
+ },
202
+ {
203
+ "internalType":"address",
204
+ "name":"manager",
205
+ "type":"address"
206
+ }
207
+ ],
208
+ "name":"ManagerOnly",
209
+ "type":"error"
210
+ },
211
+ {
212
+ "inputs":[
213
+ {
214
+ "internalType":"address",
215
+ "name":"provided",
216
+ "type":"address"
217
+ },
218
+ {
219
+ "internalType":"address",
220
+ "name":"expected",
221
+ "type":"address"
222
+ },
223
+ {
224
+ "internalType":"uint256",
225
+ "name":"serviceId",
226
+ "type":"uint256"
227
+ }
228
+ ],
229
+ "name":"OnlyOwnServiceMultisig",
230
+ "type":"error"
231
+ },
232
+ {
233
+ "inputs":[
234
+ {
235
+ "internalType":"address",
236
+ "name":"operator",
237
+ "type":"address"
238
+ },
239
+ {
240
+ "internalType":"uint256",
241
+ "name":"serviceId",
242
+ "type":"uint256"
243
+ }
244
+ ],
245
+ "name":"OperatorHasNoInstances",
246
+ "type":"error"
247
+ },
248
+ {
249
+ "inputs":[
250
+ {
251
+ "internalType":"uint256",
252
+ "name":"provided",
253
+ "type":"uint256"
254
+ },
255
+ {
256
+ "internalType":"uint256",
257
+ "name":"max",
258
+ "type":"uint256"
259
+ }
260
+ ],
261
+ "name":"Overflow",
262
+ "type":"error"
263
+ },
264
+ {
265
+ "inputs":[
266
+ {
267
+ "internalType":"address",
268
+ "name":"sender",
269
+ "type":"address"
270
+ },
271
+ {
272
+ "internalType":"address",
273
+ "name":"owner",
274
+ "type":"address"
275
+ }
276
+ ],
277
+ "name":"OwnerOnly",
278
+ "type":"error"
279
+ },
280
+ {
281
+ "inputs":[
282
+
283
+ ],
284
+ "name":"Paused",
285
+ "type":"error"
286
+ },
287
+ {
288
+ "inputs":[
289
+
290
+ ],
291
+ "name":"ReentrancyGuard",
292
+ "type":"error"
293
+ },
294
+ {
295
+ "inputs":[
296
+ {
297
+ "internalType":"uint256",
298
+ "name":"serviceId",
299
+ "type":"uint256"
300
+ }
301
+ ],
302
+ "name":"ServiceMustBeInactive",
303
+ "type":"error"
304
+ },
305
+ {
306
+ "inputs":[
307
+ {
308
+ "internalType":"address",
309
+ "name":"token",
310
+ "type":"address"
311
+ },
312
+ {
313
+ "internalType":"address",
314
+ "name":"from",
315
+ "type":"address"
316
+ },
317
+ {
318
+ "internalType":"address",
319
+ "name":"to",
320
+ "type":"address"
321
+ },
322
+ {
323
+ "internalType":"uint256",
324
+ "name":"value",
325
+ "type":"uint256"
326
+ }
327
+ ],
328
+ "name":"TransferFailed",
329
+ "type":"error"
330
+ },
331
+ {
332
+ "inputs":[
333
+ {
334
+ "internalType":"address",
335
+ "name":"multisig",
336
+ "type":"address"
337
+ }
338
+ ],
339
+ "name":"UnauthorizedMultisig",
340
+ "type":"error"
341
+ },
342
+ {
343
+ "inputs":[
344
+ {
345
+ "internalType":"uint256",
346
+ "name":"agentId",
347
+ "type":"uint256"
348
+ }
349
+ ],
350
+ "name":"WrongAgentId",
351
+ "type":"error"
352
+ },
353
+ {
354
+ "inputs":[
355
+ {
356
+ "internalType":"uint256",
357
+ "name":"numValues1",
358
+ "type":"uint256"
359
+ },
360
+ {
361
+ "internalType":"uint256",
362
+ "name":"numValues2",
363
+ "type":"uint256"
364
+ }
365
+ ],
366
+ "name":"WrongArrayLength",
367
+ "type":"error"
368
+ },
369
+ {
370
+ "inputs":[
371
+ {
372
+ "internalType":"uint256",
373
+ "name":"serviceId",
374
+ "type":"uint256"
375
+ }
376
+ ],
377
+ "name":"WrongOperator",
378
+ "type":"error"
379
+ },
380
+ {
381
+ "inputs":[
382
+ {
383
+ "internalType":"address",
384
+ "name":"provided",
385
+ "type":"address"
386
+ },
387
+ {
388
+ "internalType":"address",
389
+ "name":"expected",
390
+ "type":"address"
391
+ }
392
+ ],
393
+ "name":"WrongOperatorAddress",
394
+ "type":"error"
395
+ },
396
+ {
397
+ "inputs":[
398
+ {
399
+ "internalType":"uint256",
400
+ "name":"state",
401
+ "type":"uint256"
402
+ },
403
+ {
404
+ "internalType":"uint256",
405
+ "name":"serviceId",
406
+ "type":"uint256"
407
+ }
408
+ ],
409
+ "name":"WrongServiceState",
410
+ "type":"error"
411
+ },
412
+ {
413
+ "inputs":[
414
+ {
415
+ "internalType":"uint256",
416
+ "name":"currentThreshold",
417
+ "type":"uint256"
418
+ },
419
+ {
420
+ "internalType":"uint256",
421
+ "name":"minThreshold",
422
+ "type":"uint256"
423
+ },
424
+ {
425
+ "internalType":"uint256",
426
+ "name":"maxThreshold",
427
+ "type":"uint256"
428
+ }
429
+ ],
430
+ "name":"WrongThreshold",
431
+ "type":"error"
432
+ },
433
+ {
434
+ "inputs":[
435
+
436
+ ],
437
+ "name":"ZeroAddress",
438
+ "type":"error"
439
+ },
440
+ {
441
+ "inputs":[
442
+
443
+ ],
444
+ "name":"ZeroOperatorAddress",
445
+ "type":"error"
446
+ },
447
+ {
448
+ "inputs":[
449
+
450
+ ],
451
+ "name":"ZeroValue",
452
+ "type":"error"
453
+ },
454
+ {
455
+ "anonymous":false,
456
+ "inputs":[
457
+ {
458
+ "indexed":true,
459
+ "internalType":"address",
460
+ "name":"multisig",
461
+ "type":"address"
462
+ }
463
+ ],
464
+ "name":"CreateMultisig",
465
+ "type":"event"
466
+ },
467
+ {
468
+ "anonymous":false,
469
+ "inputs":[
470
+ {
471
+ "indexed":true,
472
+ "internalType":"address",
473
+ "name":"operator",
474
+ "type":"address"
475
+ },
476
+ {
477
+ "indexed":false,
478
+ "internalType":"bytes32",
479
+ "name":"hash",
480
+ "type":"bytes32"
481
+ }
482
+ ],
483
+ "name":"OperatorHashApproved",
484
+ "type":"event"
485
+ },
486
+ {
487
+ "anonymous":false,
488
+ "inputs":[
489
+ {
490
+ "indexed":true,
491
+ "internalType":"address",
492
+ "name":"operatorWhitelist",
493
+ "type":"address"
494
+ }
495
+ ],
496
+ "name":"OperatorWhitelistUpdated",
497
+ "type":"event"
498
+ },
499
+ {
500
+ "anonymous":false,
501
+ "inputs":[
502
+ {
503
+ "indexed":true,
504
+ "internalType":"address",
505
+ "name":"owner",
506
+ "type":"address"
507
+ }
508
+ ],
509
+ "name":"OwnerUpdated",
510
+ "type":"event"
511
+ },
512
+ {
513
+ "anonymous":false,
514
+ "inputs":[
515
+ {
516
+ "indexed":true,
517
+ "internalType":"address",
518
+ "name":"owner",
519
+ "type":"address"
520
+ }
521
+ ],
522
+ "name":"Pause",
523
+ "type":"event"
524
+ },
525
+ {
526
+ "anonymous":false,
527
+ "inputs":[
528
+ {
529
+ "indexed":true,
530
+ "internalType":"address",
531
+ "name":"owner",
532
+ "type":"address"
533
+ }
534
+ ],
535
+ "name":"Unpause",
536
+ "type":"event"
537
+ },
538
+ {
539
+ "inputs":[
540
+
541
+ ],
542
+ "name":"BOND_WRAPPER",
543
+ "outputs":[
544
+ {
545
+ "internalType":"uint96",
546
+ "name":"",
547
+ "type":"uint96"
548
+ }
549
+ ],
550
+ "stateMutability":"view",
551
+ "type":"function"
552
+ },
553
+ {
554
+ "inputs":[
555
+
556
+ ],
557
+ "name":"DOMAIN_SEPARATOR_TYPE_HASH",
558
+ "outputs":[
559
+ {
560
+ "internalType":"bytes32",
561
+ "name":"",
562
+ "type":"bytes32"
563
+ }
564
+ ],
565
+ "stateMutability":"view",
566
+ "type":"function"
567
+ },
568
+ {
569
+ "inputs":[
570
+
571
+ ],
572
+ "name":"ETH_TOKEN_ADDRESS",
573
+ "outputs":[
574
+ {
575
+ "internalType":"address",
576
+ "name":"",
577
+ "type":"address"
578
+ }
579
+ ],
580
+ "stateMutability":"view",
581
+ "type":"function"
582
+ },
583
+ {
584
+ "inputs":[
585
+
586
+ ],
587
+ "name":"REGISTER_AGENTS_TYPE_HASH",
588
+ "outputs":[
589
+ {
590
+ "internalType":"bytes32",
591
+ "name":"",
592
+ "type":"bytes32"
593
+ }
594
+ ],
595
+ "stateMutability":"view",
596
+ "type":"function"
597
+ },
598
+ {
599
+ "inputs":[
600
+
601
+ ],
602
+ "name":"UNBOND_TYPE_HASH",
603
+ "outputs":[
604
+ {
605
+ "internalType":"bytes32",
606
+ "name":"",
607
+ "type":"bytes32"
608
+ }
609
+ ],
610
+ "stateMutability":"view",
611
+ "type":"function"
612
+ },
613
+ {
614
+ "inputs":[
615
+ {
616
+ "internalType":"uint256",
617
+ "name":"serviceId",
618
+ "type":"uint256"
619
+ }
620
+ ],
621
+ "name":"activateRegistration",
622
+ "outputs":[
623
+ {
624
+ "internalType":"bool",
625
+ "name":"success",
626
+ "type":"bool"
627
+ }
628
+ ],
629
+ "stateMutability":"payable",
630
+ "type":"function"
631
+ },
632
+ {
633
+ "inputs":[
634
+
635
+ ],
636
+ "name":"chainId",
637
+ "outputs":[
638
+ {
639
+ "internalType":"uint256",
640
+ "name":"",
641
+ "type":"uint256"
642
+ }
643
+ ],
644
+ "stateMutability":"view",
645
+ "type":"function"
646
+ },
647
+ {
648
+ "inputs":[
649
+ {
650
+ "internalType":"address",
651
+ "name":"newOwner",
652
+ "type":"address"
653
+ }
654
+ ],
655
+ "name":"changeOwner",
656
+ "outputs":[
657
+
658
+ ],
659
+ "stateMutability":"nonpayable",
660
+ "type":"function"
661
+ },
662
+ {
663
+ "inputs":[
664
+ {
665
+ "internalType":"address",
666
+ "name":"serviceOwner",
667
+ "type":"address"
668
+ },
669
+ {
670
+ "internalType":"address",
671
+ "name":"token",
672
+ "type":"address"
673
+ },
674
+ {
675
+ "internalType":"bytes32",
676
+ "name":"configHash",
677
+ "type":"bytes32"
678
+ },
679
+ {
680
+ "internalType":"uint32[]",
681
+ "name":"agentIds",
682
+ "type":"uint32[]"
683
+ },
684
+ {
685
+ "components":[
686
+ {
687
+ "internalType":"uint32",
688
+ "name":"slots",
689
+ "type":"uint32"
690
+ },
691
+ {
692
+ "internalType":"uint96",
693
+ "name":"bond",
694
+ "type":"uint96"
695
+ }
696
+ ],
697
+ "internalType":"struct IService.AgentParams[]",
698
+ "name":"agentParams",
699
+ "type":"tuple[]"
700
+ },
701
+ {
702
+ "internalType":"uint32",
703
+ "name":"threshold",
704
+ "type":"uint32"
705
+ }
706
+ ],
707
+ "name":"create",
708
+ "outputs":[
709
+ {
710
+ "internalType":"uint256",
711
+ "name":"serviceId",
712
+ "type":"uint256"
713
+ }
714
+ ],
715
+ "stateMutability":"nonpayable",
716
+ "type":"function"
717
+ },
718
+ {
719
+ "inputs":[
720
+ {
721
+ "internalType":"uint256",
722
+ "name":"serviceId",
723
+ "type":"uint256"
724
+ },
725
+ {
726
+ "internalType":"address",
727
+ "name":"multisigImplementation",
728
+ "type":"address"
729
+ },
730
+ {
731
+ "internalType":"bytes",
732
+ "name":"data",
733
+ "type":"bytes"
734
+ }
735
+ ],
736
+ "name":"deploy",
737
+ "outputs":[
738
+ {
739
+ "internalType":"address",
740
+ "name":"multisig",
741
+ "type":"address"
742
+ }
743
+ ],
744
+ "stateMutability":"nonpayable",
745
+ "type":"function"
746
+ },
747
+ {
748
+ "inputs":[
749
+
750
+ ],
751
+ "name":"domainSeparator",
752
+ "outputs":[
753
+ {
754
+ "internalType":"bytes32",
755
+ "name":"",
756
+ "type":"bytes32"
757
+ }
758
+ ],
759
+ "stateMutability":"view",
760
+ "type":"function"
761
+ },
762
+ {
763
+ "inputs":[
764
+
765
+ ],
766
+ "name":"getDomainSeparator",
767
+ "outputs":[
768
+ {
769
+ "internalType":"bytes32",
770
+ "name":"",
771
+ "type":"bytes32"
772
+ }
773
+ ],
774
+ "stateMutability":"view",
775
+ "type":"function"
776
+ },
777
+ {
778
+ "inputs":[
779
+ {
780
+ "internalType":"address",
781
+ "name":"operator",
782
+ "type":"address"
783
+ },
784
+ {
785
+ "internalType":"uint256",
786
+ "name":"serviceId",
787
+ "type":"uint256"
788
+ }
789
+ ],
790
+ "name":"getOperatorRegisterAgentsNonce",
791
+ "outputs":[
792
+ {
793
+ "internalType":"uint256",
794
+ "name":"nonce",
795
+ "type":"uint256"
796
+ }
797
+ ],
798
+ "stateMutability":"view",
799
+ "type":"function"
800
+ },
801
+ {
802
+ "inputs":[
803
+ {
804
+ "internalType":"address",
805
+ "name":"operator",
806
+ "type":"address"
807
+ },
808
+ {
809
+ "internalType":"uint256",
810
+ "name":"serviceId",
811
+ "type":"uint256"
812
+ }
813
+ ],
814
+ "name":"getOperatorUnbondNonce",
815
+ "outputs":[
816
+ {
817
+ "internalType":"uint256",
818
+ "name":"nonce",
819
+ "type":"uint256"
820
+ }
821
+ ],
822
+ "stateMutability":"view",
823
+ "type":"function"
824
+ },
825
+ {
826
+ "inputs":[
827
+ {
828
+ "internalType":"address",
829
+ "name":"operator",
830
+ "type":"address"
831
+ },
832
+ {
833
+ "internalType":"address",
834
+ "name":"serviceOwner",
835
+ "type":"address"
836
+ },
837
+ {
838
+ "internalType":"uint256",
839
+ "name":"serviceId",
840
+ "type":"uint256"
841
+ },
842
+ {
843
+ "internalType":"address[]",
844
+ "name":"agentInstances",
845
+ "type":"address[]"
846
+ },
847
+ {
848
+ "internalType":"uint32[]",
849
+ "name":"agentIds",
850
+ "type":"uint32[]"
851
+ },
852
+ {
853
+ "internalType":"uint256",
854
+ "name":"nonce",
855
+ "type":"uint256"
856
+ }
857
+ ],
858
+ "name":"getRegisterAgentsHash",
859
+ "outputs":[
860
+ {
861
+ "internalType":"bytes32",
862
+ "name":"",
863
+ "type":"bytes32"
864
+ }
865
+ ],
866
+ "stateMutability":"view",
867
+ "type":"function"
868
+ },
869
+ {
870
+ "inputs":[
871
+ {
872
+ "internalType":"address",
873
+ "name":"operator",
874
+ "type":"address"
875
+ },
876
+ {
877
+ "internalType":"address",
878
+ "name":"serviceOwner",
879
+ "type":"address"
880
+ },
881
+ {
882
+ "internalType":"uint256",
883
+ "name":"serviceId",
884
+ "type":"uint256"
885
+ },
886
+ {
887
+ "internalType":"uint256",
888
+ "name":"nonce",
889
+ "type":"uint256"
890
+ }
891
+ ],
892
+ "name":"getUnbondHash",
893
+ "outputs":[
894
+ {
895
+ "internalType":"bytes32",
896
+ "name":"",
897
+ "type":"bytes32"
898
+ }
899
+ ],
900
+ "stateMutability":"view",
901
+ "type":"function"
902
+ },
903
+ {
904
+ "inputs":[
905
+ {
906
+ "internalType":"address",
907
+ "name":"operator",
908
+ "type":"address"
909
+ },
910
+ {
911
+ "internalType":"bytes32",
912
+ "name":"hash",
913
+ "type":"bytes32"
914
+ }
915
+ ],
916
+ "name":"isOperatorHashApproved",
917
+ "outputs":[
918
+ {
919
+ "internalType":"bool",
920
+ "name":"",
921
+ "type":"bool"
922
+ }
923
+ ],
924
+ "stateMutability":"view",
925
+ "type":"function"
926
+ },
927
+ {
928
+ "inputs":[
929
+ {
930
+ "internalType":"address",
931
+ "name":"",
932
+ "type":"address"
933
+ },
934
+ {
935
+ "internalType":"bytes32",
936
+ "name":"",
937
+ "type":"bytes32"
938
+ }
939
+ ],
940
+ "name":"mapOperatorApprovedHashes",
941
+ "outputs":[
942
+ {
943
+ "internalType":"bool",
944
+ "name":"",
945
+ "type":"bool"
946
+ }
947
+ ],
948
+ "stateMutability":"view",
949
+ "type":"function"
950
+ },
951
+ {
952
+ "inputs":[
953
+ {
954
+ "internalType":"uint256",
955
+ "name":"",
956
+ "type":"uint256"
957
+ }
958
+ ],
959
+ "name":"mapOperatorRegisterAgentsNonces",
960
+ "outputs":[
961
+ {
962
+ "internalType":"uint256",
963
+ "name":"",
964
+ "type":"uint256"
965
+ }
966
+ ],
967
+ "stateMutability":"view",
968
+ "type":"function"
969
+ },
970
+ {
971
+ "inputs":[
972
+ {
973
+ "internalType":"uint256",
974
+ "name":"",
975
+ "type":"uint256"
976
+ }
977
+ ],
978
+ "name":"mapOperatorUnbondNonces",
979
+ "outputs":[
980
+ {
981
+ "internalType":"uint256",
982
+ "name":"",
983
+ "type":"uint256"
984
+ }
985
+ ],
986
+ "stateMutability":"view",
987
+ "type":"function"
988
+ },
989
+ {
990
+ "inputs":[
991
+
992
+ ],
993
+ "name":"name",
994
+ "outputs":[
995
+ {
996
+ "internalType":"string",
997
+ "name":"",
998
+ "type":"string"
999
+ }
1000
+ ],
1001
+ "stateMutability":"view",
1002
+ "type":"function"
1003
+ },
1004
+ {
1005
+ "inputs":[
1006
+
1007
+ ],
1008
+ "name":"nameHash",
1009
+ "outputs":[
1010
+ {
1011
+ "internalType":"bytes32",
1012
+ "name":"",
1013
+ "type":"bytes32"
1014
+ }
1015
+ ],
1016
+ "stateMutability":"view",
1017
+ "type":"function"
1018
+ },
1019
+ {
1020
+ "inputs":[
1021
+ {
1022
+ "internalType":"bytes32",
1023
+ "name":"hash",
1024
+ "type":"bytes32"
1025
+ }
1026
+ ],
1027
+ "name":"operatorApproveHash",
1028
+ "outputs":[
1029
+
1030
+ ],
1031
+ "stateMutability":"nonpayable",
1032
+ "type":"function"
1033
+ },
1034
+ {
1035
+ "inputs":[
1036
+
1037
+ ],
1038
+ "name":"operatorWhitelist",
1039
+ "outputs":[
1040
+ {
1041
+ "internalType":"address",
1042
+ "name":"",
1043
+ "type":"address"
1044
+ }
1045
+ ],
1046
+ "stateMutability":"view",
1047
+ "type":"function"
1048
+ },
1049
+ {
1050
+ "inputs":[
1051
+
1052
+ ],
1053
+ "name":"owner",
1054
+ "outputs":[
1055
+ {
1056
+ "internalType":"address",
1057
+ "name":"",
1058
+ "type":"address"
1059
+ }
1060
+ ],
1061
+ "stateMutability":"view",
1062
+ "type":"function"
1063
+ },
1064
+ {
1065
+ "inputs":[
1066
+
1067
+ ],
1068
+ "name":"pause",
1069
+ "outputs":[
1070
+
1071
+ ],
1072
+ "stateMutability":"nonpayable",
1073
+ "type":"function"
1074
+ },
1075
+ {
1076
+ "inputs":[
1077
+
1078
+ ],
1079
+ "name":"paused",
1080
+ "outputs":[
1081
+ {
1082
+ "internalType":"bool",
1083
+ "name":"",
1084
+ "type":"bool"
1085
+ }
1086
+ ],
1087
+ "stateMutability":"view",
1088
+ "type":"function"
1089
+ },
1090
+ {
1091
+ "inputs":[
1092
+ {
1093
+ "internalType":"uint256",
1094
+ "name":"serviceId",
1095
+ "type":"uint256"
1096
+ },
1097
+ {
1098
+ "internalType":"address[]",
1099
+ "name":"agentInstances",
1100
+ "type":"address[]"
1101
+ },
1102
+ {
1103
+ "internalType":"uint32[]",
1104
+ "name":"agentIds",
1105
+ "type":"uint32[]"
1106
+ }
1107
+ ],
1108
+ "name":"registerAgents",
1109
+ "outputs":[
1110
+ {
1111
+ "internalType":"bool",
1112
+ "name":"success",
1113
+ "type":"bool"
1114
+ }
1115
+ ],
1116
+ "stateMutability":"payable",
1117
+ "type":"function"
1118
+ },
1119
+ {
1120
+ "inputs":[
1121
+ {
1122
+ "internalType":"address",
1123
+ "name":"operator",
1124
+ "type":"address"
1125
+ },
1126
+ {
1127
+ "internalType":"uint256",
1128
+ "name":"serviceId",
1129
+ "type":"uint256"
1130
+ },
1131
+ {
1132
+ "internalType":"address[]",
1133
+ "name":"agentInstances",
1134
+ "type":"address[]"
1135
+ },
1136
+ {
1137
+ "internalType":"uint32[]",
1138
+ "name":"agentIds",
1139
+ "type":"uint32[]"
1140
+ },
1141
+ {
1142
+ "internalType":"bytes",
1143
+ "name":"signature",
1144
+ "type":"bytes"
1145
+ }
1146
+ ],
1147
+ "name":"registerAgentsWithSignature",
1148
+ "outputs":[
1149
+ {
1150
+ "internalType":"bool",
1151
+ "name":"success",
1152
+ "type":"bool"
1153
+ }
1154
+ ],
1155
+ "stateMutability":"payable",
1156
+ "type":"function"
1157
+ },
1158
+ {
1159
+ "inputs":[
1160
+
1161
+ ],
1162
+ "name":"serviceRegistry",
1163
+ "outputs":[
1164
+ {
1165
+ "internalType":"address",
1166
+ "name":"",
1167
+ "type":"address"
1168
+ }
1169
+ ],
1170
+ "stateMutability":"view",
1171
+ "type":"function"
1172
+ },
1173
+ {
1174
+ "inputs":[
1175
+
1176
+ ],
1177
+ "name":"serviceRegistryTokenUtility",
1178
+ "outputs":[
1179
+ {
1180
+ "internalType":"address",
1181
+ "name":"",
1182
+ "type":"address"
1183
+ }
1184
+ ],
1185
+ "stateMutability":"view",
1186
+ "type":"function"
1187
+ },
1188
+ {
1189
+ "inputs":[
1190
+ {
1191
+ "internalType":"address",
1192
+ "name":"newOperatorWhitelist",
1193
+ "type":"address"
1194
+ }
1195
+ ],
1196
+ "name":"setOperatorWhitelist",
1197
+ "outputs":[
1198
+
1199
+ ],
1200
+ "stateMutability":"nonpayable",
1201
+ "type":"function"
1202
+ },
1203
+ {
1204
+ "inputs":[
1205
+ {
1206
+ "internalType":"uint256",
1207
+ "name":"serviceId",
1208
+ "type":"uint256"
1209
+ }
1210
+ ],
1211
+ "name":"terminate",
1212
+ "outputs":[
1213
+ {
1214
+ "internalType":"bool",
1215
+ "name":"success",
1216
+ "type":"bool"
1217
+ },
1218
+ {
1219
+ "internalType":"uint256",
1220
+ "name":"refund",
1221
+ "type":"uint256"
1222
+ }
1223
+ ],
1224
+ "stateMutability":"nonpayable",
1225
+ "type":"function"
1226
+ },
1227
+ {
1228
+ "inputs":[
1229
+ {
1230
+ "internalType":"uint256",
1231
+ "name":"serviceId",
1232
+ "type":"uint256"
1233
+ }
1234
+ ],
1235
+ "name":"unbond",
1236
+ "outputs":[
1237
+ {
1238
+ "internalType":"bool",
1239
+ "name":"success",
1240
+ "type":"bool"
1241
+ },
1242
+ {
1243
+ "internalType":"uint256",
1244
+ "name":"refund",
1245
+ "type":"uint256"
1246
+ }
1247
+ ],
1248
+ "stateMutability":"nonpayable",
1249
+ "type":"function"
1250
+ },
1251
+ {
1252
+ "inputs":[
1253
+ {
1254
+ "internalType":"address",
1255
+ "name":"operator",
1256
+ "type":"address"
1257
+ },
1258
+ {
1259
+ "internalType":"uint256",
1260
+ "name":"serviceId",
1261
+ "type":"uint256"
1262
+ },
1263
+ {
1264
+ "internalType":"bytes",
1265
+ "name":"signature",
1266
+ "type":"bytes"
1267
+ }
1268
+ ],
1269
+ "name":"unbondWithSignature",
1270
+ "outputs":[
1271
+ {
1272
+ "internalType":"bool",
1273
+ "name":"success",
1274
+ "type":"bool"
1275
+ },
1276
+ {
1277
+ "internalType":"uint256",
1278
+ "name":"refund",
1279
+ "type":"uint256"
1280
+ }
1281
+ ],
1282
+ "stateMutability":"nonpayable",
1283
+ "type":"function"
1284
+ },
1285
+ {
1286
+ "inputs":[
1287
+
1288
+ ],
1289
+ "name":"unpause",
1290
+ "outputs":[
1291
+
1292
+ ],
1293
+ "stateMutability":"nonpayable",
1294
+ "type":"function"
1295
+ },
1296
+ {
1297
+ "inputs":[
1298
+ {
1299
+ "internalType":"address",
1300
+ "name":"token",
1301
+ "type":"address"
1302
+ },
1303
+ {
1304
+ "internalType":"bytes32",
1305
+ "name":"configHash",
1306
+ "type":"bytes32"
1307
+ },
1308
+ {
1309
+ "internalType":"uint32[]",
1310
+ "name":"agentIds",
1311
+ "type":"uint32[]"
1312
+ },
1313
+ {
1314
+ "components":[
1315
+ {
1316
+ "internalType":"uint32",
1317
+ "name":"slots",
1318
+ "type":"uint32"
1319
+ },
1320
+ {
1321
+ "internalType":"uint96",
1322
+ "name":"bond",
1323
+ "type":"uint96"
1324
+ }
1325
+ ],
1326
+ "internalType":"struct IService.AgentParams[]",
1327
+ "name":"agentParams",
1328
+ "type":"tuple[]"
1329
+ },
1330
+ {
1331
+ "internalType":"uint32",
1332
+ "name":"threshold",
1333
+ "type":"uint32"
1334
+ },
1335
+ {
1336
+ "internalType":"uint256",
1337
+ "name":"serviceId",
1338
+ "type":"uint256"
1339
+ }
1340
+ ],
1341
+ "name":"update",
1342
+ "outputs":[
1343
+ {
1344
+ "internalType":"bool",
1345
+ "name":"success",
1346
+ "type":"bool"
1347
+ }
1348
+ ],
1349
+ "stateMutability":"nonpayable",
1350
+ "type":"function"
1351
+ },
1352
+ {
1353
+ "inputs":[
1354
+
1355
+ ],
1356
+ "name":"version",
1357
+ "outputs":[
1358
+ {
1359
+ "internalType":"string",
1360
+ "name":"",
1361
+ "type":"string"
1362
+ }
1363
+ ],
1364
+ "stateMutability":"view",
1365
+ "type":"function"
1366
+ },
1367
+ {
1368
+ "inputs":[
1369
+
1370
+ ],
1371
+ "name":"versionHash",
1372
+ "outputs":[
1373
+ {
1374
+ "internalType":"bytes32",
1375
+ "name":"",
1376
+ "type":"bytes32"
1377
+ }
1378
+ ],
1379
+ "stateMutability":"view",
1380
+ "type":"function"
1381
+ }
1382
+ ]