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