@reyaxyz/common 0.97.0 → 0.98.0

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