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