@nexusmutual/sdk 1.19.0 → 1.20.0-rc.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 (33) hide show
  1. package/README.md +22 -16
  2. package/dist/data/abis/{Assessment.json → Assessments.json} +370 -416
  3. package/dist/data/abis/{IndividualClaims.json → Claims.json} +325 -264
  4. package/dist/data/abis/Cover.json +447 -110
  5. package/dist/data/abis/CoverBroker.json +79 -34
  6. package/dist/data/abis/CoverProducts.json +55 -0
  7. package/dist/data/abis/Governor.json +803 -0
  8. package/dist/data/abis/LimitOrders.json +0 -7
  9. package/dist/data/abis/NXMaster.json +37 -223
  10. package/dist/data/abis/Pool.json +415 -229
  11. package/dist/data/abis/Ramm.json +97 -67
  12. package/dist/data/abis/{MemberRoles.json → Registry.json} +553 -249
  13. package/dist/data/abis/SafeTracker.json +94 -58
  14. package/dist/data/abis/StakingProducts.json +1 -14
  15. package/dist/data/abis/StakingViewer.json +87 -24
  16. package/dist/data/abis/SwapOperator.json +365 -209
  17. package/dist/data/abis/TokenController.json +77 -303
  18. package/dist/data/abis/VotePower.json +170 -0
  19. package/dist/data/addresses.json +9 -12
  20. package/dist/data/product-types.json +76 -26
  21. package/dist/data/products.json +17 -17
  22. package/dist/index.d.mts +14024 -13632
  23. package/dist/index.d.ts +14024 -13632
  24. package/dist/index.js +9569 -9300
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +9568 -9299
  27. package/dist/index.mjs.map +1 -1
  28. package/package.json +4 -3
  29. package/dist/data/abis/AssessmentViewer.json +0 -106
  30. package/dist/data/abis/MCR.json +0 -321
  31. package/dist/data/abis/NexusViewer.json +0 -199
  32. package/dist/data/abis/PriceFeedOracle.json +0 -312
  33. package/dist/data/abis/ProposalCategory.json +0 -653
@@ -3,260 +3,397 @@
3
3
  "inputs": [
4
4
  {
5
5
  "internalType": "address",
6
- "name": "_cowSettlement",
6
+ "name": "_registryAddress",
7
7
  "type": "address"
8
8
  },
9
9
  {
10
10
  "internalType": "address",
11
- "name": "_swapController",
11
+ "name": "_cowSettlement",
12
12
  "type": "address"
13
13
  },
14
14
  {
15
15
  "internalType": "address",
16
- "name": "_master",
16
+ "name": "_enzymeV4VaultProxyAddress",
17
17
  "type": "address"
18
18
  },
19
19
  {
20
20
  "internalType": "address",
21
21
  "name": "_weth",
22
22
  "type": "address"
23
+ }
24
+ ],
25
+ "stateMutability": "nonpayable",
26
+ "type": "constructor"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "AboveMaxValidTo",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "BelowMinValidTo",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "FeeNotZero",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "expectedFromAmount",
48
+ "type": "uint256"
23
49
  },
24
50
  {
25
- "internalType": "address",
26
- "name": "_enzymeV4VaultProxyAddress",
27
- "type": "address"
51
+ "internalType": "uint256",
52
+ "name": "actualFromAmount",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "FromAmountMismatch",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "uint256",
63
+ "name": "expectedFromAmount",
64
+ "type": "uint256"
28
65
  },
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "actualFromAmount",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "FromAmountTooHigh",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [
29
77
  {
30
78
  "internalType": "address",
31
- "name": "_safe",
79
+ "name": "requestedAsset",
32
80
  "type": "address"
33
81
  },
34
82
  {
35
83
  "internalType": "address",
36
- "name": "_dai",
84
+ "name": "orderAsset",
37
85
  "type": "address"
38
- },
86
+ }
87
+ ],
88
+ "name": "InvalidAsset",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [
39
93
  {
40
94
  "internalType": "address",
41
- "name": "_usdc",
95
+ "name": "expectedAsset",
42
96
  "type": "address"
43
97
  },
44
98
  {
45
- "internalType": "contract IEnzymeFundValueCalculatorRouter",
46
- "name": "_enzymeFundValueCalculatorRouter",
99
+ "internalType": "address",
100
+ "name": "actualAsset",
47
101
  "type": "address"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "_minPoolEth",
52
- "type": "uint256"
53
102
  }
54
103
  ],
55
- "stateMutability": "nonpayable",
56
- "type": "constructor"
104
+ "name": "InvalidDenominationAsset",
105
+ "type": "error"
57
106
  },
58
107
  {
59
108
  "inputs": [
60
109
  {
61
- "internalType": "uint256",
62
- "name": "feeInEth",
63
- "type": "uint256"
64
- },
65
- {
66
- "internalType": "uint256",
67
- "name": "maxFee",
68
- "type": "uint256"
110
+ "internalType": "address",
111
+ "name": "validReceiver",
112
+ "type": "address"
69
113
  }
70
114
  ],
71
- "name": "AboveMaxFee",
115
+ "name": "InvalidReceiver",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "InvalidRecoveryReceiver",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "InvalidSwapKind",
72
126
  "type": "error"
73
127
  },
74
128
  {
75
129
  "inputs": [
76
130
  {
77
- "internalType": "uint256",
78
- "name": "maxValidTo",
79
- "type": "uint256"
131
+ "internalType": "address",
132
+ "name": "asset",
133
+ "type": "address"
80
134
  }
81
135
  ],
82
- "name": "AboveMaxValidTo",
136
+ "name": "InvalidSwapOperationForAsset",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [],
141
+ "name": "NoOrderToClose",
142
+ "type": "error"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "OnlyAdvisoryBoard",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "OnlyController",
152
+ "type": "error"
153
+ },
154
+ {
155
+ "inputs": [],
156
+ "name": "OnlyMember",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "OnlySafe",
83
162
  "type": "error"
84
163
  },
85
164
  {
86
165
  "inputs": [
87
166
  {
88
- "internalType": "uint256",
89
- "name": "amountOut",
90
- "type": "uint256"
91
- },
92
- {
93
- "internalType": "uint256",
94
- "name": "minAmount",
95
- "type": "uint256"
167
+ "internalType": "bytes",
168
+ "name": "currentOrderUID",
169
+ "type": "bytes"
96
170
  }
97
171
  ],
98
- "name": "AmountOutTooLow",
172
+ "name": "OrderInProgress",
99
173
  "type": "error"
100
174
  },
101
175
  {
102
176
  "inputs": [
103
177
  {
104
- "internalType": "uint256",
105
- "name": "minValidTo",
106
- "type": "uint256"
178
+ "internalType": "bytes",
179
+ "name": "providedOrderUID",
180
+ "type": "bytes"
181
+ },
182
+ {
183
+ "internalType": "bytes",
184
+ "name": "expectedOrderUID",
185
+ "type": "bytes"
107
186
  }
108
187
  ],
109
- "name": "BelowMinValidTo",
188
+ "name": "OrderUidMismatch",
110
189
  "type": "error"
111
190
  },
112
191
  {
113
192
  "inputs": [
114
193
  {
115
194
  "internalType": "uint256",
116
- "name": "minValidSwapTime",
195
+ "name": "currentState",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "internalType": "uint256",
200
+ "name": "checks",
117
201
  "type": "uint256"
118
202
  }
119
203
  ],
120
- "name": "InsufficientTimeBetweenSwaps",
204
+ "name": "Paused",
205
+ "type": "error"
206
+ },
207
+ {
208
+ "inputs": [],
209
+ "name": "SafeAssetAmountIsZero",
121
210
  "type": "error"
122
211
  },
123
212
  {
124
213
  "inputs": [
125
214
  {
126
215
  "internalType": "uint256",
127
- "name": "tokenBalance",
216
+ "name": "requestedAmount",
128
217
  "type": "uint256"
129
218
  },
130
219
  {
131
220
  "internalType": "uint256",
132
- "name": "limit",
221
+ "name": "amount",
133
222
  "type": "uint256"
134
223
  }
135
224
  ],
136
- "name": "InvalidBalance",
225
+ "name": "SafeAssetAmountMismatch",
137
226
  "type": "error"
138
227
  },
139
228
  {
140
229
  "inputs": [
141
230
  {
142
231
  "internalType": "address",
143
- "name": "invalidAsset",
232
+ "name": "requestedAsset",
144
233
  "type": "address"
145
234
  },
146
235
  {
147
236
  "internalType": "address",
148
- "name": "validAsset",
237
+ "name": "asset",
149
238
  "type": "address"
150
239
  }
151
240
  ],
152
- "name": "InvalidDenominationAsset",
241
+ "name": "SafeAssetMismatch",
153
242
  "type": "error"
154
243
  },
155
244
  {
156
245
  "inputs": [
157
246
  {
158
- "internalType": "uint256",
159
- "name": "postSwapBalance",
160
- "type": "uint256"
161
- },
162
- {
163
- "internalType": "uint256",
164
- "name": "limit",
165
- "type": "uint256"
247
+ "internalType": "address",
248
+ "name": "asset",
249
+ "type": "address"
166
250
  }
167
251
  ],
168
- "name": "InvalidPostSwapBalance",
252
+ "name": "SafeAssetNotAllowed",
169
253
  "type": "error"
170
254
  },
171
255
  {
172
256
  "inputs": [
173
257
  {
174
258
  "internalType": "address",
175
- "name": "validReceiver",
259
+ "name": "asset",
176
260
  "type": "address"
177
261
  }
178
262
  ],
179
- "name": "InvalidReceiver",
263
+ "name": "SameAssetSwapRequest",
180
264
  "type": "error"
181
265
  },
182
266
  {
183
267
  "inputs": [
184
268
  {
185
- "internalType": "string",
186
- "name": "token",
187
- "type": "string"
269
+ "internalType": "uint256",
270
+ "name": "deadline",
271
+ "type": "uint256"
272
+ },
273
+ {
274
+ "internalType": "uint256",
275
+ "name": "blockTimestamp",
276
+ "type": "uint256"
188
277
  }
189
278
  ],
190
- "name": "InvalidTokenAddress",
279
+ "name": "SwapDeadlineExceeded",
191
280
  "type": "error"
192
281
  },
193
282
  {
194
- "inputs": [],
195
- "name": "NoOrderInPlace",
283
+ "inputs": [
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "expectedMaxFromAmount",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "actualFromAmount",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "name": "SwappedFromAmountTooHigh",
196
296
  "type": "error"
197
297
  },
198
298
  {
199
- "inputs": [],
200
- "name": "OnlyController",
299
+ "inputs": [
300
+ {
301
+ "internalType": "uint256",
302
+ "name": "expectedMinToAmount",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "internalType": "uint256",
307
+ "name": "actualToAmount",
308
+ "type": "uint256"
309
+ }
310
+ ],
311
+ "name": "SwappedToAmountTooLow",
201
312
  "type": "error"
202
313
  },
203
314
  {
204
315
  "inputs": [
205
316
  {
206
- "internalType": "bytes",
207
- "name": "currentOrderUID",
208
- "type": "bytes"
317
+ "internalType": "uint256",
318
+ "name": "expectedToAmount",
319
+ "type": "uint256"
320
+ },
321
+ {
322
+ "internalType": "uint256",
323
+ "name": "actualToAmount",
324
+ "type": "uint256"
209
325
  }
210
326
  ],
211
- "name": "OrderInProgress",
327
+ "name": "ToAmountMismatch",
212
328
  "type": "error"
213
329
  },
214
330
  {
215
331
  "inputs": [
216
332
  {
217
- "internalType": "bytes",
218
- "name": "providedOrderUID",
219
- "type": "bytes"
333
+ "internalType": "uint256",
334
+ "name": "expectedToAmount",
335
+ "type": "uint256"
220
336
  },
221
337
  {
222
- "internalType": "bytes",
223
- "name": "expectedOrderUID",
224
- "type": "bytes"
338
+ "internalType": "uint256",
339
+ "name": "actualToAmount",
340
+ "type": "uint256"
225
341
  }
226
342
  ],
227
- "name": "OrderUidMismatch",
343
+ "name": "ToAmountTooLow",
228
344
  "type": "error"
229
345
  },
230
346
  {
231
347
  "inputs": [
348
+ {
349
+ "internalType": "address",
350
+ "name": "to",
351
+ "type": "address"
352
+ },
353
+ {
354
+ "internalType": "uint256",
355
+ "name": "value",
356
+ "type": "uint256"
357
+ },
232
358
  {
233
359
  "internalType": "address",
234
360
  "name": "token",
235
361
  "type": "address"
236
362
  }
237
363
  ],
238
- "name": "TokenDisabled",
364
+ "name": "TransferFailed",
239
365
  "type": "error"
240
366
  },
241
367
  {
242
368
  "inputs": [
243
369
  {
244
370
  "internalType": "address",
245
- "name": "to",
371
+ "name": "caller",
246
372
  "type": "address"
247
373
  },
248
374
  {
249
375
  "internalType": "uint256",
250
- "name": "value",
376
+ "name": "callerIndex",
251
377
  "type": "uint256"
252
378
  },
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "authorizedBitmap",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "name": "Unauthorized",
386
+ "type": "error"
387
+ },
388
+ {
389
+ "inputs": [
253
390
  {
254
391
  "internalType": "address",
255
- "name": "token",
392
+ "name": "asset",
256
393
  "type": "address"
257
394
  }
258
395
  ],
259
- "name": "TransferFailed",
396
+ "name": "UnsupportedAsset",
260
397
  "type": "error"
261
398
  },
262
399
  {
@@ -270,6 +407,11 @@
270
407
  "name": "UnsupportedTokenBalance",
271
408
  "type": "error"
272
409
  },
410
+ {
411
+ "inputs": [],
412
+ "name": "ZeroBalance",
413
+ "type": "error"
414
+ },
273
415
  {
274
416
  "anonymous": false,
275
417
  "inputs": [
@@ -444,72 +586,89 @@
444
586
  {
445
587
  "indexed": false,
446
588
  "internalType": "uint256",
447
- "name": "amountIn",
589
+ "name": "fromAmount",
448
590
  "type": "uint256"
449
591
  },
450
592
  {
451
593
  "indexed": false,
452
594
  "internalType": "uint256",
453
- "name": "amountOut",
595
+ "name": "toAmount",
454
596
  "type": "uint256"
597
+ },
598
+ {
599
+ "indexed": false,
600
+ "internalType": "enum ISwapOperator.SwapKind",
601
+ "name": "swapKind",
602
+ "type": "uint8"
603
+ },
604
+ {
605
+ "indexed": false,
606
+ "internalType": "uint32",
607
+ "name": "deadline",
608
+ "type": "uint32"
455
609
  }
456
610
  ],
457
- "name": "Swapped",
611
+ "name": "SwapRequestCreated",
458
612
  "type": "event"
459
613
  },
460
614
  {
461
615
  "anonymous": false,
462
616
  "inputs": [
463
617
  {
464
- "indexed": false,
618
+ "indexed": true,
465
619
  "internalType": "address",
466
- "name": "asset",
620
+ "name": "fromAsset",
621
+ "type": "address"
622
+ },
623
+ {
624
+ "indexed": true,
625
+ "internalType": "address",
626
+ "name": "toAsset",
467
627
  "type": "address"
468
628
  },
469
629
  {
470
630
  "indexed": false,
471
631
  "internalType": "uint256",
472
- "name": "amount",
632
+ "name": "fromAmount",
633
+ "type": "uint256"
634
+ },
635
+ {
636
+ "indexed": false,
637
+ "internalType": "uint256",
638
+ "name": "toAmount",
473
639
  "type": "uint256"
474
640
  }
475
641
  ],
476
- "name": "TransferredToSafe",
642
+ "name": "Swapped",
477
643
  "type": "event"
478
644
  },
479
645
  {
480
- "inputs": [],
481
- "name": "ETH",
482
- "outputs": [
646
+ "anonymous": false,
647
+ "inputs": [
483
648
  {
649
+ "indexed": false,
484
650
  "internalType": "address",
485
- "name": "",
651
+ "name": "asset",
486
652
  "type": "address"
487
- }
488
- ],
489
- "stateMutability": "view",
490
- "type": "function"
491
- },
492
- {
493
- "inputs": [],
494
- "name": "MAX_FEE",
495
- "outputs": [
653
+ },
496
654
  {
655
+ "indexed": false,
497
656
  "internalType": "uint256",
498
- "name": "",
657
+ "name": "amount",
499
658
  "type": "uint256"
500
659
  }
501
660
  ],
502
- "stateMutability": "view",
503
- "type": "function"
661
+ "name": "TransferredToSafe",
662
+ "type": "event"
504
663
  },
505
664
  {
506
665
  "inputs": [],
507
- "name": "MAX_SLIPPAGE_DENOMINATOR",
666
+ "name": "ETH",
508
667
  "outputs": [
509
668
  {
510
- "internalType": "uint256",
669
+ "internalType": "address",
511
670
  "name": "",
512
- "type": "uint256"
671
+ "type": "address"
513
672
  }
514
673
  ],
515
674
  "stateMutability": "view",
@@ -528,19 +687,6 @@
528
687
  "stateMutability": "view",
529
688
  "type": "function"
530
689
  },
531
- {
532
- "inputs": [],
533
- "name": "MIN_TIME_BETWEEN_ORDERS",
534
- "outputs": [
535
- {
536
- "internalType": "uint256",
537
- "name": "",
538
- "type": "uint256"
539
- }
540
- ],
541
- "stateMutability": "view",
542
- "type": "function"
543
- },
544
690
  {
545
691
  "inputs": [],
546
692
  "name": "MIN_VALID_TO_PERIOD",
@@ -554,25 +700,6 @@
554
700
  "stateMutability": "view",
555
701
  "type": "function"
556
702
  },
557
- {
558
- "inputs": [
559
- {
560
- "internalType": "address",
561
- "name": "",
562
- "type": "address"
563
- }
564
- ],
565
- "name": "allowedSafeTransferAssets",
566
- "outputs": [
567
- {
568
- "internalType": "bool",
569
- "name": "",
570
- "type": "bool"
571
- }
572
- ],
573
- "stateMutability": "view",
574
- "type": "function"
575
- },
576
703
  {
577
704
  "inputs": [
578
705
  {
@@ -702,10 +829,10 @@
702
829
  },
703
830
  {
704
831
  "inputs": [],
705
- "name": "enzymeFundValueCalculatorRouter",
832
+ "name": "enzymeComptroller",
706
833
  "outputs": [
707
834
  {
708
- "internalType": "contract IEnzymeFundValueCalculatorRouter",
835
+ "internalType": "contract IEnzymeV4Comptroller",
709
836
  "name": "",
710
837
  "type": "address"
711
838
  }
@@ -888,32 +1015,6 @@
888
1015
  "stateMutability": "view",
889
1016
  "type": "function"
890
1017
  },
891
- {
892
- "inputs": [],
893
- "name": "master",
894
- "outputs": [
895
- {
896
- "internalType": "contract INXMMaster",
897
- "name": "",
898
- "type": "address"
899
- }
900
- ],
901
- "stateMutability": "view",
902
- "type": "function"
903
- },
904
- {
905
- "inputs": [],
906
- "name": "minPoolEth",
907
- "outputs": [
908
- {
909
- "internalType": "uint256",
910
- "name": "",
911
- "type": "uint256"
912
- }
913
- ],
914
- "stateMutability": "view",
915
- "type": "function"
916
- },
917
1018
  {
918
1019
  "inputs": [],
919
1020
  "name": "orderInProgress",
@@ -1007,6 +1108,19 @@
1007
1108
  "stateMutability": "nonpayable",
1008
1109
  "type": "function"
1009
1110
  },
1111
+ {
1112
+ "inputs": [],
1113
+ "name": "pool",
1114
+ "outputs": [
1115
+ {
1116
+ "internalType": "contract IPool",
1117
+ "name": "",
1118
+ "type": "address"
1119
+ }
1120
+ ],
1121
+ "stateMutability": "view",
1122
+ "type": "function"
1123
+ },
1010
1124
  {
1011
1125
  "inputs": [
1012
1126
  {
@@ -1026,34 +1140,74 @@
1026
1140
  "type": "function"
1027
1141
  },
1028
1142
  {
1029
- "inputs": [
1143
+ "inputs": [],
1144
+ "name": "registry",
1145
+ "outputs": [
1030
1146
  {
1031
- "internalType": "address",
1032
- "name": "asset",
1147
+ "internalType": "contract IRegistry",
1148
+ "name": "",
1033
1149
  "type": "address"
1034
- },
1150
+ }
1151
+ ],
1152
+ "stateMutability": "view",
1153
+ "type": "function"
1154
+ },
1155
+ {
1156
+ "inputs": [
1035
1157
  {
1036
- "internalType": "uint256",
1037
- "name": "amount",
1038
- "type": "uint256"
1158
+ "components": [
1159
+ {
1160
+ "internalType": "address",
1161
+ "name": "fromAsset",
1162
+ "type": "address"
1163
+ },
1164
+ {
1165
+ "internalType": "address",
1166
+ "name": "toAsset",
1167
+ "type": "address"
1168
+ },
1169
+ {
1170
+ "internalType": "uint256",
1171
+ "name": "fromAmount",
1172
+ "type": "uint256"
1173
+ },
1174
+ {
1175
+ "internalType": "uint256",
1176
+ "name": "toAmount",
1177
+ "type": "uint256"
1178
+ },
1179
+ {
1180
+ "internalType": "enum ISwapOperator.SwapKind",
1181
+ "name": "swapKind",
1182
+ "type": "uint8"
1183
+ },
1184
+ {
1185
+ "internalType": "uint32",
1186
+ "name": "deadline",
1187
+ "type": "uint32"
1188
+ }
1189
+ ],
1190
+ "internalType": "struct ISwapOperator.SwapRequest",
1191
+ "name": "request",
1192
+ "type": "tuple"
1039
1193
  }
1040
1194
  ],
1041
- "name": "requestAsset",
1195
+ "name": "requestAssetSwap",
1042
1196
  "outputs": [],
1043
1197
  "stateMutability": "nonpayable",
1044
1198
  "type": "function"
1045
1199
  },
1046
1200
  {
1047
- "inputs": [],
1048
- "name": "safe",
1049
- "outputs": [
1201
+ "inputs": [
1050
1202
  {
1051
1203
  "internalType": "address",
1052
- "name": "",
1204
+ "name": "_swapController",
1053
1205
  "type": "address"
1054
1206
  }
1055
1207
  ],
1056
- "stateMutability": "view",
1208
+ "name": "setSwapController",
1209
+ "outputs": [],
1210
+ "stateMutability": "nonpayable",
1057
1211
  "type": "function"
1058
1212
  },
1059
1213
  {
@@ -1073,12 +1227,12 @@
1073
1227
  "inputs": [
1074
1228
  {
1075
1229
  "internalType": "uint256",
1076
- "name": "amountIn",
1230
+ "name": "fromAmount",
1077
1231
  "type": "uint256"
1078
1232
  },
1079
1233
  {
1080
1234
  "internalType": "uint256",
1081
- "name": "amountOutMin",
1235
+ "name": "toAmountMin",
1082
1236
  "type": "uint256"
1083
1237
  }
1084
1238
  ],
@@ -1091,12 +1245,12 @@
1091
1245
  "inputs": [
1092
1246
  {
1093
1247
  "internalType": "uint256",
1094
- "name": "amountIn",
1248
+ "name": "fromAmount",
1095
1249
  "type": "uint256"
1096
1250
  },
1097
1251
  {
1098
1252
  "internalType": "uint256",
1099
- "name": "amountOutMin",
1253
+ "name": "toAmountMin",
1100
1254
  "type": "uint256"
1101
1255
  }
1102
1256
  ],
@@ -1107,38 +1261,40 @@
1107
1261
  },
1108
1262
  {
1109
1263
  "inputs": [],
1110
- "name": "transferRequest",
1264
+ "name": "swapRequest",
1111
1265
  "outputs": [
1112
1266
  {
1113
1267
  "internalType": "address",
1114
- "name": "asset",
1268
+ "name": "fromAsset",
1115
1269
  "type": "address"
1116
1270
  },
1117
- {
1118
- "internalType": "uint256",
1119
- "name": "amount",
1120
- "type": "uint256"
1121
- }
1122
- ],
1123
- "stateMutability": "view",
1124
- "type": "function"
1125
- },
1126
- {
1127
- "inputs": [
1128
1271
  {
1129
1272
  "internalType": "address",
1130
- "name": "requestedAsset",
1273
+ "name": "toAsset",
1131
1274
  "type": "address"
1132
1275
  },
1133
1276
  {
1134
1277
  "internalType": "uint256",
1135
- "name": "requestedAmount",
1278
+ "name": "fromAmount",
1136
1279
  "type": "uint256"
1280
+ },
1281
+ {
1282
+ "internalType": "uint256",
1283
+ "name": "toAmount",
1284
+ "type": "uint256"
1285
+ },
1286
+ {
1287
+ "internalType": "enum ISwapOperator.SwapKind",
1288
+ "name": "swapKind",
1289
+ "type": "uint8"
1290
+ },
1291
+ {
1292
+ "internalType": "uint32",
1293
+ "name": "deadline",
1294
+ "type": "uint32"
1137
1295
  }
1138
1296
  ],
1139
- "name": "transferRequestedAsset",
1140
- "outputs": [],
1141
- "stateMutability": "nonpayable",
1297
+ "stateMutability": "view",
1142
1298
  "type": "function"
1143
1299
  },
1144
1300
  {