@d8x/perpetuals-sdk 0.6.7 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/IPerpetualManager.json +140 -253
- package/dist/cjs/config/defaultConfig.json +12 -0
- package/dist/cjs/contracts/IPerpetualManager.d.ts +87 -153
- package/dist/cjs/contracts/factories/IPerpetualManager__factory.d.ts +121 -211
- package/dist/cjs/contracts/factories/IPerpetualManager__factory.js +140 -253
- package/dist/cjs/contracts/factories/IPerpetualManager__factory.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/abi/IPerpetualManager.json +140 -253
- package/dist/esm/config/defaultConfig.json +12 -0
- package/dist/esm/contracts/IPerpetualManager.d.ts +87 -153
- package/dist/esm/contracts/factories/IPerpetualManager__factory.d.ts +121 -211
- package/dist/esm/contracts/factories/IPerpetualManager__factory.js +140 -253
- package/dist/esm/contracts/factories/IPerpetualManager__factory.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/abi/IPerpetualManager.json +140 -253
- package/src/config/defaultConfig.json +12 -0
- package/src/contracts/IPerpetualManager.ts +72 -195
- package/src/contracts/factories/IPerpetualManager__factory.ts +140 -253
- package/src/version.ts +1 -1
|
@@ -247,12 +247,6 @@ const _abi = [
|
|
|
247
247
|
name: "iTargetPoolSizeUpdateTime",
|
|
248
248
|
type: "uint16",
|
|
249
249
|
},
|
|
250
|
-
{
|
|
251
|
-
indexed: false,
|
|
252
|
-
internalType: "int128",
|
|
253
|
-
name: "fMaxTransferPerConvergencePeriod",
|
|
254
|
-
type: "int128",
|
|
255
|
-
},
|
|
256
250
|
{
|
|
257
251
|
indexed: false,
|
|
258
252
|
internalType: "int128",
|
|
@@ -367,9 +361,9 @@ const _abi = [
|
|
|
367
361
|
},
|
|
368
362
|
{
|
|
369
363
|
indexed: false,
|
|
370
|
-
internalType: "int128[
|
|
364
|
+
internalType: "int128[12]",
|
|
371
365
|
name: "defaultFundRiskParams",
|
|
372
|
-
type: "int128[
|
|
366
|
+
type: "int128[12]",
|
|
373
367
|
},
|
|
374
368
|
{
|
|
375
369
|
indexed: false,
|
|
@@ -657,9 +651,9 @@ const _abi = [
|
|
|
657
651
|
},
|
|
658
652
|
{
|
|
659
653
|
indexed: false,
|
|
660
|
-
internalType: "int128[
|
|
654
|
+
internalType: "int128[12]",
|
|
661
655
|
name: "defaultFundRiskParams",
|
|
662
|
-
type: "int128[
|
|
656
|
+
type: "int128[12]",
|
|
663
657
|
},
|
|
664
658
|
],
|
|
665
659
|
name: "SetPerpetualRiskParameters",
|
|
@@ -958,6 +952,12 @@ const _abi = [
|
|
|
958
952
|
name: "fPnlCC",
|
|
959
953
|
type: "int128",
|
|
960
954
|
},
|
|
955
|
+
{
|
|
956
|
+
indexed: false,
|
|
957
|
+
internalType: "int128",
|
|
958
|
+
name: "fB2C",
|
|
959
|
+
type: "int128",
|
|
960
|
+
},
|
|
961
961
|
],
|
|
962
962
|
name: "Trade",
|
|
963
963
|
type: "event",
|
|
@@ -1068,31 +1068,6 @@ const _abi = [
|
|
|
1068
1068
|
name: "TransferFeeToReferrer",
|
|
1069
1069
|
type: "event",
|
|
1070
1070
|
},
|
|
1071
|
-
{
|
|
1072
|
-
anonymous: false,
|
|
1073
|
-
inputs: [
|
|
1074
|
-
{
|
|
1075
|
-
indexed: true,
|
|
1076
|
-
internalType: "uint24",
|
|
1077
|
-
name: "perpetualId",
|
|
1078
|
-
type: "uint24",
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
indexed: false,
|
|
1082
|
-
internalType: "int128",
|
|
1083
|
-
name: "fNewAMMFundCash",
|
|
1084
|
-
type: "int128",
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
indexed: false,
|
|
1088
|
-
internalType: "int128",
|
|
1089
|
-
name: "fNewLiqPoolTotalAMMFundsCash",
|
|
1090
|
-
type: "int128",
|
|
1091
|
-
},
|
|
1092
|
-
],
|
|
1093
|
-
name: "UpdateAMMFundCash",
|
|
1094
|
-
type: "event",
|
|
1095
|
-
},
|
|
1096
1071
|
{
|
|
1097
1072
|
anonymous: false,
|
|
1098
1073
|
inputs: [
|
|
@@ -1108,24 +1083,12 @@ const _abi = [
|
|
|
1108
1083
|
name: "liquidityPoolId",
|
|
1109
1084
|
type: "uint8",
|
|
1110
1085
|
},
|
|
1111
|
-
{
|
|
1112
|
-
indexed: false,
|
|
1113
|
-
internalType: "int128",
|
|
1114
|
-
name: "fAMMFundCashCCInPerpetual",
|
|
1115
|
-
type: "int128",
|
|
1116
|
-
},
|
|
1117
1086
|
{
|
|
1118
1087
|
indexed: false,
|
|
1119
1088
|
internalType: "int128",
|
|
1120
1089
|
name: "fTargetAMMFundSizeInPerpetual",
|
|
1121
1090
|
type: "int128",
|
|
1122
1091
|
},
|
|
1123
|
-
{
|
|
1124
|
-
indexed: false,
|
|
1125
|
-
internalType: "int128",
|
|
1126
|
-
name: "fAMMFundCashCCInPool",
|
|
1127
|
-
type: "int128",
|
|
1128
|
-
},
|
|
1129
1092
|
{
|
|
1130
1093
|
indexed: false,
|
|
1131
1094
|
internalType: "int128",
|
|
@@ -1404,24 +1367,6 @@ const _abi = [
|
|
|
1404
1367
|
stateMutability: "nonpayable",
|
|
1405
1368
|
type: "function",
|
|
1406
1369
|
},
|
|
1407
|
-
{
|
|
1408
|
-
inputs: [
|
|
1409
|
-
{
|
|
1410
|
-
internalType: "uint24",
|
|
1411
|
-
name: "_iPerpetualId",
|
|
1412
|
-
type: "uint24",
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
internalType: "int128",
|
|
1416
|
-
name: "_fTokenAmount",
|
|
1417
|
-
type: "int128",
|
|
1418
|
-
},
|
|
1419
|
-
],
|
|
1420
|
-
name: "addAMMLiquidityToPerpetual",
|
|
1421
|
-
outputs: [],
|
|
1422
|
-
stateMutability: "nonpayable",
|
|
1423
|
-
type: "function",
|
|
1424
|
-
},
|
|
1425
1370
|
{
|
|
1426
1371
|
inputs: [
|
|
1427
1372
|
{
|
|
@@ -1905,12 +1850,12 @@ const _abi = [
|
|
|
1905
1850
|
},
|
|
1906
1851
|
{
|
|
1907
1852
|
internalType: "int128",
|
|
1908
|
-
name: "
|
|
1853
|
+
name: "_fBrokerCollateralLotSize",
|
|
1909
1854
|
type: "int128",
|
|
1910
1855
|
},
|
|
1911
1856
|
{
|
|
1912
1857
|
internalType: "int128",
|
|
1913
|
-
name: "
|
|
1858
|
+
name: "_fCeilPnLShare",
|
|
1914
1859
|
type: "int128",
|
|
1915
1860
|
},
|
|
1916
1861
|
],
|
|
@@ -1953,9 +1898,9 @@ const _abi = [
|
|
|
1953
1898
|
type: "int128[5]",
|
|
1954
1899
|
},
|
|
1955
1900
|
{
|
|
1956
|
-
internalType: "int128[
|
|
1901
|
+
internalType: "int128[12]",
|
|
1957
1902
|
name: "_defaultFundRiskParams",
|
|
1958
|
-
type: "int128[
|
|
1903
|
+
type: "int128[12]",
|
|
1959
1904
|
},
|
|
1960
1905
|
{
|
|
1961
1906
|
internalType: "uint256",
|
|
@@ -2853,6 +2798,16 @@ const _abi = [
|
|
|
2853
2798
|
name: "id",
|
|
2854
2799
|
type: "uint8",
|
|
2855
2800
|
},
|
|
2801
|
+
{
|
|
2802
|
+
internalType: "int32",
|
|
2803
|
+
name: "fCeilPnLShare",
|
|
2804
|
+
type: "int32",
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
internalType: "uint8",
|
|
2808
|
+
name: "marginTokenDecimals",
|
|
2809
|
+
type: "uint8",
|
|
2810
|
+
},
|
|
2856
2811
|
{
|
|
2857
2812
|
internalType: "uint16",
|
|
2858
2813
|
name: "iTargetPoolSizeUpdateTime",
|
|
@@ -2863,16 +2818,6 @@ const _abi = [
|
|
|
2863
2818
|
name: "marginTokenAddress",
|
|
2864
2819
|
type: "address",
|
|
2865
2820
|
},
|
|
2866
|
-
{
|
|
2867
|
-
internalType: "int128",
|
|
2868
|
-
name: "fFundAllocationNormalizationCC",
|
|
2869
|
-
type: "int128",
|
|
2870
|
-
},
|
|
2871
|
-
{
|
|
2872
|
-
internalType: "int128",
|
|
2873
|
-
name: "fDefaultFundCashCC",
|
|
2874
|
-
type: "int128",
|
|
2875
|
-
},
|
|
2876
2821
|
{
|
|
2877
2822
|
internalType: "uint64",
|
|
2878
2823
|
name: "prevAnchor",
|
|
@@ -2893,11 +2838,6 @@ const _abi = [
|
|
|
2893
2838
|
name: "fPnLparticipantsCashCC",
|
|
2894
2839
|
type: "int128",
|
|
2895
2840
|
},
|
|
2896
|
-
{
|
|
2897
|
-
internalType: "int128",
|
|
2898
|
-
name: "fAMMFundCashCC",
|
|
2899
|
-
type: "int128",
|
|
2900
|
-
},
|
|
2901
2841
|
{
|
|
2902
2842
|
internalType: "int128",
|
|
2903
2843
|
name: "fTargetAMMFundSize",
|
|
@@ -2905,12 +2845,12 @@ const _abi = [
|
|
|
2905
2845
|
},
|
|
2906
2846
|
{
|
|
2907
2847
|
internalType: "int128",
|
|
2908
|
-
name: "
|
|
2848
|
+
name: "fDefaultFundCashCC",
|
|
2909
2849
|
type: "int128",
|
|
2910
2850
|
},
|
|
2911
2851
|
{
|
|
2912
2852
|
internalType: "int128",
|
|
2913
|
-
name: "
|
|
2853
|
+
name: "fTargetDFSize",
|
|
2914
2854
|
type: "int128",
|
|
2915
2855
|
},
|
|
2916
2856
|
{
|
|
@@ -2974,6 +2914,16 @@ const _abi = [
|
|
|
2974
2914
|
name: "id",
|
|
2975
2915
|
type: "uint8",
|
|
2976
2916
|
},
|
|
2917
|
+
{
|
|
2918
|
+
internalType: "int32",
|
|
2919
|
+
name: "fCeilPnLShare",
|
|
2920
|
+
type: "int32",
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
internalType: "uint8",
|
|
2924
|
+
name: "marginTokenDecimals",
|
|
2925
|
+
type: "uint8",
|
|
2926
|
+
},
|
|
2977
2927
|
{
|
|
2978
2928
|
internalType: "uint16",
|
|
2979
2929
|
name: "iTargetPoolSizeUpdateTime",
|
|
@@ -2984,16 +2934,6 @@ const _abi = [
|
|
|
2984
2934
|
name: "marginTokenAddress",
|
|
2985
2935
|
type: "address",
|
|
2986
2936
|
},
|
|
2987
|
-
{
|
|
2988
|
-
internalType: "int128",
|
|
2989
|
-
name: "fFundAllocationNormalizationCC",
|
|
2990
|
-
type: "int128",
|
|
2991
|
-
},
|
|
2992
|
-
{
|
|
2993
|
-
internalType: "int128",
|
|
2994
|
-
name: "fDefaultFundCashCC",
|
|
2995
|
-
type: "int128",
|
|
2996
|
-
},
|
|
2997
2937
|
{
|
|
2998
2938
|
internalType: "uint64",
|
|
2999
2939
|
name: "prevAnchor",
|
|
@@ -3014,11 +2954,6 @@ const _abi = [
|
|
|
3014
2954
|
name: "fPnLparticipantsCashCC",
|
|
3015
2955
|
type: "int128",
|
|
3016
2956
|
},
|
|
3017
|
-
{
|
|
3018
|
-
internalType: "int128",
|
|
3019
|
-
name: "fAMMFundCashCC",
|
|
3020
|
-
type: "int128",
|
|
3021
|
-
},
|
|
3022
2957
|
{
|
|
3023
2958
|
internalType: "int128",
|
|
3024
2959
|
name: "fTargetAMMFundSize",
|
|
@@ -3026,12 +2961,12 @@ const _abi = [
|
|
|
3026
2961
|
},
|
|
3027
2962
|
{
|
|
3028
2963
|
internalType: "int128",
|
|
3029
|
-
name: "
|
|
2964
|
+
name: "fDefaultFundCashCC",
|
|
3030
2965
|
type: "int128",
|
|
3031
2966
|
},
|
|
3032
2967
|
{
|
|
3033
2968
|
internalType: "int128",
|
|
3034
|
-
name: "
|
|
2969
|
+
name: "fTargetDFSize",
|
|
3035
2970
|
type: "int128",
|
|
3036
2971
|
},
|
|
3037
2972
|
{
|
|
@@ -3293,11 +3228,6 @@ const _abi = [
|
|
|
3293
3228
|
name: "iLastPriceJumpTimestamp",
|
|
3294
3229
|
type: "uint32",
|
|
3295
3230
|
},
|
|
3296
|
-
{
|
|
3297
|
-
internalType: "uint32",
|
|
3298
|
-
name: "iLastDefaultFundTransfer",
|
|
3299
|
-
type: "uint32",
|
|
3300
|
-
},
|
|
3301
3231
|
{
|
|
3302
3232
|
internalType: "int32",
|
|
3303
3233
|
name: "fMaintenanceMarginRate",
|
|
@@ -3323,16 +3253,16 @@ const _abi = [
|
|
|
3323
3253
|
name: "S2BaseCCY",
|
|
3324
3254
|
type: "bytes4",
|
|
3325
3255
|
},
|
|
3326
|
-
{
|
|
3327
|
-
internalType: "uint16",
|
|
3328
|
-
name: "incentiveSpreadTbps",
|
|
3329
|
-
type: "uint16",
|
|
3330
|
-
},
|
|
3331
3256
|
{
|
|
3332
3257
|
internalType: "bytes4",
|
|
3333
3258
|
name: "S2QuoteCCY",
|
|
3334
3259
|
type: "bytes4",
|
|
3335
3260
|
},
|
|
3261
|
+
{
|
|
3262
|
+
internalType: "uint16",
|
|
3263
|
+
name: "incentiveSpreadTbps",
|
|
3264
|
+
type: "uint16",
|
|
3265
|
+
},
|
|
3336
3266
|
{
|
|
3337
3267
|
internalType: "uint16",
|
|
3338
3268
|
name: "jumpSpreadTbps",
|
|
@@ -3343,11 +3273,6 @@ const _abi = [
|
|
|
3343
3273
|
name: "S3BaseCCY",
|
|
3344
3274
|
type: "bytes4",
|
|
3345
3275
|
},
|
|
3346
|
-
{
|
|
3347
|
-
internalType: "uint16",
|
|
3348
|
-
name: "liquidationPenaltyRateTbps",
|
|
3349
|
-
type: "uint16",
|
|
3350
|
-
},
|
|
3351
3276
|
{
|
|
3352
3277
|
internalType: "bytes4",
|
|
3353
3278
|
name: "S3QuoteCCY",
|
|
@@ -3358,6 +3283,16 @@ const _abi = [
|
|
|
3358
3283
|
name: "fSigma3",
|
|
3359
3284
|
type: "int32",
|
|
3360
3285
|
},
|
|
3286
|
+
{
|
|
3287
|
+
internalType: "int32",
|
|
3288
|
+
name: "fRho23",
|
|
3289
|
+
type: "int32",
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
internalType: "uint16",
|
|
3293
|
+
name: "liquidationPenaltyRateTbps",
|
|
3294
|
+
type: "uint16",
|
|
3295
|
+
},
|
|
3361
3296
|
{
|
|
3362
3297
|
components: [
|
|
3363
3298
|
{
|
|
@@ -3375,31 +3310,6 @@ const _abi = [
|
|
|
3375
3310
|
name: "currentMarkPremiumRate",
|
|
3376
3311
|
type: "tuple",
|
|
3377
3312
|
},
|
|
3378
|
-
{
|
|
3379
|
-
internalType: "int128[2]",
|
|
3380
|
-
name: "fStressReturnS3",
|
|
3381
|
-
type: "int128[2]",
|
|
3382
|
-
},
|
|
3383
|
-
{
|
|
3384
|
-
internalType: "int128[2]",
|
|
3385
|
-
name: "fDFLambda",
|
|
3386
|
-
type: "int128[2]",
|
|
3387
|
-
},
|
|
3388
|
-
{
|
|
3389
|
-
internalType: "int128[2]",
|
|
3390
|
-
name: "fCurrentAMMExposureEMA",
|
|
3391
|
-
type: "int128[2]",
|
|
3392
|
-
},
|
|
3393
|
-
{
|
|
3394
|
-
internalType: "int128[2]",
|
|
3395
|
-
name: "fAMMTargetDD",
|
|
3396
|
-
type: "int128[2]",
|
|
3397
|
-
},
|
|
3398
|
-
{
|
|
3399
|
-
internalType: "int128[2]",
|
|
3400
|
-
name: "fStressReturnS2",
|
|
3401
|
-
type: "int128[2]",
|
|
3402
|
-
},
|
|
3403
3313
|
{
|
|
3404
3314
|
internalType: "int128",
|
|
3405
3315
|
name: "premiumRatesEMA",
|
|
@@ -3407,12 +3317,7 @@ const _abi = [
|
|
|
3407
3317
|
},
|
|
3408
3318
|
{
|
|
3409
3319
|
internalType: "int128",
|
|
3410
|
-
name: "
|
|
3411
|
-
type: "int128",
|
|
3412
|
-
},
|
|
3413
|
-
{
|
|
3414
|
-
internalType: "int128",
|
|
3415
|
-
name: "fFundAllocationWeightCC",
|
|
3320
|
+
name: "fUnitAccumulatedFunding",
|
|
3416
3321
|
type: "int128",
|
|
3417
3322
|
},
|
|
3418
3323
|
{
|
|
@@ -3435,11 +3340,6 @@ const _abi = [
|
|
|
3435
3340
|
name: "fCurrentFundingRate",
|
|
3436
3341
|
type: "int128",
|
|
3437
3342
|
},
|
|
3438
|
-
{
|
|
3439
|
-
internalType: "int128",
|
|
3440
|
-
name: "fUnitAccumulatedFunding",
|
|
3441
|
-
type: "int128",
|
|
3442
|
-
},
|
|
3443
3343
|
{
|
|
3444
3344
|
internalType: "int128",
|
|
3445
3345
|
name: "fLotSizeBC",
|
|
@@ -3447,42 +3347,42 @@ const _abi = [
|
|
|
3447
3347
|
},
|
|
3448
3348
|
{
|
|
3449
3349
|
internalType: "int128",
|
|
3450
|
-
name: "
|
|
3350
|
+
name: "fReferralRebateCC",
|
|
3451
3351
|
type: "int128",
|
|
3452
3352
|
},
|
|
3453
3353
|
{
|
|
3454
3354
|
internalType: "int128",
|
|
3455
|
-
name: "
|
|
3355
|
+
name: "fTargetDFSize",
|
|
3456
3356
|
type: "int128",
|
|
3457
3357
|
},
|
|
3458
3358
|
{
|
|
3459
3359
|
internalType: "int128",
|
|
3460
|
-
name: "
|
|
3360
|
+
name: "fkStar",
|
|
3461
3361
|
type: "int128",
|
|
3462
3362
|
},
|
|
3463
3363
|
{
|
|
3464
3364
|
internalType: "int128",
|
|
3465
|
-
name: "
|
|
3365
|
+
name: "fAMMTargetDD",
|
|
3466
3366
|
type: "int128",
|
|
3467
3367
|
},
|
|
3468
3368
|
{
|
|
3469
3369
|
internalType: "int128",
|
|
3470
|
-
name: "
|
|
3370
|
+
name: "fAMMMinSizeCC",
|
|
3471
3371
|
type: "int128",
|
|
3472
3372
|
},
|
|
3473
3373
|
{
|
|
3474
3374
|
internalType: "int128",
|
|
3475
|
-
name: "
|
|
3375
|
+
name: "fMinimalTraderExposureEMA",
|
|
3476
3376
|
type: "int128",
|
|
3477
3377
|
},
|
|
3478
3378
|
{
|
|
3479
3379
|
internalType: "int128",
|
|
3480
|
-
name: "
|
|
3380
|
+
name: "fMinimalAMMExposureEMA",
|
|
3481
3381
|
type: "int128",
|
|
3482
3382
|
},
|
|
3483
3383
|
{
|
|
3484
3384
|
internalType: "int128",
|
|
3485
|
-
name: "
|
|
3385
|
+
name: "fSettlementS3PriceData",
|
|
3486
3386
|
type: "int128",
|
|
3487
3387
|
},
|
|
3488
3388
|
{
|
|
@@ -3491,9 +3391,9 @@ const _abi = [
|
|
|
3491
3391
|
type: "int128",
|
|
3492
3392
|
},
|
|
3493
3393
|
{
|
|
3494
|
-
internalType: "
|
|
3495
|
-
name: "
|
|
3496
|
-
type: "
|
|
3394
|
+
internalType: "int128",
|
|
3395
|
+
name: "fTotalMarginBalance",
|
|
3396
|
+
type: "int128",
|
|
3497
3397
|
},
|
|
3498
3398
|
{
|
|
3499
3399
|
internalType: "int32",
|
|
@@ -3511,15 +3411,35 @@ const _abi = [
|
|
|
3511
3411
|
type: "int32",
|
|
3512
3412
|
},
|
|
3513
3413
|
{
|
|
3514
|
-
internalType: "
|
|
3515
|
-
name: "
|
|
3516
|
-
type: "
|
|
3414
|
+
internalType: "uint32",
|
|
3415
|
+
name: "iLastTargetPoolSizeTime",
|
|
3416
|
+
type: "uint32",
|
|
3517
3417
|
},
|
|
3518
3418
|
{
|
|
3519
3419
|
internalType: "int32",
|
|
3520
3420
|
name: "fDFCoverNRate",
|
|
3521
3421
|
type: "int32",
|
|
3522
3422
|
},
|
|
3423
|
+
{
|
|
3424
|
+
internalType: "int128[2]",
|
|
3425
|
+
name: "fStressReturnS3",
|
|
3426
|
+
type: "int128[2]",
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
internalType: "int128[2]",
|
|
3430
|
+
name: "fDFLambda",
|
|
3431
|
+
type: "int128[2]",
|
|
3432
|
+
},
|
|
3433
|
+
{
|
|
3434
|
+
internalType: "int128[2]",
|
|
3435
|
+
name: "fCurrentAMMExposureEMA",
|
|
3436
|
+
type: "int128[2]",
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
internalType: "int128[2]",
|
|
3440
|
+
name: "fStressReturnS2",
|
|
3441
|
+
type: "int128[2]",
|
|
3442
|
+
},
|
|
3523
3443
|
],
|
|
3524
3444
|
internalType: "struct PerpStorage.PerpetualData",
|
|
3525
3445
|
name: "",
|
|
@@ -3710,11 +3630,6 @@ const _abi = [
|
|
|
3710
3630
|
name: "iLastPriceJumpTimestamp",
|
|
3711
3631
|
type: "uint32",
|
|
3712
3632
|
},
|
|
3713
|
-
{
|
|
3714
|
-
internalType: "uint32",
|
|
3715
|
-
name: "iLastDefaultFundTransfer",
|
|
3716
|
-
type: "uint32",
|
|
3717
|
-
},
|
|
3718
3633
|
{
|
|
3719
3634
|
internalType: "int32",
|
|
3720
3635
|
name: "fMaintenanceMarginRate",
|
|
@@ -3740,16 +3655,16 @@ const _abi = [
|
|
|
3740
3655
|
name: "S2BaseCCY",
|
|
3741
3656
|
type: "bytes4",
|
|
3742
3657
|
},
|
|
3743
|
-
{
|
|
3744
|
-
internalType: "uint16",
|
|
3745
|
-
name: "incentiveSpreadTbps",
|
|
3746
|
-
type: "uint16",
|
|
3747
|
-
},
|
|
3748
3658
|
{
|
|
3749
3659
|
internalType: "bytes4",
|
|
3750
3660
|
name: "S2QuoteCCY",
|
|
3751
3661
|
type: "bytes4",
|
|
3752
3662
|
},
|
|
3663
|
+
{
|
|
3664
|
+
internalType: "uint16",
|
|
3665
|
+
name: "incentiveSpreadTbps",
|
|
3666
|
+
type: "uint16",
|
|
3667
|
+
},
|
|
3753
3668
|
{
|
|
3754
3669
|
internalType: "uint16",
|
|
3755
3670
|
name: "jumpSpreadTbps",
|
|
@@ -3760,11 +3675,6 @@ const _abi = [
|
|
|
3760
3675
|
name: "S3BaseCCY",
|
|
3761
3676
|
type: "bytes4",
|
|
3762
3677
|
},
|
|
3763
|
-
{
|
|
3764
|
-
internalType: "uint16",
|
|
3765
|
-
name: "liquidationPenaltyRateTbps",
|
|
3766
|
-
type: "uint16",
|
|
3767
|
-
},
|
|
3768
3678
|
{
|
|
3769
3679
|
internalType: "bytes4",
|
|
3770
3680
|
name: "S3QuoteCCY",
|
|
@@ -3775,6 +3685,16 @@ const _abi = [
|
|
|
3775
3685
|
name: "fSigma3",
|
|
3776
3686
|
type: "int32",
|
|
3777
3687
|
},
|
|
3688
|
+
{
|
|
3689
|
+
internalType: "int32",
|
|
3690
|
+
name: "fRho23",
|
|
3691
|
+
type: "int32",
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
internalType: "uint16",
|
|
3695
|
+
name: "liquidationPenaltyRateTbps",
|
|
3696
|
+
type: "uint16",
|
|
3697
|
+
},
|
|
3778
3698
|
{
|
|
3779
3699
|
components: [
|
|
3780
3700
|
{
|
|
@@ -3792,31 +3712,6 @@ const _abi = [
|
|
|
3792
3712
|
name: "currentMarkPremiumRate",
|
|
3793
3713
|
type: "tuple",
|
|
3794
3714
|
},
|
|
3795
|
-
{
|
|
3796
|
-
internalType: "int128[2]",
|
|
3797
|
-
name: "fStressReturnS3",
|
|
3798
|
-
type: "int128[2]",
|
|
3799
|
-
},
|
|
3800
|
-
{
|
|
3801
|
-
internalType: "int128[2]",
|
|
3802
|
-
name: "fDFLambda",
|
|
3803
|
-
type: "int128[2]",
|
|
3804
|
-
},
|
|
3805
|
-
{
|
|
3806
|
-
internalType: "int128[2]",
|
|
3807
|
-
name: "fCurrentAMMExposureEMA",
|
|
3808
|
-
type: "int128[2]",
|
|
3809
|
-
},
|
|
3810
|
-
{
|
|
3811
|
-
internalType: "int128[2]",
|
|
3812
|
-
name: "fAMMTargetDD",
|
|
3813
|
-
type: "int128[2]",
|
|
3814
|
-
},
|
|
3815
|
-
{
|
|
3816
|
-
internalType: "int128[2]",
|
|
3817
|
-
name: "fStressReturnS2",
|
|
3818
|
-
type: "int128[2]",
|
|
3819
|
-
},
|
|
3820
3715
|
{
|
|
3821
3716
|
internalType: "int128",
|
|
3822
3717
|
name: "premiumRatesEMA",
|
|
@@ -3824,12 +3719,7 @@ const _abi = [
|
|
|
3824
3719
|
},
|
|
3825
3720
|
{
|
|
3826
3721
|
internalType: "int128",
|
|
3827
|
-
name: "
|
|
3828
|
-
type: "int128",
|
|
3829
|
-
},
|
|
3830
|
-
{
|
|
3831
|
-
internalType: "int128",
|
|
3832
|
-
name: "fFundAllocationWeightCC",
|
|
3722
|
+
name: "fUnitAccumulatedFunding",
|
|
3833
3723
|
type: "int128",
|
|
3834
3724
|
},
|
|
3835
3725
|
{
|
|
@@ -3852,11 +3742,6 @@ const _abi = [
|
|
|
3852
3742
|
name: "fCurrentFundingRate",
|
|
3853
3743
|
type: "int128",
|
|
3854
3744
|
},
|
|
3855
|
-
{
|
|
3856
|
-
internalType: "int128",
|
|
3857
|
-
name: "fUnitAccumulatedFunding",
|
|
3858
|
-
type: "int128",
|
|
3859
|
-
},
|
|
3860
3745
|
{
|
|
3861
3746
|
internalType: "int128",
|
|
3862
3747
|
name: "fLotSizeBC",
|
|
@@ -3864,42 +3749,42 @@ const _abi = [
|
|
|
3864
3749
|
},
|
|
3865
3750
|
{
|
|
3866
3751
|
internalType: "int128",
|
|
3867
|
-
name: "
|
|
3752
|
+
name: "fReferralRebateCC",
|
|
3868
3753
|
type: "int128",
|
|
3869
3754
|
},
|
|
3870
3755
|
{
|
|
3871
3756
|
internalType: "int128",
|
|
3872
|
-
name: "
|
|
3757
|
+
name: "fTargetDFSize",
|
|
3873
3758
|
type: "int128",
|
|
3874
3759
|
},
|
|
3875
3760
|
{
|
|
3876
3761
|
internalType: "int128",
|
|
3877
|
-
name: "
|
|
3762
|
+
name: "fkStar",
|
|
3878
3763
|
type: "int128",
|
|
3879
3764
|
},
|
|
3880
3765
|
{
|
|
3881
3766
|
internalType: "int128",
|
|
3882
|
-
name: "
|
|
3767
|
+
name: "fAMMTargetDD",
|
|
3883
3768
|
type: "int128",
|
|
3884
3769
|
},
|
|
3885
3770
|
{
|
|
3886
3771
|
internalType: "int128",
|
|
3887
|
-
name: "
|
|
3772
|
+
name: "fAMMMinSizeCC",
|
|
3888
3773
|
type: "int128",
|
|
3889
3774
|
},
|
|
3890
3775
|
{
|
|
3891
3776
|
internalType: "int128",
|
|
3892
|
-
name: "
|
|
3777
|
+
name: "fMinimalTraderExposureEMA",
|
|
3893
3778
|
type: "int128",
|
|
3894
3779
|
},
|
|
3895
3780
|
{
|
|
3896
3781
|
internalType: "int128",
|
|
3897
|
-
name: "
|
|
3782
|
+
name: "fMinimalAMMExposureEMA",
|
|
3898
3783
|
type: "int128",
|
|
3899
3784
|
},
|
|
3900
3785
|
{
|
|
3901
3786
|
internalType: "int128",
|
|
3902
|
-
name: "
|
|
3787
|
+
name: "fSettlementS3PriceData",
|
|
3903
3788
|
type: "int128",
|
|
3904
3789
|
},
|
|
3905
3790
|
{
|
|
@@ -3908,9 +3793,9 @@ const _abi = [
|
|
|
3908
3793
|
type: "int128",
|
|
3909
3794
|
},
|
|
3910
3795
|
{
|
|
3911
|
-
internalType: "
|
|
3912
|
-
name: "
|
|
3913
|
-
type: "
|
|
3796
|
+
internalType: "int128",
|
|
3797
|
+
name: "fTotalMarginBalance",
|
|
3798
|
+
type: "int128",
|
|
3914
3799
|
},
|
|
3915
3800
|
{
|
|
3916
3801
|
internalType: "int32",
|
|
@@ -3928,15 +3813,35 @@ const _abi = [
|
|
|
3928
3813
|
type: "int32",
|
|
3929
3814
|
},
|
|
3930
3815
|
{
|
|
3931
|
-
internalType: "
|
|
3932
|
-
name: "
|
|
3933
|
-
type: "
|
|
3816
|
+
internalType: "uint32",
|
|
3817
|
+
name: "iLastTargetPoolSizeTime",
|
|
3818
|
+
type: "uint32",
|
|
3934
3819
|
},
|
|
3935
3820
|
{
|
|
3936
3821
|
internalType: "int32",
|
|
3937
3822
|
name: "fDFCoverNRate",
|
|
3938
3823
|
type: "int32",
|
|
3939
3824
|
},
|
|
3825
|
+
{
|
|
3826
|
+
internalType: "int128[2]",
|
|
3827
|
+
name: "fStressReturnS3",
|
|
3828
|
+
type: "int128[2]",
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
internalType: "int128[2]",
|
|
3832
|
+
name: "fDFLambda",
|
|
3833
|
+
type: "int128[2]",
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
internalType: "int128[2]",
|
|
3837
|
+
name: "fCurrentAMMExposureEMA",
|
|
3838
|
+
type: "int128[2]",
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
internalType: "int128[2]",
|
|
3842
|
+
name: "fStressReturnS2",
|
|
3843
|
+
type: "int128[2]",
|
|
3844
|
+
},
|
|
3940
3845
|
],
|
|
3941
3846
|
internalType: "struct PerpStorage.PerpetualData[]",
|
|
3942
3847
|
name: "",
|
|
@@ -5055,19 +4960,6 @@ const _abi = [
|
|
|
5055
4960
|
stateMutability: "nonpayable",
|
|
5056
4961
|
type: "function",
|
|
5057
4962
|
},
|
|
5058
|
-
{
|
|
5059
|
-
inputs: [
|
|
5060
|
-
{
|
|
5061
|
-
internalType: "uint24",
|
|
5062
|
-
name: "_iPerpetualId",
|
|
5063
|
-
type: "uint24",
|
|
5064
|
-
},
|
|
5065
|
-
],
|
|
5066
|
-
name: "setInitialFundAllocationWeight",
|
|
5067
|
-
outputs: [],
|
|
5068
|
-
stateMutability: "nonpayable",
|
|
5069
|
-
type: "function",
|
|
5070
|
-
},
|
|
5071
4963
|
{
|
|
5072
4964
|
inputs: [
|
|
5073
4965
|
{
|
|
@@ -5266,9 +5158,9 @@ const _abi = [
|
|
|
5266
5158
|
type: "int128[5]",
|
|
5267
5159
|
},
|
|
5268
5160
|
{
|
|
5269
|
-
internalType: "int128[
|
|
5161
|
+
internalType: "int128[12]",
|
|
5270
5162
|
name: "_defaultFundRiskParams",
|
|
5271
|
-
type: "int128[
|
|
5163
|
+
type: "int128[12]",
|
|
5272
5164
|
},
|
|
5273
5165
|
],
|
|
5274
5166
|
name: "setPerpetualRiskParams",
|
|
@@ -5605,11 +5497,6 @@ const _abi = [
|
|
|
5605
5497
|
name: "_iPerpetualId",
|
|
5606
5498
|
type: "uint24",
|
|
5607
5499
|
},
|
|
5608
|
-
{
|
|
5609
|
-
internalType: "int128",
|
|
5610
|
-
name: "fTargetFundSize",
|
|
5611
|
-
type: "int128",
|
|
5612
|
-
},
|
|
5613
5500
|
],
|
|
5614
5501
|
name: "updateAMMTargetFundSize",
|
|
5615
5502
|
outputs: [],
|