@d8x/perpetuals-sdk 0.1.13 → 0.2.1
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/testnet/IPerpetualManager.json +414 -224
- package/dist/cjs/abi/testnet/LimitOrderBook.json +200 -18
- package/dist/cjs/abi/zkevmTestnet/IPerpetualManager.json +5215 -0
- package/dist/cjs/abi/zkevmTestnet/LimitOrderBook.json +1075 -0
- package/dist/cjs/abi/zkevmTestnet/LimitOrderBookFactory.json +135 -0
- package/dist/cjs/config/defaultConfig.json +7 -7
- package/dist/cjs/nodeSDKTypes.d.ts +4 -4
- package/dist/cjs/nodeSDKTypes.js.map +1 -1
- package/dist/cjs/orderReferrerTool.d.ts +12 -5
- package/dist/cjs/orderReferrerTool.js +96 -22
- package/dist/cjs/orderReferrerTool.js.map +1 -1
- package/dist/cjs/perpetualDataHandler.d.ts +1 -1
- package/dist/cjs/perpetualDataHandler.js +17 -13
- package/dist/cjs/perpetualDataHandler.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/writeAccessHandler.js +1 -1
- package/dist/cjs/writeAccessHandler.js.map +1 -1
- package/dist/esm/abi/testnet/IPerpetualManager.json +414 -224
- package/dist/esm/abi/testnet/LimitOrderBook.json +200 -18
- package/dist/esm/abi/zkevmTestnet/IPerpetualManager.json +5215 -0
- package/dist/esm/abi/zkevmTestnet/LimitOrderBook.json +1075 -0
- package/dist/esm/abi/zkevmTestnet/LimitOrderBookFactory.json +135 -0
- package/dist/esm/config/defaultConfig.json +7 -7
- package/dist/esm/nodeSDKTypes.d.ts +4 -4
- package/dist/esm/nodeSDKTypes.js.map +1 -1
- package/dist/esm/orderReferrerTool.d.ts +12 -5
- package/dist/esm/orderReferrerTool.js +97 -23
- package/dist/esm/orderReferrerTool.js.map +1 -1
- package/dist/esm/perpetualDataHandler.d.ts +1 -1
- package/dist/esm/perpetualDataHandler.js +17 -13
- package/dist/esm/perpetualDataHandler.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/writeAccessHandler.js +1 -1
- package/dist/esm/writeAccessHandler.js.map +1 -1
- package/package.json +1 -2
|
@@ -161,6 +161,18 @@
|
|
|
161
161
|
"internalType": "int128",
|
|
162
162
|
"name": "newPositionSizeBC",
|
|
163
163
|
"type": "int128"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"indexed": false,
|
|
167
|
+
"internalType": "int128",
|
|
168
|
+
"name": "fFeeCC",
|
|
169
|
+
"type": "int128"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"indexed": false,
|
|
173
|
+
"internalType": "int128",
|
|
174
|
+
"name": "fPnlCC",
|
|
175
|
+
"type": "int128"
|
|
164
176
|
}
|
|
165
177
|
],
|
|
166
178
|
"name": "Liquidate",
|
|
@@ -224,12 +236,6 @@
|
|
|
224
236
|
"name": "iTargetPoolSizeUpdateTime",
|
|
225
237
|
"type": "uint16"
|
|
226
238
|
},
|
|
227
|
-
{
|
|
228
|
-
"indexed": false,
|
|
229
|
-
"internalType": "uint16",
|
|
230
|
-
"name": "iFundTransferConvergenceHours",
|
|
231
|
-
"type": "uint16"
|
|
232
|
-
},
|
|
233
239
|
{
|
|
234
240
|
"indexed": false,
|
|
235
241
|
"internalType": "int128",
|
|
@@ -277,6 +283,31 @@
|
|
|
277
283
|
"name": "LiquidityRemoved",
|
|
278
284
|
"type": "event"
|
|
279
285
|
},
|
|
286
|
+
{
|
|
287
|
+
"anonymous": false,
|
|
288
|
+
"inputs": [
|
|
289
|
+
{
|
|
290
|
+
"indexed": true,
|
|
291
|
+
"internalType": "uint64",
|
|
292
|
+
"name": "poolId",
|
|
293
|
+
"type": "uint64"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"indexed": true,
|
|
297
|
+
"internalType": "address",
|
|
298
|
+
"name": "user",
|
|
299
|
+
"type": "address"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"indexed": false,
|
|
303
|
+
"internalType": "uint256",
|
|
304
|
+
"name": "shareAmount",
|
|
305
|
+
"type": "uint256"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"name": "LiquidityWithdrawalInitiated",
|
|
309
|
+
"type": "event"
|
|
310
|
+
},
|
|
280
311
|
{
|
|
281
312
|
"anonymous": false,
|
|
282
313
|
"inputs": [
|
|
@@ -323,6 +354,12 @@
|
|
|
323
354
|
{
|
|
324
355
|
"anonymous": false,
|
|
325
356
|
"inputs": [
|
|
357
|
+
{
|
|
358
|
+
"indexed": true,
|
|
359
|
+
"internalType": "uint24",
|
|
360
|
+
"name": "perpetualId",
|
|
361
|
+
"type": "uint24"
|
|
362
|
+
},
|
|
326
363
|
{
|
|
327
364
|
"indexed": true,
|
|
328
365
|
"internalType": "bytes32",
|
|
@@ -358,37 +395,6 @@
|
|
|
358
395
|
"name": "PricingLiquidityUpdated",
|
|
359
396
|
"type": "event"
|
|
360
397
|
},
|
|
361
|
-
{
|
|
362
|
-
"anonymous": false,
|
|
363
|
-
"inputs": [
|
|
364
|
-
{
|
|
365
|
-
"indexed": true,
|
|
366
|
-
"internalType": "uint24",
|
|
367
|
-
"name": "perpetualId",
|
|
368
|
-
"type": "uint24"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"indexed": true,
|
|
372
|
-
"internalType": "address",
|
|
373
|
-
"name": "trader",
|
|
374
|
-
"type": "address"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"indexed": true,
|
|
378
|
-
"internalType": "bytes16",
|
|
379
|
-
"name": "positionId",
|
|
380
|
-
"type": "bytes16"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"indexed": false,
|
|
384
|
-
"internalType": "int128",
|
|
385
|
-
"name": "pnlCC",
|
|
386
|
-
"type": "int128"
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
"name": "RealizedPnL",
|
|
390
|
-
"type": "event"
|
|
391
|
-
},
|
|
392
398
|
{
|
|
393
399
|
"anonymous": false,
|
|
394
400
|
"inputs": [
|
|
@@ -895,7 +901,7 @@
|
|
|
895
901
|
},
|
|
896
902
|
{
|
|
897
903
|
"internalType": "uint64",
|
|
898
|
-
"name": "
|
|
904
|
+
"name": "submittedTimestamp",
|
|
899
905
|
"type": "uint64"
|
|
900
906
|
}
|
|
901
907
|
],
|
|
@@ -921,6 +927,18 @@
|
|
|
921
927
|
"internalType": "int128",
|
|
922
928
|
"name": "price",
|
|
923
929
|
"type": "int128"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"indexed": false,
|
|
933
|
+
"internalType": "int128",
|
|
934
|
+
"name": "fFeeCC",
|
|
935
|
+
"type": "int128"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"indexed": false,
|
|
939
|
+
"internalType": "int128",
|
|
940
|
+
"name": "fPnlCC",
|
|
941
|
+
"type": "int128"
|
|
924
942
|
}
|
|
925
943
|
],
|
|
926
944
|
"name": "Trade",
|
|
@@ -1175,6 +1193,31 @@
|
|
|
1175
1193
|
"name": "UpdateDefaultFundTargetSize",
|
|
1176
1194
|
"type": "event"
|
|
1177
1195
|
},
|
|
1196
|
+
{
|
|
1197
|
+
"anonymous": false,
|
|
1198
|
+
"inputs": [
|
|
1199
|
+
{
|
|
1200
|
+
"indexed": false,
|
|
1201
|
+
"internalType": "uint8",
|
|
1202
|
+
"name": "poolId",
|
|
1203
|
+
"type": "uint8"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"indexed": true,
|
|
1207
|
+
"internalType": "uint24",
|
|
1208
|
+
"name": "perpetualId",
|
|
1209
|
+
"type": "uint24"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"indexed": false,
|
|
1213
|
+
"internalType": "int128",
|
|
1214
|
+
"name": "fNormalizedPerpetualWeight",
|
|
1215
|
+
"type": "int128"
|
|
1216
|
+
}
|
|
1217
|
+
],
|
|
1218
|
+
"name": "UpdateFundAllocationWeight",
|
|
1219
|
+
"type": "event"
|
|
1220
|
+
},
|
|
1178
1221
|
{
|
|
1179
1222
|
"anonymous": false,
|
|
1180
1223
|
"inputs": [
|
|
@@ -1794,7 +1837,7 @@
|
|
|
1794
1837
|
},
|
|
1795
1838
|
{
|
|
1796
1839
|
"internalType": "uint64",
|
|
1797
|
-
"name": "
|
|
1840
|
+
"name": "submittedTimestamp",
|
|
1798
1841
|
"type": "uint64"
|
|
1799
1842
|
}
|
|
1800
1843
|
],
|
|
@@ -1844,11 +1887,6 @@
|
|
|
1844
1887
|
"name": "_iTargetPoolSizeUpdateTime",
|
|
1845
1888
|
"type": "uint16"
|
|
1846
1889
|
},
|
|
1847
|
-
{
|
|
1848
|
-
"internalType": "uint16",
|
|
1849
|
-
"name": "_iFundTransferConvergenceHours",
|
|
1850
|
-
"type": "uint16"
|
|
1851
|
-
},
|
|
1852
1890
|
{
|
|
1853
1891
|
"internalType": "int128",
|
|
1854
1892
|
"name": "_fMaxTransferPerConvergencePeriod",
|
|
@@ -1943,11 +1981,21 @@
|
|
|
1943
1981
|
"internalType": "int128",
|
|
1944
1982
|
"name": "_fAmount",
|
|
1945
1983
|
"type": "int128"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"internalType": "bytes[]",
|
|
1987
|
+
"name": "_updateData",
|
|
1988
|
+
"type": "bytes[]"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"internalType": "uint64[]",
|
|
1992
|
+
"name": "_publishTimes",
|
|
1993
|
+
"type": "uint64[]"
|
|
1946
1994
|
}
|
|
1947
1995
|
],
|
|
1948
1996
|
"name": "deposit",
|
|
1949
1997
|
"outputs": [],
|
|
1950
|
-
"stateMutability": "
|
|
1998
|
+
"stateMutability": "payable",
|
|
1951
1999
|
"type": "function"
|
|
1952
2000
|
},
|
|
1953
2001
|
{
|
|
@@ -2031,7 +2079,7 @@
|
|
|
2031
2079
|
},
|
|
2032
2080
|
{
|
|
2033
2081
|
"internalType": "uint64",
|
|
2034
|
-
"name": "
|
|
2082
|
+
"name": "submittedTimestamp",
|
|
2035
2083
|
"type": "uint64"
|
|
2036
2084
|
}
|
|
2037
2085
|
],
|
|
@@ -2140,7 +2188,7 @@
|
|
|
2140
2188
|
},
|
|
2141
2189
|
{
|
|
2142
2190
|
"internalType": "uint64",
|
|
2143
|
-
"name": "
|
|
2191
|
+
"name": "submittedTimestamp",
|
|
2144
2192
|
"type": "uint64"
|
|
2145
2193
|
}
|
|
2146
2194
|
],
|
|
@@ -2231,7 +2279,7 @@
|
|
|
2231
2279
|
},
|
|
2232
2280
|
{
|
|
2233
2281
|
"internalType": "uint64",
|
|
2234
|
-
"name": "
|
|
2282
|
+
"name": "submittedTimestamp",
|
|
2235
2283
|
"type": "uint64"
|
|
2236
2284
|
}
|
|
2237
2285
|
],
|
|
@@ -2332,6 +2380,19 @@
|
|
|
2332
2380
|
"stateMutability": "nonpayable",
|
|
2333
2381
|
"type": "function"
|
|
2334
2382
|
},
|
|
2383
|
+
{
|
|
2384
|
+
"inputs": [
|
|
2385
|
+
{
|
|
2386
|
+
"internalType": "uint8",
|
|
2387
|
+
"name": "_poolId",
|
|
2388
|
+
"type": "uint8"
|
|
2389
|
+
}
|
|
2390
|
+
],
|
|
2391
|
+
"name": "executeLiquidityWithdrawal",
|
|
2392
|
+
"outputs": [],
|
|
2393
|
+
"stateMutability": "nonpayable",
|
|
2394
|
+
"type": "function"
|
|
2395
|
+
},
|
|
2335
2396
|
{
|
|
2336
2397
|
"inputs": [
|
|
2337
2398
|
{
|
|
@@ -2395,6 +2456,11 @@
|
|
|
2395
2456
|
"internalType": "uint24",
|
|
2396
2457
|
"name": "_perpetualId",
|
|
2397
2458
|
"type": "uint24"
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
"internalType": "int128[2]",
|
|
2462
|
+
"name": "_fIndexPrice",
|
|
2463
|
+
"type": "int128[2]"
|
|
2398
2464
|
}
|
|
2399
2465
|
],
|
|
2400
2466
|
"name": "getAMMState",
|
|
@@ -2504,6 +2570,25 @@
|
|
|
2504
2570
|
"stateMutability": "view",
|
|
2505
2571
|
"type": "function"
|
|
2506
2572
|
},
|
|
2573
|
+
{
|
|
2574
|
+
"inputs": [
|
|
2575
|
+
{
|
|
2576
|
+
"internalType": "uint8",
|
|
2577
|
+
"name": "_poolId",
|
|
2578
|
+
"type": "uint8"
|
|
2579
|
+
}
|
|
2580
|
+
],
|
|
2581
|
+
"name": "getCollateralTokenAmountForPricing",
|
|
2582
|
+
"outputs": [
|
|
2583
|
+
{
|
|
2584
|
+
"internalType": "int128",
|
|
2585
|
+
"name": "",
|
|
2586
|
+
"type": "int128"
|
|
2587
|
+
}
|
|
2588
|
+
],
|
|
2589
|
+
"stateMutability": "view",
|
|
2590
|
+
"type": "function"
|
|
2591
|
+
},
|
|
2507
2592
|
{
|
|
2508
2593
|
"inputs": [
|
|
2509
2594
|
{
|
|
@@ -2742,11 +2827,6 @@
|
|
|
2742
2827
|
"name": "isRunning",
|
|
2743
2828
|
"type": "bool"
|
|
2744
2829
|
},
|
|
2745
|
-
{
|
|
2746
|
-
"internalType": "uint8",
|
|
2747
|
-
"name": "id",
|
|
2748
|
-
"type": "uint8"
|
|
2749
|
-
},
|
|
2750
2830
|
{
|
|
2751
2831
|
"internalType": "uint8",
|
|
2752
2832
|
"name": "iPerpetualCount",
|
|
@@ -2754,7 +2834,7 @@
|
|
|
2754
2834
|
},
|
|
2755
2835
|
{
|
|
2756
2836
|
"internalType": "uint8",
|
|
2757
|
-
"name": "
|
|
2837
|
+
"name": "id",
|
|
2758
2838
|
"type": "uint8"
|
|
2759
2839
|
},
|
|
2760
2840
|
{
|
|
@@ -2762,16 +2842,31 @@
|
|
|
2762
2842
|
"name": "iTargetPoolSizeUpdateTime",
|
|
2763
2843
|
"type": "uint16"
|
|
2764
2844
|
},
|
|
2765
|
-
{
|
|
2766
|
-
"internalType": "uint16",
|
|
2767
|
-
"name": "iFundTransferConvergenceHours",
|
|
2768
|
-
"type": "uint16"
|
|
2769
|
-
},
|
|
2770
2845
|
{
|
|
2771
2846
|
"internalType": "address",
|
|
2772
2847
|
"name": "marginTokenAddress",
|
|
2773
2848
|
"type": "address"
|
|
2774
2849
|
},
|
|
2850
|
+
{
|
|
2851
|
+
"internalType": "int128",
|
|
2852
|
+
"name": "fFundAllocationNormalizationCC",
|
|
2853
|
+
"type": "int128"
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
"internalType": "int128",
|
|
2857
|
+
"name": "fDefaultFundCashCC",
|
|
2858
|
+
"type": "int128"
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"internalType": "uint64",
|
|
2862
|
+
"name": "prevAnchor",
|
|
2863
|
+
"type": "uint64"
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
"internalType": "int32",
|
|
2867
|
+
"name": "fRedemptionRate",
|
|
2868
|
+
"type": "int32"
|
|
2869
|
+
},
|
|
2775
2870
|
{
|
|
2776
2871
|
"internalType": "address",
|
|
2777
2872
|
"name": "shareTokenAddress",
|
|
@@ -2787,11 +2882,6 @@
|
|
|
2787
2882
|
"name": "fAMMFundCashCC",
|
|
2788
2883
|
"type": "int128"
|
|
2789
2884
|
},
|
|
2790
|
-
{
|
|
2791
|
-
"internalType": "int128",
|
|
2792
|
-
"name": "fDefaultFundCashCC",
|
|
2793
|
-
"type": "int128"
|
|
2794
|
-
},
|
|
2795
2885
|
{
|
|
2796
2886
|
"internalType": "int128",
|
|
2797
2887
|
"name": "fTargetAMMFundSize",
|
|
@@ -2802,21 +2892,6 @@
|
|
|
2802
2892
|
"name": "fTargetDFSize",
|
|
2803
2893
|
"type": "int128"
|
|
2804
2894
|
},
|
|
2805
|
-
{
|
|
2806
|
-
"internalType": "int32",
|
|
2807
|
-
"name": "fRedemptionRate",
|
|
2808
|
-
"type": "int32"
|
|
2809
|
-
},
|
|
2810
|
-
{
|
|
2811
|
-
"internalType": "int32",
|
|
2812
|
-
"name": "fPricingCashRatio",
|
|
2813
|
-
"type": "int32"
|
|
2814
|
-
},
|
|
2815
|
-
{
|
|
2816
|
-
"internalType": "uint64",
|
|
2817
|
-
"name": "iLastPricingCashUpdate",
|
|
2818
|
-
"type": "uint64"
|
|
2819
|
-
},
|
|
2820
2895
|
{
|
|
2821
2896
|
"internalType": "int128",
|
|
2822
2897
|
"name": "fMaxTransferPerConvergencePeriod",
|
|
@@ -2826,6 +2901,21 @@
|
|
|
2826
2901
|
"internalType": "int128",
|
|
2827
2902
|
"name": "fBrokerCollateralLotSize",
|
|
2828
2903
|
"type": "int128"
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
"internalType": "uint128",
|
|
2907
|
+
"name": "prevTokenAmount",
|
|
2908
|
+
"type": "uint128"
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"internalType": "uint128",
|
|
2912
|
+
"name": "nextTokenAmount",
|
|
2913
|
+
"type": "uint128"
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"internalType": "uint128",
|
|
2917
|
+
"name": "totalSupplyShareToken",
|
|
2918
|
+
"type": "uint128"
|
|
2829
2919
|
}
|
|
2830
2920
|
],
|
|
2831
2921
|
"internalType": "struct PerpStorage.LiquidityPoolData",
|
|
@@ -2875,7 +2965,7 @@
|
|
|
2875
2965
|
},
|
|
2876
2966
|
{
|
|
2877
2967
|
"internalType": "uint64",
|
|
2878
|
-
"name": "
|
|
2968
|
+
"name": "iLastOpenTimestamp",
|
|
2879
2969
|
"type": "uint64"
|
|
2880
2970
|
},
|
|
2881
2971
|
{
|
|
@@ -2915,12 +3005,12 @@
|
|
|
2915
3005
|
"type": "int128"
|
|
2916
3006
|
},
|
|
2917
3007
|
{
|
|
2918
|
-
"internalType": "
|
|
2919
|
-
"name": "
|
|
2920
|
-
"type": "
|
|
3008
|
+
"internalType": "bool",
|
|
3009
|
+
"name": "_isBuy",
|
|
3010
|
+
"type": "bool"
|
|
2921
3011
|
}
|
|
2922
3012
|
],
|
|
2923
|
-
"name": "
|
|
3013
|
+
"name": "getMaxSignedOpenTradeSizeForPos",
|
|
2924
3014
|
"outputs": [
|
|
2925
3015
|
{
|
|
2926
3016
|
"internalType": "int128",
|
|
@@ -3019,7 +3109,12 @@
|
|
|
3019
3109
|
},
|
|
3020
3110
|
{
|
|
3021
3111
|
"internalType": "int32",
|
|
3022
|
-
"name": "
|
|
3112
|
+
"name": "fInitialMarginRate",
|
|
3113
|
+
"type": "int32"
|
|
3114
|
+
},
|
|
3115
|
+
{
|
|
3116
|
+
"internalType": "int32",
|
|
3117
|
+
"name": "fMaintenanceMarginRate",
|
|
3023
3118
|
"type": "int32"
|
|
3024
3119
|
},
|
|
3025
3120
|
{
|
|
@@ -3034,9 +3129,44 @@
|
|
|
3034
3129
|
},
|
|
3035
3130
|
{
|
|
3036
3131
|
"internalType": "uint64",
|
|
3037
|
-
"name": "
|
|
3132
|
+
"name": "iLastSettlementPriceUpdateTimestamp",
|
|
3038
3133
|
"type": "uint64"
|
|
3039
3134
|
},
|
|
3135
|
+
{
|
|
3136
|
+
"internalType": "enum PerpStorage.PerpetualState",
|
|
3137
|
+
"name": "state",
|
|
3138
|
+
"type": "uint8"
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
"internalType": "enum AMMPerpLogic.CollateralCurrency",
|
|
3142
|
+
"name": "eCollateralCurrency",
|
|
3143
|
+
"type": "uint8"
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
"internalType": "uint16",
|
|
3147
|
+
"name": "minimalSpreadTbps",
|
|
3148
|
+
"type": "uint16"
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
"internalType": "uint16",
|
|
3152
|
+
"name": "incentiveSpreadTbps",
|
|
3153
|
+
"type": "uint16"
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
"internalType": "uint16",
|
|
3157
|
+
"name": "jumpSpreadTbps",
|
|
3158
|
+
"type": "uint16"
|
|
3159
|
+
},
|
|
3160
|
+
{
|
|
3161
|
+
"internalType": "uint16",
|
|
3162
|
+
"name": "liquidationPenaltyRateTbps",
|
|
3163
|
+
"type": "uint16"
|
|
3164
|
+
},
|
|
3165
|
+
{
|
|
3166
|
+
"internalType": "int32",
|
|
3167
|
+
"name": "fSigma3",
|
|
3168
|
+
"type": "int32"
|
|
3169
|
+
},
|
|
3040
3170
|
{
|
|
3041
3171
|
"internalType": "bytes4",
|
|
3042
3172
|
"name": "S2BaseCCY",
|
|
@@ -3058,38 +3188,45 @@
|
|
|
3058
3188
|
"type": "bytes4"
|
|
3059
3189
|
},
|
|
3060
3190
|
{
|
|
3061
|
-
"
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3191
|
+
"components": [
|
|
3192
|
+
{
|
|
3193
|
+
"internalType": "int128",
|
|
3194
|
+
"name": "fPrice",
|
|
3195
|
+
"type": "int128"
|
|
3196
|
+
},
|
|
3197
|
+
{
|
|
3198
|
+
"internalType": "uint64",
|
|
3199
|
+
"name": "time",
|
|
3200
|
+
"type": "uint64"
|
|
3201
|
+
}
|
|
3202
|
+
],
|
|
3203
|
+
"internalType": "struct PerpStorage.OraclePriceData",
|
|
3204
|
+
"name": "currentMarkPremiumRate",
|
|
3205
|
+
"type": "tuple"
|
|
3206
|
+
},
|
|
3070
3207
|
{
|
|
3071
3208
|
"internalType": "int128[2]",
|
|
3072
|
-
"name": "
|
|
3209
|
+
"name": "fDFLambda",
|
|
3073
3210
|
"type": "int128[2]"
|
|
3074
3211
|
},
|
|
3075
3212
|
{
|
|
3076
3213
|
"internalType": "int128[2]",
|
|
3077
|
-
"name": "
|
|
3214
|
+
"name": "fCurrentAMMExposureEMA",
|
|
3078
3215
|
"type": "int128[2]"
|
|
3079
3216
|
},
|
|
3080
3217
|
{
|
|
3081
3218
|
"internalType": "int128[2]",
|
|
3082
|
-
"name": "
|
|
3219
|
+
"name": "fAMMTargetDD",
|
|
3083
3220
|
"type": "int128[2]"
|
|
3084
3221
|
},
|
|
3085
3222
|
{
|
|
3086
3223
|
"internalType": "int128[2]",
|
|
3087
|
-
"name": "
|
|
3224
|
+
"name": "fStressReturnS2",
|
|
3088
3225
|
"type": "int128[2]"
|
|
3089
3226
|
},
|
|
3090
3227
|
{
|
|
3091
3228
|
"internalType": "int128[2]",
|
|
3092
|
-
"name": "
|
|
3229
|
+
"name": "fStressReturnS3",
|
|
3093
3230
|
"type": "int128[2]"
|
|
3094
3231
|
},
|
|
3095
3232
|
{
|
|
@@ -3099,37 +3236,37 @@
|
|
|
3099
3236
|
},
|
|
3100
3237
|
{
|
|
3101
3238
|
"internalType": "int128",
|
|
3102
|
-
"name": "
|
|
3239
|
+
"name": "fTargetDFSize",
|
|
3103
3240
|
"type": "int128"
|
|
3104
3241
|
},
|
|
3105
3242
|
{
|
|
3106
3243
|
"internalType": "int128",
|
|
3107
|
-
"name": "
|
|
3244
|
+
"name": "fFundAllocationWeightCC",
|
|
3108
3245
|
"type": "int128"
|
|
3109
3246
|
},
|
|
3110
3247
|
{
|
|
3111
3248
|
"internalType": "int128",
|
|
3112
|
-
"name": "
|
|
3249
|
+
"name": "fOpenInterest",
|
|
3113
3250
|
"type": "int128"
|
|
3114
3251
|
},
|
|
3115
3252
|
{
|
|
3116
3253
|
"internalType": "int128",
|
|
3117
|
-
"name": "
|
|
3254
|
+
"name": "fTargetAMMFundSize",
|
|
3118
3255
|
"type": "int128"
|
|
3119
3256
|
},
|
|
3120
3257
|
{
|
|
3121
3258
|
"internalType": "int128",
|
|
3122
|
-
"name": "
|
|
3259
|
+
"name": "fCurrentTraderExposureEMA",
|
|
3123
3260
|
"type": "int128"
|
|
3124
3261
|
},
|
|
3125
3262
|
{
|
|
3126
3263
|
"internalType": "int128",
|
|
3127
|
-
"name": "
|
|
3264
|
+
"name": "fCurrentFundingRate",
|
|
3128
3265
|
"type": "int128"
|
|
3129
3266
|
},
|
|
3130
3267
|
{
|
|
3131
3268
|
"internalType": "int128",
|
|
3132
|
-
"name": "
|
|
3269
|
+
"name": "fUnitAccumulatedFunding",
|
|
3133
3270
|
"type": "int128"
|
|
3134
3271
|
},
|
|
3135
3272
|
{
|
|
@@ -3139,7 +3276,7 @@
|
|
|
3139
3276
|
},
|
|
3140
3277
|
{
|
|
3141
3278
|
"internalType": "int128",
|
|
3142
|
-
"name": "
|
|
3279
|
+
"name": "fkStar",
|
|
3143
3280
|
"type": "int128"
|
|
3144
3281
|
},
|
|
3145
3282
|
{
|
|
@@ -3149,63 +3286,53 @@
|
|
|
3149
3286
|
},
|
|
3150
3287
|
{
|
|
3151
3288
|
"internalType": "int128",
|
|
3152
|
-
"name": "
|
|
3289
|
+
"name": "fAMMMinSizeCC",
|
|
3153
3290
|
"type": "int128"
|
|
3154
3291
|
},
|
|
3155
3292
|
{
|
|
3156
3293
|
"internalType": "int128",
|
|
3157
|
-
"name": "
|
|
3294
|
+
"name": "fMinimalTraderExposureEMA",
|
|
3158
3295
|
"type": "int128"
|
|
3159
3296
|
},
|
|
3160
3297
|
{
|
|
3161
3298
|
"internalType": "int128",
|
|
3162
|
-
"name": "
|
|
3299
|
+
"name": "fMinimalAMMExposureEMA",
|
|
3163
3300
|
"type": "int128"
|
|
3164
3301
|
},
|
|
3165
3302
|
{
|
|
3166
3303
|
"internalType": "int128",
|
|
3167
|
-
"name": "
|
|
3304
|
+
"name": "fTotalMarginBalance",
|
|
3168
3305
|
"type": "int128"
|
|
3169
3306
|
},
|
|
3170
3307
|
{
|
|
3171
3308
|
"internalType": "int128",
|
|
3172
|
-
"name": "
|
|
3309
|
+
"name": "fSettlementS3PriceData",
|
|
3173
3310
|
"type": "int128"
|
|
3174
3311
|
},
|
|
3175
3312
|
{
|
|
3176
3313
|
"internalType": "int128",
|
|
3177
|
-
"name": "
|
|
3314
|
+
"name": "fReferralRebateCC",
|
|
3178
3315
|
"type": "int128"
|
|
3179
3316
|
},
|
|
3180
3317
|
{
|
|
3181
3318
|
"internalType": "int128",
|
|
3182
|
-
"name": "
|
|
3319
|
+
"name": "fSettlementS2PriceData",
|
|
3183
3320
|
"type": "int128"
|
|
3184
3321
|
},
|
|
3185
3322
|
{
|
|
3186
3323
|
"internalType": "uint64",
|
|
3187
|
-
"name": "
|
|
3324
|
+
"name": "iLastPriceJumpTimestamp",
|
|
3188
3325
|
"type": "uint64"
|
|
3189
3326
|
},
|
|
3190
3327
|
{
|
|
3191
|
-
"internalType": "
|
|
3192
|
-
"name": "
|
|
3193
|
-
"type": "
|
|
3194
|
-
},
|
|
3195
|
-
{
|
|
3196
|
-
"internalType": "int32",
|
|
3197
|
-
"name": "fFundingRateClamp",
|
|
3198
|
-
"type": "int32"
|
|
3199
|
-
},
|
|
3200
|
-
{
|
|
3201
|
-
"internalType": "int32",
|
|
3202
|
-
"name": "fDFCoverNRate",
|
|
3203
|
-
"type": "int32"
|
|
3328
|
+
"internalType": "uint64",
|
|
3329
|
+
"name": "iLastDefaultFundTransfer",
|
|
3330
|
+
"type": "uint64"
|
|
3204
3331
|
},
|
|
3205
3332
|
{
|
|
3206
|
-
"internalType": "
|
|
3207
|
-
"name": "
|
|
3208
|
-
"type": "
|
|
3333
|
+
"internalType": "uint64",
|
|
3334
|
+
"name": "iLastTargetPoolSizeTime",
|
|
3335
|
+
"type": "uint64"
|
|
3209
3336
|
},
|
|
3210
3337
|
{
|
|
3211
3338
|
"internalType": "int32",
|
|
@@ -3214,60 +3341,23 @@
|
|
|
3214
3341
|
},
|
|
3215
3342
|
{
|
|
3216
3343
|
"internalType": "int32",
|
|
3217
|
-
"name": "
|
|
3344
|
+
"name": "fFundingRateClamp",
|
|
3218
3345
|
"type": "int32"
|
|
3219
3346
|
},
|
|
3220
3347
|
{
|
|
3221
3348
|
"internalType": "int32",
|
|
3222
|
-
"name": "
|
|
3349
|
+
"name": "fMaximalTradeSizeBumpUp",
|
|
3223
3350
|
"type": "int32"
|
|
3224
3351
|
},
|
|
3225
3352
|
{
|
|
3226
3353
|
"internalType": "int32",
|
|
3227
|
-
"name": "
|
|
3354
|
+
"name": "fRho23",
|
|
3228
3355
|
"type": "int32"
|
|
3229
3356
|
},
|
|
3230
3357
|
{
|
|
3231
3358
|
"internalType": "int32",
|
|
3232
|
-
"name": "
|
|
3359
|
+
"name": "fDFCoverNRate",
|
|
3233
3360
|
"type": "int32"
|
|
3234
|
-
},
|
|
3235
|
-
{
|
|
3236
|
-
"internalType": "uint16",
|
|
3237
|
-
"name": "minimalSpreadTbps",
|
|
3238
|
-
"type": "uint16"
|
|
3239
|
-
},
|
|
3240
|
-
{
|
|
3241
|
-
"internalType": "uint16",
|
|
3242
|
-
"name": "jumpSpreadTbps",
|
|
3243
|
-
"type": "uint16"
|
|
3244
|
-
},
|
|
3245
|
-
{
|
|
3246
|
-
"internalType": "uint64",
|
|
3247
|
-
"name": "iLastPriceJumpBlock",
|
|
3248
|
-
"type": "uint64"
|
|
3249
|
-
},
|
|
3250
|
-
{
|
|
3251
|
-
"internalType": "uint64",
|
|
3252
|
-
"name": "iLastDefaultFundTransfer",
|
|
3253
|
-
"type": "uint64"
|
|
3254
|
-
},
|
|
3255
|
-
{
|
|
3256
|
-
"components": [
|
|
3257
|
-
{
|
|
3258
|
-
"internalType": "int128",
|
|
3259
|
-
"name": "fPrice",
|
|
3260
|
-
"type": "int128"
|
|
3261
|
-
},
|
|
3262
|
-
{
|
|
3263
|
-
"internalType": "uint64",
|
|
3264
|
-
"name": "time",
|
|
3265
|
-
"type": "uint64"
|
|
3266
|
-
}
|
|
3267
|
-
],
|
|
3268
|
-
"internalType": "struct PerpStorage.OraclePriceData",
|
|
3269
|
-
"name": "currentMarkPremiumRate",
|
|
3270
|
-
"type": "tuple"
|
|
3271
3361
|
}
|
|
3272
3362
|
],
|
|
3273
3363
|
"internalType": "struct PerpStorage.PerpetualData",
|
|
@@ -3353,6 +3443,30 @@
|
|
|
3353
3443
|
"stateMutability": "view",
|
|
3354
3444
|
"type": "function"
|
|
3355
3445
|
},
|
|
3446
|
+
{
|
|
3447
|
+
"inputs": [
|
|
3448
|
+
{
|
|
3449
|
+
"internalType": "uint24",
|
|
3450
|
+
"name": "_perpetualId",
|
|
3451
|
+
"type": "uint24"
|
|
3452
|
+
}
|
|
3453
|
+
],
|
|
3454
|
+
"name": "getPriceInfo",
|
|
3455
|
+
"outputs": [
|
|
3456
|
+
{
|
|
3457
|
+
"internalType": "bytes32[]",
|
|
3458
|
+
"name": "",
|
|
3459
|
+
"type": "bytes32[]"
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
"internalType": "bool[]",
|
|
3463
|
+
"name": "",
|
|
3464
|
+
"type": "bool[]"
|
|
3465
|
+
}
|
|
3466
|
+
],
|
|
3467
|
+
"stateMutability": "view",
|
|
3468
|
+
"type": "function"
|
|
3469
|
+
},
|
|
3356
3470
|
{
|
|
3357
3471
|
"inputs": [],
|
|
3358
3472
|
"name": "getShareTokenFactory",
|
|
@@ -3584,14 +3698,19 @@
|
|
|
3584
3698
|
"internalType": "address",
|
|
3585
3699
|
"name": "_traderAddress",
|
|
3586
3700
|
"type": "address"
|
|
3701
|
+
},
|
|
3702
|
+
{
|
|
3703
|
+
"internalType": "int128[2]",
|
|
3704
|
+
"name": "_fIndexPrice",
|
|
3705
|
+
"type": "int128[2]"
|
|
3587
3706
|
}
|
|
3588
3707
|
],
|
|
3589
3708
|
"name": "getTraderState",
|
|
3590
3709
|
"outputs": [
|
|
3591
3710
|
{
|
|
3592
|
-
"internalType": "int128[
|
|
3711
|
+
"internalType": "int128[11]",
|
|
3593
3712
|
"name": "",
|
|
3594
|
-
"type": "int128[
|
|
3713
|
+
"type": "int128[11]"
|
|
3595
3714
|
}
|
|
3596
3715
|
],
|
|
3597
3716
|
"stateMutability": "view",
|
|
@@ -3610,30 +3729,6 @@
|
|
|
3610
3729
|
"stateMutability": "view",
|
|
3611
3730
|
"type": "function"
|
|
3612
3731
|
},
|
|
3613
|
-
{
|
|
3614
|
-
"inputs": [
|
|
3615
|
-
{
|
|
3616
|
-
"internalType": "uint24",
|
|
3617
|
-
"name": "_perpetualId",
|
|
3618
|
-
"type": "uint24"
|
|
3619
|
-
},
|
|
3620
|
-
{
|
|
3621
|
-
"internalType": "bool",
|
|
3622
|
-
"name": "_isBaseline",
|
|
3623
|
-
"type": "bool"
|
|
3624
|
-
}
|
|
3625
|
-
],
|
|
3626
|
-
"name": "getUpdatedTargetAMMFundSize",
|
|
3627
|
-
"outputs": [
|
|
3628
|
-
{
|
|
3629
|
-
"internalType": "int128",
|
|
3630
|
-
"name": "",
|
|
3631
|
-
"type": "int128"
|
|
3632
|
-
}
|
|
3633
|
-
],
|
|
3634
|
-
"stateMutability": "nonpayable",
|
|
3635
|
-
"type": "function"
|
|
3636
|
-
},
|
|
3637
3732
|
{
|
|
3638
3733
|
"inputs": [
|
|
3639
3734
|
{
|
|
@@ -3821,6 +3916,16 @@
|
|
|
3821
3916
|
"internalType": "address",
|
|
3822
3917
|
"name": "_traderAddr",
|
|
3823
3918
|
"type": "address"
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
"internalType": "bytes[]",
|
|
3922
|
+
"name": "_updateData",
|
|
3923
|
+
"type": "bytes[]"
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
"internalType": "uint64[]",
|
|
3927
|
+
"name": "_publishTimes",
|
|
3928
|
+
"type": "uint64[]"
|
|
3824
3929
|
}
|
|
3825
3930
|
],
|
|
3826
3931
|
"name": "liquidateByAMM",
|
|
@@ -3831,7 +3936,7 @@
|
|
|
3831
3936
|
"type": "int128"
|
|
3832
3937
|
}
|
|
3833
3938
|
],
|
|
3834
|
-
"stateMutability": "
|
|
3939
|
+
"stateMutability": "payable",
|
|
3835
3940
|
"type": "function"
|
|
3836
3941
|
},
|
|
3837
3942
|
{
|
|
@@ -3910,7 +4015,7 @@
|
|
|
3910
4015
|
},
|
|
3911
4016
|
{
|
|
3912
4017
|
"internalType": "uint64",
|
|
3913
|
-
"name": "
|
|
4018
|
+
"name": "submittedTimestamp",
|
|
3914
4019
|
"type": "uint64"
|
|
3915
4020
|
}
|
|
3916
4021
|
],
|
|
@@ -3975,6 +4080,11 @@
|
|
|
3975
4080
|
"internalType": "int128",
|
|
3976
4081
|
"name": "_fTradeAmountBC",
|
|
3977
4082
|
"type": "int128"
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
"internalType": "int128[2]",
|
|
4086
|
+
"name": "_fIndexPrice",
|
|
4087
|
+
"type": "int128[2]"
|
|
3978
4088
|
}
|
|
3979
4089
|
],
|
|
3980
4090
|
"name": "queryPerpetualPrice",
|
|
@@ -4072,7 +4182,7 @@
|
|
|
4072
4182
|
},
|
|
4073
4183
|
{
|
|
4074
4184
|
"internalType": "uint64",
|
|
4075
|
-
"name": "
|
|
4185
|
+
"name": "submittedTimestamp",
|
|
4076
4186
|
"type": "uint64"
|
|
4077
4187
|
}
|
|
4078
4188
|
],
|
|
@@ -4163,24 +4273,6 @@
|
|
|
4163
4273
|
"stateMutability": "pure",
|
|
4164
4274
|
"type": "function"
|
|
4165
4275
|
},
|
|
4166
|
-
{
|
|
4167
|
-
"inputs": [
|
|
4168
|
-
{
|
|
4169
|
-
"internalType": "uint8",
|
|
4170
|
-
"name": "_iPoolIndex",
|
|
4171
|
-
"type": "uint8"
|
|
4172
|
-
},
|
|
4173
|
-
{
|
|
4174
|
-
"internalType": "uint256",
|
|
4175
|
-
"name": "_shareAmount",
|
|
4176
|
-
"type": "uint256"
|
|
4177
|
-
}
|
|
4178
|
-
],
|
|
4179
|
-
"name": "removeLiquidity",
|
|
4180
|
-
"outputs": [],
|
|
4181
|
-
"stateMutability": "nonpayable",
|
|
4182
|
-
"type": "function"
|
|
4183
|
-
},
|
|
4184
4276
|
{
|
|
4185
4277
|
"inputs": [
|
|
4186
4278
|
{
|
|
@@ -4287,6 +4379,19 @@
|
|
|
4287
4379
|
"stateMutability": "nonpayable",
|
|
4288
4380
|
"type": "function"
|
|
4289
4381
|
},
|
|
4382
|
+
{
|
|
4383
|
+
"inputs": [
|
|
4384
|
+
{
|
|
4385
|
+
"internalType": "uint24",
|
|
4386
|
+
"name": "_iPerpetualId",
|
|
4387
|
+
"type": "uint24"
|
|
4388
|
+
}
|
|
4389
|
+
],
|
|
4390
|
+
"name": "setInitialFundAllocationWeight",
|
|
4391
|
+
"outputs": [],
|
|
4392
|
+
"stateMutability": "nonpayable",
|
|
4393
|
+
"type": "function"
|
|
4394
|
+
},
|
|
4290
4395
|
{
|
|
4291
4396
|
"inputs": [
|
|
4292
4397
|
{
|
|
@@ -4712,7 +4817,7 @@
|
|
|
4712
4817
|
},
|
|
4713
4818
|
{
|
|
4714
4819
|
"internalType": "uint64",
|
|
4715
|
-
"name": "
|
|
4820
|
+
"name": "submittedTimestamp",
|
|
4716
4821
|
"type": "uint64"
|
|
4717
4822
|
}
|
|
4718
4823
|
],
|
|
@@ -4722,7 +4827,13 @@
|
|
|
4722
4827
|
}
|
|
4723
4828
|
],
|
|
4724
4829
|
"name": "tradeViaOrderBook",
|
|
4725
|
-
"outputs": [
|
|
4830
|
+
"outputs": [
|
|
4831
|
+
{
|
|
4832
|
+
"internalType": "bool",
|
|
4833
|
+
"name": "",
|
|
4834
|
+
"type": "bool"
|
|
4835
|
+
}
|
|
4836
|
+
],
|
|
4726
4837
|
"stateMutability": "nonpayable",
|
|
4727
4838
|
"type": "function"
|
|
4728
4839
|
},
|
|
@@ -4785,6 +4896,19 @@
|
|
|
4785
4896
|
"stateMutability": "nonpayable",
|
|
4786
4897
|
"type": "function"
|
|
4787
4898
|
},
|
|
4899
|
+
{
|
|
4900
|
+
"inputs": [],
|
|
4901
|
+
"name": "transferValueToTreasury",
|
|
4902
|
+
"outputs": [
|
|
4903
|
+
{
|
|
4904
|
+
"internalType": "bool",
|
|
4905
|
+
"name": "success",
|
|
4906
|
+
"type": "bool"
|
|
4907
|
+
}
|
|
4908
|
+
],
|
|
4909
|
+
"stateMutability": "nonpayable",
|
|
4910
|
+
"type": "function"
|
|
4911
|
+
},
|
|
4788
4912
|
{
|
|
4789
4913
|
"inputs": [
|
|
4790
4914
|
{
|
|
@@ -4865,6 +4989,34 @@
|
|
|
4865
4989
|
"stateMutability": "nonpayable",
|
|
4866
4990
|
"type": "function"
|
|
4867
4991
|
},
|
|
4992
|
+
{
|
|
4993
|
+
"inputs": [
|
|
4994
|
+
{
|
|
4995
|
+
"internalType": "uint24",
|
|
4996
|
+
"name": "_perpetualId",
|
|
4997
|
+
"type": "uint24"
|
|
4998
|
+
},
|
|
4999
|
+
{
|
|
5000
|
+
"internalType": "bytes[]",
|
|
5001
|
+
"name": "_updateData",
|
|
5002
|
+
"type": "bytes[]"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"internalType": "uint64[]",
|
|
5006
|
+
"name": "_publishTimes",
|
|
5007
|
+
"type": "uint64[]"
|
|
5008
|
+
},
|
|
5009
|
+
{
|
|
5010
|
+
"internalType": "uint256",
|
|
5011
|
+
"name": "_maxAcceptableFeedAge",
|
|
5012
|
+
"type": "uint256"
|
|
5013
|
+
}
|
|
5014
|
+
],
|
|
5015
|
+
"name": "updatePriceFeeds",
|
|
5016
|
+
"outputs": [],
|
|
5017
|
+
"stateMutability": "payable",
|
|
5018
|
+
"type": "function"
|
|
5019
|
+
},
|
|
4868
5020
|
{
|
|
4869
5021
|
"inputs": [
|
|
4870
5022
|
{
|
|
@@ -4961,11 +5113,21 @@
|
|
|
4961
5113
|
"internalType": "int128",
|
|
4962
5114
|
"name": "_fAmount",
|
|
4963
5115
|
"type": "int128"
|
|
5116
|
+
},
|
|
5117
|
+
{
|
|
5118
|
+
"internalType": "bytes[]",
|
|
5119
|
+
"name": "_updateData",
|
|
5120
|
+
"type": "bytes[]"
|
|
5121
|
+
},
|
|
5122
|
+
{
|
|
5123
|
+
"internalType": "uint64[]",
|
|
5124
|
+
"name": "_publishTimes",
|
|
5125
|
+
"type": "uint64[]"
|
|
4964
5126
|
}
|
|
4965
5127
|
],
|
|
4966
5128
|
"name": "withdraw",
|
|
4967
5129
|
"outputs": [],
|
|
4968
|
-
"stateMutability": "
|
|
5130
|
+
"stateMutability": "payable",
|
|
4969
5131
|
"type": "function"
|
|
4970
5132
|
},
|
|
4971
5133
|
{
|
|
@@ -4974,11 +5136,21 @@
|
|
|
4974
5136
|
"internalType": "uint24",
|
|
4975
5137
|
"name": "_iPerpetualId",
|
|
4976
5138
|
"type": "uint24"
|
|
5139
|
+
},
|
|
5140
|
+
{
|
|
5141
|
+
"internalType": "bytes[]",
|
|
5142
|
+
"name": "_updateData",
|
|
5143
|
+
"type": "bytes[]"
|
|
5144
|
+
},
|
|
5145
|
+
{
|
|
5146
|
+
"internalType": "uint64[]",
|
|
5147
|
+
"name": "_publishTimes",
|
|
5148
|
+
"type": "uint64[]"
|
|
4977
5149
|
}
|
|
4978
5150
|
],
|
|
4979
5151
|
"name": "withdrawAll",
|
|
4980
5152
|
"outputs": [],
|
|
4981
|
-
"stateMutability": "
|
|
5153
|
+
"stateMutability": "payable",
|
|
4982
5154
|
"type": "function"
|
|
4983
5155
|
},
|
|
4984
5156
|
{
|
|
@@ -5021,5 +5193,23 @@
|
|
|
5021
5193
|
"outputs": [],
|
|
5022
5194
|
"stateMutability": "nonpayable",
|
|
5023
5195
|
"type": "function"
|
|
5196
|
+
},
|
|
5197
|
+
{
|
|
5198
|
+
"inputs": [
|
|
5199
|
+
{
|
|
5200
|
+
"internalType": "uint8",
|
|
5201
|
+
"name": "_iPoolIndex",
|
|
5202
|
+
"type": "uint8"
|
|
5203
|
+
},
|
|
5204
|
+
{
|
|
5205
|
+
"internalType": "uint256",
|
|
5206
|
+
"name": "_shareAmount",
|
|
5207
|
+
"type": "uint256"
|
|
5208
|
+
}
|
|
5209
|
+
],
|
|
5210
|
+
"name": "withdrawLiquidity",
|
|
5211
|
+
"outputs": [],
|
|
5212
|
+
"stateMutability": "nonpayable",
|
|
5213
|
+
"type": "function"
|
|
5024
5214
|
}
|
|
5025
5215
|
]
|