@pendle/sdk-boros 0.4.33 → 0.4.35
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.
- package/dist/contracts/abis/viemAbis.d.ts +326 -126
- package/dist/contracts/abis/viemAbis.js +202 -40
- package/dist/contracts/abis/viemAbis.js.map +1 -1
- package/dist/contracts/market.d.ts +29 -18
- package/dist/entities/exchange/exchange.d.ts +521 -235
- package/dist/entities/exchange/utils.d.ts +109 -54
- package/dist/types/common.d.ts +5 -0
- package/dist/types/common.js +7 -1
- package/dist/types/common.js.map +1 -1
- package/dist/types/encoders.d.ts +4 -0
- package/dist/types/encoders.js +1 -1
- package/dist/types/encoders.js.map +1 -1
- package/package.json +1 -1
|
@@ -2285,6 +2285,8 @@ exports.iRouterAbi = [
|
|
|
2285
2285
|
{ internalType: 'bool', name: 'enterMarket', type: 'bool' },
|
|
2286
2286
|
{ internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
2287
2287
|
{ internalType: 'uint256', name: 'minLpOut', type: 'uint256' },
|
|
2288
|
+
{ internalType: 'enum Side', name: 'desiredSwapSide', type: 'uint8' },
|
|
2289
|
+
{ internalType: 'int128', name: 'desiredSwapRate', type: 'int128' },
|
|
2288
2290
|
],
|
|
2289
2291
|
internalType: 'struct IRouterEventsAndTypes.AddLiquiditySingleCashToAmmReq',
|
|
2290
2292
|
name: 'req',
|
|
@@ -2685,6 +2687,8 @@ exports.iRouterAbi = [
|
|
|
2685
2687
|
{ internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
2686
2688
|
{ internalType: 'uint256', name: 'lpToRemove', type: 'uint256' },
|
|
2687
2689
|
{ internalType: 'int256', name: 'minCashOut', type: 'int256' },
|
|
2690
|
+
{ internalType: 'enum Side', name: 'desiredSwapSide', type: 'uint8' },
|
|
2691
|
+
{ internalType: 'int128', name: 'desiredSwapRate', type: 'int128' },
|
|
2688
2692
|
],
|
|
2689
2693
|
internalType: 'struct IRouterEventsAndTypes.RemoveLiquiditySingleCashFromAmmReq',
|
|
2690
2694
|
name: 'req',
|
|
@@ -3098,8 +3102,6 @@ exports.iMarketAllEventsAndTypesAbi = [
|
|
|
3098
3102
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
3099
3103
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
3100
3104
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
3101
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
3102
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
3103
3105
|
],
|
|
3104
3106
|
name: 'MarginConfigUpdated',
|
|
3105
3107
|
type: 'event',
|
|
@@ -3197,6 +3199,15 @@ exports.iMarketAllEventsAndTypesAbi = [
|
|
|
3197
3199
|
name: 'PersonalMarginConfigUpdated',
|
|
3198
3200
|
type: 'event',
|
|
3199
3201
|
},
|
|
3202
|
+
{
|
|
3203
|
+
anonymous: false,
|
|
3204
|
+
inputs: [
|
|
3205
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
3206
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
3207
|
+
],
|
|
3208
|
+
name: 'RateBoundConfigUpdated',
|
|
3209
|
+
type: 'event',
|
|
3210
|
+
},
|
|
3200
3211
|
{
|
|
3201
3212
|
anonymous: false,
|
|
3202
3213
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -3334,8 +3345,6 @@ exports.iMarketAbi = [
|
|
|
3334
3345
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
3335
3346
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
3336
3347
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
3337
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
3338
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
3339
3348
|
],
|
|
3340
3349
|
name: 'MarginConfigUpdated',
|
|
3341
3350
|
type: 'event',
|
|
@@ -3433,6 +3442,15 @@ exports.iMarketAbi = [
|
|
|
3433
3442
|
name: 'PersonalMarginConfigUpdated',
|
|
3434
3443
|
type: 'event',
|
|
3435
3444
|
},
|
|
3445
|
+
{
|
|
3446
|
+
anonymous: false,
|
|
3447
|
+
inputs: [
|
|
3448
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
3449
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
3450
|
+
],
|
|
3451
|
+
name: 'RateBoundConfigUpdated',
|
|
3452
|
+
type: 'event',
|
|
3453
|
+
},
|
|
3436
3454
|
{
|
|
3437
3455
|
anonymous: false,
|
|
3438
3456
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -3801,8 +3819,6 @@ exports.iMarketAbi = [
|
|
|
3801
3819
|
{ internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
3802
3820
|
{ internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
3803
3821
|
{ internalType: 'uint32', name: 'newTThresh', type: 'uint32' },
|
|
3804
|
-
{ internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
3805
|
-
{ internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
3806
3822
|
],
|
|
3807
3823
|
name: 'setGlobalMarginConfig',
|
|
3808
3824
|
outputs: [],
|
|
@@ -3826,6 +3842,16 @@ exports.iMarketAbi = [
|
|
|
3826
3842
|
stateMutability: 'nonpayable',
|
|
3827
3843
|
type: 'function',
|
|
3828
3844
|
},
|
|
3845
|
+
{
|
|
3846
|
+
inputs: [
|
|
3847
|
+
{ internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
3848
|
+
{ internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
3849
|
+
],
|
|
3850
|
+
name: 'setGlobalRateBoundConfig',
|
|
3851
|
+
outputs: [],
|
|
3852
|
+
stateMutability: 'nonpayable',
|
|
3853
|
+
type: 'function',
|
|
3854
|
+
},
|
|
3829
3855
|
{
|
|
3830
3856
|
inputs: [{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
3831
3857
|
name: 'setGlobalStatus',
|
|
@@ -4018,8 +4044,6 @@ exports.iMarketOffAbi = [
|
|
|
4018
4044
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
4019
4045
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
4020
4046
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
4021
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
4022
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
4023
4047
|
],
|
|
4024
4048
|
name: 'MarginConfigUpdated',
|
|
4025
4049
|
type: 'event',
|
|
@@ -4117,6 +4141,15 @@ exports.iMarketOffAbi = [
|
|
|
4117
4141
|
name: 'PersonalMarginConfigUpdated',
|
|
4118
4142
|
type: 'event',
|
|
4119
4143
|
},
|
|
4144
|
+
{
|
|
4145
|
+
anonymous: false,
|
|
4146
|
+
inputs: [
|
|
4147
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
4148
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
4149
|
+
],
|
|
4150
|
+
name: 'RateBoundConfigUpdated',
|
|
4151
|
+
type: 'event',
|
|
4152
|
+
},
|
|
4120
4153
|
{
|
|
4121
4154
|
anonymous: false,
|
|
4122
4155
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -4678,8 +4711,6 @@ exports.iMarketOffAbi = [
|
|
|
4678
4711
|
{ internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
4679
4712
|
{ internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
4680
4713
|
{ internalType: 'uint32', name: 'newTThresh', type: 'uint32' },
|
|
4681
|
-
{ internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
4682
|
-
{ internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
4683
4714
|
],
|
|
4684
4715
|
name: 'setGlobalMarginConfig',
|
|
4685
4716
|
outputs: [],
|
|
@@ -4703,6 +4734,16 @@ exports.iMarketOffAbi = [
|
|
|
4703
4734
|
stateMutability: 'nonpayable',
|
|
4704
4735
|
type: 'function',
|
|
4705
4736
|
},
|
|
4737
|
+
{
|
|
4738
|
+
inputs: [
|
|
4739
|
+
{ internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
4740
|
+
{ internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
4741
|
+
],
|
|
4742
|
+
name: 'setGlobalRateBoundConfig',
|
|
4743
|
+
outputs: [],
|
|
4744
|
+
stateMutability: 'nonpayable',
|
|
4745
|
+
type: 'function',
|
|
4746
|
+
},
|
|
4706
4747
|
{
|
|
4707
4748
|
inputs: [{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
4708
4749
|
name: 'setGlobalStatus',
|
|
@@ -4902,8 +4943,6 @@ exports.iMarketOrderAndOtcAbi = [
|
|
|
4902
4943
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
4903
4944
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
4904
4945
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
4905
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
4906
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
4907
4946
|
],
|
|
4908
4947
|
name: 'MarginConfigUpdated',
|
|
4909
4948
|
type: 'event',
|
|
@@ -5001,6 +5040,15 @@ exports.iMarketOrderAndOtcAbi = [
|
|
|
5001
5040
|
name: 'PersonalMarginConfigUpdated',
|
|
5002
5041
|
type: 'event',
|
|
5003
5042
|
},
|
|
5043
|
+
{
|
|
5044
|
+
anonymous: false,
|
|
5045
|
+
inputs: [
|
|
5046
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5047
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5048
|
+
],
|
|
5049
|
+
name: 'RateBoundConfigUpdated',
|
|
5050
|
+
type: 'event',
|
|
5051
|
+
},
|
|
5004
5052
|
{
|
|
5005
5053
|
anonymous: false,
|
|
5006
5054
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -5207,8 +5255,6 @@ exports.iMarketSettingAbi = [
|
|
|
5207
5255
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
5208
5256
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
5209
5257
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
5210
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5211
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5212
5258
|
],
|
|
5213
5259
|
name: 'MarginConfigUpdated',
|
|
5214
5260
|
type: 'event',
|
|
@@ -5306,6 +5352,15 @@ exports.iMarketSettingAbi = [
|
|
|
5306
5352
|
name: 'PersonalMarginConfigUpdated',
|
|
5307
5353
|
type: 'event',
|
|
5308
5354
|
},
|
|
5355
|
+
{
|
|
5356
|
+
anonymous: false,
|
|
5357
|
+
inputs: [
|
|
5358
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5359
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5360
|
+
],
|
|
5361
|
+
name: 'RateBoundConfigUpdated',
|
|
5362
|
+
type: 'event',
|
|
5363
|
+
},
|
|
5309
5364
|
{
|
|
5310
5365
|
anonymous: false,
|
|
5311
5366
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -5437,8 +5492,6 @@ exports.iMarketSettingAbi = [
|
|
|
5437
5492
|
{ internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
5438
5493
|
{ internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
5439
5494
|
{ internalType: 'uint32', name: 'newTThresh', type: 'uint32' },
|
|
5440
|
-
{ internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5441
|
-
{ internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5442
5495
|
],
|
|
5443
5496
|
name: 'setGlobalMarginConfig',
|
|
5444
5497
|
outputs: [],
|
|
@@ -5462,6 +5515,16 @@ exports.iMarketSettingAbi = [
|
|
|
5462
5515
|
stateMutability: 'nonpayable',
|
|
5463
5516
|
type: 'function',
|
|
5464
5517
|
},
|
|
5518
|
+
{
|
|
5519
|
+
inputs: [
|
|
5520
|
+
{ internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5521
|
+
{ internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5522
|
+
],
|
|
5523
|
+
name: 'setGlobalRateBoundConfig',
|
|
5524
|
+
outputs: [],
|
|
5525
|
+
stateMutability: 'nonpayable',
|
|
5526
|
+
type: 'function',
|
|
5527
|
+
},
|
|
5465
5528
|
{
|
|
5466
5529
|
inputs: [{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
5467
5530
|
name: 'setGlobalStatus',
|
|
@@ -5639,8 +5702,6 @@ exports.iMarketRiskManagementAbi = [
|
|
|
5639
5702
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
5640
5703
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
5641
5704
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
5642
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5643
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5644
5705
|
],
|
|
5645
5706
|
name: 'MarginConfigUpdated',
|
|
5646
5707
|
type: 'event',
|
|
@@ -5738,6 +5799,15 @@ exports.iMarketRiskManagementAbi = [
|
|
|
5738
5799
|
name: 'PersonalMarginConfigUpdated',
|
|
5739
5800
|
type: 'event',
|
|
5740
5801
|
},
|
|
5802
|
+
{
|
|
5803
|
+
anonymous: false,
|
|
5804
|
+
inputs: [
|
|
5805
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5806
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5807
|
+
],
|
|
5808
|
+
name: 'RateBoundConfigUpdated',
|
|
5809
|
+
type: 'event',
|
|
5810
|
+
},
|
|
5741
5811
|
{
|
|
5742
5812
|
anonymous: false,
|
|
5743
5813
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -5911,8 +5981,6 @@ exports.iMarketEntryAbi = [
|
|
|
5911
5981
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
5912
5982
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
5913
5983
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
5914
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
5915
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
5916
5984
|
],
|
|
5917
5985
|
name: 'MarginConfigUpdated',
|
|
5918
5986
|
type: 'event',
|
|
@@ -6010,6 +6078,15 @@ exports.iMarketEntryAbi = [
|
|
|
6010
6078
|
name: 'PersonalMarginConfigUpdated',
|
|
6011
6079
|
type: 'event',
|
|
6012
6080
|
},
|
|
6081
|
+
{
|
|
6082
|
+
anonymous: false,
|
|
6083
|
+
inputs: [
|
|
6084
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
6085
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
6086
|
+
],
|
|
6087
|
+
name: 'RateBoundConfigUpdated',
|
|
6088
|
+
type: 'event',
|
|
6089
|
+
},
|
|
6013
6090
|
{
|
|
6014
6091
|
anonymous: false,
|
|
6015
6092
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -6295,8 +6372,6 @@ exports.iMarketOffViewOnlyAbi = [
|
|
|
6295
6372
|
{ indexed: false, internalType: 'uint64', name: 'newKIM', type: 'uint64' },
|
|
6296
6373
|
{ indexed: false, internalType: 'uint64', name: 'newKMM', type: 'uint64' },
|
|
6297
6374
|
{ indexed: false, internalType: 'uint64', name: 'newTThresh', type: 'uint64' },
|
|
6298
|
-
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
6299
|
-
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
6300
6375
|
],
|
|
6301
6376
|
name: 'MarginConfigUpdated',
|
|
6302
6377
|
type: 'event',
|
|
@@ -6394,6 +6469,15 @@ exports.iMarketOffViewOnlyAbi = [
|
|
|
6394
6469
|
name: 'PersonalMarginConfigUpdated',
|
|
6395
6470
|
type: 'event',
|
|
6396
6471
|
},
|
|
6472
|
+
{
|
|
6473
|
+
anonymous: false,
|
|
6474
|
+
inputs: [
|
|
6475
|
+
{ indexed: false, internalType: 'uint16', name: 'newMaxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
6476
|
+
{ indexed: false, internalType: 'uint16', name: 'newClosingOrderBoundBase1e4', type: 'uint16' },
|
|
6477
|
+
],
|
|
6478
|
+
name: 'RateBoundConfigUpdated',
|
|
6479
|
+
type: 'event',
|
|
6480
|
+
},
|
|
6397
6481
|
{
|
|
6398
6482
|
anonymous: false,
|
|
6399
6483
|
inputs: [{ indexed: false, internalType: 'enum IMarketAllTypes.MarketStatus', name: 'newStatus', type: 'uint8' }],
|
|
@@ -8382,6 +8466,7 @@ exports.iDeleveragerFacetAbi = [
|
|
|
8382
8466
|
name: 'inputs',
|
|
8383
8467
|
type: 'tuple[]',
|
|
8384
8468
|
},
|
|
8469
|
+
{ internalType: 'bool', name: 'allowAMM', type: 'bool' },
|
|
8385
8470
|
],
|
|
8386
8471
|
internalType: 'struct IDeleveragerFacet.DeleverageRequest',
|
|
8387
8472
|
name: 'req',
|
|
@@ -8400,6 +8485,27 @@ exports.iDeleveragerFacetAbi = [
|
|
|
8400
8485
|
stateMutability: 'view',
|
|
8401
8486
|
type: 'function',
|
|
8402
8487
|
},
|
|
8488
|
+
{
|
|
8489
|
+
inputs: [
|
|
8490
|
+
{
|
|
8491
|
+
components: [
|
|
8492
|
+
{ internalType: 'MarketAcc', name: 'lose', type: 'bytes26' },
|
|
8493
|
+
{ internalType: 'MarketId[]', name: 'marketIds', type: 'uint24[]' },
|
|
8494
|
+
{ internalType: 'MarketAcc[][]', name: 'wins', type: 'bytes26[][]' },
|
|
8495
|
+
{ internalType: 'int256', name: 'desiredHealthRatio', type: 'int256' },
|
|
8496
|
+
{ internalType: 'bool', name: 'allowAMM', type: 'bool' },
|
|
8497
|
+
{ internalType: 'bool', name: 'allowPartial', type: 'bool' },
|
|
8498
|
+
],
|
|
8499
|
+
internalType: 'struct IDeleveragerFacet.DeleverageToHealthRequest',
|
|
8500
|
+
name: 'req',
|
|
8501
|
+
type: 'tuple',
|
|
8502
|
+
},
|
|
8503
|
+
],
|
|
8504
|
+
name: 'deleverageToHealth',
|
|
8505
|
+
outputs: [],
|
|
8506
|
+
stateMutability: 'nonpayable',
|
|
8507
|
+
type: 'function',
|
|
8508
|
+
},
|
|
8403
8509
|
{
|
|
8404
8510
|
inputs: [{ internalType: 'int256', name: 'newDeleverageThresHR', type: 'int256' }],
|
|
8405
8511
|
name: 'setDeleverageThresHR',
|
|
@@ -8452,17 +8558,10 @@ exports.iLiquidationExecutorFacetAbi = [
|
|
|
8452
8558
|
exports.iOrderCancellerFacetAbi = [
|
|
8453
8559
|
{
|
|
8454
8560
|
anonymous: false,
|
|
8455
|
-
inputs: [{ indexed: false, internalType: 'int256', name: '
|
|
8456
|
-
name: '
|
|
8561
|
+
inputs: [{ indexed: false, internalType: 'int256', name: 'newHealthJumpCancelThresHR', type: 'int256' }],
|
|
8562
|
+
name: 'HealthJumpCancelThresHRSet',
|
|
8457
8563
|
type: 'event',
|
|
8458
8564
|
},
|
|
8459
|
-
{
|
|
8460
|
-
inputs: [],
|
|
8461
|
-
name: 'cancelThresHR',
|
|
8462
|
-
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
8463
|
-
stateMutability: 'view',
|
|
8464
|
-
type: 'function',
|
|
8465
|
-
},
|
|
8466
8565
|
{
|
|
8467
8566
|
inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
|
|
8468
8567
|
name: 'findHealthJumpOrders',
|
|
@@ -8495,14 +8594,41 @@ exports.iOrderCancellerFacetAbi = [
|
|
|
8495
8594
|
type: 'tuple[]',
|
|
8496
8595
|
},
|
|
8497
8596
|
],
|
|
8597
|
+
name: 'forceCancelAllHealthJump',
|
|
8598
|
+
outputs: [],
|
|
8599
|
+
stateMutability: 'nonpayable',
|
|
8600
|
+
type: 'function',
|
|
8601
|
+
},
|
|
8602
|
+
{
|
|
8603
|
+
inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
|
|
8498
8604
|
name: 'forceCancelAllRiskyUser',
|
|
8499
8605
|
outputs: [],
|
|
8500
8606
|
stateMutability: 'nonpayable',
|
|
8501
8607
|
type: 'function',
|
|
8502
8608
|
},
|
|
8503
8609
|
{
|
|
8504
|
-
inputs: [
|
|
8505
|
-
|
|
8610
|
+
inputs: [
|
|
8611
|
+
{ internalType: 'MarketId[]', name: 'marketIds', type: 'uint24[]' },
|
|
8612
|
+
{ internalType: 'uint256', name: 'maxNTicksPurgeOneSide', type: 'uint256' },
|
|
8613
|
+
],
|
|
8614
|
+
name: 'forcePurgeOobOrders',
|
|
8615
|
+
outputs: [
|
|
8616
|
+
{ internalType: 'uint256', name: 'totalTicksPurgedLong', type: 'uint256' },
|
|
8617
|
+
{ internalType: 'uint256', name: 'totalTicksPurgedShort', type: 'uint256' },
|
|
8618
|
+
],
|
|
8619
|
+
stateMutability: 'nonpayable',
|
|
8620
|
+
type: 'function',
|
|
8621
|
+
},
|
|
8622
|
+
{
|
|
8623
|
+
inputs: [],
|
|
8624
|
+
name: 'healthJumpCancelThresHR',
|
|
8625
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
8626
|
+
stateMutability: 'view',
|
|
8627
|
+
type: 'function',
|
|
8628
|
+
},
|
|
8629
|
+
{
|
|
8630
|
+
inputs: [{ internalType: 'int256', name: 'newHealthJumpCancelThresHR', type: 'int256' }],
|
|
8631
|
+
name: 'setHealthJumpCancelThresHR',
|
|
8506
8632
|
outputs: [],
|
|
8507
8633
|
stateMutability: 'nonpayable',
|
|
8508
8634
|
type: 'function',
|
|
@@ -8583,18 +8709,23 @@ exports.iWithdrawalPoliceFacetAbi = [
|
|
|
8583
8709
|
type: 'event',
|
|
8584
8710
|
},
|
|
8585
8711
|
{
|
|
8712
|
+
anonymous: false,
|
|
8586
8713
|
inputs: [
|
|
8587
|
-
{ internalType: 'address', name: 'user', type: 'address' },
|
|
8588
|
-
{ internalType: '
|
|
8714
|
+
{ indexed: false, internalType: 'address', name: 'user', type: 'address' },
|
|
8715
|
+
{ indexed: false, internalType: 'uint32', name: 'newCooldown', type: 'uint32' },
|
|
8589
8716
|
],
|
|
8590
|
-
name: '
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8717
|
+
name: 'RestrictWithdrawal',
|
|
8718
|
+
type: 'event',
|
|
8719
|
+
},
|
|
8720
|
+
{
|
|
8721
|
+
anonymous: false,
|
|
8722
|
+
inputs: [{ indexed: false, internalType: 'uint32', name: 'newRestrictedCooldown', type: 'uint32' }],
|
|
8723
|
+
name: 'RestrictedCooldownSet',
|
|
8724
|
+
type: 'event',
|
|
8594
8725
|
},
|
|
8595
8726
|
{
|
|
8596
8727
|
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
8597
|
-
name: '
|
|
8728
|
+
name: 'disallowWithdrawal',
|
|
8598
8729
|
outputs: [],
|
|
8599
8730
|
stateMutability: 'nonpayable',
|
|
8600
8731
|
type: 'function',
|
|
@@ -8606,6 +8737,13 @@ exports.iWithdrawalPoliceFacetAbi = [
|
|
|
8606
8737
|
stateMutability: 'view',
|
|
8607
8738
|
type: 'function',
|
|
8608
8739
|
},
|
|
8740
|
+
{
|
|
8741
|
+
inputs: [],
|
|
8742
|
+
name: 'getRestrictedCooldown',
|
|
8743
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
8744
|
+
stateMutability: 'view',
|
|
8745
|
+
type: 'function',
|
|
8746
|
+
},
|
|
8609
8747
|
{
|
|
8610
8748
|
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
8611
8749
|
name: 'resetPersonalCooldown',
|
|
@@ -8613,6 +8751,23 @@ exports.iWithdrawalPoliceFacetAbi = [
|
|
|
8613
8751
|
stateMutability: 'nonpayable',
|
|
8614
8752
|
type: 'function',
|
|
8615
8753
|
},
|
|
8754
|
+
{
|
|
8755
|
+
inputs: [
|
|
8756
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
8757
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8758
|
+
],
|
|
8759
|
+
name: 'restrictLargeWithdrawal',
|
|
8760
|
+
outputs: [],
|
|
8761
|
+
stateMutability: 'nonpayable',
|
|
8762
|
+
type: 'function',
|
|
8763
|
+
},
|
|
8764
|
+
{
|
|
8765
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
8766
|
+
name: 'restrictWithdrawalUnconditionally',
|
|
8767
|
+
outputs: [],
|
|
8768
|
+
stateMutability: 'nonpayable',
|
|
8769
|
+
type: 'function',
|
|
8770
|
+
},
|
|
8616
8771
|
{
|
|
8617
8772
|
inputs: [
|
|
8618
8773
|
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
@@ -8623,6 +8778,13 @@ exports.iWithdrawalPoliceFacetAbi = [
|
|
|
8623
8778
|
stateMutability: 'nonpayable',
|
|
8624
8779
|
type: 'function',
|
|
8625
8780
|
},
|
|
8781
|
+
{
|
|
8782
|
+
inputs: [{ internalType: 'uint32', name: 'newRestrictedCooldown', type: 'uint32' }],
|
|
8783
|
+
name: 'setRestrictedCooldown',
|
|
8784
|
+
outputs: [],
|
|
8785
|
+
stateMutability: 'nonpayable',
|
|
8786
|
+
type: 'function',
|
|
8787
|
+
},
|
|
8626
8788
|
];
|
|
8627
8789
|
exports.iMarkRatePusherAbi = [
|
|
8628
8790
|
{
|