@dolomite-exchange/zap-sdk 0.3.21 → 0.3.23

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 (35) hide show
  1. package/dist/src/lib/Constants.js +220 -170
  2. package/dist/src/lib/Constants.js.map +1 -1
  3. package/package.json +4 -3
  4. package/src/DolomiteZap.ts +940 -0
  5. package/src/abis/IArbitrumGasInfo.json +198 -0
  6. package/src/abis/IDolomiteMarginExchangeWrapper.json +80 -0
  7. package/src/abis/IERC20.json +185 -0
  8. package/src/abis/IGmxV2DataStore.json +101 -0
  9. package/src/abis/IGmxV2Reader.json +3487 -0
  10. package/src/abis/IIsolationModeFactory.json +902 -0
  11. package/src/abis/types/IArbitrumGasInfo.ts +299 -0
  12. package/src/abis/types/IERC20.ts +269 -0
  13. package/src/abis/types/IGmxV2DataStore.ts +170 -0
  14. package/src/abis/types/IGmxV2Reader.ts +825 -0
  15. package/src/clients/AggregatorClient.ts +22 -0
  16. package/src/clients/DolomiteClient.ts +301 -0
  17. package/src/clients/IsolationModeClient.ts +75 -0
  18. package/src/clients/OdosAggregator.ts +107 -0
  19. package/src/clients/OogaBoogaAggregator.ts +76 -0
  20. package/src/clients/ParaswapAggregator.ts +135 -0
  21. package/src/index.ts +29 -0
  22. package/src/lib/ApiTypes.ts +241 -0
  23. package/src/lib/Constants.ts +1441 -0
  24. package/src/lib/Environment.ts +1 -0
  25. package/src/lib/GraphqlPageable.ts +23 -0
  26. package/src/lib/LocalCache.ts +34 -0
  27. package/src/lib/Logger.ts +59 -0
  28. package/src/lib/MathUtils.ts +13 -0
  29. package/src/lib/Utils.ts +52 -0
  30. package/src/lib/estimators/GmxV2GmEstimator.ts +349 -0
  31. package/src/lib/estimators/PendlePtEstimatorV3.ts +321 -0
  32. package/src/lib/estimators/PendleYtEstimatorV3.ts +77 -0
  33. package/src/lib/estimators/SimpleEstimator.ts +16 -0
  34. package/src/lib/estimators/StandardEstimator.ts +137 -0
  35. package/src/lib/graphql-types.ts +19 -0
@@ -0,0 +1,3487 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "ActionAlreadySignalled",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "ActionNotSignalled",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [],
14
+ "name": "AdlNotEnabled",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "int256",
21
+ "name": "pnlToPoolFactor",
22
+ "type": "int256"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "maxPnlFactorForAdl",
27
+ "type": "uint256"
28
+ }
29
+ ],
30
+ "name": "AdlNotRequired",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "bytes[]",
37
+ "name": "values",
38
+ "type": "bytes[]"
39
+ },
40
+ {
41
+ "internalType": "uint256",
42
+ "name": "index",
43
+ "type": "uint256"
44
+ },
45
+ {
46
+ "internalType": "string",
47
+ "name": "label",
48
+ "type": "string"
49
+ }
50
+ ],
51
+ "name": "ArrayOutOfBoundsBytes",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "uint256[]",
58
+ "name": "values",
59
+ "type": "uint256[]"
60
+ },
61
+ {
62
+ "internalType": "uint256",
63
+ "name": "index",
64
+ "type": "uint256"
65
+ },
66
+ {
67
+ "internalType": "string",
68
+ "name": "label",
69
+ "type": "string"
70
+ }
71
+ ],
72
+ "name": "ArrayOutOfBoundsUint256",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [
77
+ {
78
+ "internalType": "uint256",
79
+ "name": "minOracleBlockNumber",
80
+ "type": "uint256"
81
+ },
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "prevMinOracleBlockNumber",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "BlockNumbersNotSorted",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "adjustedClaimableAmount",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "claimedAmount",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "name": "CollateralAlreadyClaimed",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "uint256[]",
111
+ "name": "compactedValues",
112
+ "type": "uint256[]"
113
+ },
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "index",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "slotIndex",
122
+ "type": "uint256"
123
+ },
124
+ {
125
+ "internalType": "string",
126
+ "name": "label",
127
+ "type": "string"
128
+ }
129
+ ],
130
+ "name": "CompactedArrayOutOfBounds",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [
135
+ {
136
+ "internalType": "address",
137
+ "name": "receiver",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "internalType": "uint256",
142
+ "name": "amount",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "name": "CouldNotSendNativeToken",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "bytes32",
153
+ "name": "key",
154
+ "type": "bytes32"
155
+ }
156
+ ],
157
+ "name": "DepositNotFound",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "bytes32",
164
+ "name": "key",
165
+ "type": "bytes32"
166
+ }
167
+ ],
168
+ "name": "DisabledFeature",
169
+ "type": "error"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "address",
175
+ "name": "market",
176
+ "type": "address"
177
+ }
178
+ ],
179
+ "name": "DisabledMarket",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "index",
187
+ "type": "uint256"
188
+ },
189
+ {
190
+ "internalType": "string",
191
+ "name": "label",
192
+ "type": "string"
193
+ }
194
+ ],
195
+ "name": "DuplicatedIndex",
196
+ "type": "error"
197
+ },
198
+ {
199
+ "inputs": [
200
+ {
201
+ "internalType": "address",
202
+ "name": "market",
203
+ "type": "address"
204
+ }
205
+ ],
206
+ "name": "DuplicatedMarketInSwapPath",
207
+ "type": "error"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "EmptyAccount",
212
+ "type": "error"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "internalType": "address",
218
+ "name": "market",
219
+ "type": "address"
220
+ },
221
+ {
222
+ "internalType": "address",
223
+ "name": "token",
224
+ "type": "address"
225
+ }
226
+ ],
227
+ "name": "EmptyAddressInMarketTokenBalanceValidation",
228
+ "type": "error"
229
+ },
230
+ {
231
+ "inputs": [
232
+ {
233
+ "internalType": "uint256",
234
+ "name": "index",
235
+ "type": "uint256"
236
+ }
237
+ ],
238
+ "name": "EmptyCompactedBlockNumber",
239
+ "type": "error"
240
+ },
241
+ {
242
+ "inputs": [
243
+ {
244
+ "internalType": "uint256",
245
+ "name": "index",
246
+ "type": "uint256"
247
+ }
248
+ ],
249
+ "name": "EmptyCompactedPrice",
250
+ "type": "error"
251
+ },
252
+ {
253
+ "inputs": [
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "index",
257
+ "type": "uint256"
258
+ }
259
+ ],
260
+ "name": "EmptyCompactedTimestamp",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "EmptyDeposit",
266
+ "type": "error"
267
+ },
268
+ {
269
+ "inputs": [],
270
+ "name": "EmptyDepositAmounts",
271
+ "type": "error"
272
+ },
273
+ {
274
+ "inputs": [],
275
+ "name": "EmptyDepositAmountsAfterSwap",
276
+ "type": "error"
277
+ },
278
+ {
279
+ "inputs": [],
280
+ "name": "EmptyHoldingAddress",
281
+ "type": "error"
282
+ },
283
+ {
284
+ "inputs": [],
285
+ "name": "EmptyMarket",
286
+ "type": "error"
287
+ },
288
+ {
289
+ "inputs": [],
290
+ "name": "EmptyMarketTokenSupply",
291
+ "type": "error"
292
+ },
293
+ {
294
+ "inputs": [],
295
+ "name": "EmptyOrder",
296
+ "type": "error"
297
+ },
298
+ {
299
+ "inputs": [],
300
+ "name": "EmptyPosition",
301
+ "type": "error"
302
+ },
303
+ {
304
+ "inputs": [
305
+ {
306
+ "internalType": "address",
307
+ "name": "token",
308
+ "type": "address"
309
+ }
310
+ ],
311
+ "name": "EmptyPriceFeed",
312
+ "type": "error"
313
+ },
314
+ {
315
+ "inputs": [
316
+ {
317
+ "internalType": "address",
318
+ "name": "token",
319
+ "type": "address"
320
+ }
321
+ ],
322
+ "name": "EmptyPriceFeedMultiplier",
323
+ "type": "error"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "address",
329
+ "name": "token",
330
+ "type": "address"
331
+ }
332
+ ],
333
+ "name": "EmptyPrimaryPrice",
334
+ "type": "error"
335
+ },
336
+ {
337
+ "inputs": [
338
+ {
339
+ "internalType": "address",
340
+ "name": "token",
341
+ "type": "address"
342
+ }
343
+ ],
344
+ "name": "EmptyRealtimeFeedId",
345
+ "type": "error"
346
+ },
347
+ {
348
+ "inputs": [
349
+ {
350
+ "internalType": "address",
351
+ "name": "token",
352
+ "type": "address"
353
+ }
354
+ ],
355
+ "name": "EmptyRealtimeFeedMultiplier",
356
+ "type": "error"
357
+ },
358
+ {
359
+ "inputs": [],
360
+ "name": "EmptyReceiver",
361
+ "type": "error"
362
+ },
363
+ {
364
+ "inputs": [
365
+ {
366
+ "internalType": "uint256",
367
+ "name": "signerIndex",
368
+ "type": "uint256"
369
+ }
370
+ ],
371
+ "name": "EmptySigner",
372
+ "type": "error"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "EmptySizeDeltaInTokens",
377
+ "type": "error"
378
+ },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "address",
383
+ "name": "token",
384
+ "type": "address"
385
+ }
386
+ ],
387
+ "name": "EmptyTokenTranferGasLimit",
388
+ "type": "error"
389
+ },
390
+ {
391
+ "inputs": [],
392
+ "name": "EmptyWithdrawal",
393
+ "type": "error"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "EmptyWithdrawalAmount",
398
+ "type": "error"
399
+ },
400
+ {
401
+ "inputs": [],
402
+ "name": "EndOfOracleSimulation",
403
+ "type": "error"
404
+ },
405
+ {
406
+ "inputs": [
407
+ {
408
+ "internalType": "address",
409
+ "name": "token",
410
+ "type": "address"
411
+ },
412
+ {
413
+ "internalType": "bytes32",
414
+ "name": "feedId",
415
+ "type": "bytes32"
416
+ }
417
+ ],
418
+ "name": "HasRealtimeFeedId",
419
+ "type": "error"
420
+ },
421
+ {
422
+ "inputs": [
423
+ {
424
+ "internalType": "uint256",
425
+ "name": "collateralAmount",
426
+ "type": "uint256"
427
+ },
428
+ {
429
+ "internalType": "int256",
430
+ "name": "collateralDeltaAmount",
431
+ "type": "int256"
432
+ }
433
+ ],
434
+ "name": "InsufficientCollateralAmount",
435
+ "type": "error"
436
+ },
437
+ {
438
+ "inputs": [
439
+ {
440
+ "internalType": "int256",
441
+ "name": "remainingCollateralUsd",
442
+ "type": "int256"
443
+ }
444
+ ],
445
+ "name": "InsufficientCollateralUsd",
446
+ "type": "error"
447
+ },
448
+ {
449
+ "inputs": [
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "minExecutionFee",
453
+ "type": "uint256"
454
+ },
455
+ {
456
+ "internalType": "uint256",
457
+ "name": "executionFee",
458
+ "type": "uint256"
459
+ }
460
+ ],
461
+ "name": "InsufficientExecutionFee",
462
+ "type": "error"
463
+ },
464
+ {
465
+ "inputs": [
466
+ {
467
+ "internalType": "uint256",
468
+ "name": "startingGas",
469
+ "type": "uint256"
470
+ },
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "estimatedGasLimit",
474
+ "type": "uint256"
475
+ },
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "minAdditionalGasForExecution",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "name": "InsufficientExecutionGas",
483
+ "type": "error"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "uint256",
489
+ "name": "startingGas",
490
+ "type": "uint256"
491
+ },
492
+ {
493
+ "internalType": "uint256",
494
+ "name": "minHandleErrorGas",
495
+ "type": "uint256"
496
+ }
497
+ ],
498
+ "name": "InsufficientExecutionGasForErrorHandling",
499
+ "type": "error"
500
+ },
501
+ {
502
+ "inputs": [
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "remainingCostUsd",
506
+ "type": "uint256"
507
+ },
508
+ {
509
+ "internalType": "string",
510
+ "name": "step",
511
+ "type": "string"
512
+ }
513
+ ],
514
+ "name": "InsufficientFundsToPayForCosts",
515
+ "type": "error"
516
+ },
517
+ {
518
+ "inputs": [
519
+ {
520
+ "internalType": "uint256",
521
+ "name": "gas",
522
+ "type": "uint256"
523
+ },
524
+ {
525
+ "internalType": "uint256",
526
+ "name": "minHandleExecutionErrorGas",
527
+ "type": "uint256"
528
+ }
529
+ ],
530
+ "name": "InsufficientHandleExecutionErrorGas",
531
+ "type": "error"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "balance",
538
+ "type": "uint256"
539
+ },
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "expected",
543
+ "type": "uint256"
544
+ }
545
+ ],
546
+ "name": "InsufficientMarketTokens",
547
+ "type": "error"
548
+ },
549
+ {
550
+ "inputs": [
551
+ {
552
+ "internalType": "uint256",
553
+ "name": "outputAmount",
554
+ "type": "uint256"
555
+ },
556
+ {
557
+ "internalType": "uint256",
558
+ "name": "minOutputAmount",
559
+ "type": "uint256"
560
+ }
561
+ ],
562
+ "name": "InsufficientOutputAmount",
563
+ "type": "error"
564
+ },
565
+ {
566
+ "inputs": [
567
+ {
568
+ "internalType": "uint256",
569
+ "name": "poolAmount",
570
+ "type": "uint256"
571
+ },
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "amount",
575
+ "type": "uint256"
576
+ }
577
+ ],
578
+ "name": "InsufficientPoolAmount",
579
+ "type": "error"
580
+ },
581
+ {
582
+ "inputs": [
583
+ {
584
+ "internalType": "uint256",
585
+ "name": "reservedUsd",
586
+ "type": "uint256"
587
+ },
588
+ {
589
+ "internalType": "uint256",
590
+ "name": "maxReservedUsd",
591
+ "type": "uint256"
592
+ }
593
+ ],
594
+ "name": "InsufficientReserve",
595
+ "type": "error"
596
+ },
597
+ {
598
+ "inputs": [
599
+ {
600
+ "internalType": "uint256",
601
+ "name": "reservedUsd",
602
+ "type": "uint256"
603
+ },
604
+ {
605
+ "internalType": "uint256",
606
+ "name": "maxReservedUsd",
607
+ "type": "uint256"
608
+ }
609
+ ],
610
+ "name": "InsufficientReserveForOpenInterest",
611
+ "type": "error"
612
+ },
613
+ {
614
+ "inputs": [
615
+ {
616
+ "internalType": "uint256",
617
+ "name": "outputAmount",
618
+ "type": "uint256"
619
+ },
620
+ {
621
+ "internalType": "uint256",
622
+ "name": "minOutputAmount",
623
+ "type": "uint256"
624
+ }
625
+ ],
626
+ "name": "InsufficientSwapOutputAmount",
627
+ "type": "error"
628
+ },
629
+ {
630
+ "inputs": [
631
+ {
632
+ "internalType": "uint256",
633
+ "name": "wntAmount",
634
+ "type": "uint256"
635
+ },
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "executionFee",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "name": "InsufficientWntAmount",
643
+ "type": "error"
644
+ },
645
+ {
646
+ "inputs": [
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "wntAmount",
650
+ "type": "uint256"
651
+ },
652
+ {
653
+ "internalType": "uint256",
654
+ "name": "executionFee",
655
+ "type": "uint256"
656
+ }
657
+ ],
658
+ "name": "InsufficientWntAmountForExecutionFee",
659
+ "type": "error"
660
+ },
661
+ {
662
+ "inputs": [
663
+ {
664
+ "internalType": "int256",
665
+ "name": "nextPnlToPoolFactor",
666
+ "type": "int256"
667
+ },
668
+ {
669
+ "internalType": "int256",
670
+ "name": "pnlToPoolFactor",
671
+ "type": "int256"
672
+ }
673
+ ],
674
+ "name": "InvalidAdl",
675
+ "type": "error"
676
+ },
677
+ {
678
+ "inputs": [
679
+ {
680
+ "internalType": "bytes32",
681
+ "name": "baseKey",
682
+ "type": "bytes32"
683
+ }
684
+ ],
685
+ "name": "InvalidBaseKey",
686
+ "type": "error"
687
+ },
688
+ {
689
+ "inputs": [
690
+ {
691
+ "internalType": "uint256",
692
+ "name": "minOracleBlockNumber",
693
+ "type": "uint256"
694
+ },
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "currentBlockNumber",
698
+ "type": "uint256"
699
+ }
700
+ ],
701
+ "name": "InvalidBlockNumber",
702
+ "type": "error"
703
+ },
704
+ {
705
+ "inputs": [
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "largestMinBlockNumber",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "internalType": "uint256",
713
+ "name": "smallestMaxBlockNumber",
714
+ "type": "uint256"
715
+ }
716
+ ],
717
+ "name": "InvalidBlockRangeSet",
718
+ "type": "error"
719
+ },
720
+ {
721
+ "inputs": [
722
+ {
723
+ "internalType": "uint256",
724
+ "name": "marketsLength",
725
+ "type": "uint256"
726
+ },
727
+ {
728
+ "internalType": "uint256",
729
+ "name": "tokensLength",
730
+ "type": "uint256"
731
+ }
732
+ ],
733
+ "name": "InvalidClaimAffiliateRewardsInput",
734
+ "type": "error"
735
+ },
736
+ {
737
+ "inputs": [
738
+ {
739
+ "internalType": "uint256",
740
+ "name": "marketsLength",
741
+ "type": "uint256"
742
+ },
743
+ {
744
+ "internalType": "uint256",
745
+ "name": "tokensLength",
746
+ "type": "uint256"
747
+ },
748
+ {
749
+ "internalType": "uint256",
750
+ "name": "timeKeysLength",
751
+ "type": "uint256"
752
+ }
753
+ ],
754
+ "name": "InvalidClaimCollateralInput",
755
+ "type": "error"
756
+ },
757
+ {
758
+ "inputs": [
759
+ {
760
+ "internalType": "uint256",
761
+ "name": "marketsLength",
762
+ "type": "uint256"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "tokensLength",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "name": "InvalidClaimFeesInput",
771
+ "type": "error"
772
+ },
773
+ {
774
+ "inputs": [
775
+ {
776
+ "internalType": "uint256",
777
+ "name": "marketsLength",
778
+ "type": "uint256"
779
+ },
780
+ {
781
+ "internalType": "uint256",
782
+ "name": "tokensLength",
783
+ "type": "uint256"
784
+ }
785
+ ],
786
+ "name": "InvalidClaimFundingFeesInput",
787
+ "type": "error"
788
+ },
789
+ {
790
+ "inputs": [
791
+ {
792
+ "internalType": "uint256",
793
+ "name": "marketsLength",
794
+ "type": "uint256"
795
+ },
796
+ {
797
+ "internalType": "uint256",
798
+ "name": "tokensLength",
799
+ "type": "uint256"
800
+ }
801
+ ],
802
+ "name": "InvalidClaimUiFeesInput",
803
+ "type": "error"
804
+ },
805
+ {
806
+ "inputs": [
807
+ {
808
+ "internalType": "address",
809
+ "name": "market",
810
+ "type": "address"
811
+ },
812
+ {
813
+ "internalType": "address",
814
+ "name": "token",
815
+ "type": "address"
816
+ }
817
+ ],
818
+ "name": "InvalidCollateralTokenForMarket",
819
+ "type": "error"
820
+ },
821
+ {
822
+ "inputs": [
823
+ {
824
+ "internalType": "uint256",
825
+ "name": "sizeDeltaUsd",
826
+ "type": "uint256"
827
+ },
828
+ {
829
+ "internalType": "uint256",
830
+ "name": "positionSizeInUsd",
831
+ "type": "uint256"
832
+ }
833
+ ],
834
+ "name": "InvalidDecreaseOrderSize",
835
+ "type": "error"
836
+ },
837
+ {
838
+ "inputs": [
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "decreasePositionSwapType",
842
+ "type": "uint256"
843
+ }
844
+ ],
845
+ "name": "InvalidDecreasePositionSwapType",
846
+ "type": "error"
847
+ },
848
+ {
849
+ "inputs": [
850
+ {
851
+ "internalType": "bytes32",
852
+ "name": "baseKey",
853
+ "type": "bytes32"
854
+ },
855
+ {
856
+ "internalType": "uint256",
857
+ "name": "value",
858
+ "type": "uint256"
859
+ }
860
+ ],
861
+ "name": "InvalidFeeFactor",
862
+ "type": "error"
863
+ },
864
+ {
865
+ "inputs": [
866
+ {
867
+ "internalType": "address",
868
+ "name": "receiver",
869
+ "type": "address"
870
+ }
871
+ ],
872
+ "name": "InvalidFeeReceiver",
873
+ "type": "error"
874
+ },
875
+ {
876
+ "inputs": [
877
+ {
878
+ "internalType": "address",
879
+ "name": "token",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "internalType": "int256",
884
+ "name": "price",
885
+ "type": "int256"
886
+ }
887
+ ],
888
+ "name": "InvalidFeedPrice",
889
+ "type": "error"
890
+ },
891
+ {
892
+ "inputs": [
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "totalGlpAmountToRedeem",
896
+ "type": "uint256"
897
+ },
898
+ {
899
+ "internalType": "uint256",
900
+ "name": "totalGlpAmount",
901
+ "type": "uint256"
902
+ }
903
+ ],
904
+ "name": "InvalidGlpAmount",
905
+ "type": "error"
906
+ },
907
+ {
908
+ "inputs": [
909
+ {
910
+ "internalType": "address",
911
+ "name": "keeper",
912
+ "type": "address"
913
+ }
914
+ ],
915
+ "name": "InvalidKeeperForFrozenOrder",
916
+ "type": "error"
917
+ },
918
+ {
919
+ "inputs": [
920
+ {
921
+ "internalType": "address",
922
+ "name": "market",
923
+ "type": "address"
924
+ },
925
+ {
926
+ "internalType": "address",
927
+ "name": "migrationLongToken",
928
+ "type": "address"
929
+ },
930
+ {
931
+ "internalType": "address",
932
+ "name": "marketLongToken",
933
+ "type": "address"
934
+ }
935
+ ],
936
+ "name": "InvalidLongTokenForMigration",
937
+ "type": "error"
938
+ },
939
+ {
940
+ "inputs": [
941
+ {
942
+ "internalType": "address",
943
+ "name": "market",
944
+ "type": "address"
945
+ },
946
+ {
947
+ "internalType": "address",
948
+ "name": "token",
949
+ "type": "address"
950
+ },
951
+ {
952
+ "internalType": "uint256",
953
+ "name": "balance",
954
+ "type": "uint256"
955
+ },
956
+ {
957
+ "internalType": "uint256",
958
+ "name": "expectedMinBalance",
959
+ "type": "uint256"
960
+ }
961
+ ],
962
+ "name": "InvalidMarketTokenBalance",
963
+ "type": "error"
964
+ },
965
+ {
966
+ "inputs": [
967
+ {
968
+ "internalType": "address",
969
+ "name": "market",
970
+ "type": "address"
971
+ },
972
+ {
973
+ "internalType": "address",
974
+ "name": "token",
975
+ "type": "address"
976
+ },
977
+ {
978
+ "internalType": "uint256",
979
+ "name": "balance",
980
+ "type": "uint256"
981
+ },
982
+ {
983
+ "internalType": "uint256",
984
+ "name": "claimableFundingFeeAmount",
985
+ "type": "uint256"
986
+ }
987
+ ],
988
+ "name": "InvalidMarketTokenBalanceForClaimableFunding",
989
+ "type": "error"
990
+ },
991
+ {
992
+ "inputs": [
993
+ {
994
+ "internalType": "address",
995
+ "name": "market",
996
+ "type": "address"
997
+ },
998
+ {
999
+ "internalType": "address",
1000
+ "name": "token",
1001
+ "type": "address"
1002
+ },
1003
+ {
1004
+ "internalType": "uint256",
1005
+ "name": "balance",
1006
+ "type": "uint256"
1007
+ },
1008
+ {
1009
+ "internalType": "uint256",
1010
+ "name": "collateralAmount",
1011
+ "type": "uint256"
1012
+ }
1013
+ ],
1014
+ "name": "InvalidMarketTokenBalanceForCollateralAmount",
1015
+ "type": "error"
1016
+ },
1017
+ {
1018
+ "inputs": [
1019
+ {
1020
+ "internalType": "uint256",
1021
+ "name": "minPrice",
1022
+ "type": "uint256"
1023
+ },
1024
+ {
1025
+ "internalType": "uint256",
1026
+ "name": "maxPrice",
1027
+ "type": "uint256"
1028
+ }
1029
+ ],
1030
+ "name": "InvalidMedianMinMaxPrice",
1031
+ "type": "error"
1032
+ },
1033
+ {
1034
+ "inputs": [
1035
+ {
1036
+ "internalType": "uint256",
1037
+ "name": "minMarketTokens",
1038
+ "type": "uint256"
1039
+ },
1040
+ {
1041
+ "internalType": "uint256",
1042
+ "name": "expectedMinMarketTokens",
1043
+ "type": "uint256"
1044
+ }
1045
+ ],
1046
+ "name": "InvalidMinMarketTokensForFirstDeposit",
1047
+ "type": "error"
1048
+ },
1049
+ {
1050
+ "inputs": [
1051
+ {
1052
+ "internalType": "uint256",
1053
+ "name": "minOracleBlockNumber",
1054
+ "type": "uint256"
1055
+ },
1056
+ {
1057
+ "internalType": "uint256",
1058
+ "name": "maxOracleBlockNumber",
1059
+ "type": "uint256"
1060
+ }
1061
+ ],
1062
+ "name": "InvalidMinMaxBlockNumber",
1063
+ "type": "error"
1064
+ },
1065
+ {
1066
+ "inputs": [
1067
+ {
1068
+ "internalType": "address",
1069
+ "name": "token",
1070
+ "type": "address"
1071
+ },
1072
+ {
1073
+ "internalType": "uint256",
1074
+ "name": "min",
1075
+ "type": "uint256"
1076
+ },
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "max",
1080
+ "type": "uint256"
1081
+ }
1082
+ ],
1083
+ "name": "InvalidMinMaxForPrice",
1084
+ "type": "error"
1085
+ },
1086
+ {
1087
+ "inputs": [
1088
+ {
1089
+ "internalType": "address",
1090
+ "name": "msgSender",
1091
+ "type": "address"
1092
+ }
1093
+ ],
1094
+ "name": "InvalidNativeTokenSender",
1095
+ "type": "error"
1096
+ },
1097
+ {
1098
+ "inputs": [
1099
+ {
1100
+ "internalType": "address",
1101
+ "name": "token",
1102
+ "type": "address"
1103
+ }
1104
+ ],
1105
+ "name": "InvalidOraclePrice",
1106
+ "type": "error"
1107
+ },
1108
+ {
1109
+ "inputs": [
1110
+ {
1111
+ "internalType": "address",
1112
+ "name": "receiver",
1113
+ "type": "address"
1114
+ }
1115
+ ],
1116
+ "name": "InvalidOracleSigner",
1117
+ "type": "error"
1118
+ },
1119
+ {
1120
+ "inputs": [
1121
+ {
1122
+ "internalType": "uint256",
1123
+ "name": "primaryPriceMin",
1124
+ "type": "uint256"
1125
+ },
1126
+ {
1127
+ "internalType": "uint256",
1128
+ "name": "primaryPriceMax",
1129
+ "type": "uint256"
1130
+ },
1131
+ {
1132
+ "internalType": "uint256",
1133
+ "name": "triggerPrice",
1134
+ "type": "uint256"
1135
+ },
1136
+ {
1137
+ "internalType": "uint256",
1138
+ "name": "orderType",
1139
+ "type": "uint256"
1140
+ }
1141
+ ],
1142
+ "name": "InvalidOrderPrices",
1143
+ "type": "error"
1144
+ },
1145
+ {
1146
+ "inputs": [
1147
+ {
1148
+ "internalType": "address",
1149
+ "name": "tokenOut",
1150
+ "type": "address"
1151
+ },
1152
+ {
1153
+ "internalType": "address",
1154
+ "name": "expectedTokenOut",
1155
+ "type": "address"
1156
+ }
1157
+ ],
1158
+ "name": "InvalidOutputToken",
1159
+ "type": "error"
1160
+ },
1161
+ {
1162
+ "inputs": [
1163
+ {
1164
+ "internalType": "int256",
1165
+ "name": "poolValue",
1166
+ "type": "int256"
1167
+ }
1168
+ ],
1169
+ "name": "InvalidPoolValueForDeposit",
1170
+ "type": "error"
1171
+ },
1172
+ {
1173
+ "inputs": [
1174
+ {
1175
+ "internalType": "int256",
1176
+ "name": "poolValue",
1177
+ "type": "int256"
1178
+ }
1179
+ ],
1180
+ "name": "InvalidPoolValueForWithdrawal",
1181
+ "type": "error"
1182
+ },
1183
+ {
1184
+ "inputs": [
1185
+ {
1186
+ "internalType": "address",
1187
+ "name": "market",
1188
+ "type": "address"
1189
+ }
1190
+ ],
1191
+ "name": "InvalidPositionMarket",
1192
+ "type": "error"
1193
+ },
1194
+ {
1195
+ "inputs": [
1196
+ {
1197
+ "internalType": "uint256",
1198
+ "name": "sizeInUsd",
1199
+ "type": "uint256"
1200
+ },
1201
+ {
1202
+ "internalType": "uint256",
1203
+ "name": "sizeInTokens",
1204
+ "type": "uint256"
1205
+ }
1206
+ ],
1207
+ "name": "InvalidPositionSizeValues",
1208
+ "type": "error"
1209
+ },
1210
+ {
1211
+ "inputs": [
1212
+ {
1213
+ "internalType": "uint256",
1214
+ "name": "primaryTokensLength",
1215
+ "type": "uint256"
1216
+ },
1217
+ {
1218
+ "internalType": "uint256",
1219
+ "name": "primaryPricesLength",
1220
+ "type": "uint256"
1221
+ }
1222
+ ],
1223
+ "name": "InvalidPrimaryPricesForSimulation",
1224
+ "type": "error"
1225
+ },
1226
+ {
1227
+ "inputs": [
1228
+ {
1229
+ "internalType": "address",
1230
+ "name": "token",
1231
+ "type": "address"
1232
+ },
1233
+ {
1234
+ "internalType": "int192",
1235
+ "name": "bid",
1236
+ "type": "int192"
1237
+ },
1238
+ {
1239
+ "internalType": "int192",
1240
+ "name": "ask",
1241
+ "type": "int192"
1242
+ }
1243
+ ],
1244
+ "name": "InvalidRealtimeBidAsk",
1245
+ "type": "error"
1246
+ },
1247
+ {
1248
+ "inputs": [
1249
+ {
1250
+ "internalType": "address",
1251
+ "name": "token",
1252
+ "type": "address"
1253
+ },
1254
+ {
1255
+ "internalType": "bytes32",
1256
+ "name": "blockHash",
1257
+ "type": "bytes32"
1258
+ },
1259
+ {
1260
+ "internalType": "bytes32",
1261
+ "name": "expectedBlockHash",
1262
+ "type": "bytes32"
1263
+ }
1264
+ ],
1265
+ "name": "InvalidRealtimeBlockHash",
1266
+ "type": "error"
1267
+ },
1268
+ {
1269
+ "inputs": [
1270
+ {
1271
+ "internalType": "address",
1272
+ "name": "token",
1273
+ "type": "address"
1274
+ },
1275
+ {
1276
+ "internalType": "bytes32",
1277
+ "name": "feedId",
1278
+ "type": "bytes32"
1279
+ },
1280
+ {
1281
+ "internalType": "bytes32",
1282
+ "name": "expectedFeedId",
1283
+ "type": "bytes32"
1284
+ }
1285
+ ],
1286
+ "name": "InvalidRealtimeFeedId",
1287
+ "type": "error"
1288
+ },
1289
+ {
1290
+ "inputs": [
1291
+ {
1292
+ "internalType": "uint256",
1293
+ "name": "tokensLength",
1294
+ "type": "uint256"
1295
+ },
1296
+ {
1297
+ "internalType": "uint256",
1298
+ "name": "dataLength",
1299
+ "type": "uint256"
1300
+ }
1301
+ ],
1302
+ "name": "InvalidRealtimeFeedLengths",
1303
+ "type": "error"
1304
+ },
1305
+ {
1306
+ "inputs": [
1307
+ {
1308
+ "internalType": "address",
1309
+ "name": "token",
1310
+ "type": "address"
1311
+ },
1312
+ {
1313
+ "internalType": "int192",
1314
+ "name": "bid",
1315
+ "type": "int192"
1316
+ },
1317
+ {
1318
+ "internalType": "int192",
1319
+ "name": "ask",
1320
+ "type": "int192"
1321
+ }
1322
+ ],
1323
+ "name": "InvalidRealtimePrices",
1324
+ "type": "error"
1325
+ },
1326
+ {
1327
+ "inputs": [
1328
+ {
1329
+ "internalType": "address",
1330
+ "name": "receiver",
1331
+ "type": "address"
1332
+ },
1333
+ {
1334
+ "internalType": "address",
1335
+ "name": "expectedReceiver",
1336
+ "type": "address"
1337
+ }
1338
+ ],
1339
+ "name": "InvalidReceiverForFirstDeposit",
1340
+ "type": "error"
1341
+ },
1342
+ {
1343
+ "inputs": [
1344
+ {
1345
+ "internalType": "address",
1346
+ "name": "receiver",
1347
+ "type": "address"
1348
+ },
1349
+ {
1350
+ "internalType": "address",
1351
+ "name": "expectedReceiver",
1352
+ "type": "address"
1353
+ }
1354
+ ],
1355
+ "name": "InvalidReceiverForSubaccountOrder",
1356
+ "type": "error"
1357
+ },
1358
+ {
1359
+ "inputs": [
1360
+ {
1361
+ "internalType": "address",
1362
+ "name": "market",
1363
+ "type": "address"
1364
+ },
1365
+ {
1366
+ "internalType": "address",
1367
+ "name": "migrationShortToken",
1368
+ "type": "address"
1369
+ },
1370
+ {
1371
+ "internalType": "address",
1372
+ "name": "marketShortToken",
1373
+ "type": "address"
1374
+ }
1375
+ ],
1376
+ "name": "InvalidShortTokenForMigration",
1377
+ "type": "error"
1378
+ },
1379
+ {
1380
+ "inputs": [
1381
+ {
1382
+ "internalType": "address",
1383
+ "name": "recoveredSigner",
1384
+ "type": "address"
1385
+ },
1386
+ {
1387
+ "internalType": "address",
1388
+ "name": "expectedSigner",
1389
+ "type": "address"
1390
+ }
1391
+ ],
1392
+ "name": "InvalidSignature",
1393
+ "type": "error"
1394
+ },
1395
+ {
1396
+ "inputs": [
1397
+ {
1398
+ "internalType": "uint256",
1399
+ "name": "minPrice",
1400
+ "type": "uint256"
1401
+ },
1402
+ {
1403
+ "internalType": "uint256",
1404
+ "name": "maxPrice",
1405
+ "type": "uint256"
1406
+ }
1407
+ ],
1408
+ "name": "InvalidSignerMinMaxPrice",
1409
+ "type": "error"
1410
+ },
1411
+ {
1412
+ "inputs": [
1413
+ {
1414
+ "internalType": "uint256",
1415
+ "name": "sizeDeltaUsd",
1416
+ "type": "uint256"
1417
+ },
1418
+ {
1419
+ "internalType": "uint256",
1420
+ "name": "positionSizeInUsd",
1421
+ "type": "uint256"
1422
+ }
1423
+ ],
1424
+ "name": "InvalidSizeDeltaForAdl",
1425
+ "type": "error"
1426
+ },
1427
+ {
1428
+ "inputs": [
1429
+ {
1430
+ "internalType": "address",
1431
+ "name": "market",
1432
+ "type": "address"
1433
+ }
1434
+ ],
1435
+ "name": "InvalidSwapMarket",
1436
+ "type": "error"
1437
+ },
1438
+ {
1439
+ "inputs": [
1440
+ {
1441
+ "internalType": "address",
1442
+ "name": "outputToken",
1443
+ "type": "address"
1444
+ },
1445
+ {
1446
+ "internalType": "address",
1447
+ "name": "expectedOutputToken",
1448
+ "type": "address"
1449
+ }
1450
+ ],
1451
+ "name": "InvalidSwapOutputToken",
1452
+ "type": "error"
1453
+ },
1454
+ {
1455
+ "inputs": [
1456
+ {
1457
+ "internalType": "uint256",
1458
+ "name": "timelockDelay",
1459
+ "type": "uint256"
1460
+ }
1461
+ ],
1462
+ "name": "InvalidTimelockDelay",
1463
+ "type": "error"
1464
+ },
1465
+ {
1466
+ "inputs": [
1467
+ {
1468
+ "internalType": "address",
1469
+ "name": "tokenIn",
1470
+ "type": "address"
1471
+ },
1472
+ {
1473
+ "internalType": "address",
1474
+ "name": "market",
1475
+ "type": "address"
1476
+ }
1477
+ ],
1478
+ "name": "InvalidTokenIn",
1479
+ "type": "error"
1480
+ },
1481
+ {
1482
+ "inputs": [
1483
+ {
1484
+ "internalType": "uint256",
1485
+ "name": "uiFeeFactor",
1486
+ "type": "uint256"
1487
+ },
1488
+ {
1489
+ "internalType": "uint256",
1490
+ "name": "maxUiFeeFactor",
1491
+ "type": "uint256"
1492
+ }
1493
+ ],
1494
+ "name": "InvalidUiFeeFactor",
1495
+ "type": "error"
1496
+ },
1497
+ {
1498
+ "inputs": [
1499
+ {
1500
+ "internalType": "string",
1501
+ "name": "reason",
1502
+ "type": "string"
1503
+ },
1504
+ {
1505
+ "internalType": "int256",
1506
+ "name": "remainingCollateralUsd",
1507
+ "type": "int256"
1508
+ },
1509
+ {
1510
+ "internalType": "int256",
1511
+ "name": "minCollateralUsd",
1512
+ "type": "int256"
1513
+ },
1514
+ {
1515
+ "internalType": "int256",
1516
+ "name": "minCollateralUsdForLeverage",
1517
+ "type": "int256"
1518
+ }
1519
+ ],
1520
+ "name": "LiquidatablePosition",
1521
+ "type": "error"
1522
+ },
1523
+ {
1524
+ "inputs": [
1525
+ {
1526
+ "internalType": "bytes32",
1527
+ "name": "salt",
1528
+ "type": "bytes32"
1529
+ },
1530
+ {
1531
+ "internalType": "address",
1532
+ "name": "existingMarketAddress",
1533
+ "type": "address"
1534
+ }
1535
+ ],
1536
+ "name": "MarketAlreadyExists",
1537
+ "type": "error"
1538
+ },
1539
+ {
1540
+ "inputs": [
1541
+ {
1542
+ "internalType": "address",
1543
+ "name": "key",
1544
+ "type": "address"
1545
+ }
1546
+ ],
1547
+ "name": "MarketNotFound",
1548
+ "type": "error"
1549
+ },
1550
+ {
1551
+ "inputs": [
1552
+ {
1553
+ "internalType": "uint256",
1554
+ "name": "index",
1555
+ "type": "uint256"
1556
+ },
1557
+ {
1558
+ "internalType": "string",
1559
+ "name": "label",
1560
+ "type": "string"
1561
+ }
1562
+ ],
1563
+ "name": "MaskIndexOutOfBounds",
1564
+ "type": "error"
1565
+ },
1566
+ {
1567
+ "inputs": [
1568
+ {
1569
+ "internalType": "uint256",
1570
+ "name": "callbackGasLimit",
1571
+ "type": "uint256"
1572
+ },
1573
+ {
1574
+ "internalType": "uint256",
1575
+ "name": "maxCallbackGasLimit",
1576
+ "type": "uint256"
1577
+ }
1578
+ ],
1579
+ "name": "MaxCallbackGasLimitExceeded",
1580
+ "type": "error"
1581
+ },
1582
+ {
1583
+ "inputs": [
1584
+ {
1585
+ "internalType": "uint256",
1586
+ "name": "openInterest",
1587
+ "type": "uint256"
1588
+ },
1589
+ {
1590
+ "internalType": "uint256",
1591
+ "name": "maxOpenInterest",
1592
+ "type": "uint256"
1593
+ }
1594
+ ],
1595
+ "name": "MaxOpenInterestExceeded",
1596
+ "type": "error"
1597
+ },
1598
+ {
1599
+ "inputs": [
1600
+ {
1601
+ "internalType": "uint256",
1602
+ "name": "oracleSigners",
1603
+ "type": "uint256"
1604
+ },
1605
+ {
1606
+ "internalType": "uint256",
1607
+ "name": "maxOracleSigners",
1608
+ "type": "uint256"
1609
+ }
1610
+ ],
1611
+ "name": "MaxOracleSigners",
1612
+ "type": "error"
1613
+ },
1614
+ {
1615
+ "inputs": [
1616
+ {
1617
+ "internalType": "uint256",
1618
+ "name": "poolAmount",
1619
+ "type": "uint256"
1620
+ },
1621
+ {
1622
+ "internalType": "uint256",
1623
+ "name": "maxPoolAmount",
1624
+ "type": "uint256"
1625
+ }
1626
+ ],
1627
+ "name": "MaxPoolAmountExceeded",
1628
+ "type": "error"
1629
+ },
1630
+ {
1631
+ "inputs": [
1632
+ {
1633
+ "internalType": "uint256",
1634
+ "name": "poolAmount",
1635
+ "type": "uint256"
1636
+ },
1637
+ {
1638
+ "internalType": "uint256",
1639
+ "name": "maxPoolAmountForDeposit",
1640
+ "type": "uint256"
1641
+ }
1642
+ ],
1643
+ "name": "MaxPoolAmountForDepositExceeded",
1644
+ "type": "error"
1645
+ },
1646
+ {
1647
+ "inputs": [
1648
+ {
1649
+ "internalType": "uint256",
1650
+ "name": "oracleTimestamp",
1651
+ "type": "uint256"
1652
+ },
1653
+ {
1654
+ "internalType": "uint256",
1655
+ "name": "currentTimestamp",
1656
+ "type": "uint256"
1657
+ }
1658
+ ],
1659
+ "name": "MaxPriceAgeExceeded",
1660
+ "type": "error"
1661
+ },
1662
+ {
1663
+ "inputs": [
1664
+ {
1665
+ "internalType": "address",
1666
+ "name": "token",
1667
+ "type": "address"
1668
+ },
1669
+ {
1670
+ "internalType": "uint256",
1671
+ "name": "price",
1672
+ "type": "uint256"
1673
+ },
1674
+ {
1675
+ "internalType": "uint256",
1676
+ "name": "prevPrice",
1677
+ "type": "uint256"
1678
+ }
1679
+ ],
1680
+ "name": "MaxPricesNotSorted",
1681
+ "type": "error"
1682
+ },
1683
+ {
1684
+ "inputs": [
1685
+ {
1686
+ "internalType": "address",
1687
+ "name": "token",
1688
+ "type": "address"
1689
+ },
1690
+ {
1691
+ "internalType": "uint256",
1692
+ "name": "price",
1693
+ "type": "uint256"
1694
+ },
1695
+ {
1696
+ "internalType": "uint256",
1697
+ "name": "refPrice",
1698
+ "type": "uint256"
1699
+ },
1700
+ {
1701
+ "internalType": "uint256",
1702
+ "name": "maxRefPriceDeviationFactor",
1703
+ "type": "uint256"
1704
+ }
1705
+ ],
1706
+ "name": "MaxRefPriceDeviationExceeded",
1707
+ "type": "error"
1708
+ },
1709
+ {
1710
+ "inputs": [
1711
+ {
1712
+ "internalType": "uint256",
1713
+ "name": "signerIndex",
1714
+ "type": "uint256"
1715
+ },
1716
+ {
1717
+ "internalType": "uint256",
1718
+ "name": "maxSignerIndex",
1719
+ "type": "uint256"
1720
+ }
1721
+ ],
1722
+ "name": "MaxSignerIndex",
1723
+ "type": "error"
1724
+ },
1725
+ {
1726
+ "inputs": [
1727
+ {
1728
+ "internalType": "address",
1729
+ "name": "account",
1730
+ "type": "address"
1731
+ },
1732
+ {
1733
+ "internalType": "address",
1734
+ "name": "subaccount",
1735
+ "type": "address"
1736
+ },
1737
+ {
1738
+ "internalType": "uint256",
1739
+ "name": "count",
1740
+ "type": "uint256"
1741
+ },
1742
+ {
1743
+ "internalType": "uint256",
1744
+ "name": "maxCount",
1745
+ "type": "uint256"
1746
+ }
1747
+ ],
1748
+ "name": "MaxSubaccountActionCountExceeded",
1749
+ "type": "error"
1750
+ },
1751
+ {
1752
+ "inputs": [
1753
+ {
1754
+ "internalType": "uint256",
1755
+ "name": "swapPathLengh",
1756
+ "type": "uint256"
1757
+ },
1758
+ {
1759
+ "internalType": "uint256",
1760
+ "name": "maxSwapPathLength",
1761
+ "type": "uint256"
1762
+ }
1763
+ ],
1764
+ "name": "MaxSwapPathLengthExceeded",
1765
+ "type": "error"
1766
+ },
1767
+ {
1768
+ "inputs": [
1769
+ {
1770
+ "internalType": "uint256",
1771
+ "name": "timelockDelay",
1772
+ "type": "uint256"
1773
+ }
1774
+ ],
1775
+ "name": "MaxTimelockDelayExceeded",
1776
+ "type": "error"
1777
+ },
1778
+ {
1779
+ "inputs": [
1780
+ {
1781
+ "internalType": "uint256",
1782
+ "name": "received",
1783
+ "type": "uint256"
1784
+ },
1785
+ {
1786
+ "internalType": "uint256",
1787
+ "name": "expected",
1788
+ "type": "uint256"
1789
+ }
1790
+ ],
1791
+ "name": "MinLongTokens",
1792
+ "type": "error"
1793
+ },
1794
+ {
1795
+ "inputs": [
1796
+ {
1797
+ "internalType": "uint256",
1798
+ "name": "received",
1799
+ "type": "uint256"
1800
+ },
1801
+ {
1802
+ "internalType": "uint256",
1803
+ "name": "expected",
1804
+ "type": "uint256"
1805
+ }
1806
+ ],
1807
+ "name": "MinMarketTokens",
1808
+ "type": "error"
1809
+ },
1810
+ {
1811
+ "inputs": [
1812
+ {
1813
+ "internalType": "uint256",
1814
+ "name": "oracleSigners",
1815
+ "type": "uint256"
1816
+ },
1817
+ {
1818
+ "internalType": "uint256",
1819
+ "name": "minOracleSigners",
1820
+ "type": "uint256"
1821
+ }
1822
+ ],
1823
+ "name": "MinOracleSigners",
1824
+ "type": "error"
1825
+ },
1826
+ {
1827
+ "inputs": [
1828
+ {
1829
+ "internalType": "uint256",
1830
+ "name": "positionSizeInUsd",
1831
+ "type": "uint256"
1832
+ },
1833
+ {
1834
+ "internalType": "uint256",
1835
+ "name": "minPositionSizeUsd",
1836
+ "type": "uint256"
1837
+ }
1838
+ ],
1839
+ "name": "MinPositionSize",
1840
+ "type": "error"
1841
+ },
1842
+ {
1843
+ "inputs": [
1844
+ {
1845
+ "internalType": "address",
1846
+ "name": "token",
1847
+ "type": "address"
1848
+ },
1849
+ {
1850
+ "internalType": "uint256",
1851
+ "name": "price",
1852
+ "type": "uint256"
1853
+ },
1854
+ {
1855
+ "internalType": "uint256",
1856
+ "name": "prevPrice",
1857
+ "type": "uint256"
1858
+ }
1859
+ ],
1860
+ "name": "MinPricesNotSorted",
1861
+ "type": "error"
1862
+ },
1863
+ {
1864
+ "inputs": [
1865
+ {
1866
+ "internalType": "uint256",
1867
+ "name": "received",
1868
+ "type": "uint256"
1869
+ },
1870
+ {
1871
+ "internalType": "uint256",
1872
+ "name": "expected",
1873
+ "type": "uint256"
1874
+ }
1875
+ ],
1876
+ "name": "MinShortTokens",
1877
+ "type": "error"
1878
+ },
1879
+ {
1880
+ "inputs": [
1881
+ {
1882
+ "internalType": "int256",
1883
+ "name": "executionPrice",
1884
+ "type": "int256"
1885
+ },
1886
+ {
1887
+ "internalType": "uint256",
1888
+ "name": "price",
1889
+ "type": "uint256"
1890
+ },
1891
+ {
1892
+ "internalType": "uint256",
1893
+ "name": "positionSizeInUsd",
1894
+ "type": "uint256"
1895
+ },
1896
+ {
1897
+ "internalType": "int256",
1898
+ "name": "priceImpactUsd",
1899
+ "type": "int256"
1900
+ },
1901
+ {
1902
+ "internalType": "uint256",
1903
+ "name": "sizeDeltaUsd",
1904
+ "type": "uint256"
1905
+ }
1906
+ ],
1907
+ "name": "NegativeExecutionPrice",
1908
+ "type": "error"
1909
+ },
1910
+ {
1911
+ "inputs": [
1912
+ {
1913
+ "internalType": "uint256",
1914
+ "name": "tokensWithPricesLength",
1915
+ "type": "uint256"
1916
+ }
1917
+ ],
1918
+ "name": "NonEmptyTokensWithPrices",
1919
+ "type": "error"
1920
+ },
1921
+ {
1922
+ "inputs": [
1923
+ {
1924
+ "internalType": "address",
1925
+ "name": "market",
1926
+ "type": "address"
1927
+ }
1928
+ ],
1929
+ "name": "OpenInterestCannotBeUpdatedForSwapOnlyMarket",
1930
+ "type": "error"
1931
+ },
1932
+ {
1933
+ "inputs": [
1934
+ {
1935
+ "internalType": "uint256[]",
1936
+ "name": "minOracleBlockNumbers",
1937
+ "type": "uint256[]"
1938
+ },
1939
+ {
1940
+ "internalType": "uint256[]",
1941
+ "name": "maxOracleBlockNumbers",
1942
+ "type": "uint256[]"
1943
+ },
1944
+ {
1945
+ "internalType": "uint256",
1946
+ "name": "blockNumber",
1947
+ "type": "uint256"
1948
+ }
1949
+ ],
1950
+ "name": "OracleBlockNumberNotWithinRange",
1951
+ "type": "error"
1952
+ },
1953
+ {
1954
+ "inputs": [
1955
+ {
1956
+ "internalType": "uint256[]",
1957
+ "name": "oracleBlockNumbers",
1958
+ "type": "uint256[]"
1959
+ },
1960
+ {
1961
+ "internalType": "uint256",
1962
+ "name": "expectedBlockNumber",
1963
+ "type": "uint256"
1964
+ }
1965
+ ],
1966
+ "name": "OracleBlockNumbersAreSmallerThanRequired",
1967
+ "type": "error"
1968
+ },
1969
+ {
1970
+ "inputs": [],
1971
+ "name": "OrderAlreadyFrozen",
1972
+ "type": "error"
1973
+ },
1974
+ {
1975
+ "inputs": [
1976
+ {
1977
+ "internalType": "bytes32",
1978
+ "name": "key",
1979
+ "type": "bytes32"
1980
+ }
1981
+ ],
1982
+ "name": "OrderNotFound",
1983
+ "type": "error"
1984
+ },
1985
+ {
1986
+ "inputs": [
1987
+ {
1988
+ "internalType": "uint256",
1989
+ "name": "price",
1990
+ "type": "uint256"
1991
+ },
1992
+ {
1993
+ "internalType": "uint256",
1994
+ "name": "acceptablePrice",
1995
+ "type": "uint256"
1996
+ }
1997
+ ],
1998
+ "name": "OrderNotFulfillableAtAcceptablePrice",
1999
+ "type": "error"
2000
+ },
2001
+ {
2002
+ "inputs": [
2003
+ {
2004
+ "internalType": "uint256",
2005
+ "name": "orderType",
2006
+ "type": "uint256"
2007
+ }
2008
+ ],
2009
+ "name": "OrderNotUpdatable",
2010
+ "type": "error"
2011
+ },
2012
+ {
2013
+ "inputs": [
2014
+ {
2015
+ "internalType": "uint256",
2016
+ "name": "orderType",
2017
+ "type": "uint256"
2018
+ }
2019
+ ],
2020
+ "name": "OrderTypeCannotBeCreated",
2021
+ "type": "error"
2022
+ },
2023
+ {
2024
+ "inputs": [
2025
+ {
2026
+ "internalType": "int256",
2027
+ "name": "pnlToPoolFactor",
2028
+ "type": "int256"
2029
+ },
2030
+ {
2031
+ "internalType": "uint256",
2032
+ "name": "maxPnlFactor",
2033
+ "type": "uint256"
2034
+ }
2035
+ ],
2036
+ "name": "PnlFactorExceededForLongs",
2037
+ "type": "error"
2038
+ },
2039
+ {
2040
+ "inputs": [
2041
+ {
2042
+ "internalType": "int256",
2043
+ "name": "pnlToPoolFactor",
2044
+ "type": "int256"
2045
+ },
2046
+ {
2047
+ "internalType": "uint256",
2048
+ "name": "maxPnlFactor",
2049
+ "type": "uint256"
2050
+ }
2051
+ ],
2052
+ "name": "PnlFactorExceededForShorts",
2053
+ "type": "error"
2054
+ },
2055
+ {
2056
+ "inputs": [
2057
+ {
2058
+ "internalType": "int256",
2059
+ "name": "nextPnlToPoolFactor",
2060
+ "type": "int256"
2061
+ },
2062
+ {
2063
+ "internalType": "uint256",
2064
+ "name": "minPnlFactorForAdl",
2065
+ "type": "uint256"
2066
+ }
2067
+ ],
2068
+ "name": "PnlOvercorrected",
2069
+ "type": "error"
2070
+ },
2071
+ {
2072
+ "inputs": [
2073
+ {
2074
+ "internalType": "bytes32",
2075
+ "name": "key",
2076
+ "type": "bytes32"
2077
+ }
2078
+ ],
2079
+ "name": "PositionNotFound",
2080
+ "type": "error"
2081
+ },
2082
+ {
2083
+ "inputs": [
2084
+ {
2085
+ "internalType": "string",
2086
+ "name": "reason",
2087
+ "type": "string"
2088
+ },
2089
+ {
2090
+ "internalType": "int256",
2091
+ "name": "remainingCollateralUsd",
2092
+ "type": "int256"
2093
+ },
2094
+ {
2095
+ "internalType": "int256",
2096
+ "name": "minCollateralUsd",
2097
+ "type": "int256"
2098
+ },
2099
+ {
2100
+ "internalType": "int256",
2101
+ "name": "minCollateralUsdForLeverage",
2102
+ "type": "int256"
2103
+ }
2104
+ ],
2105
+ "name": "PositionShouldNotBeLiquidated",
2106
+ "type": "error"
2107
+ },
2108
+ {
2109
+ "inputs": [
2110
+ {
2111
+ "internalType": "address",
2112
+ "name": "token",
2113
+ "type": "address"
2114
+ },
2115
+ {
2116
+ "internalType": "uint256",
2117
+ "name": "minPrice",
2118
+ "type": "uint256"
2119
+ },
2120
+ {
2121
+ "internalType": "uint256",
2122
+ "name": "maxPrice",
2123
+ "type": "uint256"
2124
+ }
2125
+ ],
2126
+ "name": "PriceAlreadySet",
2127
+ "type": "error"
2128
+ },
2129
+ {
2130
+ "inputs": [
2131
+ {
2132
+ "internalType": "address",
2133
+ "name": "token",
2134
+ "type": "address"
2135
+ },
2136
+ {
2137
+ "internalType": "uint256",
2138
+ "name": "timestamp",
2139
+ "type": "uint256"
2140
+ },
2141
+ {
2142
+ "internalType": "uint256",
2143
+ "name": "heartbeatDuration",
2144
+ "type": "uint256"
2145
+ }
2146
+ ],
2147
+ "name": "PriceFeedNotUpdated",
2148
+ "type": "error"
2149
+ },
2150
+ {
2151
+ "inputs": [
2152
+ {
2153
+ "internalType": "int256",
2154
+ "name": "priceImpactUsd",
2155
+ "type": "int256"
2156
+ },
2157
+ {
2158
+ "internalType": "uint256",
2159
+ "name": "sizeDeltaUsd",
2160
+ "type": "uint256"
2161
+ }
2162
+ ],
2163
+ "name": "PriceImpactLargerThanOrderSize",
2164
+ "type": "error"
2165
+ },
2166
+ {
2167
+ "inputs": [
2168
+ {
2169
+ "internalType": "address",
2170
+ "name": "token",
2171
+ "type": "address"
2172
+ },
2173
+ {
2174
+ "internalType": "uint256",
2175
+ "name": "oracleTimestamp",
2176
+ "type": "uint256"
2177
+ },
2178
+ {
2179
+ "internalType": "uint256",
2180
+ "name": "currentTimestamp",
2181
+ "type": "uint256"
2182
+ }
2183
+ ],
2184
+ "name": "RealtimeMaxPriceAgeExceeded",
2185
+ "type": "error"
2186
+ },
2187
+ {
2188
+ "inputs": [
2189
+ {
2190
+ "internalType": "uint256",
2191
+ "name": "requestAge",
2192
+ "type": "uint256"
2193
+ },
2194
+ {
2195
+ "internalType": "uint256",
2196
+ "name": "requestExpirationAge",
2197
+ "type": "uint256"
2198
+ },
2199
+ {
2200
+ "internalType": "string",
2201
+ "name": "requestType",
2202
+ "type": "string"
2203
+ }
2204
+ ],
2205
+ "name": "RequestNotYetCancellable",
2206
+ "type": "error"
2207
+ },
2208
+ {
2209
+ "inputs": [
2210
+ {
2211
+ "internalType": "address",
2212
+ "name": "receiver",
2213
+ "type": "address"
2214
+ }
2215
+ ],
2216
+ "name": "SelfTransferNotSupported",
2217
+ "type": "error"
2218
+ },
2219
+ {
2220
+ "inputs": [
2221
+ {
2222
+ "internalType": "uint256",
2223
+ "name": "signalTime",
2224
+ "type": "uint256"
2225
+ }
2226
+ ],
2227
+ "name": "SignalTimeNotYetPassed",
2228
+ "type": "error"
2229
+ },
2230
+ {
2231
+ "inputs": [
2232
+ {
2233
+ "internalType": "address",
2234
+ "name": "account",
2235
+ "type": "address"
2236
+ },
2237
+ {
2238
+ "internalType": "address",
2239
+ "name": "subaccount",
2240
+ "type": "address"
2241
+ }
2242
+ ],
2243
+ "name": "SubaccountNotAuthorized",
2244
+ "type": "error"
2245
+ },
2246
+ {
2247
+ "inputs": [
2248
+ {
2249
+ "internalType": "uint256",
2250
+ "name": "amountAfterFees",
2251
+ "type": "uint256"
2252
+ },
2253
+ {
2254
+ "internalType": "int256",
2255
+ "name": "negativeImpactAmount",
2256
+ "type": "int256"
2257
+ }
2258
+ ],
2259
+ "name": "SwapPriceImpactExceedsAmountIn",
2260
+ "type": "error"
2261
+ },
2262
+ {
2263
+ "inputs": [],
2264
+ "name": "ThereMustBeAtLeastOneRoleAdmin",
2265
+ "type": "error"
2266
+ },
2267
+ {
2268
+ "inputs": [],
2269
+ "name": "ThereMustBeAtLeastOneTimelockMultiSig",
2270
+ "type": "error"
2271
+ },
2272
+ {
2273
+ "inputs": [
2274
+ {
2275
+ "internalType": "address",
2276
+ "name": "token",
2277
+ "type": "address"
2278
+ },
2279
+ {
2280
+ "internalType": "address",
2281
+ "name": "receiver",
2282
+ "type": "address"
2283
+ },
2284
+ {
2285
+ "internalType": "uint256",
2286
+ "name": "amount",
2287
+ "type": "uint256"
2288
+ }
2289
+ ],
2290
+ "name": "TokenTransferError",
2291
+ "type": "error"
2292
+ },
2293
+ {
2294
+ "inputs": [],
2295
+ "name": "UnableToGetBorrowingFactorEmptyPoolUsd",
2296
+ "type": "error"
2297
+ },
2298
+ {
2299
+ "inputs": [
2300
+ {
2301
+ "internalType": "address",
2302
+ "name": "token",
2303
+ "type": "address"
2304
+ },
2305
+ {
2306
+ "internalType": "address",
2307
+ "name": "market",
2308
+ "type": "address"
2309
+ }
2310
+ ],
2311
+ "name": "UnableToGetCachedTokenPrice",
2312
+ "type": "error"
2313
+ },
2314
+ {
2315
+ "inputs": [],
2316
+ "name": "UnableToGetFundingFactorEmptyOpenInterest",
2317
+ "type": "error"
2318
+ },
2319
+ {
2320
+ "inputs": [
2321
+ {
2322
+ "internalType": "address",
2323
+ "name": "inputToken",
2324
+ "type": "address"
2325
+ },
2326
+ {
2327
+ "internalType": "address",
2328
+ "name": "market",
2329
+ "type": "address"
2330
+ }
2331
+ ],
2332
+ "name": "UnableToGetOppositeToken",
2333
+ "type": "error"
2334
+ },
2335
+ {
2336
+ "inputs": [
2337
+ {
2338
+ "internalType": "int256",
2339
+ "name": "estimatedRemainingCollateralUsd",
2340
+ "type": "int256"
2341
+ }
2342
+ ],
2343
+ "name": "UnableToWithdrawCollateral",
2344
+ "type": "error"
2345
+ },
2346
+ {
2347
+ "inputs": [
2348
+ {
2349
+ "internalType": "address",
2350
+ "name": "msgSender",
2351
+ "type": "address"
2352
+ },
2353
+ {
2354
+ "internalType": "string",
2355
+ "name": "role",
2356
+ "type": "string"
2357
+ }
2358
+ ],
2359
+ "name": "Unauthorized",
2360
+ "type": "error"
2361
+ },
2362
+ {
2363
+ "inputs": [
2364
+ {
2365
+ "internalType": "uint256",
2366
+ "name": "positionBorrowingFactor",
2367
+ "type": "uint256"
2368
+ },
2369
+ {
2370
+ "internalType": "uint256",
2371
+ "name": "cumulativeBorrowingFactor",
2372
+ "type": "uint256"
2373
+ }
2374
+ ],
2375
+ "name": "UnexpectedBorrowingFactor",
2376
+ "type": "error"
2377
+ },
2378
+ {
2379
+ "inputs": [],
2380
+ "name": "UnexpectedMarket",
2381
+ "type": "error"
2382
+ },
2383
+ {
2384
+ "inputs": [
2385
+ {
2386
+ "internalType": "int256",
2387
+ "name": "poolValue",
2388
+ "type": "int256"
2389
+ }
2390
+ ],
2391
+ "name": "UnexpectedPoolValue",
2392
+ "type": "error"
2393
+ },
2394
+ {
2395
+ "inputs": [],
2396
+ "name": "UnexpectedPositionState",
2397
+ "type": "error"
2398
+ },
2399
+ {
2400
+ "inputs": [
2401
+ {
2402
+ "internalType": "address",
2403
+ "name": "token",
2404
+ "type": "address"
2405
+ },
2406
+ {
2407
+ "internalType": "address",
2408
+ "name": "market",
2409
+ "type": "address"
2410
+ }
2411
+ ],
2412
+ "name": "UnexpectedTokenForVirtualInventory",
2413
+ "type": "error"
2414
+ },
2415
+ {
2416
+ "inputs": [
2417
+ {
2418
+ "internalType": "uint256",
2419
+ "name": "oracleBlockNumberType",
2420
+ "type": "uint256"
2421
+ }
2422
+ ],
2423
+ "name": "UnsupportedOracleBlockNumberType",
2424
+ "type": "error"
2425
+ },
2426
+ {
2427
+ "inputs": [],
2428
+ "name": "UnsupportedOrderType",
2429
+ "type": "error"
2430
+ },
2431
+ {
2432
+ "inputs": [
2433
+ {
2434
+ "internalType": "int256",
2435
+ "name": "usdDelta",
2436
+ "type": "int256"
2437
+ },
2438
+ {
2439
+ "internalType": "uint256",
2440
+ "name": "longOpenInterest",
2441
+ "type": "uint256"
2442
+ }
2443
+ ],
2444
+ "name": "UsdDeltaExceedsLongOpenInterest",
2445
+ "type": "error"
2446
+ },
2447
+ {
2448
+ "inputs": [
2449
+ {
2450
+ "internalType": "int256",
2451
+ "name": "usdDelta",
2452
+ "type": "int256"
2453
+ },
2454
+ {
2455
+ "internalType": "uint256",
2456
+ "name": "poolUsd",
2457
+ "type": "uint256"
2458
+ }
2459
+ ],
2460
+ "name": "UsdDeltaExceedsPoolValue",
2461
+ "type": "error"
2462
+ },
2463
+ {
2464
+ "inputs": [
2465
+ {
2466
+ "internalType": "int256",
2467
+ "name": "usdDelta",
2468
+ "type": "int256"
2469
+ },
2470
+ {
2471
+ "internalType": "uint256",
2472
+ "name": "shortOpenInterest",
2473
+ "type": "uint256"
2474
+ }
2475
+ ],
2476
+ "name": "UsdDeltaExceedsShortOpenInterest",
2477
+ "type": "error"
2478
+ },
2479
+ {
2480
+ "inputs": [
2481
+ {
2482
+ "internalType": "bytes32",
2483
+ "name": "key",
2484
+ "type": "bytes32"
2485
+ }
2486
+ ],
2487
+ "name": "WithdrawalNotFound",
2488
+ "type": "error"
2489
+ },
2490
+ {
2491
+ "inputs": [
2492
+ {
2493
+ "internalType": "contract IGmxDataStore",
2494
+ "name": "_dataStore",
2495
+ "type": "address"
2496
+ },
2497
+ {
2498
+ "internalType": "bytes32",
2499
+ "name": "_key",
2500
+ "type": "bytes32"
2501
+ }
2502
+ ],
2503
+ "name": "getDeposit",
2504
+ "outputs": [
2505
+ {
2506
+ "components": [
2507
+ {
2508
+ "components": [
2509
+ {
2510
+ "internalType": "address",
2511
+ "name": "account",
2512
+ "type": "address"
2513
+ },
2514
+ {
2515
+ "internalType": "address",
2516
+ "name": "receiver",
2517
+ "type": "address"
2518
+ },
2519
+ {
2520
+ "internalType": "address",
2521
+ "name": "callbackContract",
2522
+ "type": "address"
2523
+ },
2524
+ {
2525
+ "internalType": "address",
2526
+ "name": "uiFeeReceiver",
2527
+ "type": "address"
2528
+ },
2529
+ {
2530
+ "internalType": "address",
2531
+ "name": "market",
2532
+ "type": "address"
2533
+ },
2534
+ {
2535
+ "internalType": "address",
2536
+ "name": "initialLongToken",
2537
+ "type": "address"
2538
+ },
2539
+ {
2540
+ "internalType": "address",
2541
+ "name": "initialShortToken",
2542
+ "type": "address"
2543
+ },
2544
+ {
2545
+ "internalType": "address[]",
2546
+ "name": "longTokenSwapPath",
2547
+ "type": "address[]"
2548
+ },
2549
+ {
2550
+ "internalType": "address[]",
2551
+ "name": "shortTokenSwapPath",
2552
+ "type": "address[]"
2553
+ }
2554
+ ],
2555
+ "internalType": "struct GmxDeposit.Addresses",
2556
+ "name": "addresses",
2557
+ "type": "tuple"
2558
+ },
2559
+ {
2560
+ "components": [
2561
+ {
2562
+ "internalType": "uint256",
2563
+ "name": "initialLongTokenAmount",
2564
+ "type": "uint256"
2565
+ },
2566
+ {
2567
+ "internalType": "uint256",
2568
+ "name": "initialShortTokenAmount",
2569
+ "type": "uint256"
2570
+ },
2571
+ {
2572
+ "internalType": "uint256",
2573
+ "name": "minMarketTokens",
2574
+ "type": "uint256"
2575
+ },
2576
+ {
2577
+ "internalType": "uint256",
2578
+ "name": "updatedAtBlock",
2579
+ "type": "uint256"
2580
+ },
2581
+ {
2582
+ "internalType": "uint256",
2583
+ "name": "executionFee",
2584
+ "type": "uint256"
2585
+ },
2586
+ {
2587
+ "internalType": "uint256",
2588
+ "name": "callbackGasLimit",
2589
+ "type": "uint256"
2590
+ }
2591
+ ],
2592
+ "internalType": "struct GmxDeposit.Numbers",
2593
+ "name": "numbers",
2594
+ "type": "tuple"
2595
+ },
2596
+ {
2597
+ "components": [
2598
+ {
2599
+ "internalType": "bool",
2600
+ "name": "shouldUnwrapNativeToken",
2601
+ "type": "bool"
2602
+ }
2603
+ ],
2604
+ "internalType": "struct GmxDeposit.Flags",
2605
+ "name": "flags",
2606
+ "type": "tuple"
2607
+ }
2608
+ ],
2609
+ "internalType": "struct GmxDeposit.DepositProps",
2610
+ "name": "",
2611
+ "type": "tuple"
2612
+ }
2613
+ ],
2614
+ "stateMutability": "view",
2615
+ "type": "function"
2616
+ },
2617
+ {
2618
+ "inputs": [
2619
+ {
2620
+ "internalType": "contract IGmxDataStore",
2621
+ "name": "_dataStore",
2622
+ "type": "address"
2623
+ },
2624
+ {
2625
+ "components": [
2626
+ {
2627
+ "internalType": "address",
2628
+ "name": "marketToken",
2629
+ "type": "address"
2630
+ },
2631
+ {
2632
+ "internalType": "address",
2633
+ "name": "indexToken",
2634
+ "type": "address"
2635
+ },
2636
+ {
2637
+ "internalType": "address",
2638
+ "name": "longToken",
2639
+ "type": "address"
2640
+ },
2641
+ {
2642
+ "internalType": "address",
2643
+ "name": "shortToken",
2644
+ "type": "address"
2645
+ }
2646
+ ],
2647
+ "internalType": "struct GmxMarket.MarketProps",
2648
+ "name": "_market",
2649
+ "type": "tuple"
2650
+ },
2651
+ {
2652
+ "components": [
2653
+ {
2654
+ "components": [
2655
+ {
2656
+ "internalType": "uint256",
2657
+ "name": "min",
2658
+ "type": "uint256"
2659
+ },
2660
+ {
2661
+ "internalType": "uint256",
2662
+ "name": "max",
2663
+ "type": "uint256"
2664
+ }
2665
+ ],
2666
+ "internalType": "struct GmxPrice.PriceProps",
2667
+ "name": "indexTokenPrice",
2668
+ "type": "tuple"
2669
+ },
2670
+ {
2671
+ "components": [
2672
+ {
2673
+ "internalType": "uint256",
2674
+ "name": "min",
2675
+ "type": "uint256"
2676
+ },
2677
+ {
2678
+ "internalType": "uint256",
2679
+ "name": "max",
2680
+ "type": "uint256"
2681
+ }
2682
+ ],
2683
+ "internalType": "struct GmxPrice.PriceProps",
2684
+ "name": "longTokenPrice",
2685
+ "type": "tuple"
2686
+ },
2687
+ {
2688
+ "components": [
2689
+ {
2690
+ "internalType": "uint256",
2691
+ "name": "min",
2692
+ "type": "uint256"
2693
+ },
2694
+ {
2695
+ "internalType": "uint256",
2696
+ "name": "max",
2697
+ "type": "uint256"
2698
+ }
2699
+ ],
2700
+ "internalType": "struct GmxPrice.PriceProps",
2701
+ "name": "shortTokenPrice",
2702
+ "type": "tuple"
2703
+ }
2704
+ ],
2705
+ "internalType": "struct GmxMarket.MarketPrices",
2706
+ "name": "_prices",
2707
+ "type": "tuple"
2708
+ },
2709
+ {
2710
+ "internalType": "uint256",
2711
+ "name": "_longTokenAmount",
2712
+ "type": "uint256"
2713
+ },
2714
+ {
2715
+ "internalType": "uint256",
2716
+ "name": "_shortTokenAmount",
2717
+ "type": "uint256"
2718
+ },
2719
+ {
2720
+ "internalType": "address",
2721
+ "name": "_uiFeeReceiver",
2722
+ "type": "address"
2723
+ },
2724
+ {
2725
+ "internalType": "enum IGmxReader.SwapPricingType",
2726
+ "name": "_swapPricingType",
2727
+ "type": "uint8"
2728
+ },
2729
+ {
2730
+ "internalType": "bool",
2731
+ "name": "includeVirtualInventoryImpact",
2732
+ "type": "bool"
2733
+ }
2734
+ ],
2735
+ "name": "getDepositAmountOut",
2736
+ "outputs": [
2737
+ {
2738
+ "internalType": "uint256",
2739
+ "name": "",
2740
+ "type": "uint256"
2741
+ }
2742
+ ],
2743
+ "stateMutability": "view",
2744
+ "type": "function"
2745
+ },
2746
+ {
2747
+ "inputs": [
2748
+ {
2749
+ "internalType": "contract IGmxDataStore",
2750
+ "name": "_dataStore",
2751
+ "type": "address"
2752
+ },
2753
+ {
2754
+ "components": [
2755
+ {
2756
+ "internalType": "address",
2757
+ "name": "marketToken",
2758
+ "type": "address"
2759
+ },
2760
+ {
2761
+ "internalType": "address",
2762
+ "name": "indexToken",
2763
+ "type": "address"
2764
+ },
2765
+ {
2766
+ "internalType": "address",
2767
+ "name": "longToken",
2768
+ "type": "address"
2769
+ },
2770
+ {
2771
+ "internalType": "address",
2772
+ "name": "shortToken",
2773
+ "type": "address"
2774
+ }
2775
+ ],
2776
+ "internalType": "struct GmxMarket.MarketProps",
2777
+ "name": "_market",
2778
+ "type": "tuple"
2779
+ },
2780
+ {
2781
+ "components": [
2782
+ {
2783
+ "internalType": "uint256",
2784
+ "name": "min",
2785
+ "type": "uint256"
2786
+ },
2787
+ {
2788
+ "internalType": "uint256",
2789
+ "name": "max",
2790
+ "type": "uint256"
2791
+ }
2792
+ ],
2793
+ "internalType": "struct GmxPrice.PriceProps",
2794
+ "name": "_indexTokenPrice",
2795
+ "type": "tuple"
2796
+ },
2797
+ {
2798
+ "components": [
2799
+ {
2800
+ "internalType": "uint256",
2801
+ "name": "min",
2802
+ "type": "uint256"
2803
+ },
2804
+ {
2805
+ "internalType": "uint256",
2806
+ "name": "max",
2807
+ "type": "uint256"
2808
+ }
2809
+ ],
2810
+ "internalType": "struct GmxPrice.PriceProps",
2811
+ "name": "_longTokenPrice",
2812
+ "type": "tuple"
2813
+ },
2814
+ {
2815
+ "components": [
2816
+ {
2817
+ "internalType": "uint256",
2818
+ "name": "min",
2819
+ "type": "uint256"
2820
+ },
2821
+ {
2822
+ "internalType": "uint256",
2823
+ "name": "max",
2824
+ "type": "uint256"
2825
+ }
2826
+ ],
2827
+ "internalType": "struct GmxPrice.PriceProps",
2828
+ "name": "_shortTokenPrice",
2829
+ "type": "tuple"
2830
+ },
2831
+ {
2832
+ "internalType": "bytes32",
2833
+ "name": "_pnlFactorType",
2834
+ "type": "bytes32"
2835
+ },
2836
+ {
2837
+ "internalType": "bool",
2838
+ "name": "_maximize",
2839
+ "type": "bool"
2840
+ }
2841
+ ],
2842
+ "name": "getMarketTokenPrice",
2843
+ "outputs": [
2844
+ {
2845
+ "internalType": "int256",
2846
+ "name": "",
2847
+ "type": "int256"
2848
+ },
2849
+ {
2850
+ "components": [
2851
+ {
2852
+ "internalType": "int256",
2853
+ "name": "poolValue",
2854
+ "type": "int256"
2855
+ },
2856
+ {
2857
+ "internalType": "int256",
2858
+ "name": "longPnl",
2859
+ "type": "int256"
2860
+ },
2861
+ {
2862
+ "internalType": "int256",
2863
+ "name": "shortPnl",
2864
+ "type": "int256"
2865
+ },
2866
+ {
2867
+ "internalType": "int256",
2868
+ "name": "netPnl",
2869
+ "type": "int256"
2870
+ },
2871
+ {
2872
+ "internalType": "uint256",
2873
+ "name": "longTokenAmount",
2874
+ "type": "uint256"
2875
+ },
2876
+ {
2877
+ "internalType": "uint256",
2878
+ "name": "shortTokenAmount",
2879
+ "type": "uint256"
2880
+ },
2881
+ {
2882
+ "internalType": "uint256",
2883
+ "name": "longTokenUsd",
2884
+ "type": "uint256"
2885
+ },
2886
+ {
2887
+ "internalType": "uint256",
2888
+ "name": "shortTokenUsd",
2889
+ "type": "uint256"
2890
+ },
2891
+ {
2892
+ "internalType": "uint256",
2893
+ "name": "totalBorrowingFees",
2894
+ "type": "uint256"
2895
+ },
2896
+ {
2897
+ "internalType": "uint256",
2898
+ "name": "borrowingFeePoolFactor",
2899
+ "type": "uint256"
2900
+ },
2901
+ {
2902
+ "internalType": "uint256",
2903
+ "name": "impactPoolAmount",
2904
+ "type": "uint256"
2905
+ }
2906
+ ],
2907
+ "internalType": "struct GmxMarketPoolValueInfo.PoolValueInfoProps",
2908
+ "name": "",
2909
+ "type": "tuple"
2910
+ }
2911
+ ],
2912
+ "stateMutability": "view",
2913
+ "type": "function"
2914
+ },
2915
+ {
2916
+ "inputs": [
2917
+ {
2918
+ "internalType": "contract IGmxDataStore",
2919
+ "name": "_dataStore",
2920
+ "type": "address"
2921
+ },
2922
+ {
2923
+ "internalType": "address",
2924
+ "name": "_marketAddress",
2925
+ "type": "address"
2926
+ },
2927
+ {
2928
+ "components": [
2929
+ {
2930
+ "components": [
2931
+ {
2932
+ "internalType": "uint256",
2933
+ "name": "min",
2934
+ "type": "uint256"
2935
+ },
2936
+ {
2937
+ "internalType": "uint256",
2938
+ "name": "max",
2939
+ "type": "uint256"
2940
+ }
2941
+ ],
2942
+ "internalType": "struct GmxPrice.PriceProps",
2943
+ "name": "indexTokenPrice",
2944
+ "type": "tuple"
2945
+ },
2946
+ {
2947
+ "components": [
2948
+ {
2949
+ "internalType": "uint256",
2950
+ "name": "min",
2951
+ "type": "uint256"
2952
+ },
2953
+ {
2954
+ "internalType": "uint256",
2955
+ "name": "max",
2956
+ "type": "uint256"
2957
+ }
2958
+ ],
2959
+ "internalType": "struct GmxPrice.PriceProps",
2960
+ "name": "longTokenPrice",
2961
+ "type": "tuple"
2962
+ },
2963
+ {
2964
+ "components": [
2965
+ {
2966
+ "internalType": "uint256",
2967
+ "name": "min",
2968
+ "type": "uint256"
2969
+ },
2970
+ {
2971
+ "internalType": "uint256",
2972
+ "name": "max",
2973
+ "type": "uint256"
2974
+ }
2975
+ ],
2976
+ "internalType": "struct GmxPrice.PriceProps",
2977
+ "name": "shortTokenPrice",
2978
+ "type": "tuple"
2979
+ }
2980
+ ],
2981
+ "internalType": "struct GmxMarket.MarketPrices",
2982
+ "name": "_prices",
2983
+ "type": "tuple"
2984
+ },
2985
+ {
2986
+ "internalType": "bool",
2987
+ "name": "_isLong",
2988
+ "type": "bool"
2989
+ },
2990
+ {
2991
+ "internalType": "bool",
2992
+ "name": "_maximize",
2993
+ "type": "bool"
2994
+ }
2995
+ ],
2996
+ "name": "getPnlToPoolFactor",
2997
+ "outputs": [
2998
+ {
2999
+ "internalType": "int256",
3000
+ "name": "",
3001
+ "type": "int256"
3002
+ }
3003
+ ],
3004
+ "stateMutability": "view",
3005
+ "type": "function"
3006
+ },
3007
+ {
3008
+ "inputs": [
3009
+ {
3010
+ "internalType": "contract IGmxDataStore",
3011
+ "name": "_dataStore",
3012
+ "type": "address"
3013
+ },
3014
+ {
3015
+ "components": [
3016
+ {
3017
+ "internalType": "address",
3018
+ "name": "marketToken",
3019
+ "type": "address"
3020
+ },
3021
+ {
3022
+ "internalType": "address",
3023
+ "name": "indexToken",
3024
+ "type": "address"
3025
+ },
3026
+ {
3027
+ "internalType": "address",
3028
+ "name": "longToken",
3029
+ "type": "address"
3030
+ },
3031
+ {
3032
+ "internalType": "address",
3033
+ "name": "shortToken",
3034
+ "type": "address"
3035
+ }
3036
+ ],
3037
+ "internalType": "struct GmxMarket.MarketProps",
3038
+ "name": "_market",
3039
+ "type": "tuple"
3040
+ },
3041
+ {
3042
+ "components": [
3043
+ {
3044
+ "components": [
3045
+ {
3046
+ "internalType": "uint256",
3047
+ "name": "min",
3048
+ "type": "uint256"
3049
+ },
3050
+ {
3051
+ "internalType": "uint256",
3052
+ "name": "max",
3053
+ "type": "uint256"
3054
+ }
3055
+ ],
3056
+ "internalType": "struct GmxPrice.PriceProps",
3057
+ "name": "indexTokenPrice",
3058
+ "type": "tuple"
3059
+ },
3060
+ {
3061
+ "components": [
3062
+ {
3063
+ "internalType": "uint256",
3064
+ "name": "min",
3065
+ "type": "uint256"
3066
+ },
3067
+ {
3068
+ "internalType": "uint256",
3069
+ "name": "max",
3070
+ "type": "uint256"
3071
+ }
3072
+ ],
3073
+ "internalType": "struct GmxPrice.PriceProps",
3074
+ "name": "longTokenPrice",
3075
+ "type": "tuple"
3076
+ },
3077
+ {
3078
+ "components": [
3079
+ {
3080
+ "internalType": "uint256",
3081
+ "name": "min",
3082
+ "type": "uint256"
3083
+ },
3084
+ {
3085
+ "internalType": "uint256",
3086
+ "name": "max",
3087
+ "type": "uint256"
3088
+ }
3089
+ ],
3090
+ "internalType": "struct GmxPrice.PriceProps",
3091
+ "name": "shortTokenPrice",
3092
+ "type": "tuple"
3093
+ }
3094
+ ],
3095
+ "internalType": "struct GmxMarket.MarketPrices",
3096
+ "name": "_prices",
3097
+ "type": "tuple"
3098
+ },
3099
+ {
3100
+ "internalType": "address",
3101
+ "name": "_tokenIn",
3102
+ "type": "address"
3103
+ },
3104
+ {
3105
+ "internalType": "uint256",
3106
+ "name": "_amountIn",
3107
+ "type": "uint256"
3108
+ },
3109
+ {
3110
+ "internalType": "address",
3111
+ "name": "_uiFeeReceiver",
3112
+ "type": "address"
3113
+ }
3114
+ ],
3115
+ "name": "getSwapAmountOut",
3116
+ "outputs": [
3117
+ {
3118
+ "internalType": "uint256",
3119
+ "name": "",
3120
+ "type": "uint256"
3121
+ },
3122
+ {
3123
+ "internalType": "int256",
3124
+ "name": "",
3125
+ "type": "int256"
3126
+ },
3127
+ {
3128
+ "components": [
3129
+ {
3130
+ "internalType": "uint256",
3131
+ "name": "feeReceiverAmount",
3132
+ "type": "uint256"
3133
+ },
3134
+ {
3135
+ "internalType": "uint256",
3136
+ "name": "feeAmountForPool",
3137
+ "type": "uint256"
3138
+ },
3139
+ {
3140
+ "internalType": "uint256",
3141
+ "name": "amountAfterFees",
3142
+ "type": "uint256"
3143
+ },
3144
+ {
3145
+ "internalType": "address",
3146
+ "name": "uiFeeReceiver",
3147
+ "type": "address"
3148
+ },
3149
+ {
3150
+ "internalType": "uint256",
3151
+ "name": "uiFeeReceiverFactor",
3152
+ "type": "uint256"
3153
+ },
3154
+ {
3155
+ "internalType": "uint256",
3156
+ "name": "uiFeeAmount",
3157
+ "type": "uint256"
3158
+ }
3159
+ ],
3160
+ "internalType": "struct IGmxReader.SwapFees",
3161
+ "name": "fees",
3162
+ "type": "tuple"
3163
+ }
3164
+ ],
3165
+ "stateMutability": "view",
3166
+ "type": "function"
3167
+ },
3168
+ {
3169
+ "inputs": [
3170
+ {
3171
+ "internalType": "contract IGmxDataStore",
3172
+ "name": "_dataStore",
3173
+ "type": "address"
3174
+ },
3175
+ {
3176
+ "internalType": "address",
3177
+ "name": "_marketKey",
3178
+ "type": "address"
3179
+ },
3180
+ {
3181
+ "internalType": "address",
3182
+ "name": "_tokenIn",
3183
+ "type": "address"
3184
+ },
3185
+ {
3186
+ "internalType": "address",
3187
+ "name": "_tokenOut",
3188
+ "type": "address"
3189
+ },
3190
+ {
3191
+ "internalType": "uint256",
3192
+ "name": "_amountIn",
3193
+ "type": "uint256"
3194
+ },
3195
+ {
3196
+ "components": [
3197
+ {
3198
+ "internalType": "uint256",
3199
+ "name": "min",
3200
+ "type": "uint256"
3201
+ },
3202
+ {
3203
+ "internalType": "uint256",
3204
+ "name": "max",
3205
+ "type": "uint256"
3206
+ }
3207
+ ],
3208
+ "internalType": "struct GmxPrice.PriceProps",
3209
+ "name": "_tokenInPrice",
3210
+ "type": "tuple"
3211
+ },
3212
+ {
3213
+ "components": [
3214
+ {
3215
+ "internalType": "uint256",
3216
+ "name": "min",
3217
+ "type": "uint256"
3218
+ },
3219
+ {
3220
+ "internalType": "uint256",
3221
+ "name": "max",
3222
+ "type": "uint256"
3223
+ }
3224
+ ],
3225
+ "internalType": "struct GmxPrice.PriceProps",
3226
+ "name": "_tokenOutPrice",
3227
+ "type": "tuple"
3228
+ }
3229
+ ],
3230
+ "name": "getSwapPriceImpact",
3231
+ "outputs": [
3232
+ {
3233
+ "internalType": "int256",
3234
+ "name": "",
3235
+ "type": "int256"
3236
+ },
3237
+ {
3238
+ "internalType": "int256",
3239
+ "name": "",
3240
+ "type": "int256"
3241
+ }
3242
+ ],
3243
+ "stateMutability": "view",
3244
+ "type": "function"
3245
+ },
3246
+ {
3247
+ "inputs": [
3248
+ {
3249
+ "internalType": "contract IGmxDataStore",
3250
+ "name": "_dataStore",
3251
+ "type": "address"
3252
+ },
3253
+ {
3254
+ "internalType": "bytes32",
3255
+ "name": "_key",
3256
+ "type": "bytes32"
3257
+ }
3258
+ ],
3259
+ "name": "getWithdrawal",
3260
+ "outputs": [
3261
+ {
3262
+ "components": [
3263
+ {
3264
+ "components": [
3265
+ {
3266
+ "internalType": "address",
3267
+ "name": "account",
3268
+ "type": "address"
3269
+ },
3270
+ {
3271
+ "internalType": "address",
3272
+ "name": "receiver",
3273
+ "type": "address"
3274
+ },
3275
+ {
3276
+ "internalType": "address",
3277
+ "name": "callbackContract",
3278
+ "type": "address"
3279
+ },
3280
+ {
3281
+ "internalType": "address",
3282
+ "name": "uiFeeReceiver",
3283
+ "type": "address"
3284
+ },
3285
+ {
3286
+ "internalType": "address",
3287
+ "name": "market",
3288
+ "type": "address"
3289
+ },
3290
+ {
3291
+ "internalType": "address[]",
3292
+ "name": "longTokenSwapPath",
3293
+ "type": "address[]"
3294
+ },
3295
+ {
3296
+ "internalType": "address[]",
3297
+ "name": "shortTokenSwapPath",
3298
+ "type": "address[]"
3299
+ }
3300
+ ],
3301
+ "internalType": "struct GmxWithdrawal.Addresses",
3302
+ "name": "addresses",
3303
+ "type": "tuple"
3304
+ },
3305
+ {
3306
+ "components": [
3307
+ {
3308
+ "internalType": "uint256",
3309
+ "name": "marketTokenAmount",
3310
+ "type": "uint256"
3311
+ },
3312
+ {
3313
+ "internalType": "uint256",
3314
+ "name": "minLongTokenAmount",
3315
+ "type": "uint256"
3316
+ },
3317
+ {
3318
+ "internalType": "uint256",
3319
+ "name": "minShortTokenAmount",
3320
+ "type": "uint256"
3321
+ },
3322
+ {
3323
+ "internalType": "uint256",
3324
+ "name": "updatedAtBlock",
3325
+ "type": "uint256"
3326
+ },
3327
+ {
3328
+ "internalType": "uint256",
3329
+ "name": "executionFee",
3330
+ "type": "uint256"
3331
+ },
3332
+ {
3333
+ "internalType": "uint256",
3334
+ "name": "callbackGasLimit",
3335
+ "type": "uint256"
3336
+ }
3337
+ ],
3338
+ "internalType": "struct GmxWithdrawal.Numbers",
3339
+ "name": "numbers",
3340
+ "type": "tuple"
3341
+ },
3342
+ {
3343
+ "components": [
3344
+ {
3345
+ "internalType": "bool",
3346
+ "name": "shouldUnwrapNativeToken",
3347
+ "type": "bool"
3348
+ }
3349
+ ],
3350
+ "internalType": "struct GmxWithdrawal.Flags",
3351
+ "name": "flags",
3352
+ "type": "tuple"
3353
+ }
3354
+ ],
3355
+ "internalType": "struct GmxWithdrawal.WithdrawalProps",
3356
+ "name": "",
3357
+ "type": "tuple"
3358
+ }
3359
+ ],
3360
+ "stateMutability": "view",
3361
+ "type": "function"
3362
+ },
3363
+ {
3364
+ "inputs": [
3365
+ {
3366
+ "internalType": "contract IGmxDataStore",
3367
+ "name": "_dataStore",
3368
+ "type": "address"
3369
+ },
3370
+ {
3371
+ "components": [
3372
+ {
3373
+ "internalType": "address",
3374
+ "name": "marketToken",
3375
+ "type": "address"
3376
+ },
3377
+ {
3378
+ "internalType": "address",
3379
+ "name": "indexToken",
3380
+ "type": "address"
3381
+ },
3382
+ {
3383
+ "internalType": "address",
3384
+ "name": "longToken",
3385
+ "type": "address"
3386
+ },
3387
+ {
3388
+ "internalType": "address",
3389
+ "name": "shortToken",
3390
+ "type": "address"
3391
+ }
3392
+ ],
3393
+ "internalType": "struct GmxMarket.MarketProps",
3394
+ "name": "_market",
3395
+ "type": "tuple"
3396
+ },
3397
+ {
3398
+ "components": [
3399
+ {
3400
+ "components": [
3401
+ {
3402
+ "internalType": "uint256",
3403
+ "name": "min",
3404
+ "type": "uint256"
3405
+ },
3406
+ {
3407
+ "internalType": "uint256",
3408
+ "name": "max",
3409
+ "type": "uint256"
3410
+ }
3411
+ ],
3412
+ "internalType": "struct GmxPrice.PriceProps",
3413
+ "name": "indexTokenPrice",
3414
+ "type": "tuple"
3415
+ },
3416
+ {
3417
+ "components": [
3418
+ {
3419
+ "internalType": "uint256",
3420
+ "name": "min",
3421
+ "type": "uint256"
3422
+ },
3423
+ {
3424
+ "internalType": "uint256",
3425
+ "name": "max",
3426
+ "type": "uint256"
3427
+ }
3428
+ ],
3429
+ "internalType": "struct GmxPrice.PriceProps",
3430
+ "name": "longTokenPrice",
3431
+ "type": "tuple"
3432
+ },
3433
+ {
3434
+ "components": [
3435
+ {
3436
+ "internalType": "uint256",
3437
+ "name": "min",
3438
+ "type": "uint256"
3439
+ },
3440
+ {
3441
+ "internalType": "uint256",
3442
+ "name": "max",
3443
+ "type": "uint256"
3444
+ }
3445
+ ],
3446
+ "internalType": "struct GmxPrice.PriceProps",
3447
+ "name": "shortTokenPrice",
3448
+ "type": "tuple"
3449
+ }
3450
+ ],
3451
+ "internalType": "struct GmxMarket.MarketPrices",
3452
+ "name": "_prices",
3453
+ "type": "tuple"
3454
+ },
3455
+ {
3456
+ "internalType": "uint256",
3457
+ "name": "_marketTokenAmount",
3458
+ "type": "uint256"
3459
+ },
3460
+ {
3461
+ "internalType": "address",
3462
+ "name": "_uiFeeReceiver",
3463
+ "type": "address"
3464
+ },
3465
+ {
3466
+ "internalType": "enum IGmxReader.SwapPricingType",
3467
+ "name": "_swapPricingType",
3468
+ "type": "uint8"
3469
+ }
3470
+ ],
3471
+ "name": "getWithdrawalAmountOut",
3472
+ "outputs": [
3473
+ {
3474
+ "internalType": "uint256",
3475
+ "name": "",
3476
+ "type": "uint256"
3477
+ },
3478
+ {
3479
+ "internalType": "uint256",
3480
+ "name": "",
3481
+ "type": "uint256"
3482
+ }
3483
+ ],
3484
+ "stateMutability": "view",
3485
+ "type": "function"
3486
+ }
3487
+ ]