@d8x/perpetuals-sdk 2.7.4 → 2.7.6
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/config/defaultConfig.json +8 -1
- package/dist/cjs/d8XMath.d.ts +2 -2
- package/dist/cjs/d8XMath.js +48 -30
- package/dist/cjs/d8XMath.js.map +1 -1
- package/dist/cjs/main.d.ts +1 -0
- package/dist/cjs/main.js +15 -0
- package/dist/cjs/main.js.map +1 -0
- package/dist/cjs/marketData.d.ts +12 -3
- package/dist/cjs/marketData.js +35 -10
- package/dist/cjs/marketData.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/config/defaultConfig.json +8 -1
- package/dist/esm/d8XMath.d.ts +2 -2
- package/dist/esm/d8XMath.js +48 -30
- package/dist/esm/d8XMath.js.map +1 -1
- package/dist/esm/main.d.ts +1 -0
- package/dist/esm/main.js +13 -0
- package/dist/esm/main.js.map +1 -0
- package/dist/esm/main2.d.ts +1 -0
- package/dist/esm/main2.js +18 -0
- package/dist/esm/main2.js.map +1 -0
- package/dist/esm/marketData.d.ts +12 -3
- package/dist/esm/marketData.js +35 -10
- package/dist/esm/marketData.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/config/defaultConfig.json +8 -1
- package/src/d8XMath.ts +65 -36
- package/src/marketData.ts +41 -10
- package/src/version.ts +1 -1
- package/dist/cjs/abi/AMMPerpLogic.json +0 -580
- package/dist/cjs/abi/BeaconProxy.json +0 -71
- package/dist/cjs/abi/IPerpetualManager copy.json +0 -5599
- package/dist/cjs/abi/IPerpetualMarginViewLogic.json +0 -286
- package/dist/cjs/abi/Maintainer.json +0 -774
- package/dist/cjs/abi/MockToken.json +0 -347
- package/dist/cjs/abi/MockUSD.json +0 -413
- package/dist/cjs/abi/UUPSUpgradeable.json +0 -104
- package/dist/cjs/abi/WeETH.json +0 -310
- package/dist/cjs/abi-zkevm/IPerpetualManager.json +0 -5366
- package/dist/cjs/abi-zkevm/LimitOrderBook.json +0 -910
- package/dist/cjs/abi-zkevm/LimitOrderBookFactory.json +0 -236
- package/dist/cjs/contracts/AMMPerpLogic.d.ts +0 -303
- package/dist/cjs/contracts/AMMPerpLogic.js +0 -3
- package/dist/cjs/contracts/AMMPerpLogic.js.map +0 -1
- package/dist/cjs/contracts/BeaconProxy.d.ts +0 -63
- package/dist/cjs/contracts/BeaconProxy.js +0 -3
- package/dist/cjs/contracts/BeaconProxy.js.map +0 -1
- package/dist/cjs/contracts/IPerpetualManagerCopy.d.ts +0 -3223
- package/dist/cjs/contracts/IPerpetualManagerCopy.js +0 -3
- package/dist/cjs/contracts/IPerpetualManagerCopy.js.map +0 -1
- package/dist/cjs/contracts/IPerpetualMarginViewLogic.d.ts +0 -183
- package/dist/cjs/contracts/IPerpetualMarginViewLogic.js +0 -3
- package/dist/cjs/contracts/IPerpetualMarginViewLogic.js.map +0 -1
- package/dist/cjs/contracts/Maintainer.d.ts +0 -799
- package/dist/cjs/contracts/Maintainer.js +0 -3
- package/dist/cjs/contracts/Maintainer.js.map +0 -1
- package/dist/cjs/contracts/MockToken.d.ts +0 -263
- package/dist/cjs/contracts/MockToken.js +0 -3
- package/dist/cjs/contracts/MockToken.js.map +0 -1
- package/dist/cjs/contracts/MockUSD.d.ts +0 -186
- package/dist/cjs/contracts/MockUSD.js +0 -3
- package/dist/cjs/contracts/MockUSD.js.map +0 -1
- package/dist/cjs/contracts/UUPSUpgradeable.d.ts +0 -118
- package/dist/cjs/contracts/UUPSUpgradeable.js +0 -3
- package/dist/cjs/contracts/UUPSUpgradeable.js.map +0 -1
- package/dist/cjs/contracts/WeETH.d.ts +0 -503
- package/dist/cjs/contracts/WeETH.js +0 -3
- package/dist/cjs/contracts/WeETH.js.map +0 -1
- package/dist/cjs/contracts/factories/AMMPerpLogic__factory.d.ts +0 -452
- package/dist/cjs/contracts/factories/AMMPerpLogic__factory.js +0 -598
- package/dist/cjs/contracts/factories/AMMPerpLogic__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/BeaconProxy__factory.d.ts +0 -61
- package/dist/cjs/contracts/factories/BeaconProxy__factory.js +0 -89
- package/dist/cjs/contracts/factories/BeaconProxy__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/IPerpetualManagerCopy__factory.d.ts +0 -4358
- package/dist/cjs/contracts/factories/IPerpetualManagerCopy__factory.js +0 -5617
- package/dist/cjs/contracts/factories/IPerpetualManagerCopy__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/IPerpetualMarginViewLogic__factory.d.ts +0 -221
- package/dist/cjs/contracts/factories/IPerpetualMarginViewLogic__factory.js +0 -304
- package/dist/cjs/contracts/factories/IPerpetualMarginViewLogic__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/Maintainer__factory.d.ts +0 -609
- package/dist/cjs/contracts/factories/Maintainer__factory.js +0 -792
- package/dist/cjs/contracts/factories/Maintainer__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/MockToken__factory.d.ts +0 -273
- package/dist/cjs/contracts/factories/MockToken__factory.js +0 -365
- package/dist/cjs/contracts/factories/MockToken__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/MockUSD__factory.d.ts +0 -320
- package/dist/cjs/contracts/factories/MockUSD__factory.js +0 -431
- package/dist/cjs/contracts/factories/MockUSD__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/UUPSUpgradeable__factory.d.ts +0 -87
- package/dist/cjs/contracts/factories/UUPSUpgradeable__factory.js +0 -122
- package/dist/cjs/contracts/factories/UUPSUpgradeable__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/WeETH__factory.d.ts +0 -545
- package/dist/cjs/contracts/factories/WeETH__factory.js +0 -721
- package/dist/cjs/contracts/factories/WeETH__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/lean0/IPerpetualManager__factory.d.ts +0 -4136
- package/dist/cjs/contracts/factories/lean0/IPerpetualManager__factory.js +0 -5324
- package/dist/cjs/contracts/factories/lean0/IPerpetualManager__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/lean0/LimitOrderBookFactory__factory.d.ts +0 -189
- package/dist/cjs/contracts/factories/lean0/LimitOrderBookFactory__factory.js +0 -254
- package/dist/cjs/contracts/factories/lean0/LimitOrderBookFactory__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/lean0/LimitOrderBook__factory.d.ts +0 -715
- package/dist/cjs/contracts/factories/lean0/LimitOrderBook__factory.js +0 -928
- package/dist/cjs/contracts/factories/lean0/LimitOrderBook__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/lean0/ShareToken__factory.d.ts +0 -344
- package/dist/cjs/contracts/factories/lean0/ShareToken__factory.js +0 -456
- package/dist/cjs/contracts/factories/lean0/ShareToken__factory.js.map +0 -1
- package/dist/cjs/contracts/factories/lean0/index.d.ts +0 -4
- package/dist/cjs/contracts/factories/lean0/index.js +0 -15
- package/dist/cjs/contracts/factories/lean0/index.js.map +0 -1
- package/dist/cjs/contracts/lean0/IPerpetualManager.d.ts +0 -2821
- package/dist/cjs/contracts/lean0/IPerpetualManager.js +0 -3
- package/dist/cjs/contracts/lean0/IPerpetualManager.js.map +0 -1
- package/dist/cjs/contracts/lean0/LimitOrderBook.d.ts +0 -533
- package/dist/cjs/contracts/lean0/LimitOrderBook.js +0 -3
- package/dist/cjs/contracts/lean0/LimitOrderBook.js.map +0 -1
- package/dist/cjs/contracts/lean0/LimitOrderBookFactory.d.ts +0 -210
- package/dist/cjs/contracts/lean0/LimitOrderBookFactory.js +0 -3
- package/dist/cjs/contracts/lean0/LimitOrderBookFactory.js.map +0 -1
- package/dist/cjs/contracts/lean0/ShareToken.d.ts +0 -320
- package/dist/cjs/contracts/lean0/ShareToken.js +0 -3
- package/dist/cjs/contracts/lean0/ShareToken.js.map +0 -1
- package/dist/cjs/contracts/lean0/index.d.ts +0 -4
- package/dist/cjs/contracts/lean0/index.js +0 -3
- package/dist/cjs/contracts/lean0/index.js.map +0 -1
- package/dist/esm/abi/AMMPerpLogic.json +0 -580
- package/dist/esm/abi/BeaconProxy.json +0 -71
- package/dist/esm/abi/IPerpetualManager copy.json +0 -5599
- package/dist/esm/abi/IPerpetualMarginViewLogic.json +0 -286
- package/dist/esm/abi/Maintainer.json +0 -774
- package/dist/esm/abi/MockToken.json +0 -347
- package/dist/esm/abi/MockUSD.json +0 -413
- package/dist/esm/abi/UUPSUpgradeable.json +0 -104
- package/dist/esm/abi/WeETH.json +0 -310
- package/dist/esm/abi/lean0/IPerpetualManager.json +0 -5306
- package/dist/esm/abi/lean0/LimitOrderBook.json +0 -910
- package/dist/esm/abi/lean0/LimitOrderBookFactory.json +0 -236
- package/dist/esm/abi/lean0/ShareToken.json +0 -438
- package/dist/esm/abi-zkevm/IPerpetualManager.json +0 -5366
- package/dist/esm/abi-zkevm/LimitOrderBook.json +0 -910
- package/dist/esm/abi-zkevm/LimitOrderBookFactory.json +0 -236
- package/dist/esm/contracts/AMMPerpLogic.d.ts +0 -303
- package/dist/esm/contracts/AMMPerpLogic.js +0 -2
- package/dist/esm/contracts/AMMPerpLogic.js.map +0 -1
- package/dist/esm/contracts/BeaconProxy.d.ts +0 -63
- package/dist/esm/contracts/BeaconProxy.js +0 -2
- package/dist/esm/contracts/BeaconProxy.js.map +0 -1
- package/dist/esm/contracts/IPerpetualManagerCopy.d.ts +0 -3223
- package/dist/esm/contracts/IPerpetualManagerCopy.js +0 -2
- package/dist/esm/contracts/IPerpetualManagerCopy.js.map +0 -1
- package/dist/esm/contracts/IPerpetualMarginViewLogic.d.ts +0 -183
- package/dist/esm/contracts/IPerpetualMarginViewLogic.js +0 -2
- package/dist/esm/contracts/IPerpetualMarginViewLogic.js.map +0 -1
- package/dist/esm/contracts/Maintainer.d.ts +0 -799
- package/dist/esm/contracts/Maintainer.js +0 -2
- package/dist/esm/contracts/Maintainer.js.map +0 -1
- package/dist/esm/contracts/MockToken.d.ts +0 -263
- package/dist/esm/contracts/MockToken.js +0 -2
- package/dist/esm/contracts/MockToken.js.map +0 -1
- package/dist/esm/contracts/MockUSD.d.ts +0 -186
- package/dist/esm/contracts/MockUSD.js +0 -2
- package/dist/esm/contracts/MockUSD.js.map +0 -1
- package/dist/esm/contracts/UUPSUpgradeable.d.ts +0 -118
- package/dist/esm/contracts/UUPSUpgradeable.js +0 -2
- package/dist/esm/contracts/UUPSUpgradeable.js.map +0 -1
- package/dist/esm/contracts/WeETH.d.ts +0 -503
- package/dist/esm/contracts/WeETH.js +0 -2
- package/dist/esm/contracts/WeETH.js.map +0 -1
- package/dist/esm/contracts/factories/AMMPerpLogic__factory.d.ts +0 -452
- package/dist/esm/contracts/factories/AMMPerpLogic__factory.js +0 -594
- package/dist/esm/contracts/factories/AMMPerpLogic__factory.js.map +0 -1
- package/dist/esm/contracts/factories/BeaconProxy__factory.d.ts +0 -61
- package/dist/esm/contracts/factories/BeaconProxy__factory.js +0 -85
- package/dist/esm/contracts/factories/BeaconProxy__factory.js.map +0 -1
- package/dist/esm/contracts/factories/IPerpetualManagerCopy__factory.d.ts +0 -4358
- package/dist/esm/contracts/factories/IPerpetualManagerCopy__factory.js +0 -5613
- package/dist/esm/contracts/factories/IPerpetualManagerCopy__factory.js.map +0 -1
- package/dist/esm/contracts/factories/IPerpetualMarginViewLogic__factory.d.ts +0 -221
- package/dist/esm/contracts/factories/IPerpetualMarginViewLogic__factory.js +0 -300
- package/dist/esm/contracts/factories/IPerpetualMarginViewLogic__factory.js.map +0 -1
- package/dist/esm/contracts/factories/Maintainer__factory.d.ts +0 -609
- package/dist/esm/contracts/factories/Maintainer__factory.js +0 -788
- package/dist/esm/contracts/factories/Maintainer__factory.js.map +0 -1
- package/dist/esm/contracts/factories/MockToken__factory.d.ts +0 -273
- package/dist/esm/contracts/factories/MockToken__factory.js +0 -361
- package/dist/esm/contracts/factories/MockToken__factory.js.map +0 -1
- package/dist/esm/contracts/factories/MockUSD__factory.d.ts +0 -320
- package/dist/esm/contracts/factories/MockUSD__factory.js +0 -427
- package/dist/esm/contracts/factories/MockUSD__factory.js.map +0 -1
- package/dist/esm/contracts/factories/UUPSUpgradeable__factory.d.ts +0 -87
- package/dist/esm/contracts/factories/UUPSUpgradeable__factory.js +0 -118
- package/dist/esm/contracts/factories/UUPSUpgradeable__factory.js.map +0 -1
- package/dist/esm/contracts/factories/WeETH__factory.d.ts +0 -545
- package/dist/esm/contracts/factories/WeETH__factory.js +0 -717
- package/dist/esm/contracts/factories/WeETH__factory.js.map +0 -1
- package/dist/esm/contracts/factories/lean0/IPerpetualManager__factory.d.ts +0 -4136
- package/dist/esm/contracts/factories/lean0/IPerpetualManager__factory.js +0 -5320
- package/dist/esm/contracts/factories/lean0/IPerpetualManager__factory.js.map +0 -1
- package/dist/esm/contracts/factories/lean0/LimitOrderBookFactory__factory.d.ts +0 -189
- package/dist/esm/contracts/factories/lean0/LimitOrderBookFactory__factory.js +0 -250
- package/dist/esm/contracts/factories/lean0/LimitOrderBookFactory__factory.js.map +0 -1
- package/dist/esm/contracts/factories/lean0/LimitOrderBook__factory.d.ts +0 -715
- package/dist/esm/contracts/factories/lean0/LimitOrderBook__factory.js +0 -924
- package/dist/esm/contracts/factories/lean0/LimitOrderBook__factory.js.map +0 -1
- package/dist/esm/contracts/factories/lean0/ShareToken__factory.d.ts +0 -344
- package/dist/esm/contracts/factories/lean0/ShareToken__factory.js +0 -452
- package/dist/esm/contracts/factories/lean0/ShareToken__factory.js.map +0 -1
- package/dist/esm/contracts/factories/lean0/index.d.ts +0 -4
- package/dist/esm/contracts/factories/lean0/index.js +0 -8
- package/dist/esm/contracts/factories/lean0/index.js.map +0 -1
- package/dist/esm/contracts/lean0/IPerpetualManager.d.ts +0 -2821
- package/dist/esm/contracts/lean0/IPerpetualManager.js +0 -2
- package/dist/esm/contracts/lean0/IPerpetualManager.js.map +0 -1
- package/dist/esm/contracts/lean0/LimitOrderBook.d.ts +0 -533
- package/dist/esm/contracts/lean0/LimitOrderBook.js +0 -2
- package/dist/esm/contracts/lean0/LimitOrderBook.js.map +0 -1
- package/dist/esm/contracts/lean0/LimitOrderBookFactory.d.ts +0 -210
- package/dist/esm/contracts/lean0/LimitOrderBookFactory.js +0 -2
- package/dist/esm/contracts/lean0/LimitOrderBookFactory.js.map +0 -1
- package/dist/esm/contracts/lean0/ShareToken.d.ts +0 -320
- package/dist/esm/contracts/lean0/ShareToken.js +0 -2
- package/dist/esm/contracts/lean0/ShareToken.js.map +0 -1
- package/dist/esm/contracts/lean0/index.d.ts +0 -4
- package/dist/esm/contracts/lean0/index.js +0 -2
- package/dist/esm/contracts/lean0/index.js.map +0 -1
- package/src/contracts/IPerpetualMarginViewLogic.ts +0 -347
- package/src/contracts/MockUSD.ts +0 -378
- package/src/contracts/factories/IPerpetualMarginViewLogic__factory.ts +0 -313
- package/src/contracts/factories/MockUSD__factory.ts +0 -430
|
@@ -1,3223 +0,0 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
-
export declare namespace IPerpetualOrder {
|
|
4
|
-
type OrderStruct = {
|
|
5
|
-
leverageTDR: BigNumberish;
|
|
6
|
-
brokerFeeTbps: BigNumberish;
|
|
7
|
-
iPerpetualId: BigNumberish;
|
|
8
|
-
traderAddr: AddressLike;
|
|
9
|
-
executionTimestamp: BigNumberish;
|
|
10
|
-
brokerAddr: AddressLike;
|
|
11
|
-
submittedTimestamp: BigNumberish;
|
|
12
|
-
flags: BigNumberish;
|
|
13
|
-
iDeadline: BigNumberish;
|
|
14
|
-
executorAddr: AddressLike;
|
|
15
|
-
fAmount: BigNumberish;
|
|
16
|
-
fLimitPrice: BigNumberish;
|
|
17
|
-
fTriggerPrice: BigNumberish;
|
|
18
|
-
brokerSignature: BytesLike;
|
|
19
|
-
};
|
|
20
|
-
type OrderStructOutput = [
|
|
21
|
-
leverageTDR: bigint,
|
|
22
|
-
brokerFeeTbps: bigint,
|
|
23
|
-
iPerpetualId: bigint,
|
|
24
|
-
traderAddr: string,
|
|
25
|
-
executionTimestamp: bigint,
|
|
26
|
-
brokerAddr: string,
|
|
27
|
-
submittedTimestamp: bigint,
|
|
28
|
-
flags: bigint,
|
|
29
|
-
iDeadline: bigint,
|
|
30
|
-
executorAddr: string,
|
|
31
|
-
fAmount: bigint,
|
|
32
|
-
fLimitPrice: bigint,
|
|
33
|
-
fTriggerPrice: bigint,
|
|
34
|
-
brokerSignature: string
|
|
35
|
-
] & {
|
|
36
|
-
leverageTDR: bigint;
|
|
37
|
-
brokerFeeTbps: bigint;
|
|
38
|
-
iPerpetualId: bigint;
|
|
39
|
-
traderAddr: string;
|
|
40
|
-
executionTimestamp: bigint;
|
|
41
|
-
brokerAddr: string;
|
|
42
|
-
submittedTimestamp: bigint;
|
|
43
|
-
flags: bigint;
|
|
44
|
-
iDeadline: bigint;
|
|
45
|
-
executorAddr: string;
|
|
46
|
-
fAmount: bigint;
|
|
47
|
-
fLimitPrice: bigint;
|
|
48
|
-
fTriggerPrice: bigint;
|
|
49
|
-
brokerSignature: string;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export declare namespace AMMPerpLogic {
|
|
53
|
-
type AMMVariablesStruct = {
|
|
54
|
-
fLockedValue1: BigNumberish;
|
|
55
|
-
fPoolM1: BigNumberish;
|
|
56
|
-
fPoolM2: BigNumberish;
|
|
57
|
-
fPoolM3: BigNumberish;
|
|
58
|
-
fAMM_K2: BigNumberish;
|
|
59
|
-
fCurrentTraderExposureEMA: BigNumberish;
|
|
60
|
-
};
|
|
61
|
-
type AMMVariablesStructOutput = [
|
|
62
|
-
fLockedValue1: bigint,
|
|
63
|
-
fPoolM1: bigint,
|
|
64
|
-
fPoolM2: bigint,
|
|
65
|
-
fPoolM3: bigint,
|
|
66
|
-
fAMM_K2: bigint,
|
|
67
|
-
fCurrentTraderExposureEMA: bigint
|
|
68
|
-
] & {
|
|
69
|
-
fLockedValue1: bigint;
|
|
70
|
-
fPoolM1: bigint;
|
|
71
|
-
fPoolM2: bigint;
|
|
72
|
-
fPoolM3: bigint;
|
|
73
|
-
fAMM_K2: bigint;
|
|
74
|
-
fCurrentTraderExposureEMA: bigint;
|
|
75
|
-
};
|
|
76
|
-
type MarketVariablesStruct = {
|
|
77
|
-
fIndexPriceS2: BigNumberish;
|
|
78
|
-
fIndexPriceS3: BigNumberish;
|
|
79
|
-
fSigma2: BigNumberish;
|
|
80
|
-
fSigma3: BigNumberish;
|
|
81
|
-
fRho23: BigNumberish;
|
|
82
|
-
};
|
|
83
|
-
type MarketVariablesStructOutput = [
|
|
84
|
-
fIndexPriceS2: bigint,
|
|
85
|
-
fIndexPriceS3: bigint,
|
|
86
|
-
fSigma2: bigint,
|
|
87
|
-
fSigma3: bigint,
|
|
88
|
-
fRho23: bigint
|
|
89
|
-
] & {
|
|
90
|
-
fIndexPriceS2: bigint;
|
|
91
|
-
fIndexPriceS3: bigint;
|
|
92
|
-
fSigma2: bigint;
|
|
93
|
-
fSigma3: bigint;
|
|
94
|
-
fRho23: bigint;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
export declare namespace PerpStorage {
|
|
98
|
-
type LiquidityPoolDataStruct = {
|
|
99
|
-
isRunning: boolean;
|
|
100
|
-
iPerpetualCount: BigNumberish;
|
|
101
|
-
id: BigNumberish;
|
|
102
|
-
fCeilPnLShare: BigNumberish;
|
|
103
|
-
marginTokenDecimals: BigNumberish;
|
|
104
|
-
iTargetPoolSizeUpdateTime: BigNumberish;
|
|
105
|
-
marginTokenAddress: AddressLike;
|
|
106
|
-
prevAnchor: BigNumberish;
|
|
107
|
-
fRedemptionRate: BigNumberish;
|
|
108
|
-
shareTokenAddress: AddressLike;
|
|
109
|
-
fPnLparticipantsCashCC: BigNumberish;
|
|
110
|
-
fTargetAMMFundSize: BigNumberish;
|
|
111
|
-
fDefaultFundCashCC: BigNumberish;
|
|
112
|
-
fTargetDFSize: BigNumberish;
|
|
113
|
-
fBrokerCollateralLotSize: BigNumberish;
|
|
114
|
-
prevTokenAmount: BigNumberish;
|
|
115
|
-
nextTokenAmount: BigNumberish;
|
|
116
|
-
totalSupplyShareToken: BigNumberish;
|
|
117
|
-
fBrokerFundCashCC: BigNumberish;
|
|
118
|
-
};
|
|
119
|
-
type LiquidityPoolDataStructOutput = [
|
|
120
|
-
isRunning: boolean,
|
|
121
|
-
iPerpetualCount: bigint,
|
|
122
|
-
id: bigint,
|
|
123
|
-
fCeilPnLShare: bigint,
|
|
124
|
-
marginTokenDecimals: bigint,
|
|
125
|
-
iTargetPoolSizeUpdateTime: bigint,
|
|
126
|
-
marginTokenAddress: string,
|
|
127
|
-
prevAnchor: bigint,
|
|
128
|
-
fRedemptionRate: bigint,
|
|
129
|
-
shareTokenAddress: string,
|
|
130
|
-
fPnLparticipantsCashCC: bigint,
|
|
131
|
-
fTargetAMMFundSize: bigint,
|
|
132
|
-
fDefaultFundCashCC: bigint,
|
|
133
|
-
fTargetDFSize: bigint,
|
|
134
|
-
fBrokerCollateralLotSize: bigint,
|
|
135
|
-
prevTokenAmount: bigint,
|
|
136
|
-
nextTokenAmount: bigint,
|
|
137
|
-
totalSupplyShareToken: bigint,
|
|
138
|
-
fBrokerFundCashCC: bigint
|
|
139
|
-
] & {
|
|
140
|
-
isRunning: boolean;
|
|
141
|
-
iPerpetualCount: bigint;
|
|
142
|
-
id: bigint;
|
|
143
|
-
fCeilPnLShare: bigint;
|
|
144
|
-
marginTokenDecimals: bigint;
|
|
145
|
-
iTargetPoolSizeUpdateTime: bigint;
|
|
146
|
-
marginTokenAddress: string;
|
|
147
|
-
prevAnchor: bigint;
|
|
148
|
-
fRedemptionRate: bigint;
|
|
149
|
-
shareTokenAddress: string;
|
|
150
|
-
fPnLparticipantsCashCC: bigint;
|
|
151
|
-
fTargetAMMFundSize: bigint;
|
|
152
|
-
fDefaultFundCashCC: bigint;
|
|
153
|
-
fTargetDFSize: bigint;
|
|
154
|
-
fBrokerCollateralLotSize: bigint;
|
|
155
|
-
prevTokenAmount: bigint;
|
|
156
|
-
nextTokenAmount: bigint;
|
|
157
|
-
totalSupplyShareToken: bigint;
|
|
158
|
-
fBrokerFundCashCC: bigint;
|
|
159
|
-
};
|
|
160
|
-
type MarginAccountStruct = {
|
|
161
|
-
fLockedInValueQC: BigNumberish;
|
|
162
|
-
fCashCC: BigNumberish;
|
|
163
|
-
fPositionBC: BigNumberish;
|
|
164
|
-
fUnitAccumulatedFundingStart: BigNumberish;
|
|
165
|
-
};
|
|
166
|
-
type MarginAccountStructOutput = [
|
|
167
|
-
fLockedInValueQC: bigint,
|
|
168
|
-
fCashCC: bigint,
|
|
169
|
-
fPositionBC: bigint,
|
|
170
|
-
fUnitAccumulatedFundingStart: bigint
|
|
171
|
-
] & {
|
|
172
|
-
fLockedInValueQC: bigint;
|
|
173
|
-
fCashCC: bigint;
|
|
174
|
-
fPositionBC: bigint;
|
|
175
|
-
fUnitAccumulatedFundingStart: bigint;
|
|
176
|
-
};
|
|
177
|
-
type PriceTimeDataStruct = {
|
|
178
|
-
fPrice: BigNumberish;
|
|
179
|
-
time: BigNumberish;
|
|
180
|
-
};
|
|
181
|
-
type PriceTimeDataStructOutput = [fPrice: bigint, time: bigint] & {
|
|
182
|
-
fPrice: bigint;
|
|
183
|
-
time: bigint;
|
|
184
|
-
};
|
|
185
|
-
type PerpetualDataStruct = {
|
|
186
|
-
poolId: BigNumberish;
|
|
187
|
-
id: BigNumberish;
|
|
188
|
-
fInitialMarginRate: BigNumberish;
|
|
189
|
-
fSigma2: BigNumberish;
|
|
190
|
-
iLastFundingTime: BigNumberish;
|
|
191
|
-
fDFCoverNRate: BigNumberish;
|
|
192
|
-
fMaintenanceMarginRate: BigNumberish;
|
|
193
|
-
state: BigNumberish;
|
|
194
|
-
eCollateralCurrency: BigNumberish;
|
|
195
|
-
S2BaseCCY: BytesLike;
|
|
196
|
-
S2QuoteCCY: BytesLike;
|
|
197
|
-
incentiveSpreadTbps: BigNumberish;
|
|
198
|
-
minimalSpreadBps: BigNumberish;
|
|
199
|
-
S3BaseCCY: BytesLike;
|
|
200
|
-
S3QuoteCCY: BytesLike;
|
|
201
|
-
fSigma3: BigNumberish;
|
|
202
|
-
fRho23: BigNumberish;
|
|
203
|
-
liquidationPenaltyRateTbps: BigNumberish;
|
|
204
|
-
currentMarkPremiumRate: PerpStorage.PriceTimeDataStruct;
|
|
205
|
-
premiumRatesEMA: BigNumberish;
|
|
206
|
-
fUnitAccumulatedFunding: BigNumberish;
|
|
207
|
-
fOpenInterest: BigNumberish;
|
|
208
|
-
fTargetAMMFundSize: BigNumberish;
|
|
209
|
-
fCurrentTraderExposureEMA: BigNumberish;
|
|
210
|
-
fCurrentFundingRate: BigNumberish;
|
|
211
|
-
fLotSizeBC: BigNumberish;
|
|
212
|
-
fReferralRebateCC: BigNumberish;
|
|
213
|
-
fTargetDFSize: BigNumberish;
|
|
214
|
-
fkStar: BigNumberish;
|
|
215
|
-
fAMMTargetDD: BigNumberish;
|
|
216
|
-
perpFlags: BigNumberish;
|
|
217
|
-
fMinimalTraderExposureEMA: BigNumberish;
|
|
218
|
-
fMinimalAMMExposureEMA: BigNumberish;
|
|
219
|
-
fSettlementS3PriceData: BigNumberish;
|
|
220
|
-
fSettlementS2PriceData: BigNumberish;
|
|
221
|
-
fParams: BigNumberish;
|
|
222
|
-
fMarkPriceEMALambda: BigNumberish;
|
|
223
|
-
fFundingRateClamp: BigNumberish;
|
|
224
|
-
fMaximalTradeSizeBumpUp: BigNumberish;
|
|
225
|
-
iLastTargetPoolSizeTime: BigNumberish;
|
|
226
|
-
fStressReturnS3: [BigNumberish, BigNumberish];
|
|
227
|
-
fDFLambda: [BigNumberish, BigNumberish];
|
|
228
|
-
fCurrentAMMExposureEMA: [BigNumberish, BigNumberish];
|
|
229
|
-
fStressReturnS2: [BigNumberish, BigNumberish];
|
|
230
|
-
};
|
|
231
|
-
type PerpetualDataStructOutput = [
|
|
232
|
-
poolId: bigint,
|
|
233
|
-
id: bigint,
|
|
234
|
-
fInitialMarginRate: bigint,
|
|
235
|
-
fSigma2: bigint,
|
|
236
|
-
iLastFundingTime: bigint,
|
|
237
|
-
fDFCoverNRate: bigint,
|
|
238
|
-
fMaintenanceMarginRate: bigint,
|
|
239
|
-
state: bigint,
|
|
240
|
-
eCollateralCurrency: bigint,
|
|
241
|
-
S2BaseCCY: string,
|
|
242
|
-
S2QuoteCCY: string,
|
|
243
|
-
incentiveSpreadTbps: bigint,
|
|
244
|
-
minimalSpreadBps: bigint,
|
|
245
|
-
S3BaseCCY: string,
|
|
246
|
-
S3QuoteCCY: string,
|
|
247
|
-
fSigma3: bigint,
|
|
248
|
-
fRho23: bigint,
|
|
249
|
-
liquidationPenaltyRateTbps: bigint,
|
|
250
|
-
currentMarkPremiumRate: PerpStorage.PriceTimeDataStructOutput,
|
|
251
|
-
premiumRatesEMA: bigint,
|
|
252
|
-
fUnitAccumulatedFunding: bigint,
|
|
253
|
-
fOpenInterest: bigint,
|
|
254
|
-
fTargetAMMFundSize: bigint,
|
|
255
|
-
fCurrentTraderExposureEMA: bigint,
|
|
256
|
-
fCurrentFundingRate: bigint,
|
|
257
|
-
fLotSizeBC: bigint,
|
|
258
|
-
fReferralRebateCC: bigint,
|
|
259
|
-
fTargetDFSize: bigint,
|
|
260
|
-
fkStar: bigint,
|
|
261
|
-
fAMMTargetDD: bigint,
|
|
262
|
-
perpFlags: bigint,
|
|
263
|
-
fMinimalTraderExposureEMA: bigint,
|
|
264
|
-
fMinimalAMMExposureEMA: bigint,
|
|
265
|
-
fSettlementS3PriceData: bigint,
|
|
266
|
-
fSettlementS2PriceData: bigint,
|
|
267
|
-
fParams: bigint,
|
|
268
|
-
fMarkPriceEMALambda: bigint,
|
|
269
|
-
fFundingRateClamp: bigint,
|
|
270
|
-
fMaximalTradeSizeBumpUp: bigint,
|
|
271
|
-
iLastTargetPoolSizeTime: bigint,
|
|
272
|
-
fStressReturnS3: [bigint, bigint],
|
|
273
|
-
fDFLambda: [bigint, bigint],
|
|
274
|
-
fCurrentAMMExposureEMA: [bigint, bigint],
|
|
275
|
-
fStressReturnS2: [bigint, bigint]
|
|
276
|
-
] & {
|
|
277
|
-
poolId: bigint;
|
|
278
|
-
id: bigint;
|
|
279
|
-
fInitialMarginRate: bigint;
|
|
280
|
-
fSigma2: bigint;
|
|
281
|
-
iLastFundingTime: bigint;
|
|
282
|
-
fDFCoverNRate: bigint;
|
|
283
|
-
fMaintenanceMarginRate: bigint;
|
|
284
|
-
state: bigint;
|
|
285
|
-
eCollateralCurrency: bigint;
|
|
286
|
-
S2BaseCCY: string;
|
|
287
|
-
S2QuoteCCY: string;
|
|
288
|
-
incentiveSpreadTbps: bigint;
|
|
289
|
-
minimalSpreadBps: bigint;
|
|
290
|
-
S3BaseCCY: string;
|
|
291
|
-
S3QuoteCCY: string;
|
|
292
|
-
fSigma3: bigint;
|
|
293
|
-
fRho23: bigint;
|
|
294
|
-
liquidationPenaltyRateTbps: bigint;
|
|
295
|
-
currentMarkPremiumRate: PerpStorage.PriceTimeDataStructOutput;
|
|
296
|
-
premiumRatesEMA: bigint;
|
|
297
|
-
fUnitAccumulatedFunding: bigint;
|
|
298
|
-
fOpenInterest: bigint;
|
|
299
|
-
fTargetAMMFundSize: bigint;
|
|
300
|
-
fCurrentTraderExposureEMA: bigint;
|
|
301
|
-
fCurrentFundingRate: bigint;
|
|
302
|
-
fLotSizeBC: bigint;
|
|
303
|
-
fReferralRebateCC: bigint;
|
|
304
|
-
fTargetDFSize: bigint;
|
|
305
|
-
fkStar: bigint;
|
|
306
|
-
fAMMTargetDD: bigint;
|
|
307
|
-
perpFlags: bigint;
|
|
308
|
-
fMinimalTraderExposureEMA: bigint;
|
|
309
|
-
fMinimalAMMExposureEMA: bigint;
|
|
310
|
-
fSettlementS3PriceData: bigint;
|
|
311
|
-
fSettlementS2PriceData: bigint;
|
|
312
|
-
fParams: bigint;
|
|
313
|
-
fMarkPriceEMALambda: bigint;
|
|
314
|
-
fFundingRateClamp: bigint;
|
|
315
|
-
fMaximalTradeSizeBumpUp: bigint;
|
|
316
|
-
iLastTargetPoolSizeTime: bigint;
|
|
317
|
-
fStressReturnS3: [bigint, bigint];
|
|
318
|
-
fDFLambda: [bigint, bigint];
|
|
319
|
-
fCurrentAMMExposureEMA: [bigint, bigint];
|
|
320
|
-
fStressReturnS2: [bigint, bigint];
|
|
321
|
-
};
|
|
322
|
-
type WithdrawRequestStruct = {
|
|
323
|
-
lp: AddressLike;
|
|
324
|
-
shareTokens: BigNumberish;
|
|
325
|
-
withdrawTimestamp: BigNumberish;
|
|
326
|
-
};
|
|
327
|
-
type WithdrawRequestStructOutput = [
|
|
328
|
-
lp: string,
|
|
329
|
-
shareTokens: bigint,
|
|
330
|
-
withdrawTimestamp: bigint
|
|
331
|
-
] & {
|
|
332
|
-
lp: string;
|
|
333
|
-
shareTokens: bigint;
|
|
334
|
-
withdrawTimestamp: bigint;
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
export declare namespace IPerpetualInfo {
|
|
338
|
-
type PerpetualStaticInfoStruct = {
|
|
339
|
-
id: BigNumberish;
|
|
340
|
-
limitOrderBookAddr: AddressLike;
|
|
341
|
-
fInitialMarginRate: BigNumberish;
|
|
342
|
-
fMaintenanceMarginRate: BigNumberish;
|
|
343
|
-
perpetualState: BigNumberish;
|
|
344
|
-
collCurrencyType: BigNumberish;
|
|
345
|
-
S2BaseCCY: BytesLike;
|
|
346
|
-
S2QuoteCCY: BytesLike;
|
|
347
|
-
S3BaseCCY: BytesLike;
|
|
348
|
-
S3QuoteCCY: BytesLike;
|
|
349
|
-
fLotSizeBC: BigNumberish;
|
|
350
|
-
fReferralRebateCC: BigNumberish;
|
|
351
|
-
priceIds: BytesLike[];
|
|
352
|
-
isPyth: boolean[];
|
|
353
|
-
perpFlags: BigNumberish;
|
|
354
|
-
};
|
|
355
|
-
type PerpetualStaticInfoStructOutput = [
|
|
356
|
-
id: bigint,
|
|
357
|
-
limitOrderBookAddr: string,
|
|
358
|
-
fInitialMarginRate: bigint,
|
|
359
|
-
fMaintenanceMarginRate: bigint,
|
|
360
|
-
perpetualState: bigint,
|
|
361
|
-
collCurrencyType: bigint,
|
|
362
|
-
S2BaseCCY: string,
|
|
363
|
-
S2QuoteCCY: string,
|
|
364
|
-
S3BaseCCY: string,
|
|
365
|
-
S3QuoteCCY: string,
|
|
366
|
-
fLotSizeBC: bigint,
|
|
367
|
-
fReferralRebateCC: bigint,
|
|
368
|
-
priceIds: string[],
|
|
369
|
-
isPyth: boolean[],
|
|
370
|
-
perpFlags: bigint
|
|
371
|
-
] & {
|
|
372
|
-
id: bigint;
|
|
373
|
-
limitOrderBookAddr: string;
|
|
374
|
-
fInitialMarginRate: bigint;
|
|
375
|
-
fMaintenanceMarginRate: bigint;
|
|
376
|
-
perpetualState: bigint;
|
|
377
|
-
collCurrencyType: bigint;
|
|
378
|
-
S2BaseCCY: string;
|
|
379
|
-
S2QuoteCCY: string;
|
|
380
|
-
S3BaseCCY: string;
|
|
381
|
-
S3QuoteCCY: string;
|
|
382
|
-
fLotSizeBC: bigint;
|
|
383
|
-
fReferralRebateCC: bigint;
|
|
384
|
-
priceIds: string[];
|
|
385
|
-
isPyth: boolean[];
|
|
386
|
-
perpFlags: bigint;
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
export interface IPerpetualManagerCopyInterface extends Interface {
|
|
390
|
-
getFunction(nameOrSignature: "activatePerpetual" | "addLiquidity" | "adjustSettlementPrice" | "calculateDefaultFundSize" | "calculatePerpetualPrice" | "calculateRiskNeutralPD" | "clearTradersInPool" | "countActivePerpAccounts" | "createLiquidityPool" | "createPerpetual" | "deactivatePerp" | "decodeUint16Float" | "decreasePoolCash" | "deposit" | "depositBrokerLots" | "depositMarginForOpeningTrade" | "depositToDefaultFund" | "determineExchangeFee" | "distributeFees" | "distributeFeesLiquidation" | "entropy" | "executeCancelOrder" | "executeLiquidityWithdrawal" | "executeTrade" | "getAMMPerpLogic" | "getAMMState" | "getActivePerpAccounts" | "getActivePerpAccountsByChunks" | "getBrokerDesignation" | "getBrokerInducedFee" | "getCollateralTokenAmountForPricing" | "getCurrentBrokerVolume" | "getCurrentTraderVolume" | "getDepositAmountForLvgPosition" | "getExchangeFeePrdMkts" | "getFeeForBrokerDesignation" | "getFeeForBrokerStake" | "getFeeForBrokerVolume" | "getFeeForTraderStake" | "getFeeForTraderVolume" | "getLastPerpetualBaseToUSDConversion" | "getLiquidatableAccounts" | "getLiquidityPool" | "getLiquidityPools" | "getMarginAccount" | "getMarginAccounts" | "getMaxSignedOpenTradeSizeForPos" | "getNextLiquidatableTrader" | "getOracleFactory" | "getOraclePrice" | "getOracleUpdateTime" | "getOrderBookAddress" | "getOrderBookFactoryAddress" | "getPerpetual" | "getPerpetualCountInPool" | "getPerpetualId" | "getPerpetualStaticInfo" | "getPerpetuals" | "getPoolCount" | "getPoolIdByPerpetualId" | "getPoolStaticInfo" | "getPriceInfo" | "getSettleableAccounts" | "getShareTokenFactory" | "getShareTokenPriceD18" | "getTargetCollateralM1" | "getTargetCollateralM2" | "getTargetCollateralM3" | "getTokenAmountToReturn" | "getTraderState" | "getTreasuryAddress" | "getWithdrawRequests" | "increasePoolCash" | "isActiveAccount" | "isDelegate" | "isMarketClosed" | "isOrderCanceled" | "isOrderExecuted" | "isPerpMarketClosed" | "liquidateByAMM" | "pauseLiquidityProvision" | "prdMktsLvgFee" | "preTrade" | "priceImpact" | "queryExchangeFee" | "queryMidPrices" | "queryPerpetualPrice" | "rebalance" | "reduceMarginCollateral" | "resetMarkPremium" | "runLiquidityPool" | "setAMMPerpLogic" | "setBlockDelay" | "setBrokerTiers" | "setBrokerVolumeTiers" | "setDelegate" | "setEmergencyState" | "setFeesForDesignation" | "setInitialVolumeForFee" | "setNormalState" | "setOracleFactory" | "setOracleFactoryForPerpetual" | "setOrderBookFactory" | "setPerpetualBaseParams" | "setPerpetualOracles" | "setPerpetualParam" | "setPerpetualParamPair" | "setPerpetualPoolFactory" | "setPerpetualRiskParams" | "setPoolParam" | "setTraderTiers" | "setTraderVolumeTiers" | "setTreasury" | "setUtilityTokenAddr" | "settle" | "settleNextTraderInPool" | "settleTraders" | "splitProtocolFee" | "testTradeEvent" | "togglePerpEmergencyState" | "tradeViaOrderBook" | "transferBrokerLots" | "transferBrokerOwnership" | "transferEarningsToTreasury" | "transferValueToTreasury" | "updateAMMTargetFundSize" | "updateDefaultFundTargetSize" | "updateFundingAndPricesAfter" | "updateFundingAndPricesBefore" | "updatePriceFeeds" | "updateVolumeEMAOnNewTrade" | "validateStopPrice" | "withdraw" | "withdrawAll" | "withdrawDepositFromMarginAccount" | "withdrawFromDefaultFund" | "withdrawLiquidity"): FunctionFragment;
|
|
391
|
-
getEvent(nameOrSignatureOrTopic: "BrokerLotsTransferred" | "BrokerVolumeTransferred" | "Clear" | "DistributeFees" | "Liquidate" | "LiquidityAdded" | "LiquidityPoolCreated" | "LiquidityProvisionPaused" | "LiquidityRemoved" | "LiquidityWithdrawalInitiated" | "PerpetualCreated" | "PerpetualLimitOrderCancelled" | "RunLiquidityPool" | "SetBlockDelay" | "SetBrokerDesignations" | "SetBrokerTiers" | "SetBrokerVolumeTiers" | "SetClearedState" | "SetDelegate" | "SetEmergencyState" | "SetNormalState" | "SetOracles" | "SetParameter" | "SetParameterPair" | "SetPerpetualBaseParameters" | "SetPerpetualRiskParameters" | "SetPoolParameter" | "SetTraderTiers" | "SetTraderVolumeTiers" | "SetUtilityToken" | "Settle" | "SettleState" | "SettlementComplete" | "TokensDeposited" | "TokensWithdrawn" | "Trade" | "TransferAddressTo" | "UpdateBrokerAddedCash" | "UpdateFundingRate" | "UpdateMarginAccount" | "UpdateMarkPrice"): EventFragment;
|
|
392
|
-
encodeFunctionData(functionFragment: "activatePerpetual", values: [BigNumberish]): string;
|
|
393
|
-
encodeFunctionData(functionFragment: "addLiquidity", values: [BigNumberish, BigNumberish]): string;
|
|
394
|
-
encodeFunctionData(functionFragment: "adjustSettlementPrice", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
395
|
-
encodeFunctionData(functionFragment: "calculateDefaultFundSize", values: [
|
|
396
|
-
[
|
|
397
|
-
BigNumberish,
|
|
398
|
-
BigNumberish
|
|
399
|
-
],
|
|
400
|
-
BigNumberish,
|
|
401
|
-
BigNumberish,
|
|
402
|
-
[
|
|
403
|
-
BigNumberish,
|
|
404
|
-
BigNumberish
|
|
405
|
-
],
|
|
406
|
-
[
|
|
407
|
-
BigNumberish,
|
|
408
|
-
BigNumberish
|
|
409
|
-
],
|
|
410
|
-
[
|
|
411
|
-
BigNumberish,
|
|
412
|
-
BigNumberish
|
|
413
|
-
],
|
|
414
|
-
BigNumberish
|
|
415
|
-
]): string;
|
|
416
|
-
encodeFunctionData(functionFragment: "calculatePerpetualPrice", values: [
|
|
417
|
-
AMMPerpLogic.AMMVariablesStruct,
|
|
418
|
-
AMMPerpLogic.MarketVariablesStruct,
|
|
419
|
-
BigNumberish,
|
|
420
|
-
BigNumberish,
|
|
421
|
-
BigNumberish
|
|
422
|
-
]): string;
|
|
423
|
-
encodeFunctionData(functionFragment: "calculateRiskNeutralPD", values: [
|
|
424
|
-
AMMPerpLogic.AMMVariablesStruct,
|
|
425
|
-
AMMPerpLogic.MarketVariablesStruct,
|
|
426
|
-
BigNumberish,
|
|
427
|
-
boolean
|
|
428
|
-
]): string;
|
|
429
|
-
encodeFunctionData(functionFragment: "clearTradersInPool", values: [BigNumberish, BigNumberish]): string;
|
|
430
|
-
encodeFunctionData(functionFragment: "countActivePerpAccounts", values: [BigNumberish]): string;
|
|
431
|
-
encodeFunctionData(functionFragment: "createLiquidityPool", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
432
|
-
encodeFunctionData(functionFragment: "createPerpetual", values: [
|
|
433
|
-
BigNumberish,
|
|
434
|
-
[
|
|
435
|
-
BytesLike,
|
|
436
|
-
BytesLike
|
|
437
|
-
],
|
|
438
|
-
[
|
|
439
|
-
BytesLike,
|
|
440
|
-
BytesLike
|
|
441
|
-
],
|
|
442
|
-
BigNumberish[],
|
|
443
|
-
[
|
|
444
|
-
BigNumberish,
|
|
445
|
-
BigNumberish,
|
|
446
|
-
BigNumberish,
|
|
447
|
-
BigNumberish,
|
|
448
|
-
BigNumberish
|
|
449
|
-
],
|
|
450
|
-
BigNumberish[],
|
|
451
|
-
BigNumberish
|
|
452
|
-
]): string;
|
|
453
|
-
encodeFunctionData(functionFragment: "deactivatePerp", values: [BigNumberish]): string;
|
|
454
|
-
encodeFunctionData(functionFragment: "decodeUint16Float", values: [BigNumberish]): string;
|
|
455
|
-
encodeFunctionData(functionFragment: "decreasePoolCash", values: [BigNumberish, BigNumberish]): string;
|
|
456
|
-
encodeFunctionData(functionFragment: "deposit", values: [
|
|
457
|
-
BigNumberish,
|
|
458
|
-
AddressLike,
|
|
459
|
-
BigNumberish,
|
|
460
|
-
BytesLike[],
|
|
461
|
-
BigNumberish[]
|
|
462
|
-
]): string;
|
|
463
|
-
encodeFunctionData(functionFragment: "depositBrokerLots", values: [BigNumberish, BigNumberish]): string;
|
|
464
|
-
encodeFunctionData(functionFragment: "depositMarginForOpeningTrade", values: [BigNumberish, BigNumberish, IPerpetualOrder.OrderStruct]): string;
|
|
465
|
-
encodeFunctionData(functionFragment: "depositToDefaultFund", values: [BigNumberish, BigNumberish]): string;
|
|
466
|
-
encodeFunctionData(functionFragment: "determineExchangeFee", values: [IPerpetualOrder.OrderStruct]): string;
|
|
467
|
-
encodeFunctionData(functionFragment: "distributeFees", values: [IPerpetualOrder.OrderStruct, BigNumberish, BigNumberish, boolean]): string;
|
|
468
|
-
encodeFunctionData(functionFragment: "distributeFeesLiquidation", values: [BigNumberish, AddressLike, BigNumberish, BigNumberish]): string;
|
|
469
|
-
encodeFunctionData(functionFragment: "entropy", values: [BigNumberish]): string;
|
|
470
|
-
encodeFunctionData(functionFragment: "executeCancelOrder", values: [BigNumberish, BytesLike]): string;
|
|
471
|
-
encodeFunctionData(functionFragment: "executeLiquidityWithdrawal", values: [BigNumberish, AddressLike]): string;
|
|
472
|
-
encodeFunctionData(functionFragment: "executeTrade", values: [
|
|
473
|
-
BigNumberish,
|
|
474
|
-
AddressLike,
|
|
475
|
-
BigNumberish,
|
|
476
|
-
BigNumberish,
|
|
477
|
-
BigNumberish,
|
|
478
|
-
boolean
|
|
479
|
-
]): string;
|
|
480
|
-
encodeFunctionData(functionFragment: "getAMMPerpLogic", values?: undefined): string;
|
|
481
|
-
encodeFunctionData(functionFragment: "getAMMState", values: [BigNumberish, [BigNumberish, BigNumberish]]): string;
|
|
482
|
-
encodeFunctionData(functionFragment: "getActivePerpAccounts", values: [BigNumberish]): string;
|
|
483
|
-
encodeFunctionData(functionFragment: "getActivePerpAccountsByChunks", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
484
|
-
encodeFunctionData(functionFragment: "getBrokerDesignation", values: [BigNumberish, AddressLike]): string;
|
|
485
|
-
encodeFunctionData(functionFragment: "getBrokerInducedFee", values: [BigNumberish, AddressLike]): string;
|
|
486
|
-
encodeFunctionData(functionFragment: "getCollateralTokenAmountForPricing", values: [BigNumberish]): string;
|
|
487
|
-
encodeFunctionData(functionFragment: "getCurrentBrokerVolume", values: [BigNumberish, AddressLike]): string;
|
|
488
|
-
encodeFunctionData(functionFragment: "getCurrentTraderVolume", values: [BigNumberish, AddressLike]): string;
|
|
489
|
-
encodeFunctionData(functionFragment: "getDepositAmountForLvgPosition", values: [
|
|
490
|
-
BigNumberish,
|
|
491
|
-
BigNumberish,
|
|
492
|
-
BigNumberish,
|
|
493
|
-
BigNumberish,
|
|
494
|
-
BigNumberish,
|
|
495
|
-
BigNumberish,
|
|
496
|
-
BigNumberish,
|
|
497
|
-
BigNumberish
|
|
498
|
-
]): string;
|
|
499
|
-
encodeFunctionData(functionFragment: "getExchangeFeePrdMkts", values: [BigNumberish, BigNumberish, BigNumberish, AddressLike]): string;
|
|
500
|
-
encodeFunctionData(functionFragment: "getFeeForBrokerDesignation", values: [BigNumberish]): string;
|
|
501
|
-
encodeFunctionData(functionFragment: "getFeeForBrokerStake", values: [AddressLike]): string;
|
|
502
|
-
encodeFunctionData(functionFragment: "getFeeForBrokerVolume", values: [BigNumberish, AddressLike]): string;
|
|
503
|
-
encodeFunctionData(functionFragment: "getFeeForTraderStake", values: [AddressLike]): string;
|
|
504
|
-
encodeFunctionData(functionFragment: "getFeeForTraderVolume", values: [BigNumberish, AddressLike]): string;
|
|
505
|
-
encodeFunctionData(functionFragment: "getLastPerpetualBaseToUSDConversion", values: [BigNumberish]): string;
|
|
506
|
-
encodeFunctionData(functionFragment: "getLiquidatableAccounts", values: [BigNumberish, [BigNumberish, BigNumberish]]): string;
|
|
507
|
-
encodeFunctionData(functionFragment: "getLiquidityPool", values: [BigNumberish]): string;
|
|
508
|
-
encodeFunctionData(functionFragment: "getLiquidityPools", values: [BigNumberish, BigNumberish]): string;
|
|
509
|
-
encodeFunctionData(functionFragment: "getMarginAccount", values: [BigNumberish, AddressLike]): string;
|
|
510
|
-
encodeFunctionData(functionFragment: "getMarginAccounts", values: [BigNumberish[], AddressLike]): string;
|
|
511
|
-
encodeFunctionData(functionFragment: "getMaxSignedOpenTradeSizeForPos", values: [BigNumberish, BigNumberish, boolean]): string;
|
|
512
|
-
encodeFunctionData(functionFragment: "getNextLiquidatableTrader", values: [BigNumberish, [BigNumberish, BigNumberish]]): string;
|
|
513
|
-
encodeFunctionData(functionFragment: "getOracleFactory", values?: undefined): string;
|
|
514
|
-
encodeFunctionData(functionFragment: "getOraclePrice", values: [[BytesLike, BytesLike]]): string;
|
|
515
|
-
encodeFunctionData(functionFragment: "getOracleUpdateTime", values: [BigNumberish]): string;
|
|
516
|
-
encodeFunctionData(functionFragment: "getOrderBookAddress", values: [BigNumberish]): string;
|
|
517
|
-
encodeFunctionData(functionFragment: "getOrderBookFactoryAddress", values?: undefined): string;
|
|
518
|
-
encodeFunctionData(functionFragment: "getPerpetual", values: [BigNumberish]): string;
|
|
519
|
-
encodeFunctionData(functionFragment: "getPerpetualCountInPool", values: [BigNumberish]): string;
|
|
520
|
-
encodeFunctionData(functionFragment: "getPerpetualId", values: [BigNumberish, BigNumberish]): string;
|
|
521
|
-
encodeFunctionData(functionFragment: "getPerpetualStaticInfo", values: [BigNumberish[]]): string;
|
|
522
|
-
encodeFunctionData(functionFragment: "getPerpetuals", values: [BigNumberish[]]): string;
|
|
523
|
-
encodeFunctionData(functionFragment: "getPoolCount", values?: undefined): string;
|
|
524
|
-
encodeFunctionData(functionFragment: "getPoolIdByPerpetualId", values: [BigNumberish]): string;
|
|
525
|
-
encodeFunctionData(functionFragment: "getPoolStaticInfo", values: [BigNumberish, BigNumberish]): string;
|
|
526
|
-
encodeFunctionData(functionFragment: "getPriceInfo", values: [BigNumberish]): string;
|
|
527
|
-
encodeFunctionData(functionFragment: "getSettleableAccounts", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
528
|
-
encodeFunctionData(functionFragment: "getShareTokenFactory", values?: undefined): string;
|
|
529
|
-
encodeFunctionData(functionFragment: "getShareTokenPriceD18", values: [BigNumberish]): string;
|
|
530
|
-
encodeFunctionData(functionFragment: "getTargetCollateralM1", values: [
|
|
531
|
-
BigNumberish,
|
|
532
|
-
BigNumberish,
|
|
533
|
-
AMMPerpLogic.MarketVariablesStruct,
|
|
534
|
-
BigNumberish
|
|
535
|
-
]): string;
|
|
536
|
-
encodeFunctionData(functionFragment: "getTargetCollateralM2", values: [
|
|
537
|
-
BigNumberish,
|
|
538
|
-
BigNumberish,
|
|
539
|
-
AMMPerpLogic.MarketVariablesStruct,
|
|
540
|
-
BigNumberish
|
|
541
|
-
]): string;
|
|
542
|
-
encodeFunctionData(functionFragment: "getTargetCollateralM3", values: [
|
|
543
|
-
BigNumberish,
|
|
544
|
-
BigNumberish,
|
|
545
|
-
AMMPerpLogic.MarketVariablesStruct,
|
|
546
|
-
BigNumberish
|
|
547
|
-
]): string;
|
|
548
|
-
encodeFunctionData(functionFragment: "getTokenAmountToReturn", values: [BigNumberish, BigNumberish]): string;
|
|
549
|
-
encodeFunctionData(functionFragment: "getTraderState", values: [BigNumberish, AddressLike, [BigNumberish, BigNumberish]]): string;
|
|
550
|
-
encodeFunctionData(functionFragment: "getTreasuryAddress", values?: undefined): string;
|
|
551
|
-
encodeFunctionData(functionFragment: "getWithdrawRequests", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
552
|
-
encodeFunctionData(functionFragment: "increasePoolCash", values: [BigNumberish, BigNumberish]): string;
|
|
553
|
-
encodeFunctionData(functionFragment: "isActiveAccount", values: [BigNumberish, AddressLike]): string;
|
|
554
|
-
encodeFunctionData(functionFragment: "isDelegate", values: [AddressLike, AddressLike]): string;
|
|
555
|
-
encodeFunctionData(functionFragment: "isMarketClosed", values: [BytesLike, BytesLike]): string;
|
|
556
|
-
encodeFunctionData(functionFragment: "isOrderCanceled", values: [BytesLike]): string;
|
|
557
|
-
encodeFunctionData(functionFragment: "isOrderExecuted", values: [BytesLike]): string;
|
|
558
|
-
encodeFunctionData(functionFragment: "isPerpMarketClosed", values: [BigNumberish]): string;
|
|
559
|
-
encodeFunctionData(functionFragment: "liquidateByAMM", values: [
|
|
560
|
-
BigNumberish,
|
|
561
|
-
AddressLike,
|
|
562
|
-
AddressLike,
|
|
563
|
-
BytesLike[],
|
|
564
|
-
BigNumberish[]
|
|
565
|
-
]): string;
|
|
566
|
-
encodeFunctionData(functionFragment: "pauseLiquidityProvision", values: [BigNumberish, boolean]): string;
|
|
567
|
-
encodeFunctionData(functionFragment: "prdMktsLvgFee", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
568
|
-
encodeFunctionData(functionFragment: "preTrade", values: [IPerpetualOrder.OrderStruct]): string;
|
|
569
|
-
encodeFunctionData(functionFragment: "priceImpact", values: [BigNumberish, BigNumberish]): string;
|
|
570
|
-
encodeFunctionData(functionFragment: "queryExchangeFee", values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
571
|
-
encodeFunctionData(functionFragment: "queryMidPrices", values: [BigNumberish[], BigNumberish[]]): string;
|
|
572
|
-
encodeFunctionData(functionFragment: "queryPerpetualPrice", values: [
|
|
573
|
-
BigNumberish,
|
|
574
|
-
BigNumberish,
|
|
575
|
-
[
|
|
576
|
-
BigNumberish,
|
|
577
|
-
BigNumberish
|
|
578
|
-
],
|
|
579
|
-
BigNumberish,
|
|
580
|
-
BigNumberish
|
|
581
|
-
]): string;
|
|
582
|
-
encodeFunctionData(functionFragment: "rebalance", values: [BigNumberish]): string;
|
|
583
|
-
encodeFunctionData(functionFragment: "reduceMarginCollateral", values: [BigNumberish, AddressLike, BigNumberish]): string;
|
|
584
|
-
encodeFunctionData(functionFragment: "resetMarkPremium", values: [BigNumberish]): string;
|
|
585
|
-
encodeFunctionData(functionFragment: "runLiquidityPool", values: [BigNumberish]): string;
|
|
586
|
-
encodeFunctionData(functionFragment: "setAMMPerpLogic", values: [AddressLike]): string;
|
|
587
|
-
encodeFunctionData(functionFragment: "setBlockDelay", values: [BigNumberish]): string;
|
|
588
|
-
encodeFunctionData(functionFragment: "setBrokerTiers", values: [BigNumberish[], BigNumberish[]]): string;
|
|
589
|
-
encodeFunctionData(functionFragment: "setBrokerVolumeTiers", values: [BigNumberish[], BigNumberish[]]): string;
|
|
590
|
-
encodeFunctionData(functionFragment: "setDelegate", values: [AddressLike, BigNumberish]): string;
|
|
591
|
-
encodeFunctionData(functionFragment: "setEmergencyState", values: [BigNumberish]): string;
|
|
592
|
-
encodeFunctionData(functionFragment: "setFeesForDesignation", values: [BigNumberish[], BigNumberish[]]): string;
|
|
593
|
-
encodeFunctionData(functionFragment: "setInitialVolumeForFee", values: [BigNumberish, AddressLike, BigNumberish]): string;
|
|
594
|
-
encodeFunctionData(functionFragment: "setNormalState", values: [BigNumberish]): string;
|
|
595
|
-
encodeFunctionData(functionFragment: "setOracleFactory", values: [AddressLike]): string;
|
|
596
|
-
encodeFunctionData(functionFragment: "setOracleFactoryForPerpetual", values: [BigNumberish, AddressLike]): string;
|
|
597
|
-
encodeFunctionData(functionFragment: "setOrderBookFactory", values: [AddressLike]): string;
|
|
598
|
-
encodeFunctionData(functionFragment: "setPerpetualBaseParams", values: [BigNumberish, BigNumberish[]]): string;
|
|
599
|
-
encodeFunctionData(functionFragment: "setPerpetualOracles", values: [BigNumberish, [BytesLike, BytesLike], [BytesLike, BytesLike]]): string;
|
|
600
|
-
encodeFunctionData(functionFragment: "setPerpetualParam", values: [BigNumberish, string, BigNumberish]): string;
|
|
601
|
-
encodeFunctionData(functionFragment: "setPerpetualParamPair", values: [BigNumberish, string, BigNumberish, BigNumberish]): string;
|
|
602
|
-
encodeFunctionData(functionFragment: "setPerpetualPoolFactory", values: [AddressLike]): string;
|
|
603
|
-
encodeFunctionData(functionFragment: "setPerpetualRiskParams", values: [
|
|
604
|
-
BigNumberish,
|
|
605
|
-
[
|
|
606
|
-
BigNumberish,
|
|
607
|
-
BigNumberish,
|
|
608
|
-
BigNumberish,
|
|
609
|
-
BigNumberish,
|
|
610
|
-
BigNumberish
|
|
611
|
-
],
|
|
612
|
-
BigNumberish[]
|
|
613
|
-
]): string;
|
|
614
|
-
encodeFunctionData(functionFragment: "setPoolParam", values: [BigNumberish, string, BigNumberish]): string;
|
|
615
|
-
encodeFunctionData(functionFragment: "setTraderTiers", values: [BigNumberish[], BigNumberish[]]): string;
|
|
616
|
-
encodeFunctionData(functionFragment: "setTraderVolumeTiers", values: [BigNumberish[], BigNumberish[]]): string;
|
|
617
|
-
encodeFunctionData(functionFragment: "setTreasury", values: [AddressLike]): string;
|
|
618
|
-
encodeFunctionData(functionFragment: "setUtilityTokenAddr", values: [AddressLike]): string;
|
|
619
|
-
encodeFunctionData(functionFragment: "settle", values: [BigNumberish, AddressLike]): string;
|
|
620
|
-
encodeFunctionData(functionFragment: "settleNextTraderInPool", values: [BigNumberish]): string;
|
|
621
|
-
encodeFunctionData(functionFragment: "settleTraders", values: [BigNumberish, BigNumberish]): string;
|
|
622
|
-
encodeFunctionData(functionFragment: "splitProtocolFee", values: [BigNumberish]): string;
|
|
623
|
-
encodeFunctionData(functionFragment: "testTradeEvent", values: [IPerpetualOrder.OrderStruct]): string;
|
|
624
|
-
encodeFunctionData(functionFragment: "togglePerpEmergencyState", values: [BigNumberish]): string;
|
|
625
|
-
encodeFunctionData(functionFragment: "tradeViaOrderBook", values: [IPerpetualOrder.OrderStruct, AddressLike]): string;
|
|
626
|
-
encodeFunctionData(functionFragment: "transferBrokerLots", values: [BigNumberish, AddressLike, BigNumberish]): string;
|
|
627
|
-
encodeFunctionData(functionFragment: "transferBrokerOwnership", values: [BigNumberish, AddressLike]): string;
|
|
628
|
-
encodeFunctionData(functionFragment: "transferEarningsToTreasury", values: [BigNumberish, BigNumberish]): string;
|
|
629
|
-
encodeFunctionData(functionFragment: "transferValueToTreasury", values?: undefined): string;
|
|
630
|
-
encodeFunctionData(functionFragment: "updateAMMTargetFundSize", values: [BigNumberish]): string;
|
|
631
|
-
encodeFunctionData(functionFragment: "updateDefaultFundTargetSize", values: [BigNumberish]): string;
|
|
632
|
-
encodeFunctionData(functionFragment: "updateFundingAndPricesAfter", values: [BigNumberish]): string;
|
|
633
|
-
encodeFunctionData(functionFragment: "updateFundingAndPricesBefore", values: [BigNumberish, boolean]): string;
|
|
634
|
-
encodeFunctionData(functionFragment: "updatePriceFeeds", values: [BigNumberish, BytesLike[], BigNumberish[], BigNumberish]): string;
|
|
635
|
-
encodeFunctionData(functionFragment: "updateVolumeEMAOnNewTrade", values: [BigNumberish, AddressLike, AddressLike, BigNumberish]): string;
|
|
636
|
-
encodeFunctionData(functionFragment: "validateStopPrice", values: [boolean, BigNumberish, BigNumberish]): string;
|
|
637
|
-
encodeFunctionData(functionFragment: "withdraw", values: [
|
|
638
|
-
BigNumberish,
|
|
639
|
-
AddressLike,
|
|
640
|
-
BigNumberish,
|
|
641
|
-
BytesLike[],
|
|
642
|
-
BigNumberish[]
|
|
643
|
-
]): string;
|
|
644
|
-
encodeFunctionData(functionFragment: "withdrawAll", values: [BigNumberish, AddressLike, BytesLike[], BigNumberish[]]): string;
|
|
645
|
-
encodeFunctionData(functionFragment: "withdrawDepositFromMarginAccount", values: [BigNumberish, AddressLike]): string;
|
|
646
|
-
encodeFunctionData(functionFragment: "withdrawFromDefaultFund", values: [BigNumberish, BigNumberish]): string;
|
|
647
|
-
encodeFunctionData(functionFragment: "withdrawLiquidity", values: [BigNumberish, BigNumberish, AddressLike]): string;
|
|
648
|
-
decodeFunctionResult(functionFragment: "activatePerpetual", data: BytesLike): Result;
|
|
649
|
-
decodeFunctionResult(functionFragment: "addLiquidity", data: BytesLike): Result;
|
|
650
|
-
decodeFunctionResult(functionFragment: "adjustSettlementPrice", data: BytesLike): Result;
|
|
651
|
-
decodeFunctionResult(functionFragment: "calculateDefaultFundSize", data: BytesLike): Result;
|
|
652
|
-
decodeFunctionResult(functionFragment: "calculatePerpetualPrice", data: BytesLike): Result;
|
|
653
|
-
decodeFunctionResult(functionFragment: "calculateRiskNeutralPD", data: BytesLike): Result;
|
|
654
|
-
decodeFunctionResult(functionFragment: "clearTradersInPool", data: BytesLike): Result;
|
|
655
|
-
decodeFunctionResult(functionFragment: "countActivePerpAccounts", data: BytesLike): Result;
|
|
656
|
-
decodeFunctionResult(functionFragment: "createLiquidityPool", data: BytesLike): Result;
|
|
657
|
-
decodeFunctionResult(functionFragment: "createPerpetual", data: BytesLike): Result;
|
|
658
|
-
decodeFunctionResult(functionFragment: "deactivatePerp", data: BytesLike): Result;
|
|
659
|
-
decodeFunctionResult(functionFragment: "decodeUint16Float", data: BytesLike): Result;
|
|
660
|
-
decodeFunctionResult(functionFragment: "decreasePoolCash", data: BytesLike): Result;
|
|
661
|
-
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
662
|
-
decodeFunctionResult(functionFragment: "depositBrokerLots", data: BytesLike): Result;
|
|
663
|
-
decodeFunctionResult(functionFragment: "depositMarginForOpeningTrade", data: BytesLike): Result;
|
|
664
|
-
decodeFunctionResult(functionFragment: "depositToDefaultFund", data: BytesLike): Result;
|
|
665
|
-
decodeFunctionResult(functionFragment: "determineExchangeFee", data: BytesLike): Result;
|
|
666
|
-
decodeFunctionResult(functionFragment: "distributeFees", data: BytesLike): Result;
|
|
667
|
-
decodeFunctionResult(functionFragment: "distributeFeesLiquidation", data: BytesLike): Result;
|
|
668
|
-
decodeFunctionResult(functionFragment: "entropy", data: BytesLike): Result;
|
|
669
|
-
decodeFunctionResult(functionFragment: "executeCancelOrder", data: BytesLike): Result;
|
|
670
|
-
decodeFunctionResult(functionFragment: "executeLiquidityWithdrawal", data: BytesLike): Result;
|
|
671
|
-
decodeFunctionResult(functionFragment: "executeTrade", data: BytesLike): Result;
|
|
672
|
-
decodeFunctionResult(functionFragment: "getAMMPerpLogic", data: BytesLike): Result;
|
|
673
|
-
decodeFunctionResult(functionFragment: "getAMMState", data: BytesLike): Result;
|
|
674
|
-
decodeFunctionResult(functionFragment: "getActivePerpAccounts", data: BytesLike): Result;
|
|
675
|
-
decodeFunctionResult(functionFragment: "getActivePerpAccountsByChunks", data: BytesLike): Result;
|
|
676
|
-
decodeFunctionResult(functionFragment: "getBrokerDesignation", data: BytesLike): Result;
|
|
677
|
-
decodeFunctionResult(functionFragment: "getBrokerInducedFee", data: BytesLike): Result;
|
|
678
|
-
decodeFunctionResult(functionFragment: "getCollateralTokenAmountForPricing", data: BytesLike): Result;
|
|
679
|
-
decodeFunctionResult(functionFragment: "getCurrentBrokerVolume", data: BytesLike): Result;
|
|
680
|
-
decodeFunctionResult(functionFragment: "getCurrentTraderVolume", data: BytesLike): Result;
|
|
681
|
-
decodeFunctionResult(functionFragment: "getDepositAmountForLvgPosition", data: BytesLike): Result;
|
|
682
|
-
decodeFunctionResult(functionFragment: "getExchangeFeePrdMkts", data: BytesLike): Result;
|
|
683
|
-
decodeFunctionResult(functionFragment: "getFeeForBrokerDesignation", data: BytesLike): Result;
|
|
684
|
-
decodeFunctionResult(functionFragment: "getFeeForBrokerStake", data: BytesLike): Result;
|
|
685
|
-
decodeFunctionResult(functionFragment: "getFeeForBrokerVolume", data: BytesLike): Result;
|
|
686
|
-
decodeFunctionResult(functionFragment: "getFeeForTraderStake", data: BytesLike): Result;
|
|
687
|
-
decodeFunctionResult(functionFragment: "getFeeForTraderVolume", data: BytesLike): Result;
|
|
688
|
-
decodeFunctionResult(functionFragment: "getLastPerpetualBaseToUSDConversion", data: BytesLike): Result;
|
|
689
|
-
decodeFunctionResult(functionFragment: "getLiquidatableAccounts", data: BytesLike): Result;
|
|
690
|
-
decodeFunctionResult(functionFragment: "getLiquidityPool", data: BytesLike): Result;
|
|
691
|
-
decodeFunctionResult(functionFragment: "getLiquidityPools", data: BytesLike): Result;
|
|
692
|
-
decodeFunctionResult(functionFragment: "getMarginAccount", data: BytesLike): Result;
|
|
693
|
-
decodeFunctionResult(functionFragment: "getMarginAccounts", data: BytesLike): Result;
|
|
694
|
-
decodeFunctionResult(functionFragment: "getMaxSignedOpenTradeSizeForPos", data: BytesLike): Result;
|
|
695
|
-
decodeFunctionResult(functionFragment: "getNextLiquidatableTrader", data: BytesLike): Result;
|
|
696
|
-
decodeFunctionResult(functionFragment: "getOracleFactory", data: BytesLike): Result;
|
|
697
|
-
decodeFunctionResult(functionFragment: "getOraclePrice", data: BytesLike): Result;
|
|
698
|
-
decodeFunctionResult(functionFragment: "getOracleUpdateTime", data: BytesLike): Result;
|
|
699
|
-
decodeFunctionResult(functionFragment: "getOrderBookAddress", data: BytesLike): Result;
|
|
700
|
-
decodeFunctionResult(functionFragment: "getOrderBookFactoryAddress", data: BytesLike): Result;
|
|
701
|
-
decodeFunctionResult(functionFragment: "getPerpetual", data: BytesLike): Result;
|
|
702
|
-
decodeFunctionResult(functionFragment: "getPerpetualCountInPool", data: BytesLike): Result;
|
|
703
|
-
decodeFunctionResult(functionFragment: "getPerpetualId", data: BytesLike): Result;
|
|
704
|
-
decodeFunctionResult(functionFragment: "getPerpetualStaticInfo", data: BytesLike): Result;
|
|
705
|
-
decodeFunctionResult(functionFragment: "getPerpetuals", data: BytesLike): Result;
|
|
706
|
-
decodeFunctionResult(functionFragment: "getPoolCount", data: BytesLike): Result;
|
|
707
|
-
decodeFunctionResult(functionFragment: "getPoolIdByPerpetualId", data: BytesLike): Result;
|
|
708
|
-
decodeFunctionResult(functionFragment: "getPoolStaticInfo", data: BytesLike): Result;
|
|
709
|
-
decodeFunctionResult(functionFragment: "getPriceInfo", data: BytesLike): Result;
|
|
710
|
-
decodeFunctionResult(functionFragment: "getSettleableAccounts", data: BytesLike): Result;
|
|
711
|
-
decodeFunctionResult(functionFragment: "getShareTokenFactory", data: BytesLike): Result;
|
|
712
|
-
decodeFunctionResult(functionFragment: "getShareTokenPriceD18", data: BytesLike): Result;
|
|
713
|
-
decodeFunctionResult(functionFragment: "getTargetCollateralM1", data: BytesLike): Result;
|
|
714
|
-
decodeFunctionResult(functionFragment: "getTargetCollateralM2", data: BytesLike): Result;
|
|
715
|
-
decodeFunctionResult(functionFragment: "getTargetCollateralM3", data: BytesLike): Result;
|
|
716
|
-
decodeFunctionResult(functionFragment: "getTokenAmountToReturn", data: BytesLike): Result;
|
|
717
|
-
decodeFunctionResult(functionFragment: "getTraderState", data: BytesLike): Result;
|
|
718
|
-
decodeFunctionResult(functionFragment: "getTreasuryAddress", data: BytesLike): Result;
|
|
719
|
-
decodeFunctionResult(functionFragment: "getWithdrawRequests", data: BytesLike): Result;
|
|
720
|
-
decodeFunctionResult(functionFragment: "increasePoolCash", data: BytesLike): Result;
|
|
721
|
-
decodeFunctionResult(functionFragment: "isActiveAccount", data: BytesLike): Result;
|
|
722
|
-
decodeFunctionResult(functionFragment: "isDelegate", data: BytesLike): Result;
|
|
723
|
-
decodeFunctionResult(functionFragment: "isMarketClosed", data: BytesLike): Result;
|
|
724
|
-
decodeFunctionResult(functionFragment: "isOrderCanceled", data: BytesLike): Result;
|
|
725
|
-
decodeFunctionResult(functionFragment: "isOrderExecuted", data: BytesLike): Result;
|
|
726
|
-
decodeFunctionResult(functionFragment: "isPerpMarketClosed", data: BytesLike): Result;
|
|
727
|
-
decodeFunctionResult(functionFragment: "liquidateByAMM", data: BytesLike): Result;
|
|
728
|
-
decodeFunctionResult(functionFragment: "pauseLiquidityProvision", data: BytesLike): Result;
|
|
729
|
-
decodeFunctionResult(functionFragment: "prdMktsLvgFee", data: BytesLike): Result;
|
|
730
|
-
decodeFunctionResult(functionFragment: "preTrade", data: BytesLike): Result;
|
|
731
|
-
decodeFunctionResult(functionFragment: "priceImpact", data: BytesLike): Result;
|
|
732
|
-
decodeFunctionResult(functionFragment: "queryExchangeFee", data: BytesLike): Result;
|
|
733
|
-
decodeFunctionResult(functionFragment: "queryMidPrices", data: BytesLike): Result;
|
|
734
|
-
decodeFunctionResult(functionFragment: "queryPerpetualPrice", data: BytesLike): Result;
|
|
735
|
-
decodeFunctionResult(functionFragment: "rebalance", data: BytesLike): Result;
|
|
736
|
-
decodeFunctionResult(functionFragment: "reduceMarginCollateral", data: BytesLike): Result;
|
|
737
|
-
decodeFunctionResult(functionFragment: "resetMarkPremium", data: BytesLike): Result;
|
|
738
|
-
decodeFunctionResult(functionFragment: "runLiquidityPool", data: BytesLike): Result;
|
|
739
|
-
decodeFunctionResult(functionFragment: "setAMMPerpLogic", data: BytesLike): Result;
|
|
740
|
-
decodeFunctionResult(functionFragment: "setBlockDelay", data: BytesLike): Result;
|
|
741
|
-
decodeFunctionResult(functionFragment: "setBrokerTiers", data: BytesLike): Result;
|
|
742
|
-
decodeFunctionResult(functionFragment: "setBrokerVolumeTiers", data: BytesLike): Result;
|
|
743
|
-
decodeFunctionResult(functionFragment: "setDelegate", data: BytesLike): Result;
|
|
744
|
-
decodeFunctionResult(functionFragment: "setEmergencyState", data: BytesLike): Result;
|
|
745
|
-
decodeFunctionResult(functionFragment: "setFeesForDesignation", data: BytesLike): Result;
|
|
746
|
-
decodeFunctionResult(functionFragment: "setInitialVolumeForFee", data: BytesLike): Result;
|
|
747
|
-
decodeFunctionResult(functionFragment: "setNormalState", data: BytesLike): Result;
|
|
748
|
-
decodeFunctionResult(functionFragment: "setOracleFactory", data: BytesLike): Result;
|
|
749
|
-
decodeFunctionResult(functionFragment: "setOracleFactoryForPerpetual", data: BytesLike): Result;
|
|
750
|
-
decodeFunctionResult(functionFragment: "setOrderBookFactory", data: BytesLike): Result;
|
|
751
|
-
decodeFunctionResult(functionFragment: "setPerpetualBaseParams", data: BytesLike): Result;
|
|
752
|
-
decodeFunctionResult(functionFragment: "setPerpetualOracles", data: BytesLike): Result;
|
|
753
|
-
decodeFunctionResult(functionFragment: "setPerpetualParam", data: BytesLike): Result;
|
|
754
|
-
decodeFunctionResult(functionFragment: "setPerpetualParamPair", data: BytesLike): Result;
|
|
755
|
-
decodeFunctionResult(functionFragment: "setPerpetualPoolFactory", data: BytesLike): Result;
|
|
756
|
-
decodeFunctionResult(functionFragment: "setPerpetualRiskParams", data: BytesLike): Result;
|
|
757
|
-
decodeFunctionResult(functionFragment: "setPoolParam", data: BytesLike): Result;
|
|
758
|
-
decodeFunctionResult(functionFragment: "setTraderTiers", data: BytesLike): Result;
|
|
759
|
-
decodeFunctionResult(functionFragment: "setTraderVolumeTiers", data: BytesLike): Result;
|
|
760
|
-
decodeFunctionResult(functionFragment: "setTreasury", data: BytesLike): Result;
|
|
761
|
-
decodeFunctionResult(functionFragment: "setUtilityTokenAddr", data: BytesLike): Result;
|
|
762
|
-
decodeFunctionResult(functionFragment: "settle", data: BytesLike): Result;
|
|
763
|
-
decodeFunctionResult(functionFragment: "settleNextTraderInPool", data: BytesLike): Result;
|
|
764
|
-
decodeFunctionResult(functionFragment: "settleTraders", data: BytesLike): Result;
|
|
765
|
-
decodeFunctionResult(functionFragment: "splitProtocolFee", data: BytesLike): Result;
|
|
766
|
-
decodeFunctionResult(functionFragment: "testTradeEvent", data: BytesLike): Result;
|
|
767
|
-
decodeFunctionResult(functionFragment: "togglePerpEmergencyState", data: BytesLike): Result;
|
|
768
|
-
decodeFunctionResult(functionFragment: "tradeViaOrderBook", data: BytesLike): Result;
|
|
769
|
-
decodeFunctionResult(functionFragment: "transferBrokerLots", data: BytesLike): Result;
|
|
770
|
-
decodeFunctionResult(functionFragment: "transferBrokerOwnership", data: BytesLike): Result;
|
|
771
|
-
decodeFunctionResult(functionFragment: "transferEarningsToTreasury", data: BytesLike): Result;
|
|
772
|
-
decodeFunctionResult(functionFragment: "transferValueToTreasury", data: BytesLike): Result;
|
|
773
|
-
decodeFunctionResult(functionFragment: "updateAMMTargetFundSize", data: BytesLike): Result;
|
|
774
|
-
decodeFunctionResult(functionFragment: "updateDefaultFundTargetSize", data: BytesLike): Result;
|
|
775
|
-
decodeFunctionResult(functionFragment: "updateFundingAndPricesAfter", data: BytesLike): Result;
|
|
776
|
-
decodeFunctionResult(functionFragment: "updateFundingAndPricesBefore", data: BytesLike): Result;
|
|
777
|
-
decodeFunctionResult(functionFragment: "updatePriceFeeds", data: BytesLike): Result;
|
|
778
|
-
decodeFunctionResult(functionFragment: "updateVolumeEMAOnNewTrade", data: BytesLike): Result;
|
|
779
|
-
decodeFunctionResult(functionFragment: "validateStopPrice", data: BytesLike): Result;
|
|
780
|
-
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
781
|
-
decodeFunctionResult(functionFragment: "withdrawAll", data: BytesLike): Result;
|
|
782
|
-
decodeFunctionResult(functionFragment: "withdrawDepositFromMarginAccount", data: BytesLike): Result;
|
|
783
|
-
decodeFunctionResult(functionFragment: "withdrawFromDefaultFund", data: BytesLike): Result;
|
|
784
|
-
decodeFunctionResult(functionFragment: "withdrawLiquidity", data: BytesLike): Result;
|
|
785
|
-
}
|
|
786
|
-
export declare namespace BrokerLotsTransferredEvent {
|
|
787
|
-
type InputTuple = [
|
|
788
|
-
poolId: BigNumberish,
|
|
789
|
-
oldOwner: AddressLike,
|
|
790
|
-
newOwner: AddressLike,
|
|
791
|
-
numLots: BigNumberish
|
|
792
|
-
];
|
|
793
|
-
type OutputTuple = [
|
|
794
|
-
poolId: bigint,
|
|
795
|
-
oldOwner: string,
|
|
796
|
-
newOwner: string,
|
|
797
|
-
numLots: bigint
|
|
798
|
-
];
|
|
799
|
-
interface OutputObject {
|
|
800
|
-
poolId: bigint;
|
|
801
|
-
oldOwner: string;
|
|
802
|
-
newOwner: string;
|
|
803
|
-
numLots: bigint;
|
|
804
|
-
}
|
|
805
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
806
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
807
|
-
type Log = TypedEventLog<Event>;
|
|
808
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
809
|
-
}
|
|
810
|
-
export declare namespace BrokerVolumeTransferredEvent {
|
|
811
|
-
type InputTuple = [
|
|
812
|
-
poolId: BigNumberish,
|
|
813
|
-
oldOwner: AddressLike,
|
|
814
|
-
newOwner: AddressLike,
|
|
815
|
-
fVolume: BigNumberish
|
|
816
|
-
];
|
|
817
|
-
type OutputTuple = [
|
|
818
|
-
poolId: bigint,
|
|
819
|
-
oldOwner: string,
|
|
820
|
-
newOwner: string,
|
|
821
|
-
fVolume: bigint
|
|
822
|
-
];
|
|
823
|
-
interface OutputObject {
|
|
824
|
-
poolId: bigint;
|
|
825
|
-
oldOwner: string;
|
|
826
|
-
newOwner: string;
|
|
827
|
-
fVolume: bigint;
|
|
828
|
-
}
|
|
829
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
830
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
831
|
-
type Log = TypedEventLog<Event>;
|
|
832
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
833
|
-
}
|
|
834
|
-
export declare namespace ClearEvent {
|
|
835
|
-
type InputTuple = [perpetualId: BigNumberish, trader: AddressLike];
|
|
836
|
-
type OutputTuple = [perpetualId: bigint, trader: string];
|
|
837
|
-
interface OutputObject {
|
|
838
|
-
perpetualId: bigint;
|
|
839
|
-
trader: string;
|
|
840
|
-
}
|
|
841
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
842
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
843
|
-
type Log = TypedEventLog<Event>;
|
|
844
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
845
|
-
}
|
|
846
|
-
export declare namespace DistributeFeesEvent {
|
|
847
|
-
type InputTuple = [
|
|
848
|
-
poolId: BigNumberish,
|
|
849
|
-
perpetualId: BigNumberish,
|
|
850
|
-
trader: AddressLike,
|
|
851
|
-
protocolFeeCC: BigNumberish,
|
|
852
|
-
participationFundFeeCC: BigNumberish
|
|
853
|
-
];
|
|
854
|
-
type OutputTuple = [
|
|
855
|
-
poolId: bigint,
|
|
856
|
-
perpetualId: bigint,
|
|
857
|
-
trader: string,
|
|
858
|
-
protocolFeeCC: bigint,
|
|
859
|
-
participationFundFeeCC: bigint
|
|
860
|
-
];
|
|
861
|
-
interface OutputObject {
|
|
862
|
-
poolId: bigint;
|
|
863
|
-
perpetualId: bigint;
|
|
864
|
-
trader: string;
|
|
865
|
-
protocolFeeCC: bigint;
|
|
866
|
-
participationFundFeeCC: bigint;
|
|
867
|
-
}
|
|
868
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
869
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
870
|
-
type Log = TypedEventLog<Event>;
|
|
871
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
872
|
-
}
|
|
873
|
-
export declare namespace LiquidateEvent {
|
|
874
|
-
type InputTuple = [
|
|
875
|
-
perpetualId: BigNumberish,
|
|
876
|
-
liquidator: AddressLike,
|
|
877
|
-
trader: AddressLike,
|
|
878
|
-
amountLiquidatedBC: BigNumberish,
|
|
879
|
-
liquidationPrice: BigNumberish,
|
|
880
|
-
newPositionSizeBC: BigNumberish,
|
|
881
|
-
fFeeCC: BigNumberish,
|
|
882
|
-
fPnlCC: BigNumberish
|
|
883
|
-
];
|
|
884
|
-
type OutputTuple = [
|
|
885
|
-
perpetualId: bigint,
|
|
886
|
-
liquidator: string,
|
|
887
|
-
trader: string,
|
|
888
|
-
amountLiquidatedBC: bigint,
|
|
889
|
-
liquidationPrice: bigint,
|
|
890
|
-
newPositionSizeBC: bigint,
|
|
891
|
-
fFeeCC: bigint,
|
|
892
|
-
fPnlCC: bigint
|
|
893
|
-
];
|
|
894
|
-
interface OutputObject {
|
|
895
|
-
perpetualId: bigint;
|
|
896
|
-
liquidator: string;
|
|
897
|
-
trader: string;
|
|
898
|
-
amountLiquidatedBC: bigint;
|
|
899
|
-
liquidationPrice: bigint;
|
|
900
|
-
newPositionSizeBC: bigint;
|
|
901
|
-
fFeeCC: bigint;
|
|
902
|
-
fPnlCC: bigint;
|
|
903
|
-
}
|
|
904
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
905
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
906
|
-
type Log = TypedEventLog<Event>;
|
|
907
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
908
|
-
}
|
|
909
|
-
export declare namespace LiquidityAddedEvent {
|
|
910
|
-
type InputTuple = [
|
|
911
|
-
poolId: BigNumberish,
|
|
912
|
-
user: AddressLike,
|
|
913
|
-
tokenAmount: BigNumberish,
|
|
914
|
-
shareAmount: BigNumberish
|
|
915
|
-
];
|
|
916
|
-
type OutputTuple = [
|
|
917
|
-
poolId: bigint,
|
|
918
|
-
user: string,
|
|
919
|
-
tokenAmount: bigint,
|
|
920
|
-
shareAmount: bigint
|
|
921
|
-
];
|
|
922
|
-
interface OutputObject {
|
|
923
|
-
poolId: bigint;
|
|
924
|
-
user: string;
|
|
925
|
-
tokenAmount: bigint;
|
|
926
|
-
shareAmount: bigint;
|
|
927
|
-
}
|
|
928
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
929
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
930
|
-
type Log = TypedEventLog<Event>;
|
|
931
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
932
|
-
}
|
|
933
|
-
export declare namespace LiquidityPoolCreatedEvent {
|
|
934
|
-
type InputTuple = [
|
|
935
|
-
id: BigNumberish,
|
|
936
|
-
marginTokenAddress: AddressLike,
|
|
937
|
-
shareTokenAddress: AddressLike,
|
|
938
|
-
iTargetPoolSizeUpdateTime: BigNumberish,
|
|
939
|
-
fBrokerCollateralLotSize: BigNumberish
|
|
940
|
-
];
|
|
941
|
-
type OutputTuple = [
|
|
942
|
-
id: bigint,
|
|
943
|
-
marginTokenAddress: string,
|
|
944
|
-
shareTokenAddress: string,
|
|
945
|
-
iTargetPoolSizeUpdateTime: bigint,
|
|
946
|
-
fBrokerCollateralLotSize: bigint
|
|
947
|
-
];
|
|
948
|
-
interface OutputObject {
|
|
949
|
-
id: bigint;
|
|
950
|
-
marginTokenAddress: string;
|
|
951
|
-
shareTokenAddress: string;
|
|
952
|
-
iTargetPoolSizeUpdateTime: bigint;
|
|
953
|
-
fBrokerCollateralLotSize: bigint;
|
|
954
|
-
}
|
|
955
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
956
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
957
|
-
type Log = TypedEventLog<Event>;
|
|
958
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
959
|
-
}
|
|
960
|
-
export declare namespace LiquidityProvisionPausedEvent {
|
|
961
|
-
type InputTuple = [pauseOn: boolean, poolId: BigNumberish];
|
|
962
|
-
type OutputTuple = [pauseOn: boolean, poolId: bigint];
|
|
963
|
-
interface OutputObject {
|
|
964
|
-
pauseOn: boolean;
|
|
965
|
-
poolId: bigint;
|
|
966
|
-
}
|
|
967
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
968
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
969
|
-
type Log = TypedEventLog<Event>;
|
|
970
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
971
|
-
}
|
|
972
|
-
export declare namespace LiquidityRemovedEvent {
|
|
973
|
-
type InputTuple = [
|
|
974
|
-
poolId: BigNumberish,
|
|
975
|
-
user: AddressLike,
|
|
976
|
-
tokenAmount: BigNumberish,
|
|
977
|
-
shareAmount: BigNumberish
|
|
978
|
-
];
|
|
979
|
-
type OutputTuple = [
|
|
980
|
-
poolId: bigint,
|
|
981
|
-
user: string,
|
|
982
|
-
tokenAmount: bigint,
|
|
983
|
-
shareAmount: bigint
|
|
984
|
-
];
|
|
985
|
-
interface OutputObject {
|
|
986
|
-
poolId: bigint;
|
|
987
|
-
user: string;
|
|
988
|
-
tokenAmount: bigint;
|
|
989
|
-
shareAmount: bigint;
|
|
990
|
-
}
|
|
991
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
992
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
993
|
-
type Log = TypedEventLog<Event>;
|
|
994
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
995
|
-
}
|
|
996
|
-
export declare namespace LiquidityWithdrawalInitiatedEvent {
|
|
997
|
-
type InputTuple = [
|
|
998
|
-
poolId: BigNumberish,
|
|
999
|
-
user: AddressLike,
|
|
1000
|
-
shareAmount: BigNumberish
|
|
1001
|
-
];
|
|
1002
|
-
type OutputTuple = [poolId: bigint, user: string, shareAmount: bigint];
|
|
1003
|
-
interface OutputObject {
|
|
1004
|
-
poolId: bigint;
|
|
1005
|
-
user: string;
|
|
1006
|
-
shareAmount: bigint;
|
|
1007
|
-
}
|
|
1008
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1009
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1010
|
-
type Log = TypedEventLog<Event>;
|
|
1011
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1012
|
-
}
|
|
1013
|
-
export declare namespace PerpetualCreatedEvent {
|
|
1014
|
-
type InputTuple = [
|
|
1015
|
-
poolId: BigNumberish,
|
|
1016
|
-
id: BigNumberish,
|
|
1017
|
-
baseParams: BigNumberish[],
|
|
1018
|
-
underlyingRiskParams: [
|
|
1019
|
-
BigNumberish,
|
|
1020
|
-
BigNumberish,
|
|
1021
|
-
BigNumberish,
|
|
1022
|
-
BigNumberish,
|
|
1023
|
-
BigNumberish
|
|
1024
|
-
],
|
|
1025
|
-
defaultFundRiskParams: BigNumberish[],
|
|
1026
|
-
eCollateralCurrency: BigNumberish
|
|
1027
|
-
];
|
|
1028
|
-
type OutputTuple = [
|
|
1029
|
-
poolId: bigint,
|
|
1030
|
-
id: bigint,
|
|
1031
|
-
baseParams: bigint[],
|
|
1032
|
-
underlyingRiskParams: [bigint, bigint, bigint, bigint, bigint],
|
|
1033
|
-
defaultFundRiskParams: bigint[],
|
|
1034
|
-
eCollateralCurrency: bigint
|
|
1035
|
-
];
|
|
1036
|
-
interface OutputObject {
|
|
1037
|
-
poolId: bigint;
|
|
1038
|
-
id: bigint;
|
|
1039
|
-
baseParams: bigint[];
|
|
1040
|
-
underlyingRiskParams: [bigint, bigint, bigint, bigint, bigint];
|
|
1041
|
-
defaultFundRiskParams: bigint[];
|
|
1042
|
-
eCollateralCurrency: bigint;
|
|
1043
|
-
}
|
|
1044
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1045
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1046
|
-
type Log = TypedEventLog<Event>;
|
|
1047
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1048
|
-
}
|
|
1049
|
-
export declare namespace PerpetualLimitOrderCancelledEvent {
|
|
1050
|
-
type InputTuple = [perpetualId: BigNumberish, orderHash: BytesLike];
|
|
1051
|
-
type OutputTuple = [perpetualId: bigint, orderHash: string];
|
|
1052
|
-
interface OutputObject {
|
|
1053
|
-
perpetualId: bigint;
|
|
1054
|
-
orderHash: string;
|
|
1055
|
-
}
|
|
1056
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1057
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1058
|
-
type Log = TypedEventLog<Event>;
|
|
1059
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1060
|
-
}
|
|
1061
|
-
export declare namespace RunLiquidityPoolEvent {
|
|
1062
|
-
type InputTuple = [_liqPoolID: BigNumberish];
|
|
1063
|
-
type OutputTuple = [_liqPoolID: bigint];
|
|
1064
|
-
interface OutputObject {
|
|
1065
|
-
_liqPoolID: bigint;
|
|
1066
|
-
}
|
|
1067
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1068
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1069
|
-
type Log = TypedEventLog<Event>;
|
|
1070
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1071
|
-
}
|
|
1072
|
-
export declare namespace SetBlockDelayEvent {
|
|
1073
|
-
type InputTuple = [delay: BigNumberish];
|
|
1074
|
-
type OutputTuple = [delay: bigint];
|
|
1075
|
-
interface OutputObject {
|
|
1076
|
-
delay: bigint;
|
|
1077
|
-
}
|
|
1078
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1079
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1080
|
-
type Log = TypedEventLog<Event>;
|
|
1081
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1082
|
-
}
|
|
1083
|
-
export declare namespace SetBrokerDesignationsEvent {
|
|
1084
|
-
type InputTuple = [designations: BigNumberish[], fees: BigNumberish[]];
|
|
1085
|
-
type OutputTuple = [designations: bigint[], fees: bigint[]];
|
|
1086
|
-
interface OutputObject {
|
|
1087
|
-
designations: bigint[];
|
|
1088
|
-
fees: bigint[];
|
|
1089
|
-
}
|
|
1090
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1091
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1092
|
-
type Log = TypedEventLog<Event>;
|
|
1093
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1094
|
-
}
|
|
1095
|
-
export declare namespace SetBrokerTiersEvent {
|
|
1096
|
-
type InputTuple = [tiers: BigNumberish[], feesTbps: BigNumberish[]];
|
|
1097
|
-
type OutputTuple = [tiers: bigint[], feesTbps: bigint[]];
|
|
1098
|
-
interface OutputObject {
|
|
1099
|
-
tiers: bigint[];
|
|
1100
|
-
feesTbps: bigint[];
|
|
1101
|
-
}
|
|
1102
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1103
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1104
|
-
type Log = TypedEventLog<Event>;
|
|
1105
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1106
|
-
}
|
|
1107
|
-
export declare namespace SetBrokerVolumeTiersEvent {
|
|
1108
|
-
type InputTuple = [tiers: BigNumberish[], feesTbps: BigNumberish[]];
|
|
1109
|
-
type OutputTuple = [tiers: bigint[], feesTbps: bigint[]];
|
|
1110
|
-
interface OutputObject {
|
|
1111
|
-
tiers: bigint[];
|
|
1112
|
-
feesTbps: bigint[];
|
|
1113
|
-
}
|
|
1114
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1115
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1116
|
-
type Log = TypedEventLog<Event>;
|
|
1117
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1118
|
-
}
|
|
1119
|
-
export declare namespace SetClearedStateEvent {
|
|
1120
|
-
type InputTuple = [perpetualId: BigNumberish];
|
|
1121
|
-
type OutputTuple = [perpetualId: bigint];
|
|
1122
|
-
interface OutputObject {
|
|
1123
|
-
perpetualId: bigint;
|
|
1124
|
-
}
|
|
1125
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1126
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1127
|
-
type Log = TypedEventLog<Event>;
|
|
1128
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1129
|
-
}
|
|
1130
|
-
export declare namespace SetDelegateEvent {
|
|
1131
|
-
type InputTuple = [
|
|
1132
|
-
trader: AddressLike,
|
|
1133
|
-
delegate: AddressLike,
|
|
1134
|
-
index: BigNumberish
|
|
1135
|
-
];
|
|
1136
|
-
type OutputTuple = [trader: string, delegate: string, index: bigint];
|
|
1137
|
-
interface OutputObject {
|
|
1138
|
-
trader: string;
|
|
1139
|
-
delegate: string;
|
|
1140
|
-
index: bigint;
|
|
1141
|
-
}
|
|
1142
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1143
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1144
|
-
type Log = TypedEventLog<Event>;
|
|
1145
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1146
|
-
}
|
|
1147
|
-
export declare namespace SetEmergencyStateEvent {
|
|
1148
|
-
type InputTuple = [
|
|
1149
|
-
perpetualId: BigNumberish,
|
|
1150
|
-
fSettlementMarkPremiumRate: BigNumberish,
|
|
1151
|
-
fSettlementS2Price: BigNumberish,
|
|
1152
|
-
fSettlementS3Price: BigNumberish
|
|
1153
|
-
];
|
|
1154
|
-
type OutputTuple = [
|
|
1155
|
-
perpetualId: bigint,
|
|
1156
|
-
fSettlementMarkPremiumRate: bigint,
|
|
1157
|
-
fSettlementS2Price: bigint,
|
|
1158
|
-
fSettlementS3Price: bigint
|
|
1159
|
-
];
|
|
1160
|
-
interface OutputObject {
|
|
1161
|
-
perpetualId: bigint;
|
|
1162
|
-
fSettlementMarkPremiumRate: bigint;
|
|
1163
|
-
fSettlementS2Price: bigint;
|
|
1164
|
-
fSettlementS3Price: bigint;
|
|
1165
|
-
}
|
|
1166
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1167
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1168
|
-
type Log = TypedEventLog<Event>;
|
|
1169
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1170
|
-
}
|
|
1171
|
-
export declare namespace SetNormalStateEvent {
|
|
1172
|
-
type InputTuple = [perpetualId: BigNumberish];
|
|
1173
|
-
type OutputTuple = [perpetualId: bigint];
|
|
1174
|
-
interface OutputObject {
|
|
1175
|
-
perpetualId: bigint;
|
|
1176
|
-
}
|
|
1177
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1178
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1179
|
-
type Log = TypedEventLog<Event>;
|
|
1180
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1181
|
-
}
|
|
1182
|
-
export declare namespace SetOraclesEvent {
|
|
1183
|
-
type InputTuple = [
|
|
1184
|
-
perpetualId: BigNumberish,
|
|
1185
|
-
baseQuoteS2: [BytesLike, BytesLike],
|
|
1186
|
-
baseQuoteS3: [BytesLike, BytesLike]
|
|
1187
|
-
];
|
|
1188
|
-
type OutputTuple = [
|
|
1189
|
-
perpetualId: bigint,
|
|
1190
|
-
baseQuoteS2: [string, string],
|
|
1191
|
-
baseQuoteS3: [string, string]
|
|
1192
|
-
];
|
|
1193
|
-
interface OutputObject {
|
|
1194
|
-
perpetualId: bigint;
|
|
1195
|
-
baseQuoteS2: [string, string];
|
|
1196
|
-
baseQuoteS3: [string, string];
|
|
1197
|
-
}
|
|
1198
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1199
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1200
|
-
type Log = TypedEventLog<Event>;
|
|
1201
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1202
|
-
}
|
|
1203
|
-
export declare namespace SetParameterEvent {
|
|
1204
|
-
type InputTuple = [
|
|
1205
|
-
perpetualId: BigNumberish,
|
|
1206
|
-
name: string,
|
|
1207
|
-
value: BigNumberish
|
|
1208
|
-
];
|
|
1209
|
-
type OutputTuple = [perpetualId: bigint, name: string, value: bigint];
|
|
1210
|
-
interface OutputObject {
|
|
1211
|
-
perpetualId: bigint;
|
|
1212
|
-
name: string;
|
|
1213
|
-
value: bigint;
|
|
1214
|
-
}
|
|
1215
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1216
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1217
|
-
type Log = TypedEventLog<Event>;
|
|
1218
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1219
|
-
}
|
|
1220
|
-
export declare namespace SetParameterPairEvent {
|
|
1221
|
-
type InputTuple = [
|
|
1222
|
-
perpetualId: BigNumberish,
|
|
1223
|
-
name: string,
|
|
1224
|
-
value1: BigNumberish,
|
|
1225
|
-
value2: BigNumberish
|
|
1226
|
-
];
|
|
1227
|
-
type OutputTuple = [
|
|
1228
|
-
perpetualId: bigint,
|
|
1229
|
-
name: string,
|
|
1230
|
-
value1: bigint,
|
|
1231
|
-
value2: bigint
|
|
1232
|
-
];
|
|
1233
|
-
interface OutputObject {
|
|
1234
|
-
perpetualId: bigint;
|
|
1235
|
-
name: string;
|
|
1236
|
-
value1: bigint;
|
|
1237
|
-
value2: bigint;
|
|
1238
|
-
}
|
|
1239
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1240
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1241
|
-
type Log = TypedEventLog<Event>;
|
|
1242
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1243
|
-
}
|
|
1244
|
-
export declare namespace SetPerpetualBaseParametersEvent {
|
|
1245
|
-
type InputTuple = [
|
|
1246
|
-
perpetualId: BigNumberish,
|
|
1247
|
-
baseParams: BigNumberish[]
|
|
1248
|
-
];
|
|
1249
|
-
type OutputTuple = [perpetualId: bigint, baseParams: bigint[]];
|
|
1250
|
-
interface OutputObject {
|
|
1251
|
-
perpetualId: bigint;
|
|
1252
|
-
baseParams: bigint[];
|
|
1253
|
-
}
|
|
1254
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1255
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1256
|
-
type Log = TypedEventLog<Event>;
|
|
1257
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1258
|
-
}
|
|
1259
|
-
export declare namespace SetPerpetualRiskParametersEvent {
|
|
1260
|
-
type InputTuple = [
|
|
1261
|
-
perpetualId: BigNumberish,
|
|
1262
|
-
underlyingRiskParams: [
|
|
1263
|
-
BigNumberish,
|
|
1264
|
-
BigNumberish,
|
|
1265
|
-
BigNumberish,
|
|
1266
|
-
BigNumberish,
|
|
1267
|
-
BigNumberish
|
|
1268
|
-
],
|
|
1269
|
-
defaultFundRiskParams: BigNumberish[]
|
|
1270
|
-
];
|
|
1271
|
-
type OutputTuple = [
|
|
1272
|
-
perpetualId: bigint,
|
|
1273
|
-
underlyingRiskParams: [bigint, bigint, bigint, bigint, bigint],
|
|
1274
|
-
defaultFundRiskParams: bigint[]
|
|
1275
|
-
];
|
|
1276
|
-
interface OutputObject {
|
|
1277
|
-
perpetualId: bigint;
|
|
1278
|
-
underlyingRiskParams: [bigint, bigint, bigint, bigint, bigint];
|
|
1279
|
-
defaultFundRiskParams: bigint[];
|
|
1280
|
-
}
|
|
1281
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1282
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1283
|
-
type Log = TypedEventLog<Event>;
|
|
1284
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1285
|
-
}
|
|
1286
|
-
export declare namespace SetPoolParameterEvent {
|
|
1287
|
-
type InputTuple = [
|
|
1288
|
-
poolId: BigNumberish,
|
|
1289
|
-
name: string,
|
|
1290
|
-
value: BigNumberish
|
|
1291
|
-
];
|
|
1292
|
-
type OutputTuple = [poolId: bigint, name: string, value: bigint];
|
|
1293
|
-
interface OutputObject {
|
|
1294
|
-
poolId: bigint;
|
|
1295
|
-
name: string;
|
|
1296
|
-
value: bigint;
|
|
1297
|
-
}
|
|
1298
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1299
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1300
|
-
type Log = TypedEventLog<Event>;
|
|
1301
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1302
|
-
}
|
|
1303
|
-
export declare namespace SetTraderTiersEvent {
|
|
1304
|
-
type InputTuple = [tiers: BigNumberish[], feesTbps: BigNumberish[]];
|
|
1305
|
-
type OutputTuple = [tiers: bigint[], feesTbps: bigint[]];
|
|
1306
|
-
interface OutputObject {
|
|
1307
|
-
tiers: bigint[];
|
|
1308
|
-
feesTbps: bigint[];
|
|
1309
|
-
}
|
|
1310
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1311
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1312
|
-
type Log = TypedEventLog<Event>;
|
|
1313
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1314
|
-
}
|
|
1315
|
-
export declare namespace SetTraderVolumeTiersEvent {
|
|
1316
|
-
type InputTuple = [tiers: BigNumberish[], feesTbps: BigNumberish[]];
|
|
1317
|
-
type OutputTuple = [tiers: bigint[], feesTbps: bigint[]];
|
|
1318
|
-
interface OutputObject {
|
|
1319
|
-
tiers: bigint[];
|
|
1320
|
-
feesTbps: bigint[];
|
|
1321
|
-
}
|
|
1322
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1323
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1324
|
-
type Log = TypedEventLog<Event>;
|
|
1325
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1326
|
-
}
|
|
1327
|
-
export declare namespace SetUtilityTokenEvent {
|
|
1328
|
-
type InputTuple = [tokenAddr: AddressLike];
|
|
1329
|
-
type OutputTuple = [tokenAddr: string];
|
|
1330
|
-
interface OutputObject {
|
|
1331
|
-
tokenAddr: string;
|
|
1332
|
-
}
|
|
1333
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1334
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1335
|
-
type Log = TypedEventLog<Event>;
|
|
1336
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1337
|
-
}
|
|
1338
|
-
export declare namespace SettleEvent {
|
|
1339
|
-
type InputTuple = [
|
|
1340
|
-
perpetualId: BigNumberish,
|
|
1341
|
-
trader: AddressLike,
|
|
1342
|
-
amount: BigNumberish
|
|
1343
|
-
];
|
|
1344
|
-
type OutputTuple = [
|
|
1345
|
-
perpetualId: bigint,
|
|
1346
|
-
trader: string,
|
|
1347
|
-
amount: bigint
|
|
1348
|
-
];
|
|
1349
|
-
interface OutputObject {
|
|
1350
|
-
perpetualId: bigint;
|
|
1351
|
-
trader: string;
|
|
1352
|
-
amount: bigint;
|
|
1353
|
-
}
|
|
1354
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1355
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1356
|
-
type Log = TypedEventLog<Event>;
|
|
1357
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1358
|
-
}
|
|
1359
|
-
export declare namespace SettleStateEvent {
|
|
1360
|
-
type InputTuple = [perpetualId: BigNumberish];
|
|
1361
|
-
type OutputTuple = [perpetualId: bigint];
|
|
1362
|
-
interface OutputObject {
|
|
1363
|
-
perpetualId: bigint;
|
|
1364
|
-
}
|
|
1365
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1366
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1367
|
-
type Log = TypedEventLog<Event>;
|
|
1368
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1369
|
-
}
|
|
1370
|
-
export declare namespace SettlementCompleteEvent {
|
|
1371
|
-
type InputTuple = [perpetualId: BigNumberish];
|
|
1372
|
-
type OutputTuple = [perpetualId: bigint];
|
|
1373
|
-
interface OutputObject {
|
|
1374
|
-
perpetualId: bigint;
|
|
1375
|
-
}
|
|
1376
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1377
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1378
|
-
type Log = TypedEventLog<Event>;
|
|
1379
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1380
|
-
}
|
|
1381
|
-
export declare namespace TokensDepositedEvent {
|
|
1382
|
-
type InputTuple = [
|
|
1383
|
-
perpetualId: BigNumberish,
|
|
1384
|
-
trader: AddressLike,
|
|
1385
|
-
amount: BigNumberish
|
|
1386
|
-
];
|
|
1387
|
-
type OutputTuple = [
|
|
1388
|
-
perpetualId: bigint,
|
|
1389
|
-
trader: string,
|
|
1390
|
-
amount: bigint
|
|
1391
|
-
];
|
|
1392
|
-
interface OutputObject {
|
|
1393
|
-
perpetualId: bigint;
|
|
1394
|
-
trader: string;
|
|
1395
|
-
amount: bigint;
|
|
1396
|
-
}
|
|
1397
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1398
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1399
|
-
type Log = TypedEventLog<Event>;
|
|
1400
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1401
|
-
}
|
|
1402
|
-
export declare namespace TokensWithdrawnEvent {
|
|
1403
|
-
type InputTuple = [
|
|
1404
|
-
perpetualId: BigNumberish,
|
|
1405
|
-
trader: AddressLike,
|
|
1406
|
-
amount: BigNumberish
|
|
1407
|
-
];
|
|
1408
|
-
type OutputTuple = [
|
|
1409
|
-
perpetualId: bigint,
|
|
1410
|
-
trader: string,
|
|
1411
|
-
amount: bigint
|
|
1412
|
-
];
|
|
1413
|
-
interface OutputObject {
|
|
1414
|
-
perpetualId: bigint;
|
|
1415
|
-
trader: string;
|
|
1416
|
-
amount: bigint;
|
|
1417
|
-
}
|
|
1418
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1419
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1420
|
-
type Log = TypedEventLog<Event>;
|
|
1421
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1422
|
-
}
|
|
1423
|
-
export declare namespace TradeEvent {
|
|
1424
|
-
type InputTuple = [
|
|
1425
|
-
perpetualId: BigNumberish,
|
|
1426
|
-
trader: AddressLike,
|
|
1427
|
-
order: IPerpetualOrder.OrderStruct,
|
|
1428
|
-
orderDigest: BytesLike,
|
|
1429
|
-
newPositionSizeBC: BigNumberish,
|
|
1430
|
-
price: BigNumberish,
|
|
1431
|
-
fFeeCC: BigNumberish,
|
|
1432
|
-
fPnlCC: BigNumberish,
|
|
1433
|
-
fB2C: BigNumberish
|
|
1434
|
-
];
|
|
1435
|
-
type OutputTuple = [
|
|
1436
|
-
perpetualId: bigint,
|
|
1437
|
-
trader: string,
|
|
1438
|
-
order: IPerpetualOrder.OrderStructOutput,
|
|
1439
|
-
orderDigest: string,
|
|
1440
|
-
newPositionSizeBC: bigint,
|
|
1441
|
-
price: bigint,
|
|
1442
|
-
fFeeCC: bigint,
|
|
1443
|
-
fPnlCC: bigint,
|
|
1444
|
-
fB2C: bigint
|
|
1445
|
-
];
|
|
1446
|
-
interface OutputObject {
|
|
1447
|
-
perpetualId: bigint;
|
|
1448
|
-
trader: string;
|
|
1449
|
-
order: IPerpetualOrder.OrderStructOutput;
|
|
1450
|
-
orderDigest: string;
|
|
1451
|
-
newPositionSizeBC: bigint;
|
|
1452
|
-
price: bigint;
|
|
1453
|
-
fFeeCC: bigint;
|
|
1454
|
-
fPnlCC: bigint;
|
|
1455
|
-
fB2C: bigint;
|
|
1456
|
-
}
|
|
1457
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1458
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1459
|
-
type Log = TypedEventLog<Event>;
|
|
1460
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1461
|
-
}
|
|
1462
|
-
export declare namespace TransferAddressToEvent {
|
|
1463
|
-
type InputTuple = [
|
|
1464
|
-
name: string,
|
|
1465
|
-
oldOBFactory: AddressLike,
|
|
1466
|
-
newOBFactory: AddressLike
|
|
1467
|
-
];
|
|
1468
|
-
type OutputTuple = [
|
|
1469
|
-
name: string,
|
|
1470
|
-
oldOBFactory: string,
|
|
1471
|
-
newOBFactory: string
|
|
1472
|
-
];
|
|
1473
|
-
interface OutputObject {
|
|
1474
|
-
name: string;
|
|
1475
|
-
oldOBFactory: string;
|
|
1476
|
-
newOBFactory: string;
|
|
1477
|
-
}
|
|
1478
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1479
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1480
|
-
type Log = TypedEventLog<Event>;
|
|
1481
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1482
|
-
}
|
|
1483
|
-
export declare namespace UpdateBrokerAddedCashEvent {
|
|
1484
|
-
type InputTuple = [
|
|
1485
|
-
poolId: BigNumberish,
|
|
1486
|
-
iLots: BigNumberish,
|
|
1487
|
-
iNewBrokerLots: BigNumberish
|
|
1488
|
-
];
|
|
1489
|
-
type OutputTuple = [
|
|
1490
|
-
poolId: bigint,
|
|
1491
|
-
iLots: bigint,
|
|
1492
|
-
iNewBrokerLots: bigint
|
|
1493
|
-
];
|
|
1494
|
-
interface OutputObject {
|
|
1495
|
-
poolId: bigint;
|
|
1496
|
-
iLots: bigint;
|
|
1497
|
-
iNewBrokerLots: bigint;
|
|
1498
|
-
}
|
|
1499
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1500
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1501
|
-
type Log = TypedEventLog<Event>;
|
|
1502
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1503
|
-
}
|
|
1504
|
-
export declare namespace UpdateFundingRateEvent {
|
|
1505
|
-
type InputTuple = [
|
|
1506
|
-
perpetualId: BigNumberish,
|
|
1507
|
-
fFundingRate: BigNumberish
|
|
1508
|
-
];
|
|
1509
|
-
type OutputTuple = [perpetualId: bigint, fFundingRate: bigint];
|
|
1510
|
-
interface OutputObject {
|
|
1511
|
-
perpetualId: bigint;
|
|
1512
|
-
fFundingRate: bigint;
|
|
1513
|
-
}
|
|
1514
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1515
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1516
|
-
type Log = TypedEventLog<Event>;
|
|
1517
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1518
|
-
}
|
|
1519
|
-
export declare namespace UpdateMarginAccountEvent {
|
|
1520
|
-
type InputTuple = [
|
|
1521
|
-
perpetualId: BigNumberish,
|
|
1522
|
-
trader: AddressLike,
|
|
1523
|
-
fFundingPaymentCC: BigNumberish
|
|
1524
|
-
];
|
|
1525
|
-
type OutputTuple = [
|
|
1526
|
-
perpetualId: bigint,
|
|
1527
|
-
trader: string,
|
|
1528
|
-
fFundingPaymentCC: bigint
|
|
1529
|
-
];
|
|
1530
|
-
interface OutputObject {
|
|
1531
|
-
perpetualId: bigint;
|
|
1532
|
-
trader: string;
|
|
1533
|
-
fFundingPaymentCC: bigint;
|
|
1534
|
-
}
|
|
1535
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1536
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1537
|
-
type Log = TypedEventLog<Event>;
|
|
1538
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1539
|
-
}
|
|
1540
|
-
export declare namespace UpdateMarkPriceEvent {
|
|
1541
|
-
type InputTuple = [
|
|
1542
|
-
perpetualId: BigNumberish,
|
|
1543
|
-
fMidPricePremium: BigNumberish,
|
|
1544
|
-
fMarkPricePremium: BigNumberish,
|
|
1545
|
-
fMarkIndexPrice: BigNumberish
|
|
1546
|
-
];
|
|
1547
|
-
type OutputTuple = [
|
|
1548
|
-
perpetualId: bigint,
|
|
1549
|
-
fMidPricePremium: bigint,
|
|
1550
|
-
fMarkPricePremium: bigint,
|
|
1551
|
-
fMarkIndexPrice: bigint
|
|
1552
|
-
];
|
|
1553
|
-
interface OutputObject {
|
|
1554
|
-
perpetualId: bigint;
|
|
1555
|
-
fMidPricePremium: bigint;
|
|
1556
|
-
fMarkPricePremium: bigint;
|
|
1557
|
-
fMarkIndexPrice: bigint;
|
|
1558
|
-
}
|
|
1559
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1560
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1561
|
-
type Log = TypedEventLog<Event>;
|
|
1562
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1563
|
-
}
|
|
1564
|
-
export interface IPerpetualManagerCopy extends BaseContract {
|
|
1565
|
-
connect(runner?: ContractRunner | null): IPerpetualManagerCopy;
|
|
1566
|
-
waitForDeployment(): Promise<this>;
|
|
1567
|
-
interface: IPerpetualManagerCopyInterface;
|
|
1568
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1569
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1570
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1571
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1572
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1573
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1574
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1575
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1576
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1577
|
-
activatePerpetual: TypedContractMethod<[
|
|
1578
|
-
_perpetualId: BigNumberish
|
|
1579
|
-
], [
|
|
1580
|
-
void
|
|
1581
|
-
], "nonpayable">;
|
|
1582
|
-
addLiquidity: TypedContractMethod<[
|
|
1583
|
-
_iPoolIndex: BigNumberish,
|
|
1584
|
-
_tokenAmount: BigNumberish
|
|
1585
|
-
], [
|
|
1586
|
-
void
|
|
1587
|
-
], "nonpayable">;
|
|
1588
|
-
adjustSettlementPrice: TypedContractMethod<[
|
|
1589
|
-
_perpetualId: BigNumberish,
|
|
1590
|
-
_fSettlementS2: BigNumberish,
|
|
1591
|
-
_fSettlementS3: BigNumberish
|
|
1592
|
-
], [
|
|
1593
|
-
void
|
|
1594
|
-
], "nonpayable">;
|
|
1595
|
-
calculateDefaultFundSize: TypedContractMethod<[
|
|
1596
|
-
_fK2AMM: [BigNumberish, BigNumberish],
|
|
1597
|
-
_fk2Trader: BigNumberish,
|
|
1598
|
-
_fCoverN: BigNumberish,
|
|
1599
|
-
fStressRet2: [BigNumberish, BigNumberish],
|
|
1600
|
-
fStressRet3: [BigNumberish, BigNumberish],
|
|
1601
|
-
fIndexPrices: [BigNumberish, BigNumberish],
|
|
1602
|
-
_eCCY: BigNumberish
|
|
1603
|
-
], [
|
|
1604
|
-
bigint
|
|
1605
|
-
], "view">;
|
|
1606
|
-
calculatePerpetualPrice: TypedContractMethod<[
|
|
1607
|
-
_ammVars: AMMPerpLogic.AMMVariablesStruct,
|
|
1608
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
1609
|
-
_fTradeAmount: BigNumberish,
|
|
1610
|
-
_fBidAskSpread: BigNumberish,
|
|
1611
|
-
_fIncentiveSpread: BigNumberish
|
|
1612
|
-
], [
|
|
1613
|
-
bigint
|
|
1614
|
-
], "view">;
|
|
1615
|
-
calculateRiskNeutralPD: TypedContractMethod<[
|
|
1616
|
-
_ammVars: AMMPerpLogic.AMMVariablesStruct,
|
|
1617
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
1618
|
-
_fTradeAmount: BigNumberish,
|
|
1619
|
-
_withCDF: boolean
|
|
1620
|
-
], [
|
|
1621
|
-
[bigint, bigint]
|
|
1622
|
-
], "view">;
|
|
1623
|
-
clearTradersInPool: TypedContractMethod<[
|
|
1624
|
-
_id: BigNumberish,
|
|
1625
|
-
_bulkSize: BigNumberish
|
|
1626
|
-
], [
|
|
1627
|
-
boolean
|
|
1628
|
-
], "nonpayable">;
|
|
1629
|
-
countActivePerpAccounts: TypedContractMethod<[
|
|
1630
|
-
_perpetualId: BigNumberish
|
|
1631
|
-
], [
|
|
1632
|
-
bigint
|
|
1633
|
-
], "view">;
|
|
1634
|
-
createLiquidityPool: TypedContractMethod<[
|
|
1635
|
-
_marginTokenAddress: AddressLike,
|
|
1636
|
-
_iTargetPoolSizeUpdateTime: BigNumberish,
|
|
1637
|
-
_fBrokerCollateralLotSize: BigNumberish,
|
|
1638
|
-
_fCeilPnLShare: BigNumberish
|
|
1639
|
-
], [
|
|
1640
|
-
bigint
|
|
1641
|
-
], "nonpayable">;
|
|
1642
|
-
createPerpetual: TypedContractMethod<[
|
|
1643
|
-
_iPoolId: BigNumberish,
|
|
1644
|
-
_baseQuoteS2: [BytesLike, BytesLike],
|
|
1645
|
-
_baseQuoteS3: [BytesLike, BytesLike],
|
|
1646
|
-
_baseParams: BigNumberish[],
|
|
1647
|
-
_underlyingRiskParams: [
|
|
1648
|
-
BigNumberish,
|
|
1649
|
-
BigNumberish,
|
|
1650
|
-
BigNumberish,
|
|
1651
|
-
BigNumberish,
|
|
1652
|
-
BigNumberish
|
|
1653
|
-
],
|
|
1654
|
-
_defaultFundRiskParams: BigNumberish[],
|
|
1655
|
-
_eCollateralCurrency: BigNumberish
|
|
1656
|
-
], [
|
|
1657
|
-
void
|
|
1658
|
-
], "nonpayable">;
|
|
1659
|
-
deactivatePerp: TypedContractMethod<[
|
|
1660
|
-
_perpetualId: BigNumberish
|
|
1661
|
-
], [
|
|
1662
|
-
void
|
|
1663
|
-
], "nonpayable">;
|
|
1664
|
-
decodeUint16Float: TypedContractMethod<[num: BigNumberish], [bigint], "view">;
|
|
1665
|
-
decreasePoolCash: TypedContractMethod<[
|
|
1666
|
-
_iPoolIdx: BigNumberish,
|
|
1667
|
-
_fAmount: BigNumberish
|
|
1668
|
-
], [
|
|
1669
|
-
void
|
|
1670
|
-
], "nonpayable">;
|
|
1671
|
-
deposit: TypedContractMethod<[
|
|
1672
|
-
_iPerpetualId: BigNumberish,
|
|
1673
|
-
_traderAddr: AddressLike,
|
|
1674
|
-
_fAmount: BigNumberish,
|
|
1675
|
-
_updateData: BytesLike[],
|
|
1676
|
-
_publishTimes: BigNumberish[]
|
|
1677
|
-
], [
|
|
1678
|
-
void
|
|
1679
|
-
], "payable">;
|
|
1680
|
-
depositBrokerLots: TypedContractMethod<[
|
|
1681
|
-
_poolId: BigNumberish,
|
|
1682
|
-
_iLots: BigNumberish
|
|
1683
|
-
], [
|
|
1684
|
-
void
|
|
1685
|
-
], "nonpayable">;
|
|
1686
|
-
depositMarginForOpeningTrade: TypedContractMethod<[
|
|
1687
|
-
_iPerpetualId: BigNumberish,
|
|
1688
|
-
_fDepositRequired: BigNumberish,
|
|
1689
|
-
_order: IPerpetualOrder.OrderStruct
|
|
1690
|
-
], [
|
|
1691
|
-
boolean
|
|
1692
|
-
], "nonpayable">;
|
|
1693
|
-
depositToDefaultFund: TypedContractMethod<[
|
|
1694
|
-
_poolId: BigNumberish,
|
|
1695
|
-
_fAmount: BigNumberish
|
|
1696
|
-
], [
|
|
1697
|
-
void
|
|
1698
|
-
], "nonpayable">;
|
|
1699
|
-
determineExchangeFee: TypedContractMethod<[
|
|
1700
|
-
_order: IPerpetualOrder.OrderStruct
|
|
1701
|
-
], [
|
|
1702
|
-
bigint
|
|
1703
|
-
], "view">;
|
|
1704
|
-
distributeFees: TypedContractMethod<[
|
|
1705
|
-
_order: IPerpetualOrder.OrderStruct,
|
|
1706
|
-
_brkrFeeTbps: BigNumberish,
|
|
1707
|
-
_protocolFeeTbps: BigNumberish,
|
|
1708
|
-
_hasOpened: boolean
|
|
1709
|
-
], [
|
|
1710
|
-
bigint
|
|
1711
|
-
], "nonpayable">;
|
|
1712
|
-
distributeFeesLiquidation: TypedContractMethod<[
|
|
1713
|
-
_iPerpetualId: BigNumberish,
|
|
1714
|
-
_traderAddr: AddressLike,
|
|
1715
|
-
_fDeltaPositionBC: BigNumberish,
|
|
1716
|
-
_protocolFeeTbps: BigNumberish
|
|
1717
|
-
], [
|
|
1718
|
-
bigint
|
|
1719
|
-
], "nonpayable">;
|
|
1720
|
-
entropy: TypedContractMethod<[_p: BigNumberish], [bigint], "view">;
|
|
1721
|
-
executeCancelOrder: TypedContractMethod<[
|
|
1722
|
-
_perpetualId: BigNumberish,
|
|
1723
|
-
_digest: BytesLike
|
|
1724
|
-
], [
|
|
1725
|
-
void
|
|
1726
|
-
], "nonpayable">;
|
|
1727
|
-
executeLiquidityWithdrawal: TypedContractMethod<[
|
|
1728
|
-
_poolId: BigNumberish,
|
|
1729
|
-
_lpAddr: AddressLike
|
|
1730
|
-
], [
|
|
1731
|
-
void
|
|
1732
|
-
], "nonpayable">;
|
|
1733
|
-
executeTrade: TypedContractMethod<[
|
|
1734
|
-
_iPerpetualId: BigNumberish,
|
|
1735
|
-
_traderAddr: AddressLike,
|
|
1736
|
-
_fTraderPos: BigNumberish,
|
|
1737
|
-
_fTradeAmount: BigNumberish,
|
|
1738
|
-
_fPrice: BigNumberish,
|
|
1739
|
-
_isClose: boolean
|
|
1740
|
-
], [
|
|
1741
|
-
bigint
|
|
1742
|
-
], "nonpayable">;
|
|
1743
|
-
getAMMPerpLogic: TypedContractMethod<[], [string], "view">;
|
|
1744
|
-
getAMMState: TypedContractMethod<[
|
|
1745
|
-
_perpetualId: BigNumberish,
|
|
1746
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
1747
|
-
], [
|
|
1748
|
-
bigint[]
|
|
1749
|
-
], "view">;
|
|
1750
|
-
getActivePerpAccounts: TypedContractMethod<[
|
|
1751
|
-
_perpetualId: BigNumberish
|
|
1752
|
-
], [
|
|
1753
|
-
string[]
|
|
1754
|
-
], "view">;
|
|
1755
|
-
getActivePerpAccountsByChunks: TypedContractMethod<[
|
|
1756
|
-
_perpetualId: BigNumberish,
|
|
1757
|
-
_from: BigNumberish,
|
|
1758
|
-
_to: BigNumberish
|
|
1759
|
-
], [
|
|
1760
|
-
string[]
|
|
1761
|
-
], "view">;
|
|
1762
|
-
getBrokerDesignation: TypedContractMethod<[
|
|
1763
|
-
_poolId: BigNumberish,
|
|
1764
|
-
_brokerAddr: AddressLike
|
|
1765
|
-
], [
|
|
1766
|
-
bigint
|
|
1767
|
-
], "view">;
|
|
1768
|
-
getBrokerInducedFee: TypedContractMethod<[
|
|
1769
|
-
_poolId: BigNumberish,
|
|
1770
|
-
_brokerAddr: AddressLike
|
|
1771
|
-
], [
|
|
1772
|
-
bigint
|
|
1773
|
-
], "view">;
|
|
1774
|
-
getCollateralTokenAmountForPricing: TypedContractMethod<[
|
|
1775
|
-
_poolId: BigNumberish
|
|
1776
|
-
], [
|
|
1777
|
-
bigint
|
|
1778
|
-
], "view">;
|
|
1779
|
-
getCurrentBrokerVolume: TypedContractMethod<[
|
|
1780
|
-
_poolId: BigNumberish,
|
|
1781
|
-
_brokerAddr: AddressLike
|
|
1782
|
-
], [
|
|
1783
|
-
bigint
|
|
1784
|
-
], "view">;
|
|
1785
|
-
getCurrentTraderVolume: TypedContractMethod<[
|
|
1786
|
-
_poolId: BigNumberish,
|
|
1787
|
-
_traderAddr: AddressLike
|
|
1788
|
-
], [
|
|
1789
|
-
bigint
|
|
1790
|
-
], "view">;
|
|
1791
|
-
getDepositAmountForLvgPosition: TypedContractMethod<[
|
|
1792
|
-
_fPosition0: BigNumberish,
|
|
1793
|
-
_fBalance0: BigNumberish,
|
|
1794
|
-
_fTradeAmount: BigNumberish,
|
|
1795
|
-
_fTargetLeverage: BigNumberish,
|
|
1796
|
-
_fPrice: BigNumberish,
|
|
1797
|
-
_fS2Mark: BigNumberish,
|
|
1798
|
-
_fS3: BigNumberish,
|
|
1799
|
-
_fS2: BigNumberish
|
|
1800
|
-
], [
|
|
1801
|
-
bigint
|
|
1802
|
-
], "view">;
|
|
1803
|
-
getExchangeFeePrdMkts: TypedContractMethod<[
|
|
1804
|
-
_perpetualId: BigNumberish,
|
|
1805
|
-
_fAmount: BigNumberish,
|
|
1806
|
-
_leverageTDR: BigNumberish,
|
|
1807
|
-
_traderAddr: AddressLike
|
|
1808
|
-
], [
|
|
1809
|
-
bigint
|
|
1810
|
-
], "view">;
|
|
1811
|
-
getFeeForBrokerDesignation: TypedContractMethod<[
|
|
1812
|
-
_brokerDesignation: BigNumberish
|
|
1813
|
-
], [
|
|
1814
|
-
bigint
|
|
1815
|
-
], "view">;
|
|
1816
|
-
getFeeForBrokerStake: TypedContractMethod<[
|
|
1817
|
-
brokerAddr: AddressLike
|
|
1818
|
-
], [
|
|
1819
|
-
bigint
|
|
1820
|
-
], "view">;
|
|
1821
|
-
getFeeForBrokerVolume: TypedContractMethod<[
|
|
1822
|
-
_poolId: BigNumberish,
|
|
1823
|
-
_brokerAddr: AddressLike
|
|
1824
|
-
], [
|
|
1825
|
-
bigint
|
|
1826
|
-
], "view">;
|
|
1827
|
-
getFeeForTraderStake: TypedContractMethod<[
|
|
1828
|
-
traderAddr: AddressLike
|
|
1829
|
-
], [
|
|
1830
|
-
bigint
|
|
1831
|
-
], "view">;
|
|
1832
|
-
getFeeForTraderVolume: TypedContractMethod<[
|
|
1833
|
-
_poolId: BigNumberish,
|
|
1834
|
-
_traderAddr: AddressLike
|
|
1835
|
-
], [
|
|
1836
|
-
bigint
|
|
1837
|
-
], "view">;
|
|
1838
|
-
getLastPerpetualBaseToUSDConversion: TypedContractMethod<[
|
|
1839
|
-
_iPerpetualId: BigNumberish
|
|
1840
|
-
], [
|
|
1841
|
-
bigint
|
|
1842
|
-
], "view">;
|
|
1843
|
-
getLiquidatableAccounts: TypedContractMethod<[
|
|
1844
|
-
_perpetualId: BigNumberish,
|
|
1845
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
1846
|
-
], [
|
|
1847
|
-
string[]
|
|
1848
|
-
], "view">;
|
|
1849
|
-
getLiquidityPool: TypedContractMethod<[
|
|
1850
|
-
_poolId: BigNumberish
|
|
1851
|
-
], [
|
|
1852
|
-
PerpStorage.LiquidityPoolDataStructOutput
|
|
1853
|
-
], "view">;
|
|
1854
|
-
getLiquidityPools: TypedContractMethod<[
|
|
1855
|
-
_poolIdFrom: BigNumberish,
|
|
1856
|
-
_poolIdTo: BigNumberish
|
|
1857
|
-
], [
|
|
1858
|
-
PerpStorage.LiquidityPoolDataStructOutput[]
|
|
1859
|
-
], "view">;
|
|
1860
|
-
getMarginAccount: TypedContractMethod<[
|
|
1861
|
-
_perpetualId: BigNumberish,
|
|
1862
|
-
_traderAddress: AddressLike
|
|
1863
|
-
], [
|
|
1864
|
-
PerpStorage.MarginAccountStructOutput
|
|
1865
|
-
], "view">;
|
|
1866
|
-
getMarginAccounts: TypedContractMethod<[
|
|
1867
|
-
_perpetualIds: BigNumberish[],
|
|
1868
|
-
_traderAddress: AddressLike
|
|
1869
|
-
], [
|
|
1870
|
-
PerpStorage.MarginAccountStructOutput[]
|
|
1871
|
-
], "view">;
|
|
1872
|
-
getMaxSignedOpenTradeSizeForPos: TypedContractMethod<[
|
|
1873
|
-
_perpetualId: BigNumberish,
|
|
1874
|
-
_fCurrentTraderPos: BigNumberish,
|
|
1875
|
-
_isBuy: boolean
|
|
1876
|
-
], [
|
|
1877
|
-
bigint
|
|
1878
|
-
], "view">;
|
|
1879
|
-
getNextLiquidatableTrader: TypedContractMethod<[
|
|
1880
|
-
_perpetualId: BigNumberish,
|
|
1881
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
1882
|
-
], [
|
|
1883
|
-
string
|
|
1884
|
-
], "view">;
|
|
1885
|
-
getOracleFactory: TypedContractMethod<[], [string], "view">;
|
|
1886
|
-
getOraclePrice: TypedContractMethod<[
|
|
1887
|
-
_baseQuote: [BytesLike, BytesLike]
|
|
1888
|
-
], [
|
|
1889
|
-
[bigint, bigint]
|
|
1890
|
-
], "view">;
|
|
1891
|
-
getOracleUpdateTime: TypedContractMethod<[
|
|
1892
|
-
_perpetualId: BigNumberish
|
|
1893
|
-
], [
|
|
1894
|
-
bigint
|
|
1895
|
-
], "view">;
|
|
1896
|
-
getOrderBookAddress: TypedContractMethod<[
|
|
1897
|
-
_perpetualId: BigNumberish
|
|
1898
|
-
], [
|
|
1899
|
-
string
|
|
1900
|
-
], "view">;
|
|
1901
|
-
getOrderBookFactoryAddress: TypedContractMethod<[], [string], "view">;
|
|
1902
|
-
getPerpetual: TypedContractMethod<[
|
|
1903
|
-
_perpetualId: BigNumberish
|
|
1904
|
-
], [
|
|
1905
|
-
PerpStorage.PerpetualDataStructOutput
|
|
1906
|
-
], "view">;
|
|
1907
|
-
getPerpetualCountInPool: TypedContractMethod<[
|
|
1908
|
-
_poolId: BigNumberish
|
|
1909
|
-
], [
|
|
1910
|
-
bigint
|
|
1911
|
-
], "view">;
|
|
1912
|
-
getPerpetualId: TypedContractMethod<[
|
|
1913
|
-
_poolId: BigNumberish,
|
|
1914
|
-
_perpetualIndex: BigNumberish
|
|
1915
|
-
], [
|
|
1916
|
-
bigint
|
|
1917
|
-
], "view">;
|
|
1918
|
-
getPerpetualStaticInfo: TypedContractMethod<[
|
|
1919
|
-
perpetualIds: BigNumberish[]
|
|
1920
|
-
], [
|
|
1921
|
-
IPerpetualInfo.PerpetualStaticInfoStructOutput[]
|
|
1922
|
-
], "view">;
|
|
1923
|
-
getPerpetuals: TypedContractMethod<[
|
|
1924
|
-
perpetualIds: BigNumberish[]
|
|
1925
|
-
], [
|
|
1926
|
-
PerpStorage.PerpetualDataStructOutput[]
|
|
1927
|
-
], "view">;
|
|
1928
|
-
getPoolCount: TypedContractMethod<[], [bigint], "view">;
|
|
1929
|
-
getPoolIdByPerpetualId: TypedContractMethod<[
|
|
1930
|
-
_perpetualId: BigNumberish
|
|
1931
|
-
], [
|
|
1932
|
-
bigint
|
|
1933
|
-
], "view">;
|
|
1934
|
-
getPoolStaticInfo: TypedContractMethod<[
|
|
1935
|
-
_poolFromIdx: BigNumberish,
|
|
1936
|
-
_poolToIdx: BigNumberish
|
|
1937
|
-
], [
|
|
1938
|
-
[
|
|
1939
|
-
bigint[][],
|
|
1940
|
-
string[],
|
|
1941
|
-
string[],
|
|
1942
|
-
string
|
|
1943
|
-
] & {
|
|
1944
|
-
_oracleFactoryAddress: string;
|
|
1945
|
-
}
|
|
1946
|
-
], "view">;
|
|
1947
|
-
getPriceInfo: TypedContractMethod<[
|
|
1948
|
-
_perpetualId: BigNumberish
|
|
1949
|
-
], [
|
|
1950
|
-
[string[], boolean[]]
|
|
1951
|
-
], "view">;
|
|
1952
|
-
getSettleableAccounts: TypedContractMethod<[
|
|
1953
|
-
_perpetualId: BigNumberish,
|
|
1954
|
-
start: BigNumberish,
|
|
1955
|
-
count: BigNumberish
|
|
1956
|
-
], [
|
|
1957
|
-
string[]
|
|
1958
|
-
], "view">;
|
|
1959
|
-
getShareTokenFactory: TypedContractMethod<[], [string], "view">;
|
|
1960
|
-
getShareTokenPriceD18: TypedContractMethod<[
|
|
1961
|
-
_poolId: BigNumberish
|
|
1962
|
-
], [
|
|
1963
|
-
bigint
|
|
1964
|
-
], "view">;
|
|
1965
|
-
getTargetCollateralM1: TypedContractMethod<[
|
|
1966
|
-
_fK2: BigNumberish,
|
|
1967
|
-
_fL1: BigNumberish,
|
|
1968
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
1969
|
-
_fTargetDD: BigNumberish
|
|
1970
|
-
], [
|
|
1971
|
-
bigint
|
|
1972
|
-
], "view">;
|
|
1973
|
-
getTargetCollateralM2: TypedContractMethod<[
|
|
1974
|
-
_fK2: BigNumberish,
|
|
1975
|
-
_fL1: BigNumberish,
|
|
1976
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
1977
|
-
_fTargetDD: BigNumberish
|
|
1978
|
-
], [
|
|
1979
|
-
bigint
|
|
1980
|
-
], "view">;
|
|
1981
|
-
getTargetCollateralM3: TypedContractMethod<[
|
|
1982
|
-
_fK2: BigNumberish,
|
|
1983
|
-
_fL1: BigNumberish,
|
|
1984
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
1985
|
-
_fTargetDD: BigNumberish
|
|
1986
|
-
], [
|
|
1987
|
-
bigint
|
|
1988
|
-
], "view">;
|
|
1989
|
-
getTokenAmountToReturn: TypedContractMethod<[
|
|
1990
|
-
_poolId: BigNumberish,
|
|
1991
|
-
_shareAmount: BigNumberish
|
|
1992
|
-
], [
|
|
1993
|
-
bigint
|
|
1994
|
-
], "view">;
|
|
1995
|
-
getTraderState: TypedContractMethod<[
|
|
1996
|
-
_perpetualId: BigNumberish,
|
|
1997
|
-
_traderAddress: AddressLike,
|
|
1998
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
1999
|
-
], [
|
|
2000
|
-
bigint[]
|
|
2001
|
-
], "view">;
|
|
2002
|
-
getTreasuryAddress: TypedContractMethod<[], [string], "view">;
|
|
2003
|
-
getWithdrawRequests: TypedContractMethod<[
|
|
2004
|
-
poolId: BigNumberish,
|
|
2005
|
-
_fromIdx: BigNumberish,
|
|
2006
|
-
numRequests: BigNumberish
|
|
2007
|
-
], [
|
|
2008
|
-
PerpStorage.WithdrawRequestStructOutput[]
|
|
2009
|
-
], "view">;
|
|
2010
|
-
increasePoolCash: TypedContractMethod<[
|
|
2011
|
-
_iPoolIdx: BigNumberish,
|
|
2012
|
-
_fAmount: BigNumberish
|
|
2013
|
-
], [
|
|
2014
|
-
void
|
|
2015
|
-
], "nonpayable">;
|
|
2016
|
-
isActiveAccount: TypedContractMethod<[
|
|
2017
|
-
_perpetualId: BigNumberish,
|
|
2018
|
-
_traderAddress: AddressLike
|
|
2019
|
-
], [
|
|
2020
|
-
boolean
|
|
2021
|
-
], "view">;
|
|
2022
|
-
isDelegate: TypedContractMethod<[
|
|
2023
|
-
_trader: AddressLike,
|
|
2024
|
-
_delegate: AddressLike
|
|
2025
|
-
], [
|
|
2026
|
-
boolean
|
|
2027
|
-
], "view">;
|
|
2028
|
-
isMarketClosed: TypedContractMethod<[
|
|
2029
|
-
_baseCurrency: BytesLike,
|
|
2030
|
-
_quoteCurrency: BytesLike
|
|
2031
|
-
], [
|
|
2032
|
-
boolean
|
|
2033
|
-
], "view">;
|
|
2034
|
-
isOrderCanceled: TypedContractMethod<[digest: BytesLike], [boolean], "view">;
|
|
2035
|
-
isOrderExecuted: TypedContractMethod<[digest: BytesLike], [boolean], "view">;
|
|
2036
|
-
isPerpMarketClosed: TypedContractMethod<[
|
|
2037
|
-
_perpetualId: BigNumberish
|
|
2038
|
-
], [
|
|
2039
|
-
boolean
|
|
2040
|
-
], "view">;
|
|
2041
|
-
liquidateByAMM: TypedContractMethod<[
|
|
2042
|
-
_perpetualIndex: BigNumberish,
|
|
2043
|
-
_liquidatorAddr: AddressLike,
|
|
2044
|
-
_traderAddr: AddressLike,
|
|
2045
|
-
_updateData: BytesLike[],
|
|
2046
|
-
_publishTimes: BigNumberish[]
|
|
2047
|
-
], [
|
|
2048
|
-
bigint
|
|
2049
|
-
], "payable">;
|
|
2050
|
-
pauseLiquidityProvision: TypedContractMethod<[
|
|
2051
|
-
_poolId: BigNumberish,
|
|
2052
|
-
_pauseOn: boolean
|
|
2053
|
-
], [
|
|
2054
|
-
void
|
|
2055
|
-
], "nonpayable">;
|
|
2056
|
-
prdMktsLvgFee: TypedContractMethod<[
|
|
2057
|
-
_fPx: BigNumberish,
|
|
2058
|
-
_fm: BigNumberish,
|
|
2059
|
-
_fTradeAmt: BigNumberish,
|
|
2060
|
-
_fMgnRate: BigNumberish
|
|
2061
|
-
], [
|
|
2062
|
-
bigint
|
|
2063
|
-
], "view">;
|
|
2064
|
-
preTrade: TypedContractMethod<[
|
|
2065
|
-
_order: IPerpetualOrder.OrderStruct
|
|
2066
|
-
], [
|
|
2067
|
-
[bigint, bigint]
|
|
2068
|
-
], "nonpayable">;
|
|
2069
|
-
priceImpact: TypedContractMethod<[
|
|
2070
|
-
_amount: BigNumberish,
|
|
2071
|
-
_params: BigNumberish
|
|
2072
|
-
], [
|
|
2073
|
-
bigint
|
|
2074
|
-
], "view">;
|
|
2075
|
-
queryExchangeFee: TypedContractMethod<[
|
|
2076
|
-
_poolId: BigNumberish,
|
|
2077
|
-
_traderAddr: AddressLike,
|
|
2078
|
-
_brokerAddr: AddressLike
|
|
2079
|
-
], [
|
|
2080
|
-
bigint
|
|
2081
|
-
], "view">;
|
|
2082
|
-
queryMidPrices: TypedContractMethod<[
|
|
2083
|
-
_perpetualIds: BigNumberish[],
|
|
2084
|
-
_idxPriceDataPairs: BigNumberish[]
|
|
2085
|
-
], [
|
|
2086
|
-
bigint[]
|
|
2087
|
-
], "view">;
|
|
2088
|
-
queryPerpetualPrice: TypedContractMethod<[
|
|
2089
|
-
_iPerpetualId: BigNumberish,
|
|
2090
|
-
_fTradeAmountBC: BigNumberish,
|
|
2091
|
-
_fIndexPrice: [BigNumberish, BigNumberish],
|
|
2092
|
-
_confTbps: BigNumberish,
|
|
2093
|
-
_params: BigNumberish
|
|
2094
|
-
], [
|
|
2095
|
-
bigint
|
|
2096
|
-
], "view">;
|
|
2097
|
-
rebalance: TypedContractMethod<[
|
|
2098
|
-
_iPerpetualId: BigNumberish
|
|
2099
|
-
], [
|
|
2100
|
-
void
|
|
2101
|
-
], "nonpayable">;
|
|
2102
|
-
reduceMarginCollateral: TypedContractMethod<[
|
|
2103
|
-
_iPerpetualId: BigNumberish,
|
|
2104
|
-
_traderAddr: AddressLike,
|
|
2105
|
-
_fAmountToWithdraw: BigNumberish
|
|
2106
|
-
], [
|
|
2107
|
-
void
|
|
2108
|
-
], "nonpayable">;
|
|
2109
|
-
resetMarkPremium: TypedContractMethod<[
|
|
2110
|
-
_iPerpetualId: BigNumberish
|
|
2111
|
-
], [
|
|
2112
|
-
void
|
|
2113
|
-
], "nonpayable">;
|
|
2114
|
-
runLiquidityPool: TypedContractMethod<[
|
|
2115
|
-
_liqPoolID: BigNumberish
|
|
2116
|
-
], [
|
|
2117
|
-
void
|
|
2118
|
-
], "nonpayable">;
|
|
2119
|
-
setAMMPerpLogic: TypedContractMethod<[
|
|
2120
|
-
_AMMPerpLogic: AddressLike
|
|
2121
|
-
], [
|
|
2122
|
-
void
|
|
2123
|
-
], "nonpayable">;
|
|
2124
|
-
setBlockDelay: TypedContractMethod<[
|
|
2125
|
-
_delay: BigNumberish
|
|
2126
|
-
], [
|
|
2127
|
-
void
|
|
2128
|
-
], "nonpayable">;
|
|
2129
|
-
setBrokerTiers: TypedContractMethod<[
|
|
2130
|
-
_tiers: BigNumberish[],
|
|
2131
|
-
_feesTbps: BigNumberish[]
|
|
2132
|
-
], [
|
|
2133
|
-
void
|
|
2134
|
-
], "nonpayable">;
|
|
2135
|
-
setBrokerVolumeTiers: TypedContractMethod<[
|
|
2136
|
-
_tiers: BigNumberish[],
|
|
2137
|
-
_feesTbps: BigNumberish[]
|
|
2138
|
-
], [
|
|
2139
|
-
void
|
|
2140
|
-
], "nonpayable">;
|
|
2141
|
-
setDelegate: TypedContractMethod<[
|
|
2142
|
-
delegate: AddressLike,
|
|
2143
|
-
index: BigNumberish
|
|
2144
|
-
], [
|
|
2145
|
-
void
|
|
2146
|
-
], "nonpayable">;
|
|
2147
|
-
setEmergencyState: TypedContractMethod<[
|
|
2148
|
-
_iPerpetualId: BigNumberish
|
|
2149
|
-
], [
|
|
2150
|
-
void
|
|
2151
|
-
], "nonpayable">;
|
|
2152
|
-
setFeesForDesignation: TypedContractMethod<[
|
|
2153
|
-
_designations: BigNumberish[],
|
|
2154
|
-
_fees: BigNumberish[]
|
|
2155
|
-
], [
|
|
2156
|
-
void
|
|
2157
|
-
], "nonpayable">;
|
|
2158
|
-
setInitialVolumeForFee: TypedContractMethod<[
|
|
2159
|
-
_poolId: BigNumberish,
|
|
2160
|
-
_brokerAddr: AddressLike,
|
|
2161
|
-
_feeTbps: BigNumberish
|
|
2162
|
-
], [
|
|
2163
|
-
void
|
|
2164
|
-
], "nonpayable">;
|
|
2165
|
-
setNormalState: TypedContractMethod<[
|
|
2166
|
-
_iPerpetualId: BigNumberish
|
|
2167
|
-
], [
|
|
2168
|
-
void
|
|
2169
|
-
], "nonpayable">;
|
|
2170
|
-
setOracleFactory: TypedContractMethod<[
|
|
2171
|
-
_oracleFactory: AddressLike
|
|
2172
|
-
], [
|
|
2173
|
-
void
|
|
2174
|
-
], "nonpayable">;
|
|
2175
|
-
setOracleFactoryForPerpetual: TypedContractMethod<[
|
|
2176
|
-
_iPerpetualId: BigNumberish,
|
|
2177
|
-
_oracleAddr: AddressLike
|
|
2178
|
-
], [
|
|
2179
|
-
void
|
|
2180
|
-
], "nonpayable">;
|
|
2181
|
-
setOrderBookFactory: TypedContractMethod<[
|
|
2182
|
-
_orderBookFactory: AddressLike
|
|
2183
|
-
], [
|
|
2184
|
-
void
|
|
2185
|
-
], "nonpayable">;
|
|
2186
|
-
setPerpetualBaseParams: TypedContractMethod<[
|
|
2187
|
-
_iPerpetualId: BigNumberish,
|
|
2188
|
-
_baseParams: BigNumberish[]
|
|
2189
|
-
], [
|
|
2190
|
-
void
|
|
2191
|
-
], "nonpayable">;
|
|
2192
|
-
setPerpetualOracles: TypedContractMethod<[
|
|
2193
|
-
_iPerpetualId: BigNumberish,
|
|
2194
|
-
_baseQuoteS2: [BytesLike, BytesLike],
|
|
2195
|
-
_baseQuoteS3: [BytesLike, BytesLike]
|
|
2196
|
-
], [
|
|
2197
|
-
void
|
|
2198
|
-
], "nonpayable">;
|
|
2199
|
-
setPerpetualParam: TypedContractMethod<[
|
|
2200
|
-
_iPerpetualId: BigNumberish,
|
|
2201
|
-
_varName: string,
|
|
2202
|
-
_value: BigNumberish
|
|
2203
|
-
], [
|
|
2204
|
-
void
|
|
2205
|
-
], "nonpayable">;
|
|
2206
|
-
setPerpetualParamPair: TypedContractMethod<[
|
|
2207
|
-
_iPerpetualId: BigNumberish,
|
|
2208
|
-
_name: string,
|
|
2209
|
-
_value1: BigNumberish,
|
|
2210
|
-
_value2: BigNumberish
|
|
2211
|
-
], [
|
|
2212
|
-
void
|
|
2213
|
-
], "nonpayable">;
|
|
2214
|
-
setPerpetualPoolFactory: TypedContractMethod<[
|
|
2215
|
-
_shareTokenFactory: AddressLike
|
|
2216
|
-
], [
|
|
2217
|
-
void
|
|
2218
|
-
], "nonpayable">;
|
|
2219
|
-
setPerpetualRiskParams: TypedContractMethod<[
|
|
2220
|
-
_iPerpetualId: BigNumberish,
|
|
2221
|
-
_underlyingRiskParams: [
|
|
2222
|
-
BigNumberish,
|
|
2223
|
-
BigNumberish,
|
|
2224
|
-
BigNumberish,
|
|
2225
|
-
BigNumberish,
|
|
2226
|
-
BigNumberish
|
|
2227
|
-
],
|
|
2228
|
-
_defaultFundRiskParams: BigNumberish[]
|
|
2229
|
-
], [
|
|
2230
|
-
void
|
|
2231
|
-
], "nonpayable">;
|
|
2232
|
-
setPoolParam: TypedContractMethod<[
|
|
2233
|
-
_poolId: BigNumberish,
|
|
2234
|
-
_name: string,
|
|
2235
|
-
_value: BigNumberish
|
|
2236
|
-
], [
|
|
2237
|
-
void
|
|
2238
|
-
], "nonpayable">;
|
|
2239
|
-
setTraderTiers: TypedContractMethod<[
|
|
2240
|
-
_tiers: BigNumberish[],
|
|
2241
|
-
_feesTbps: BigNumberish[]
|
|
2242
|
-
], [
|
|
2243
|
-
void
|
|
2244
|
-
], "nonpayable">;
|
|
2245
|
-
setTraderVolumeTiers: TypedContractMethod<[
|
|
2246
|
-
_tiers: BigNumberish[],
|
|
2247
|
-
_feesTbps: BigNumberish[]
|
|
2248
|
-
], [
|
|
2249
|
-
void
|
|
2250
|
-
], "nonpayable">;
|
|
2251
|
-
setTreasury: TypedContractMethod<[
|
|
2252
|
-
_treasury: AddressLike
|
|
2253
|
-
], [
|
|
2254
|
-
void
|
|
2255
|
-
], "nonpayable">;
|
|
2256
|
-
setUtilityTokenAddr: TypedContractMethod<[
|
|
2257
|
-
tokenAddr: AddressLike
|
|
2258
|
-
], [
|
|
2259
|
-
void
|
|
2260
|
-
], "nonpayable">;
|
|
2261
|
-
settle: TypedContractMethod<[
|
|
2262
|
-
_perpetualID: BigNumberish,
|
|
2263
|
-
_traderAddr: AddressLike
|
|
2264
|
-
], [
|
|
2265
|
-
void
|
|
2266
|
-
], "nonpayable">;
|
|
2267
|
-
settleNextTraderInPool: TypedContractMethod<[
|
|
2268
|
-
_id: BigNumberish
|
|
2269
|
-
], [
|
|
2270
|
-
boolean
|
|
2271
|
-
], "nonpayable">;
|
|
2272
|
-
settleTraders: TypedContractMethod<[
|
|
2273
|
-
_perpetualID: BigNumberish,
|
|
2274
|
-
_bulkSize: BigNumberish
|
|
2275
|
-
], [
|
|
2276
|
-
bigint
|
|
2277
|
-
], "nonpayable">;
|
|
2278
|
-
splitProtocolFee: TypedContractMethod<[
|
|
2279
|
-
fee: BigNumberish
|
|
2280
|
-
], [
|
|
2281
|
-
[bigint, bigint]
|
|
2282
|
-
], "view">;
|
|
2283
|
-
testTradeEvent: TypedContractMethod<[
|
|
2284
|
-
_order: IPerpetualOrder.OrderStruct
|
|
2285
|
-
], [
|
|
2286
|
-
void
|
|
2287
|
-
], "nonpayable">;
|
|
2288
|
-
togglePerpEmergencyState: TypedContractMethod<[
|
|
2289
|
-
_perpetualId: BigNumberish
|
|
2290
|
-
], [
|
|
2291
|
-
void
|
|
2292
|
-
], "nonpayable">;
|
|
2293
|
-
tradeViaOrderBook: TypedContractMethod<[
|
|
2294
|
-
_order: IPerpetualOrder.OrderStruct,
|
|
2295
|
-
_executor: AddressLike
|
|
2296
|
-
], [
|
|
2297
|
-
boolean
|
|
2298
|
-
], "nonpayable">;
|
|
2299
|
-
transferBrokerLots: TypedContractMethod<[
|
|
2300
|
-
_poolId: BigNumberish,
|
|
2301
|
-
_transferToAddr: AddressLike,
|
|
2302
|
-
_lots: BigNumberish
|
|
2303
|
-
], [
|
|
2304
|
-
void
|
|
2305
|
-
], "nonpayable">;
|
|
2306
|
-
transferBrokerOwnership: TypedContractMethod<[
|
|
2307
|
-
_poolId: BigNumberish,
|
|
2308
|
-
_transferToAddr: AddressLike
|
|
2309
|
-
], [
|
|
2310
|
-
void
|
|
2311
|
-
], "nonpayable">;
|
|
2312
|
-
transferEarningsToTreasury: TypedContractMethod<[
|
|
2313
|
-
_poolId: BigNumberish,
|
|
2314
|
-
_fAmount: BigNumberish
|
|
2315
|
-
], [
|
|
2316
|
-
void
|
|
2317
|
-
], "nonpayable">;
|
|
2318
|
-
transferValueToTreasury: TypedContractMethod<[], [boolean], "nonpayable">;
|
|
2319
|
-
updateAMMTargetFundSize: TypedContractMethod<[
|
|
2320
|
-
_iPerpetualId: BigNumberish
|
|
2321
|
-
], [
|
|
2322
|
-
void
|
|
2323
|
-
], "nonpayable">;
|
|
2324
|
-
updateDefaultFundTargetSize: TypedContractMethod<[
|
|
2325
|
-
_iPerpetualId: BigNumberish
|
|
2326
|
-
], [
|
|
2327
|
-
void
|
|
2328
|
-
], "nonpayable">;
|
|
2329
|
-
updateFundingAndPricesAfter: TypedContractMethod<[
|
|
2330
|
-
_iPerpetualId: BigNumberish
|
|
2331
|
-
], [
|
|
2332
|
-
void
|
|
2333
|
-
], "nonpayable">;
|
|
2334
|
-
updateFundingAndPricesBefore: TypedContractMethod<[
|
|
2335
|
-
_iPerpetualId: BigNumberish,
|
|
2336
|
-
_revertIfClosed: boolean
|
|
2337
|
-
], [
|
|
2338
|
-
void
|
|
2339
|
-
], "nonpayable">;
|
|
2340
|
-
updatePriceFeeds: TypedContractMethod<[
|
|
2341
|
-
_perpetualId: BigNumberish,
|
|
2342
|
-
_updateData: BytesLike[],
|
|
2343
|
-
_publishTimes: BigNumberish[],
|
|
2344
|
-
_maxAcceptableFeedAge: BigNumberish
|
|
2345
|
-
], [
|
|
2346
|
-
void
|
|
2347
|
-
], "payable">;
|
|
2348
|
-
updateVolumeEMAOnNewTrade: TypedContractMethod<[
|
|
2349
|
-
_iPerpetualId: BigNumberish,
|
|
2350
|
-
_traderAddr: AddressLike,
|
|
2351
|
-
_brokerAddr: AddressLike,
|
|
2352
|
-
_tradeAmountBC: BigNumberish
|
|
2353
|
-
], [
|
|
2354
|
-
void
|
|
2355
|
-
], "nonpayable">;
|
|
2356
|
-
validateStopPrice: TypedContractMethod<[
|
|
2357
|
-
_isLong: boolean,
|
|
2358
|
-
_fMarkPrice: BigNumberish,
|
|
2359
|
-
_fTriggerPrice: BigNumberish
|
|
2360
|
-
], [
|
|
2361
|
-
void
|
|
2362
|
-
], "view">;
|
|
2363
|
-
withdraw: TypedContractMethod<[
|
|
2364
|
-
_iPerpetualId: BigNumberish,
|
|
2365
|
-
_traderAddr: AddressLike,
|
|
2366
|
-
_fAmount: BigNumberish,
|
|
2367
|
-
_updateData: BytesLike[],
|
|
2368
|
-
_publishTimes: BigNumberish[]
|
|
2369
|
-
], [
|
|
2370
|
-
void
|
|
2371
|
-
], "payable">;
|
|
2372
|
-
withdrawAll: TypedContractMethod<[
|
|
2373
|
-
_iPerpetualId: BigNumberish,
|
|
2374
|
-
_traderAddr: AddressLike,
|
|
2375
|
-
_updateData: BytesLike[],
|
|
2376
|
-
_publishTimes: BigNumberish[]
|
|
2377
|
-
], [
|
|
2378
|
-
void
|
|
2379
|
-
], "payable">;
|
|
2380
|
-
withdrawDepositFromMarginAccount: TypedContractMethod<[
|
|
2381
|
-
_iPerpetualId: BigNumberish,
|
|
2382
|
-
_traderAddr: AddressLike
|
|
2383
|
-
], [
|
|
2384
|
-
void
|
|
2385
|
-
], "nonpayable">;
|
|
2386
|
-
withdrawFromDefaultFund: TypedContractMethod<[
|
|
2387
|
-
_poolId: BigNumberish,
|
|
2388
|
-
_fAmount: BigNumberish
|
|
2389
|
-
], [
|
|
2390
|
-
void
|
|
2391
|
-
], "nonpayable">;
|
|
2392
|
-
withdrawLiquidity: TypedContractMethod<[
|
|
2393
|
-
_iPoolIndex: BigNumberish,
|
|
2394
|
-
_shareAmount: BigNumberish,
|
|
2395
|
-
_lp: AddressLike
|
|
2396
|
-
], [
|
|
2397
|
-
void
|
|
2398
|
-
], "nonpayable">;
|
|
2399
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2400
|
-
getFunction(nameOrSignature: "activatePerpetual"): TypedContractMethod<[_perpetualId: BigNumberish], [void], "nonpayable">;
|
|
2401
|
-
getFunction(nameOrSignature: "addLiquidity"): TypedContractMethod<[
|
|
2402
|
-
_iPoolIndex: BigNumberish,
|
|
2403
|
-
_tokenAmount: BigNumberish
|
|
2404
|
-
], [
|
|
2405
|
-
void
|
|
2406
|
-
], "nonpayable">;
|
|
2407
|
-
getFunction(nameOrSignature: "adjustSettlementPrice"): TypedContractMethod<[
|
|
2408
|
-
_perpetualId: BigNumberish,
|
|
2409
|
-
_fSettlementS2: BigNumberish,
|
|
2410
|
-
_fSettlementS3: BigNumberish
|
|
2411
|
-
], [
|
|
2412
|
-
void
|
|
2413
|
-
], "nonpayable">;
|
|
2414
|
-
getFunction(nameOrSignature: "calculateDefaultFundSize"): TypedContractMethod<[
|
|
2415
|
-
_fK2AMM: [BigNumberish, BigNumberish],
|
|
2416
|
-
_fk2Trader: BigNumberish,
|
|
2417
|
-
_fCoverN: BigNumberish,
|
|
2418
|
-
fStressRet2: [BigNumberish, BigNumberish],
|
|
2419
|
-
fStressRet3: [BigNumberish, BigNumberish],
|
|
2420
|
-
fIndexPrices: [BigNumberish, BigNumberish],
|
|
2421
|
-
_eCCY: BigNumberish
|
|
2422
|
-
], [
|
|
2423
|
-
bigint
|
|
2424
|
-
], "view">;
|
|
2425
|
-
getFunction(nameOrSignature: "calculatePerpetualPrice"): TypedContractMethod<[
|
|
2426
|
-
_ammVars: AMMPerpLogic.AMMVariablesStruct,
|
|
2427
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
2428
|
-
_fTradeAmount: BigNumberish,
|
|
2429
|
-
_fBidAskSpread: BigNumberish,
|
|
2430
|
-
_fIncentiveSpread: BigNumberish
|
|
2431
|
-
], [
|
|
2432
|
-
bigint
|
|
2433
|
-
], "view">;
|
|
2434
|
-
getFunction(nameOrSignature: "calculateRiskNeutralPD"): TypedContractMethod<[
|
|
2435
|
-
_ammVars: AMMPerpLogic.AMMVariablesStruct,
|
|
2436
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
2437
|
-
_fTradeAmount: BigNumberish,
|
|
2438
|
-
_withCDF: boolean
|
|
2439
|
-
], [
|
|
2440
|
-
[bigint, bigint]
|
|
2441
|
-
], "view">;
|
|
2442
|
-
getFunction(nameOrSignature: "clearTradersInPool"): TypedContractMethod<[
|
|
2443
|
-
_id: BigNumberish,
|
|
2444
|
-
_bulkSize: BigNumberish
|
|
2445
|
-
], [
|
|
2446
|
-
boolean
|
|
2447
|
-
], "nonpayable">;
|
|
2448
|
-
getFunction(nameOrSignature: "countActivePerpAccounts"): TypedContractMethod<[_perpetualId: BigNumberish], [bigint], "view">;
|
|
2449
|
-
getFunction(nameOrSignature: "createLiquidityPool"): TypedContractMethod<[
|
|
2450
|
-
_marginTokenAddress: AddressLike,
|
|
2451
|
-
_iTargetPoolSizeUpdateTime: BigNumberish,
|
|
2452
|
-
_fBrokerCollateralLotSize: BigNumberish,
|
|
2453
|
-
_fCeilPnLShare: BigNumberish
|
|
2454
|
-
], [
|
|
2455
|
-
bigint
|
|
2456
|
-
], "nonpayable">;
|
|
2457
|
-
getFunction(nameOrSignature: "createPerpetual"): TypedContractMethod<[
|
|
2458
|
-
_iPoolId: BigNumberish,
|
|
2459
|
-
_baseQuoteS2: [BytesLike, BytesLike],
|
|
2460
|
-
_baseQuoteS3: [BytesLike, BytesLike],
|
|
2461
|
-
_baseParams: BigNumberish[],
|
|
2462
|
-
_underlyingRiskParams: [
|
|
2463
|
-
BigNumberish,
|
|
2464
|
-
BigNumberish,
|
|
2465
|
-
BigNumberish,
|
|
2466
|
-
BigNumberish,
|
|
2467
|
-
BigNumberish
|
|
2468
|
-
],
|
|
2469
|
-
_defaultFundRiskParams: BigNumberish[],
|
|
2470
|
-
_eCollateralCurrency: BigNumberish
|
|
2471
|
-
], [
|
|
2472
|
-
void
|
|
2473
|
-
], "nonpayable">;
|
|
2474
|
-
getFunction(nameOrSignature: "deactivatePerp"): TypedContractMethod<[_perpetualId: BigNumberish], [void], "nonpayable">;
|
|
2475
|
-
getFunction(nameOrSignature: "decodeUint16Float"): TypedContractMethod<[num: BigNumberish], [bigint], "view">;
|
|
2476
|
-
getFunction(nameOrSignature: "decreasePoolCash"): TypedContractMethod<[
|
|
2477
|
-
_iPoolIdx: BigNumberish,
|
|
2478
|
-
_fAmount: BigNumberish
|
|
2479
|
-
], [
|
|
2480
|
-
void
|
|
2481
|
-
], "nonpayable">;
|
|
2482
|
-
getFunction(nameOrSignature: "deposit"): TypedContractMethod<[
|
|
2483
|
-
_iPerpetualId: BigNumberish,
|
|
2484
|
-
_traderAddr: AddressLike,
|
|
2485
|
-
_fAmount: BigNumberish,
|
|
2486
|
-
_updateData: BytesLike[],
|
|
2487
|
-
_publishTimes: BigNumberish[]
|
|
2488
|
-
], [
|
|
2489
|
-
void
|
|
2490
|
-
], "payable">;
|
|
2491
|
-
getFunction(nameOrSignature: "depositBrokerLots"): TypedContractMethod<[
|
|
2492
|
-
_poolId: BigNumberish,
|
|
2493
|
-
_iLots: BigNumberish
|
|
2494
|
-
], [
|
|
2495
|
-
void
|
|
2496
|
-
], "nonpayable">;
|
|
2497
|
-
getFunction(nameOrSignature: "depositMarginForOpeningTrade"): TypedContractMethod<[
|
|
2498
|
-
_iPerpetualId: BigNumberish,
|
|
2499
|
-
_fDepositRequired: BigNumberish,
|
|
2500
|
-
_order: IPerpetualOrder.OrderStruct
|
|
2501
|
-
], [
|
|
2502
|
-
boolean
|
|
2503
|
-
], "nonpayable">;
|
|
2504
|
-
getFunction(nameOrSignature: "depositToDefaultFund"): TypedContractMethod<[
|
|
2505
|
-
_poolId: BigNumberish,
|
|
2506
|
-
_fAmount: BigNumberish
|
|
2507
|
-
], [
|
|
2508
|
-
void
|
|
2509
|
-
], "nonpayable">;
|
|
2510
|
-
getFunction(nameOrSignature: "determineExchangeFee"): TypedContractMethod<[
|
|
2511
|
-
_order: IPerpetualOrder.OrderStruct
|
|
2512
|
-
], [
|
|
2513
|
-
bigint
|
|
2514
|
-
], "view">;
|
|
2515
|
-
getFunction(nameOrSignature: "distributeFees"): TypedContractMethod<[
|
|
2516
|
-
_order: IPerpetualOrder.OrderStruct,
|
|
2517
|
-
_brkrFeeTbps: BigNumberish,
|
|
2518
|
-
_protocolFeeTbps: BigNumberish,
|
|
2519
|
-
_hasOpened: boolean
|
|
2520
|
-
], [
|
|
2521
|
-
bigint
|
|
2522
|
-
], "nonpayable">;
|
|
2523
|
-
getFunction(nameOrSignature: "distributeFeesLiquidation"): TypedContractMethod<[
|
|
2524
|
-
_iPerpetualId: BigNumberish,
|
|
2525
|
-
_traderAddr: AddressLike,
|
|
2526
|
-
_fDeltaPositionBC: BigNumberish,
|
|
2527
|
-
_protocolFeeTbps: BigNumberish
|
|
2528
|
-
], [
|
|
2529
|
-
bigint
|
|
2530
|
-
], "nonpayable">;
|
|
2531
|
-
getFunction(nameOrSignature: "entropy"): TypedContractMethod<[_p: BigNumberish], [bigint], "view">;
|
|
2532
|
-
getFunction(nameOrSignature: "executeCancelOrder"): TypedContractMethod<[
|
|
2533
|
-
_perpetualId: BigNumberish,
|
|
2534
|
-
_digest: BytesLike
|
|
2535
|
-
], [
|
|
2536
|
-
void
|
|
2537
|
-
], "nonpayable">;
|
|
2538
|
-
getFunction(nameOrSignature: "executeLiquidityWithdrawal"): TypedContractMethod<[
|
|
2539
|
-
_poolId: BigNumberish,
|
|
2540
|
-
_lpAddr: AddressLike
|
|
2541
|
-
], [
|
|
2542
|
-
void
|
|
2543
|
-
], "nonpayable">;
|
|
2544
|
-
getFunction(nameOrSignature: "executeTrade"): TypedContractMethod<[
|
|
2545
|
-
_iPerpetualId: BigNumberish,
|
|
2546
|
-
_traderAddr: AddressLike,
|
|
2547
|
-
_fTraderPos: BigNumberish,
|
|
2548
|
-
_fTradeAmount: BigNumberish,
|
|
2549
|
-
_fPrice: BigNumberish,
|
|
2550
|
-
_isClose: boolean
|
|
2551
|
-
], [
|
|
2552
|
-
bigint
|
|
2553
|
-
], "nonpayable">;
|
|
2554
|
-
getFunction(nameOrSignature: "getAMMPerpLogic"): TypedContractMethod<[], [string], "view">;
|
|
2555
|
-
getFunction(nameOrSignature: "getAMMState"): TypedContractMethod<[
|
|
2556
|
-
_perpetualId: BigNumberish,
|
|
2557
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
2558
|
-
], [
|
|
2559
|
-
bigint[]
|
|
2560
|
-
], "view">;
|
|
2561
|
-
getFunction(nameOrSignature: "getActivePerpAccounts"): TypedContractMethod<[_perpetualId: BigNumberish], [string[]], "view">;
|
|
2562
|
-
getFunction(nameOrSignature: "getActivePerpAccountsByChunks"): TypedContractMethod<[
|
|
2563
|
-
_perpetualId: BigNumberish,
|
|
2564
|
-
_from: BigNumberish,
|
|
2565
|
-
_to: BigNumberish
|
|
2566
|
-
], [
|
|
2567
|
-
string[]
|
|
2568
|
-
], "view">;
|
|
2569
|
-
getFunction(nameOrSignature: "getBrokerDesignation"): TypedContractMethod<[
|
|
2570
|
-
_poolId: BigNumberish,
|
|
2571
|
-
_brokerAddr: AddressLike
|
|
2572
|
-
], [
|
|
2573
|
-
bigint
|
|
2574
|
-
], "view">;
|
|
2575
|
-
getFunction(nameOrSignature: "getBrokerInducedFee"): TypedContractMethod<[
|
|
2576
|
-
_poolId: BigNumberish,
|
|
2577
|
-
_brokerAddr: AddressLike
|
|
2578
|
-
], [
|
|
2579
|
-
bigint
|
|
2580
|
-
], "view">;
|
|
2581
|
-
getFunction(nameOrSignature: "getCollateralTokenAmountForPricing"): TypedContractMethod<[_poolId: BigNumberish], [bigint], "view">;
|
|
2582
|
-
getFunction(nameOrSignature: "getCurrentBrokerVolume"): TypedContractMethod<[
|
|
2583
|
-
_poolId: BigNumberish,
|
|
2584
|
-
_brokerAddr: AddressLike
|
|
2585
|
-
], [
|
|
2586
|
-
bigint
|
|
2587
|
-
], "view">;
|
|
2588
|
-
getFunction(nameOrSignature: "getCurrentTraderVolume"): TypedContractMethod<[
|
|
2589
|
-
_poolId: BigNumberish,
|
|
2590
|
-
_traderAddr: AddressLike
|
|
2591
|
-
], [
|
|
2592
|
-
bigint
|
|
2593
|
-
], "view">;
|
|
2594
|
-
getFunction(nameOrSignature: "getDepositAmountForLvgPosition"): TypedContractMethod<[
|
|
2595
|
-
_fPosition0: BigNumberish,
|
|
2596
|
-
_fBalance0: BigNumberish,
|
|
2597
|
-
_fTradeAmount: BigNumberish,
|
|
2598
|
-
_fTargetLeverage: BigNumberish,
|
|
2599
|
-
_fPrice: BigNumberish,
|
|
2600
|
-
_fS2Mark: BigNumberish,
|
|
2601
|
-
_fS3: BigNumberish,
|
|
2602
|
-
_fS2: BigNumberish
|
|
2603
|
-
], [
|
|
2604
|
-
bigint
|
|
2605
|
-
], "view">;
|
|
2606
|
-
getFunction(nameOrSignature: "getExchangeFeePrdMkts"): TypedContractMethod<[
|
|
2607
|
-
_perpetualId: BigNumberish,
|
|
2608
|
-
_fAmount: BigNumberish,
|
|
2609
|
-
_leverageTDR: BigNumberish,
|
|
2610
|
-
_traderAddr: AddressLike
|
|
2611
|
-
], [
|
|
2612
|
-
bigint
|
|
2613
|
-
], "view">;
|
|
2614
|
-
getFunction(nameOrSignature: "getFeeForBrokerDesignation"): TypedContractMethod<[_brokerDesignation: BigNumberish], [bigint], "view">;
|
|
2615
|
-
getFunction(nameOrSignature: "getFeeForBrokerStake"): TypedContractMethod<[brokerAddr: AddressLike], [bigint], "view">;
|
|
2616
|
-
getFunction(nameOrSignature: "getFeeForBrokerVolume"): TypedContractMethod<[
|
|
2617
|
-
_poolId: BigNumberish,
|
|
2618
|
-
_brokerAddr: AddressLike
|
|
2619
|
-
], [
|
|
2620
|
-
bigint
|
|
2621
|
-
], "view">;
|
|
2622
|
-
getFunction(nameOrSignature: "getFeeForTraderStake"): TypedContractMethod<[traderAddr: AddressLike], [bigint], "view">;
|
|
2623
|
-
getFunction(nameOrSignature: "getFeeForTraderVolume"): TypedContractMethod<[
|
|
2624
|
-
_poolId: BigNumberish,
|
|
2625
|
-
_traderAddr: AddressLike
|
|
2626
|
-
], [
|
|
2627
|
-
bigint
|
|
2628
|
-
], "view">;
|
|
2629
|
-
getFunction(nameOrSignature: "getLastPerpetualBaseToUSDConversion"): TypedContractMethod<[_iPerpetualId: BigNumberish], [bigint], "view">;
|
|
2630
|
-
getFunction(nameOrSignature: "getLiquidatableAccounts"): TypedContractMethod<[
|
|
2631
|
-
_perpetualId: BigNumberish,
|
|
2632
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
2633
|
-
], [
|
|
2634
|
-
string[]
|
|
2635
|
-
], "view">;
|
|
2636
|
-
getFunction(nameOrSignature: "getLiquidityPool"): TypedContractMethod<[
|
|
2637
|
-
_poolId: BigNumberish
|
|
2638
|
-
], [
|
|
2639
|
-
PerpStorage.LiquidityPoolDataStructOutput
|
|
2640
|
-
], "view">;
|
|
2641
|
-
getFunction(nameOrSignature: "getLiquidityPools"): TypedContractMethod<[
|
|
2642
|
-
_poolIdFrom: BigNumberish,
|
|
2643
|
-
_poolIdTo: BigNumberish
|
|
2644
|
-
], [
|
|
2645
|
-
PerpStorage.LiquidityPoolDataStructOutput[]
|
|
2646
|
-
], "view">;
|
|
2647
|
-
getFunction(nameOrSignature: "getMarginAccount"): TypedContractMethod<[
|
|
2648
|
-
_perpetualId: BigNumberish,
|
|
2649
|
-
_traderAddress: AddressLike
|
|
2650
|
-
], [
|
|
2651
|
-
PerpStorage.MarginAccountStructOutput
|
|
2652
|
-
], "view">;
|
|
2653
|
-
getFunction(nameOrSignature: "getMarginAccounts"): TypedContractMethod<[
|
|
2654
|
-
_perpetualIds: BigNumberish[],
|
|
2655
|
-
_traderAddress: AddressLike
|
|
2656
|
-
], [
|
|
2657
|
-
PerpStorage.MarginAccountStructOutput[]
|
|
2658
|
-
], "view">;
|
|
2659
|
-
getFunction(nameOrSignature: "getMaxSignedOpenTradeSizeForPos"): TypedContractMethod<[
|
|
2660
|
-
_perpetualId: BigNumberish,
|
|
2661
|
-
_fCurrentTraderPos: BigNumberish,
|
|
2662
|
-
_isBuy: boolean
|
|
2663
|
-
], [
|
|
2664
|
-
bigint
|
|
2665
|
-
], "view">;
|
|
2666
|
-
getFunction(nameOrSignature: "getNextLiquidatableTrader"): TypedContractMethod<[
|
|
2667
|
-
_perpetualId: BigNumberish,
|
|
2668
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
2669
|
-
], [
|
|
2670
|
-
string
|
|
2671
|
-
], "view">;
|
|
2672
|
-
getFunction(nameOrSignature: "getOracleFactory"): TypedContractMethod<[], [string], "view">;
|
|
2673
|
-
getFunction(nameOrSignature: "getOraclePrice"): TypedContractMethod<[
|
|
2674
|
-
_baseQuote: [BytesLike, BytesLike]
|
|
2675
|
-
], [
|
|
2676
|
-
[bigint, bigint]
|
|
2677
|
-
], "view">;
|
|
2678
|
-
getFunction(nameOrSignature: "getOracleUpdateTime"): TypedContractMethod<[_perpetualId: BigNumberish], [bigint], "view">;
|
|
2679
|
-
getFunction(nameOrSignature: "getOrderBookAddress"): TypedContractMethod<[_perpetualId: BigNumberish], [string], "view">;
|
|
2680
|
-
getFunction(nameOrSignature: "getOrderBookFactoryAddress"): TypedContractMethod<[], [string], "view">;
|
|
2681
|
-
getFunction(nameOrSignature: "getPerpetual"): TypedContractMethod<[
|
|
2682
|
-
_perpetualId: BigNumberish
|
|
2683
|
-
], [
|
|
2684
|
-
PerpStorage.PerpetualDataStructOutput
|
|
2685
|
-
], "view">;
|
|
2686
|
-
getFunction(nameOrSignature: "getPerpetualCountInPool"): TypedContractMethod<[_poolId: BigNumberish], [bigint], "view">;
|
|
2687
|
-
getFunction(nameOrSignature: "getPerpetualId"): TypedContractMethod<[
|
|
2688
|
-
_poolId: BigNumberish,
|
|
2689
|
-
_perpetualIndex: BigNumberish
|
|
2690
|
-
], [
|
|
2691
|
-
bigint
|
|
2692
|
-
], "view">;
|
|
2693
|
-
getFunction(nameOrSignature: "getPerpetualStaticInfo"): TypedContractMethod<[
|
|
2694
|
-
perpetualIds: BigNumberish[]
|
|
2695
|
-
], [
|
|
2696
|
-
IPerpetualInfo.PerpetualStaticInfoStructOutput[]
|
|
2697
|
-
], "view">;
|
|
2698
|
-
getFunction(nameOrSignature: "getPerpetuals"): TypedContractMethod<[
|
|
2699
|
-
perpetualIds: BigNumberish[]
|
|
2700
|
-
], [
|
|
2701
|
-
PerpStorage.PerpetualDataStructOutput[]
|
|
2702
|
-
], "view">;
|
|
2703
|
-
getFunction(nameOrSignature: "getPoolCount"): TypedContractMethod<[], [bigint], "view">;
|
|
2704
|
-
getFunction(nameOrSignature: "getPoolIdByPerpetualId"): TypedContractMethod<[_perpetualId: BigNumberish], [bigint], "view">;
|
|
2705
|
-
getFunction(nameOrSignature: "getPoolStaticInfo"): TypedContractMethod<[
|
|
2706
|
-
_poolFromIdx: BigNumberish,
|
|
2707
|
-
_poolToIdx: BigNumberish
|
|
2708
|
-
], [
|
|
2709
|
-
[
|
|
2710
|
-
bigint[][],
|
|
2711
|
-
string[],
|
|
2712
|
-
string[],
|
|
2713
|
-
string
|
|
2714
|
-
] & {
|
|
2715
|
-
_oracleFactoryAddress: string;
|
|
2716
|
-
}
|
|
2717
|
-
], "view">;
|
|
2718
|
-
getFunction(nameOrSignature: "getPriceInfo"): TypedContractMethod<[
|
|
2719
|
-
_perpetualId: BigNumberish
|
|
2720
|
-
], [
|
|
2721
|
-
[string[], boolean[]]
|
|
2722
|
-
], "view">;
|
|
2723
|
-
getFunction(nameOrSignature: "getSettleableAccounts"): TypedContractMethod<[
|
|
2724
|
-
_perpetualId: BigNumberish,
|
|
2725
|
-
start: BigNumberish,
|
|
2726
|
-
count: BigNumberish
|
|
2727
|
-
], [
|
|
2728
|
-
string[]
|
|
2729
|
-
], "view">;
|
|
2730
|
-
getFunction(nameOrSignature: "getShareTokenFactory"): TypedContractMethod<[], [string], "view">;
|
|
2731
|
-
getFunction(nameOrSignature: "getShareTokenPriceD18"): TypedContractMethod<[_poolId: BigNumberish], [bigint], "view">;
|
|
2732
|
-
getFunction(nameOrSignature: "getTargetCollateralM1"): TypedContractMethod<[
|
|
2733
|
-
_fK2: BigNumberish,
|
|
2734
|
-
_fL1: BigNumberish,
|
|
2735
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
2736
|
-
_fTargetDD: BigNumberish
|
|
2737
|
-
], [
|
|
2738
|
-
bigint
|
|
2739
|
-
], "view">;
|
|
2740
|
-
getFunction(nameOrSignature: "getTargetCollateralM2"): TypedContractMethod<[
|
|
2741
|
-
_fK2: BigNumberish,
|
|
2742
|
-
_fL1: BigNumberish,
|
|
2743
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
2744
|
-
_fTargetDD: BigNumberish
|
|
2745
|
-
], [
|
|
2746
|
-
bigint
|
|
2747
|
-
], "view">;
|
|
2748
|
-
getFunction(nameOrSignature: "getTargetCollateralM3"): TypedContractMethod<[
|
|
2749
|
-
_fK2: BigNumberish,
|
|
2750
|
-
_fL1: BigNumberish,
|
|
2751
|
-
_mktVars: AMMPerpLogic.MarketVariablesStruct,
|
|
2752
|
-
_fTargetDD: BigNumberish
|
|
2753
|
-
], [
|
|
2754
|
-
bigint
|
|
2755
|
-
], "view">;
|
|
2756
|
-
getFunction(nameOrSignature: "getTokenAmountToReturn"): TypedContractMethod<[
|
|
2757
|
-
_poolId: BigNumberish,
|
|
2758
|
-
_shareAmount: BigNumberish
|
|
2759
|
-
], [
|
|
2760
|
-
bigint
|
|
2761
|
-
], "view">;
|
|
2762
|
-
getFunction(nameOrSignature: "getTraderState"): TypedContractMethod<[
|
|
2763
|
-
_perpetualId: BigNumberish,
|
|
2764
|
-
_traderAddress: AddressLike,
|
|
2765
|
-
_fIndexPrice: [BigNumberish, BigNumberish]
|
|
2766
|
-
], [
|
|
2767
|
-
bigint[]
|
|
2768
|
-
], "view">;
|
|
2769
|
-
getFunction(nameOrSignature: "getTreasuryAddress"): TypedContractMethod<[], [string], "view">;
|
|
2770
|
-
getFunction(nameOrSignature: "getWithdrawRequests"): TypedContractMethod<[
|
|
2771
|
-
poolId: BigNumberish,
|
|
2772
|
-
_fromIdx: BigNumberish,
|
|
2773
|
-
numRequests: BigNumberish
|
|
2774
|
-
], [
|
|
2775
|
-
PerpStorage.WithdrawRequestStructOutput[]
|
|
2776
|
-
], "view">;
|
|
2777
|
-
getFunction(nameOrSignature: "increasePoolCash"): TypedContractMethod<[
|
|
2778
|
-
_iPoolIdx: BigNumberish,
|
|
2779
|
-
_fAmount: BigNumberish
|
|
2780
|
-
], [
|
|
2781
|
-
void
|
|
2782
|
-
], "nonpayable">;
|
|
2783
|
-
getFunction(nameOrSignature: "isActiveAccount"): TypedContractMethod<[
|
|
2784
|
-
_perpetualId: BigNumberish,
|
|
2785
|
-
_traderAddress: AddressLike
|
|
2786
|
-
], [
|
|
2787
|
-
boolean
|
|
2788
|
-
], "view">;
|
|
2789
|
-
getFunction(nameOrSignature: "isDelegate"): TypedContractMethod<[
|
|
2790
|
-
_trader: AddressLike,
|
|
2791
|
-
_delegate: AddressLike
|
|
2792
|
-
], [
|
|
2793
|
-
boolean
|
|
2794
|
-
], "view">;
|
|
2795
|
-
getFunction(nameOrSignature: "isMarketClosed"): TypedContractMethod<[
|
|
2796
|
-
_baseCurrency: BytesLike,
|
|
2797
|
-
_quoteCurrency: BytesLike
|
|
2798
|
-
], [
|
|
2799
|
-
boolean
|
|
2800
|
-
], "view">;
|
|
2801
|
-
getFunction(nameOrSignature: "isOrderCanceled"): TypedContractMethod<[digest: BytesLike], [boolean], "view">;
|
|
2802
|
-
getFunction(nameOrSignature: "isOrderExecuted"): TypedContractMethod<[digest: BytesLike], [boolean], "view">;
|
|
2803
|
-
getFunction(nameOrSignature: "isPerpMarketClosed"): TypedContractMethod<[_perpetualId: BigNumberish], [boolean], "view">;
|
|
2804
|
-
getFunction(nameOrSignature: "liquidateByAMM"): TypedContractMethod<[
|
|
2805
|
-
_perpetualIndex: BigNumberish,
|
|
2806
|
-
_liquidatorAddr: AddressLike,
|
|
2807
|
-
_traderAddr: AddressLike,
|
|
2808
|
-
_updateData: BytesLike[],
|
|
2809
|
-
_publishTimes: BigNumberish[]
|
|
2810
|
-
], [
|
|
2811
|
-
bigint
|
|
2812
|
-
], "payable">;
|
|
2813
|
-
getFunction(nameOrSignature: "pauseLiquidityProvision"): TypedContractMethod<[
|
|
2814
|
-
_poolId: BigNumberish,
|
|
2815
|
-
_pauseOn: boolean
|
|
2816
|
-
], [
|
|
2817
|
-
void
|
|
2818
|
-
], "nonpayable">;
|
|
2819
|
-
getFunction(nameOrSignature: "prdMktsLvgFee"): TypedContractMethod<[
|
|
2820
|
-
_fPx: BigNumberish,
|
|
2821
|
-
_fm: BigNumberish,
|
|
2822
|
-
_fTradeAmt: BigNumberish,
|
|
2823
|
-
_fMgnRate: BigNumberish
|
|
2824
|
-
], [
|
|
2825
|
-
bigint
|
|
2826
|
-
], "view">;
|
|
2827
|
-
getFunction(nameOrSignature: "preTrade"): TypedContractMethod<[
|
|
2828
|
-
_order: IPerpetualOrder.OrderStruct
|
|
2829
|
-
], [
|
|
2830
|
-
[bigint, bigint]
|
|
2831
|
-
], "nonpayable">;
|
|
2832
|
-
getFunction(nameOrSignature: "priceImpact"): TypedContractMethod<[
|
|
2833
|
-
_amount: BigNumberish,
|
|
2834
|
-
_params: BigNumberish
|
|
2835
|
-
], [
|
|
2836
|
-
bigint
|
|
2837
|
-
], "view">;
|
|
2838
|
-
getFunction(nameOrSignature: "queryExchangeFee"): TypedContractMethod<[
|
|
2839
|
-
_poolId: BigNumberish,
|
|
2840
|
-
_traderAddr: AddressLike,
|
|
2841
|
-
_brokerAddr: AddressLike
|
|
2842
|
-
], [
|
|
2843
|
-
bigint
|
|
2844
|
-
], "view">;
|
|
2845
|
-
getFunction(nameOrSignature: "queryMidPrices"): TypedContractMethod<[
|
|
2846
|
-
_perpetualIds: BigNumberish[],
|
|
2847
|
-
_idxPriceDataPairs: BigNumberish[]
|
|
2848
|
-
], [
|
|
2849
|
-
bigint[]
|
|
2850
|
-
], "view">;
|
|
2851
|
-
getFunction(nameOrSignature: "queryPerpetualPrice"): TypedContractMethod<[
|
|
2852
|
-
_iPerpetualId: BigNumberish,
|
|
2853
|
-
_fTradeAmountBC: BigNumberish,
|
|
2854
|
-
_fIndexPrice: [BigNumberish, BigNumberish],
|
|
2855
|
-
_confTbps: BigNumberish,
|
|
2856
|
-
_params: BigNumberish
|
|
2857
|
-
], [
|
|
2858
|
-
bigint
|
|
2859
|
-
], "view">;
|
|
2860
|
-
getFunction(nameOrSignature: "rebalance"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
2861
|
-
getFunction(nameOrSignature: "reduceMarginCollateral"): TypedContractMethod<[
|
|
2862
|
-
_iPerpetualId: BigNumberish,
|
|
2863
|
-
_traderAddr: AddressLike,
|
|
2864
|
-
_fAmountToWithdraw: BigNumberish
|
|
2865
|
-
], [
|
|
2866
|
-
void
|
|
2867
|
-
], "nonpayable">;
|
|
2868
|
-
getFunction(nameOrSignature: "resetMarkPremium"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
2869
|
-
getFunction(nameOrSignature: "runLiquidityPool"): TypedContractMethod<[_liqPoolID: BigNumberish], [void], "nonpayable">;
|
|
2870
|
-
getFunction(nameOrSignature: "setAMMPerpLogic"): TypedContractMethod<[_AMMPerpLogic: AddressLike], [void], "nonpayable">;
|
|
2871
|
-
getFunction(nameOrSignature: "setBlockDelay"): TypedContractMethod<[_delay: BigNumberish], [void], "nonpayable">;
|
|
2872
|
-
getFunction(nameOrSignature: "setBrokerTiers"): TypedContractMethod<[
|
|
2873
|
-
_tiers: BigNumberish[],
|
|
2874
|
-
_feesTbps: BigNumberish[]
|
|
2875
|
-
], [
|
|
2876
|
-
void
|
|
2877
|
-
], "nonpayable">;
|
|
2878
|
-
getFunction(nameOrSignature: "setBrokerVolumeTiers"): TypedContractMethod<[
|
|
2879
|
-
_tiers: BigNumberish[],
|
|
2880
|
-
_feesTbps: BigNumberish[]
|
|
2881
|
-
], [
|
|
2882
|
-
void
|
|
2883
|
-
], "nonpayable">;
|
|
2884
|
-
getFunction(nameOrSignature: "setDelegate"): TypedContractMethod<[
|
|
2885
|
-
delegate: AddressLike,
|
|
2886
|
-
index: BigNumberish
|
|
2887
|
-
], [
|
|
2888
|
-
void
|
|
2889
|
-
], "nonpayable">;
|
|
2890
|
-
getFunction(nameOrSignature: "setEmergencyState"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
2891
|
-
getFunction(nameOrSignature: "setFeesForDesignation"): TypedContractMethod<[
|
|
2892
|
-
_designations: BigNumberish[],
|
|
2893
|
-
_fees: BigNumberish[]
|
|
2894
|
-
], [
|
|
2895
|
-
void
|
|
2896
|
-
], "nonpayable">;
|
|
2897
|
-
getFunction(nameOrSignature: "setInitialVolumeForFee"): TypedContractMethod<[
|
|
2898
|
-
_poolId: BigNumberish,
|
|
2899
|
-
_brokerAddr: AddressLike,
|
|
2900
|
-
_feeTbps: BigNumberish
|
|
2901
|
-
], [
|
|
2902
|
-
void
|
|
2903
|
-
], "nonpayable">;
|
|
2904
|
-
getFunction(nameOrSignature: "setNormalState"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
2905
|
-
getFunction(nameOrSignature: "setOracleFactory"): TypedContractMethod<[_oracleFactory: AddressLike], [void], "nonpayable">;
|
|
2906
|
-
getFunction(nameOrSignature: "setOracleFactoryForPerpetual"): TypedContractMethod<[
|
|
2907
|
-
_iPerpetualId: BigNumberish,
|
|
2908
|
-
_oracleAddr: AddressLike
|
|
2909
|
-
], [
|
|
2910
|
-
void
|
|
2911
|
-
], "nonpayable">;
|
|
2912
|
-
getFunction(nameOrSignature: "setOrderBookFactory"): TypedContractMethod<[
|
|
2913
|
-
_orderBookFactory: AddressLike
|
|
2914
|
-
], [
|
|
2915
|
-
void
|
|
2916
|
-
], "nonpayable">;
|
|
2917
|
-
getFunction(nameOrSignature: "setPerpetualBaseParams"): TypedContractMethod<[
|
|
2918
|
-
_iPerpetualId: BigNumberish,
|
|
2919
|
-
_baseParams: BigNumberish[]
|
|
2920
|
-
], [
|
|
2921
|
-
void
|
|
2922
|
-
], "nonpayable">;
|
|
2923
|
-
getFunction(nameOrSignature: "setPerpetualOracles"): TypedContractMethod<[
|
|
2924
|
-
_iPerpetualId: BigNumberish,
|
|
2925
|
-
_baseQuoteS2: [BytesLike, BytesLike],
|
|
2926
|
-
_baseQuoteS3: [BytesLike, BytesLike]
|
|
2927
|
-
], [
|
|
2928
|
-
void
|
|
2929
|
-
], "nonpayable">;
|
|
2930
|
-
getFunction(nameOrSignature: "setPerpetualParam"): TypedContractMethod<[
|
|
2931
|
-
_iPerpetualId: BigNumberish,
|
|
2932
|
-
_varName: string,
|
|
2933
|
-
_value: BigNumberish
|
|
2934
|
-
], [
|
|
2935
|
-
void
|
|
2936
|
-
], "nonpayable">;
|
|
2937
|
-
getFunction(nameOrSignature: "setPerpetualParamPair"): TypedContractMethod<[
|
|
2938
|
-
_iPerpetualId: BigNumberish,
|
|
2939
|
-
_name: string,
|
|
2940
|
-
_value1: BigNumberish,
|
|
2941
|
-
_value2: BigNumberish
|
|
2942
|
-
], [
|
|
2943
|
-
void
|
|
2944
|
-
], "nonpayable">;
|
|
2945
|
-
getFunction(nameOrSignature: "setPerpetualPoolFactory"): TypedContractMethod<[
|
|
2946
|
-
_shareTokenFactory: AddressLike
|
|
2947
|
-
], [
|
|
2948
|
-
void
|
|
2949
|
-
], "nonpayable">;
|
|
2950
|
-
getFunction(nameOrSignature: "setPerpetualRiskParams"): TypedContractMethod<[
|
|
2951
|
-
_iPerpetualId: BigNumberish,
|
|
2952
|
-
_underlyingRiskParams: [
|
|
2953
|
-
BigNumberish,
|
|
2954
|
-
BigNumberish,
|
|
2955
|
-
BigNumberish,
|
|
2956
|
-
BigNumberish,
|
|
2957
|
-
BigNumberish
|
|
2958
|
-
],
|
|
2959
|
-
_defaultFundRiskParams: BigNumberish[]
|
|
2960
|
-
], [
|
|
2961
|
-
void
|
|
2962
|
-
], "nonpayable">;
|
|
2963
|
-
getFunction(nameOrSignature: "setPoolParam"): TypedContractMethod<[
|
|
2964
|
-
_poolId: BigNumberish,
|
|
2965
|
-
_name: string,
|
|
2966
|
-
_value: BigNumberish
|
|
2967
|
-
], [
|
|
2968
|
-
void
|
|
2969
|
-
], "nonpayable">;
|
|
2970
|
-
getFunction(nameOrSignature: "setTraderTiers"): TypedContractMethod<[
|
|
2971
|
-
_tiers: BigNumberish[],
|
|
2972
|
-
_feesTbps: BigNumberish[]
|
|
2973
|
-
], [
|
|
2974
|
-
void
|
|
2975
|
-
], "nonpayable">;
|
|
2976
|
-
getFunction(nameOrSignature: "setTraderVolumeTiers"): TypedContractMethod<[
|
|
2977
|
-
_tiers: BigNumberish[],
|
|
2978
|
-
_feesTbps: BigNumberish[]
|
|
2979
|
-
], [
|
|
2980
|
-
void
|
|
2981
|
-
], "nonpayable">;
|
|
2982
|
-
getFunction(nameOrSignature: "setTreasury"): TypedContractMethod<[_treasury: AddressLike], [void], "nonpayable">;
|
|
2983
|
-
getFunction(nameOrSignature: "setUtilityTokenAddr"): TypedContractMethod<[tokenAddr: AddressLike], [void], "nonpayable">;
|
|
2984
|
-
getFunction(nameOrSignature: "settle"): TypedContractMethod<[
|
|
2985
|
-
_perpetualID: BigNumberish,
|
|
2986
|
-
_traderAddr: AddressLike
|
|
2987
|
-
], [
|
|
2988
|
-
void
|
|
2989
|
-
], "nonpayable">;
|
|
2990
|
-
getFunction(nameOrSignature: "settleNextTraderInPool"): TypedContractMethod<[_id: BigNumberish], [boolean], "nonpayable">;
|
|
2991
|
-
getFunction(nameOrSignature: "settleTraders"): TypedContractMethod<[
|
|
2992
|
-
_perpetualID: BigNumberish,
|
|
2993
|
-
_bulkSize: BigNumberish
|
|
2994
|
-
], [
|
|
2995
|
-
bigint
|
|
2996
|
-
], "nonpayable">;
|
|
2997
|
-
getFunction(nameOrSignature: "splitProtocolFee"): TypedContractMethod<[fee: BigNumberish], [[bigint, bigint]], "view">;
|
|
2998
|
-
getFunction(nameOrSignature: "testTradeEvent"): TypedContractMethod<[
|
|
2999
|
-
_order: IPerpetualOrder.OrderStruct
|
|
3000
|
-
], [
|
|
3001
|
-
void
|
|
3002
|
-
], "nonpayable">;
|
|
3003
|
-
getFunction(nameOrSignature: "togglePerpEmergencyState"): TypedContractMethod<[_perpetualId: BigNumberish], [void], "nonpayable">;
|
|
3004
|
-
getFunction(nameOrSignature: "tradeViaOrderBook"): TypedContractMethod<[
|
|
3005
|
-
_order: IPerpetualOrder.OrderStruct,
|
|
3006
|
-
_executor: AddressLike
|
|
3007
|
-
], [
|
|
3008
|
-
boolean
|
|
3009
|
-
], "nonpayable">;
|
|
3010
|
-
getFunction(nameOrSignature: "transferBrokerLots"): TypedContractMethod<[
|
|
3011
|
-
_poolId: BigNumberish,
|
|
3012
|
-
_transferToAddr: AddressLike,
|
|
3013
|
-
_lots: BigNumberish
|
|
3014
|
-
], [
|
|
3015
|
-
void
|
|
3016
|
-
], "nonpayable">;
|
|
3017
|
-
getFunction(nameOrSignature: "transferBrokerOwnership"): TypedContractMethod<[
|
|
3018
|
-
_poolId: BigNumberish,
|
|
3019
|
-
_transferToAddr: AddressLike
|
|
3020
|
-
], [
|
|
3021
|
-
void
|
|
3022
|
-
], "nonpayable">;
|
|
3023
|
-
getFunction(nameOrSignature: "transferEarningsToTreasury"): TypedContractMethod<[
|
|
3024
|
-
_poolId: BigNumberish,
|
|
3025
|
-
_fAmount: BigNumberish
|
|
3026
|
-
], [
|
|
3027
|
-
void
|
|
3028
|
-
], "nonpayable">;
|
|
3029
|
-
getFunction(nameOrSignature: "transferValueToTreasury"): TypedContractMethod<[], [boolean], "nonpayable">;
|
|
3030
|
-
getFunction(nameOrSignature: "updateAMMTargetFundSize"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
3031
|
-
getFunction(nameOrSignature: "updateDefaultFundTargetSize"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
3032
|
-
getFunction(nameOrSignature: "updateFundingAndPricesAfter"): TypedContractMethod<[_iPerpetualId: BigNumberish], [void], "nonpayable">;
|
|
3033
|
-
getFunction(nameOrSignature: "updateFundingAndPricesBefore"): TypedContractMethod<[
|
|
3034
|
-
_iPerpetualId: BigNumberish,
|
|
3035
|
-
_revertIfClosed: boolean
|
|
3036
|
-
], [
|
|
3037
|
-
void
|
|
3038
|
-
], "nonpayable">;
|
|
3039
|
-
getFunction(nameOrSignature: "updatePriceFeeds"): TypedContractMethod<[
|
|
3040
|
-
_perpetualId: BigNumberish,
|
|
3041
|
-
_updateData: BytesLike[],
|
|
3042
|
-
_publishTimes: BigNumberish[],
|
|
3043
|
-
_maxAcceptableFeedAge: BigNumberish
|
|
3044
|
-
], [
|
|
3045
|
-
void
|
|
3046
|
-
], "payable">;
|
|
3047
|
-
getFunction(nameOrSignature: "updateVolumeEMAOnNewTrade"): TypedContractMethod<[
|
|
3048
|
-
_iPerpetualId: BigNumberish,
|
|
3049
|
-
_traderAddr: AddressLike,
|
|
3050
|
-
_brokerAddr: AddressLike,
|
|
3051
|
-
_tradeAmountBC: BigNumberish
|
|
3052
|
-
], [
|
|
3053
|
-
void
|
|
3054
|
-
], "nonpayable">;
|
|
3055
|
-
getFunction(nameOrSignature: "validateStopPrice"): TypedContractMethod<[
|
|
3056
|
-
_isLong: boolean,
|
|
3057
|
-
_fMarkPrice: BigNumberish,
|
|
3058
|
-
_fTriggerPrice: BigNumberish
|
|
3059
|
-
], [
|
|
3060
|
-
void
|
|
3061
|
-
], "view">;
|
|
3062
|
-
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
|
|
3063
|
-
_iPerpetualId: BigNumberish,
|
|
3064
|
-
_traderAddr: AddressLike,
|
|
3065
|
-
_fAmount: BigNumberish,
|
|
3066
|
-
_updateData: BytesLike[],
|
|
3067
|
-
_publishTimes: BigNumberish[]
|
|
3068
|
-
], [
|
|
3069
|
-
void
|
|
3070
|
-
], "payable">;
|
|
3071
|
-
getFunction(nameOrSignature: "withdrawAll"): TypedContractMethod<[
|
|
3072
|
-
_iPerpetualId: BigNumberish,
|
|
3073
|
-
_traderAddr: AddressLike,
|
|
3074
|
-
_updateData: BytesLike[],
|
|
3075
|
-
_publishTimes: BigNumberish[]
|
|
3076
|
-
], [
|
|
3077
|
-
void
|
|
3078
|
-
], "payable">;
|
|
3079
|
-
getFunction(nameOrSignature: "withdrawDepositFromMarginAccount"): TypedContractMethod<[
|
|
3080
|
-
_iPerpetualId: BigNumberish,
|
|
3081
|
-
_traderAddr: AddressLike
|
|
3082
|
-
], [
|
|
3083
|
-
void
|
|
3084
|
-
], "nonpayable">;
|
|
3085
|
-
getFunction(nameOrSignature: "withdrawFromDefaultFund"): TypedContractMethod<[
|
|
3086
|
-
_poolId: BigNumberish,
|
|
3087
|
-
_fAmount: BigNumberish
|
|
3088
|
-
], [
|
|
3089
|
-
void
|
|
3090
|
-
], "nonpayable">;
|
|
3091
|
-
getFunction(nameOrSignature: "withdrawLiquidity"): TypedContractMethod<[
|
|
3092
|
-
_iPoolIndex: BigNumberish,
|
|
3093
|
-
_shareAmount: BigNumberish,
|
|
3094
|
-
_lp: AddressLike
|
|
3095
|
-
], [
|
|
3096
|
-
void
|
|
3097
|
-
], "nonpayable">;
|
|
3098
|
-
getEvent(key: "BrokerLotsTransferred"): TypedContractEvent<BrokerLotsTransferredEvent.InputTuple, BrokerLotsTransferredEvent.OutputTuple, BrokerLotsTransferredEvent.OutputObject>;
|
|
3099
|
-
getEvent(key: "BrokerVolumeTransferred"): TypedContractEvent<BrokerVolumeTransferredEvent.InputTuple, BrokerVolumeTransferredEvent.OutputTuple, BrokerVolumeTransferredEvent.OutputObject>;
|
|
3100
|
-
getEvent(key: "Clear"): TypedContractEvent<ClearEvent.InputTuple, ClearEvent.OutputTuple, ClearEvent.OutputObject>;
|
|
3101
|
-
getEvent(key: "DistributeFees"): TypedContractEvent<DistributeFeesEvent.InputTuple, DistributeFeesEvent.OutputTuple, DistributeFeesEvent.OutputObject>;
|
|
3102
|
-
getEvent(key: "Liquidate"): TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
3103
|
-
getEvent(key: "LiquidityAdded"): TypedContractEvent<LiquidityAddedEvent.InputTuple, LiquidityAddedEvent.OutputTuple, LiquidityAddedEvent.OutputObject>;
|
|
3104
|
-
getEvent(key: "LiquidityPoolCreated"): TypedContractEvent<LiquidityPoolCreatedEvent.InputTuple, LiquidityPoolCreatedEvent.OutputTuple, LiquidityPoolCreatedEvent.OutputObject>;
|
|
3105
|
-
getEvent(key: "LiquidityProvisionPaused"): TypedContractEvent<LiquidityProvisionPausedEvent.InputTuple, LiquidityProvisionPausedEvent.OutputTuple, LiquidityProvisionPausedEvent.OutputObject>;
|
|
3106
|
-
getEvent(key: "LiquidityRemoved"): TypedContractEvent<LiquidityRemovedEvent.InputTuple, LiquidityRemovedEvent.OutputTuple, LiquidityRemovedEvent.OutputObject>;
|
|
3107
|
-
getEvent(key: "LiquidityWithdrawalInitiated"): TypedContractEvent<LiquidityWithdrawalInitiatedEvent.InputTuple, LiquidityWithdrawalInitiatedEvent.OutputTuple, LiquidityWithdrawalInitiatedEvent.OutputObject>;
|
|
3108
|
-
getEvent(key: "PerpetualCreated"): TypedContractEvent<PerpetualCreatedEvent.InputTuple, PerpetualCreatedEvent.OutputTuple, PerpetualCreatedEvent.OutputObject>;
|
|
3109
|
-
getEvent(key: "PerpetualLimitOrderCancelled"): TypedContractEvent<PerpetualLimitOrderCancelledEvent.InputTuple, PerpetualLimitOrderCancelledEvent.OutputTuple, PerpetualLimitOrderCancelledEvent.OutputObject>;
|
|
3110
|
-
getEvent(key: "RunLiquidityPool"): TypedContractEvent<RunLiquidityPoolEvent.InputTuple, RunLiquidityPoolEvent.OutputTuple, RunLiquidityPoolEvent.OutputObject>;
|
|
3111
|
-
getEvent(key: "SetBlockDelay"): TypedContractEvent<SetBlockDelayEvent.InputTuple, SetBlockDelayEvent.OutputTuple, SetBlockDelayEvent.OutputObject>;
|
|
3112
|
-
getEvent(key: "SetBrokerDesignations"): TypedContractEvent<SetBrokerDesignationsEvent.InputTuple, SetBrokerDesignationsEvent.OutputTuple, SetBrokerDesignationsEvent.OutputObject>;
|
|
3113
|
-
getEvent(key: "SetBrokerTiers"): TypedContractEvent<SetBrokerTiersEvent.InputTuple, SetBrokerTiersEvent.OutputTuple, SetBrokerTiersEvent.OutputObject>;
|
|
3114
|
-
getEvent(key: "SetBrokerVolumeTiers"): TypedContractEvent<SetBrokerVolumeTiersEvent.InputTuple, SetBrokerVolumeTiersEvent.OutputTuple, SetBrokerVolumeTiersEvent.OutputObject>;
|
|
3115
|
-
getEvent(key: "SetClearedState"): TypedContractEvent<SetClearedStateEvent.InputTuple, SetClearedStateEvent.OutputTuple, SetClearedStateEvent.OutputObject>;
|
|
3116
|
-
getEvent(key: "SetDelegate"): TypedContractEvent<SetDelegateEvent.InputTuple, SetDelegateEvent.OutputTuple, SetDelegateEvent.OutputObject>;
|
|
3117
|
-
getEvent(key: "SetEmergencyState"): TypedContractEvent<SetEmergencyStateEvent.InputTuple, SetEmergencyStateEvent.OutputTuple, SetEmergencyStateEvent.OutputObject>;
|
|
3118
|
-
getEvent(key: "SetNormalState"): TypedContractEvent<SetNormalStateEvent.InputTuple, SetNormalStateEvent.OutputTuple, SetNormalStateEvent.OutputObject>;
|
|
3119
|
-
getEvent(key: "SetOracles"): TypedContractEvent<SetOraclesEvent.InputTuple, SetOraclesEvent.OutputTuple, SetOraclesEvent.OutputObject>;
|
|
3120
|
-
getEvent(key: "SetParameter"): TypedContractEvent<SetParameterEvent.InputTuple, SetParameterEvent.OutputTuple, SetParameterEvent.OutputObject>;
|
|
3121
|
-
getEvent(key: "SetParameterPair"): TypedContractEvent<SetParameterPairEvent.InputTuple, SetParameterPairEvent.OutputTuple, SetParameterPairEvent.OutputObject>;
|
|
3122
|
-
getEvent(key: "SetPerpetualBaseParameters"): TypedContractEvent<SetPerpetualBaseParametersEvent.InputTuple, SetPerpetualBaseParametersEvent.OutputTuple, SetPerpetualBaseParametersEvent.OutputObject>;
|
|
3123
|
-
getEvent(key: "SetPerpetualRiskParameters"): TypedContractEvent<SetPerpetualRiskParametersEvent.InputTuple, SetPerpetualRiskParametersEvent.OutputTuple, SetPerpetualRiskParametersEvent.OutputObject>;
|
|
3124
|
-
getEvent(key: "SetPoolParameter"): TypedContractEvent<SetPoolParameterEvent.InputTuple, SetPoolParameterEvent.OutputTuple, SetPoolParameterEvent.OutputObject>;
|
|
3125
|
-
getEvent(key: "SetTraderTiers"): TypedContractEvent<SetTraderTiersEvent.InputTuple, SetTraderTiersEvent.OutputTuple, SetTraderTiersEvent.OutputObject>;
|
|
3126
|
-
getEvent(key: "SetTraderVolumeTiers"): TypedContractEvent<SetTraderVolumeTiersEvent.InputTuple, SetTraderVolumeTiersEvent.OutputTuple, SetTraderVolumeTiersEvent.OutputObject>;
|
|
3127
|
-
getEvent(key: "SetUtilityToken"): TypedContractEvent<SetUtilityTokenEvent.InputTuple, SetUtilityTokenEvent.OutputTuple, SetUtilityTokenEvent.OutputObject>;
|
|
3128
|
-
getEvent(key: "Settle"): TypedContractEvent<SettleEvent.InputTuple, SettleEvent.OutputTuple, SettleEvent.OutputObject>;
|
|
3129
|
-
getEvent(key: "SettleState"): TypedContractEvent<SettleStateEvent.InputTuple, SettleStateEvent.OutputTuple, SettleStateEvent.OutputObject>;
|
|
3130
|
-
getEvent(key: "SettlementComplete"): TypedContractEvent<SettlementCompleteEvent.InputTuple, SettlementCompleteEvent.OutputTuple, SettlementCompleteEvent.OutputObject>;
|
|
3131
|
-
getEvent(key: "TokensDeposited"): TypedContractEvent<TokensDepositedEvent.InputTuple, TokensDepositedEvent.OutputTuple, TokensDepositedEvent.OutputObject>;
|
|
3132
|
-
getEvent(key: "TokensWithdrawn"): TypedContractEvent<TokensWithdrawnEvent.InputTuple, TokensWithdrawnEvent.OutputTuple, TokensWithdrawnEvent.OutputObject>;
|
|
3133
|
-
getEvent(key: "Trade"): TypedContractEvent<TradeEvent.InputTuple, TradeEvent.OutputTuple, TradeEvent.OutputObject>;
|
|
3134
|
-
getEvent(key: "TransferAddressTo"): TypedContractEvent<TransferAddressToEvent.InputTuple, TransferAddressToEvent.OutputTuple, TransferAddressToEvent.OutputObject>;
|
|
3135
|
-
getEvent(key: "UpdateBrokerAddedCash"): TypedContractEvent<UpdateBrokerAddedCashEvent.InputTuple, UpdateBrokerAddedCashEvent.OutputTuple, UpdateBrokerAddedCashEvent.OutputObject>;
|
|
3136
|
-
getEvent(key: "UpdateFundingRate"): TypedContractEvent<UpdateFundingRateEvent.InputTuple, UpdateFundingRateEvent.OutputTuple, UpdateFundingRateEvent.OutputObject>;
|
|
3137
|
-
getEvent(key: "UpdateMarginAccount"): TypedContractEvent<UpdateMarginAccountEvent.InputTuple, UpdateMarginAccountEvent.OutputTuple, UpdateMarginAccountEvent.OutputObject>;
|
|
3138
|
-
getEvent(key: "UpdateMarkPrice"): TypedContractEvent<UpdateMarkPriceEvent.InputTuple, UpdateMarkPriceEvent.OutputTuple, UpdateMarkPriceEvent.OutputObject>;
|
|
3139
|
-
filters: {
|
|
3140
|
-
"BrokerLotsTransferred(uint8,address,address,uint32)": TypedContractEvent<BrokerLotsTransferredEvent.InputTuple, BrokerLotsTransferredEvent.OutputTuple, BrokerLotsTransferredEvent.OutputObject>;
|
|
3141
|
-
BrokerLotsTransferred: TypedContractEvent<BrokerLotsTransferredEvent.InputTuple, BrokerLotsTransferredEvent.OutputTuple, BrokerLotsTransferredEvent.OutputObject>;
|
|
3142
|
-
"BrokerVolumeTransferred(uint8,address,address,int128)": TypedContractEvent<BrokerVolumeTransferredEvent.InputTuple, BrokerVolumeTransferredEvent.OutputTuple, BrokerVolumeTransferredEvent.OutputObject>;
|
|
3143
|
-
BrokerVolumeTransferred: TypedContractEvent<BrokerVolumeTransferredEvent.InputTuple, BrokerVolumeTransferredEvent.OutputTuple, BrokerVolumeTransferredEvent.OutputObject>;
|
|
3144
|
-
"Clear(uint24,address)": TypedContractEvent<ClearEvent.InputTuple, ClearEvent.OutputTuple, ClearEvent.OutputObject>;
|
|
3145
|
-
Clear: TypedContractEvent<ClearEvent.InputTuple, ClearEvent.OutputTuple, ClearEvent.OutputObject>;
|
|
3146
|
-
"DistributeFees(uint8,uint24,address,int128,int128)": TypedContractEvent<DistributeFeesEvent.InputTuple, DistributeFeesEvent.OutputTuple, DistributeFeesEvent.OutputObject>;
|
|
3147
|
-
DistributeFees: TypedContractEvent<DistributeFeesEvent.InputTuple, DistributeFeesEvent.OutputTuple, DistributeFeesEvent.OutputObject>;
|
|
3148
|
-
"Liquidate(uint24,address,address,int128,int128,int128,int128,int128)": TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
3149
|
-
Liquidate: TypedContractEvent<LiquidateEvent.InputTuple, LiquidateEvent.OutputTuple, LiquidateEvent.OutputObject>;
|
|
3150
|
-
"LiquidityAdded(uint8,address,uint256,uint256)": TypedContractEvent<LiquidityAddedEvent.InputTuple, LiquidityAddedEvent.OutputTuple, LiquidityAddedEvent.OutputObject>;
|
|
3151
|
-
LiquidityAdded: TypedContractEvent<LiquidityAddedEvent.InputTuple, LiquidityAddedEvent.OutputTuple, LiquidityAddedEvent.OutputObject>;
|
|
3152
|
-
"LiquidityPoolCreated(uint8,address,address,uint16,int128)": TypedContractEvent<LiquidityPoolCreatedEvent.InputTuple, LiquidityPoolCreatedEvent.OutputTuple, LiquidityPoolCreatedEvent.OutputObject>;
|
|
3153
|
-
LiquidityPoolCreated: TypedContractEvent<LiquidityPoolCreatedEvent.InputTuple, LiquidityPoolCreatedEvent.OutputTuple, LiquidityPoolCreatedEvent.OutputObject>;
|
|
3154
|
-
"LiquidityProvisionPaused(bool,uint8)": TypedContractEvent<LiquidityProvisionPausedEvent.InputTuple, LiquidityProvisionPausedEvent.OutputTuple, LiquidityProvisionPausedEvent.OutputObject>;
|
|
3155
|
-
LiquidityProvisionPaused: TypedContractEvent<LiquidityProvisionPausedEvent.InputTuple, LiquidityProvisionPausedEvent.OutputTuple, LiquidityProvisionPausedEvent.OutputObject>;
|
|
3156
|
-
"LiquidityRemoved(uint8,address,uint256,uint256)": TypedContractEvent<LiquidityRemovedEvent.InputTuple, LiquidityRemovedEvent.OutputTuple, LiquidityRemovedEvent.OutputObject>;
|
|
3157
|
-
LiquidityRemoved: TypedContractEvent<LiquidityRemovedEvent.InputTuple, LiquidityRemovedEvent.OutputTuple, LiquidityRemovedEvent.OutputObject>;
|
|
3158
|
-
"LiquidityWithdrawalInitiated(uint8,address,uint256)": TypedContractEvent<LiquidityWithdrawalInitiatedEvent.InputTuple, LiquidityWithdrawalInitiatedEvent.OutputTuple, LiquidityWithdrawalInitiatedEvent.OutputObject>;
|
|
3159
|
-
LiquidityWithdrawalInitiated: TypedContractEvent<LiquidityWithdrawalInitiatedEvent.InputTuple, LiquidityWithdrawalInitiatedEvent.OutputTuple, LiquidityWithdrawalInitiatedEvent.OutputObject>;
|
|
3160
|
-
"PerpetualCreated(uint8,uint24,int128[7],int128[5],int128[12],uint256)": TypedContractEvent<PerpetualCreatedEvent.InputTuple, PerpetualCreatedEvent.OutputTuple, PerpetualCreatedEvent.OutputObject>;
|
|
3161
|
-
PerpetualCreated: TypedContractEvent<PerpetualCreatedEvent.InputTuple, PerpetualCreatedEvent.OutputTuple, PerpetualCreatedEvent.OutputObject>;
|
|
3162
|
-
"PerpetualLimitOrderCancelled(uint24,bytes32)": TypedContractEvent<PerpetualLimitOrderCancelledEvent.InputTuple, PerpetualLimitOrderCancelledEvent.OutputTuple, PerpetualLimitOrderCancelledEvent.OutputObject>;
|
|
3163
|
-
PerpetualLimitOrderCancelled: TypedContractEvent<PerpetualLimitOrderCancelledEvent.InputTuple, PerpetualLimitOrderCancelledEvent.OutputTuple, PerpetualLimitOrderCancelledEvent.OutputObject>;
|
|
3164
|
-
"RunLiquidityPool(uint8)": TypedContractEvent<RunLiquidityPoolEvent.InputTuple, RunLiquidityPoolEvent.OutputTuple, RunLiquidityPoolEvent.OutputObject>;
|
|
3165
|
-
RunLiquidityPool: TypedContractEvent<RunLiquidityPoolEvent.InputTuple, RunLiquidityPoolEvent.OutputTuple, RunLiquidityPoolEvent.OutputObject>;
|
|
3166
|
-
"SetBlockDelay(uint8)": TypedContractEvent<SetBlockDelayEvent.InputTuple, SetBlockDelayEvent.OutputTuple, SetBlockDelayEvent.OutputObject>;
|
|
3167
|
-
SetBlockDelay: TypedContractEvent<SetBlockDelayEvent.InputTuple, SetBlockDelayEvent.OutputTuple, SetBlockDelayEvent.OutputObject>;
|
|
3168
|
-
"SetBrokerDesignations(uint32[],uint16[])": TypedContractEvent<SetBrokerDesignationsEvent.InputTuple, SetBrokerDesignationsEvent.OutputTuple, SetBrokerDesignationsEvent.OutputObject>;
|
|
3169
|
-
SetBrokerDesignations: TypedContractEvent<SetBrokerDesignationsEvent.InputTuple, SetBrokerDesignationsEvent.OutputTuple, SetBrokerDesignationsEvent.OutputObject>;
|
|
3170
|
-
"SetBrokerTiers(uint256[],uint16[])": TypedContractEvent<SetBrokerTiersEvent.InputTuple, SetBrokerTiersEvent.OutputTuple, SetBrokerTiersEvent.OutputObject>;
|
|
3171
|
-
SetBrokerTiers: TypedContractEvent<SetBrokerTiersEvent.InputTuple, SetBrokerTiersEvent.OutputTuple, SetBrokerTiersEvent.OutputObject>;
|
|
3172
|
-
"SetBrokerVolumeTiers(uint256[],uint16[])": TypedContractEvent<SetBrokerVolumeTiersEvent.InputTuple, SetBrokerVolumeTiersEvent.OutputTuple, SetBrokerVolumeTiersEvent.OutputObject>;
|
|
3173
|
-
SetBrokerVolumeTiers: TypedContractEvent<SetBrokerVolumeTiersEvent.InputTuple, SetBrokerVolumeTiersEvent.OutputTuple, SetBrokerVolumeTiersEvent.OutputObject>;
|
|
3174
|
-
"SetClearedState(uint24)": TypedContractEvent<SetClearedStateEvent.InputTuple, SetClearedStateEvent.OutputTuple, SetClearedStateEvent.OutputObject>;
|
|
3175
|
-
SetClearedState: TypedContractEvent<SetClearedStateEvent.InputTuple, SetClearedStateEvent.OutputTuple, SetClearedStateEvent.OutputObject>;
|
|
3176
|
-
"SetDelegate(address,address,uint256)": TypedContractEvent<SetDelegateEvent.InputTuple, SetDelegateEvent.OutputTuple, SetDelegateEvent.OutputObject>;
|
|
3177
|
-
SetDelegate: TypedContractEvent<SetDelegateEvent.InputTuple, SetDelegateEvent.OutputTuple, SetDelegateEvent.OutputObject>;
|
|
3178
|
-
"SetEmergencyState(uint24,int128,int128,int128)": TypedContractEvent<SetEmergencyStateEvent.InputTuple, SetEmergencyStateEvent.OutputTuple, SetEmergencyStateEvent.OutputObject>;
|
|
3179
|
-
SetEmergencyState: TypedContractEvent<SetEmergencyStateEvent.InputTuple, SetEmergencyStateEvent.OutputTuple, SetEmergencyStateEvent.OutputObject>;
|
|
3180
|
-
"SetNormalState(uint24)": TypedContractEvent<SetNormalStateEvent.InputTuple, SetNormalStateEvent.OutputTuple, SetNormalStateEvent.OutputObject>;
|
|
3181
|
-
SetNormalState: TypedContractEvent<SetNormalStateEvent.InputTuple, SetNormalStateEvent.OutputTuple, SetNormalStateEvent.OutputObject>;
|
|
3182
|
-
"SetOracles(uint24,bytes4[2],bytes4[2])": TypedContractEvent<SetOraclesEvent.InputTuple, SetOraclesEvent.OutputTuple, SetOraclesEvent.OutputObject>;
|
|
3183
|
-
SetOracles: TypedContractEvent<SetOraclesEvent.InputTuple, SetOraclesEvent.OutputTuple, SetOraclesEvent.OutputObject>;
|
|
3184
|
-
"SetParameter(uint24,string,int128)": TypedContractEvent<SetParameterEvent.InputTuple, SetParameterEvent.OutputTuple, SetParameterEvent.OutputObject>;
|
|
3185
|
-
SetParameter: TypedContractEvent<SetParameterEvent.InputTuple, SetParameterEvent.OutputTuple, SetParameterEvent.OutputObject>;
|
|
3186
|
-
"SetParameterPair(uint24,string,int128,int128)": TypedContractEvent<SetParameterPairEvent.InputTuple, SetParameterPairEvent.OutputTuple, SetParameterPairEvent.OutputObject>;
|
|
3187
|
-
SetParameterPair: TypedContractEvent<SetParameterPairEvent.InputTuple, SetParameterPairEvent.OutputTuple, SetParameterPairEvent.OutputObject>;
|
|
3188
|
-
"SetPerpetualBaseParameters(uint24,int128[7])": TypedContractEvent<SetPerpetualBaseParametersEvent.InputTuple, SetPerpetualBaseParametersEvent.OutputTuple, SetPerpetualBaseParametersEvent.OutputObject>;
|
|
3189
|
-
SetPerpetualBaseParameters: TypedContractEvent<SetPerpetualBaseParametersEvent.InputTuple, SetPerpetualBaseParametersEvent.OutputTuple, SetPerpetualBaseParametersEvent.OutputObject>;
|
|
3190
|
-
"SetPerpetualRiskParameters(uint24,int128[5],int128[12])": TypedContractEvent<SetPerpetualRiskParametersEvent.InputTuple, SetPerpetualRiskParametersEvent.OutputTuple, SetPerpetualRiskParametersEvent.OutputObject>;
|
|
3191
|
-
SetPerpetualRiskParameters: TypedContractEvent<SetPerpetualRiskParametersEvent.InputTuple, SetPerpetualRiskParametersEvent.OutputTuple, SetPerpetualRiskParametersEvent.OutputObject>;
|
|
3192
|
-
"SetPoolParameter(uint8,string,int128)": TypedContractEvent<SetPoolParameterEvent.InputTuple, SetPoolParameterEvent.OutputTuple, SetPoolParameterEvent.OutputObject>;
|
|
3193
|
-
SetPoolParameter: TypedContractEvent<SetPoolParameterEvent.InputTuple, SetPoolParameterEvent.OutputTuple, SetPoolParameterEvent.OutputObject>;
|
|
3194
|
-
"SetTraderTiers(uint256[],uint16[])": TypedContractEvent<SetTraderTiersEvent.InputTuple, SetTraderTiersEvent.OutputTuple, SetTraderTiersEvent.OutputObject>;
|
|
3195
|
-
SetTraderTiers: TypedContractEvent<SetTraderTiersEvent.InputTuple, SetTraderTiersEvent.OutputTuple, SetTraderTiersEvent.OutputObject>;
|
|
3196
|
-
"SetTraderVolumeTiers(uint256[],uint16[])": TypedContractEvent<SetTraderVolumeTiersEvent.InputTuple, SetTraderVolumeTiersEvent.OutputTuple, SetTraderVolumeTiersEvent.OutputObject>;
|
|
3197
|
-
SetTraderVolumeTiers: TypedContractEvent<SetTraderVolumeTiersEvent.InputTuple, SetTraderVolumeTiersEvent.OutputTuple, SetTraderVolumeTiersEvent.OutputObject>;
|
|
3198
|
-
"SetUtilityToken(address)": TypedContractEvent<SetUtilityTokenEvent.InputTuple, SetUtilityTokenEvent.OutputTuple, SetUtilityTokenEvent.OutputObject>;
|
|
3199
|
-
SetUtilityToken: TypedContractEvent<SetUtilityTokenEvent.InputTuple, SetUtilityTokenEvent.OutputTuple, SetUtilityTokenEvent.OutputObject>;
|
|
3200
|
-
"Settle(uint24,address,int256)": TypedContractEvent<SettleEvent.InputTuple, SettleEvent.OutputTuple, SettleEvent.OutputObject>;
|
|
3201
|
-
Settle: TypedContractEvent<SettleEvent.InputTuple, SettleEvent.OutputTuple, SettleEvent.OutputObject>;
|
|
3202
|
-
"SettleState(uint24)": TypedContractEvent<SettleStateEvent.InputTuple, SettleStateEvent.OutputTuple, SettleStateEvent.OutputObject>;
|
|
3203
|
-
SettleState: TypedContractEvent<SettleStateEvent.InputTuple, SettleStateEvent.OutputTuple, SettleStateEvent.OutputObject>;
|
|
3204
|
-
"SettlementComplete(uint24)": TypedContractEvent<SettlementCompleteEvent.InputTuple, SettlementCompleteEvent.OutputTuple, SettlementCompleteEvent.OutputObject>;
|
|
3205
|
-
SettlementComplete: TypedContractEvent<SettlementCompleteEvent.InputTuple, SettlementCompleteEvent.OutputTuple, SettlementCompleteEvent.OutputObject>;
|
|
3206
|
-
"TokensDeposited(uint24,address,int128)": TypedContractEvent<TokensDepositedEvent.InputTuple, TokensDepositedEvent.OutputTuple, TokensDepositedEvent.OutputObject>;
|
|
3207
|
-
TokensDeposited: TypedContractEvent<TokensDepositedEvent.InputTuple, TokensDepositedEvent.OutputTuple, TokensDepositedEvent.OutputObject>;
|
|
3208
|
-
"TokensWithdrawn(uint24,address,int128)": TypedContractEvent<TokensWithdrawnEvent.InputTuple, TokensWithdrawnEvent.OutputTuple, TokensWithdrawnEvent.OutputObject>;
|
|
3209
|
-
TokensWithdrawn: TypedContractEvent<TokensWithdrawnEvent.InputTuple, TokensWithdrawnEvent.OutputTuple, TokensWithdrawnEvent.OutputObject>;
|
|
3210
|
-
"Trade(uint24,address,tuple,bytes32,int128,int128,int128,int128,int128)": TypedContractEvent<TradeEvent.InputTuple, TradeEvent.OutputTuple, TradeEvent.OutputObject>;
|
|
3211
|
-
Trade: TypedContractEvent<TradeEvent.InputTuple, TradeEvent.OutputTuple, TradeEvent.OutputObject>;
|
|
3212
|
-
"TransferAddressTo(string,address,address)": TypedContractEvent<TransferAddressToEvent.InputTuple, TransferAddressToEvent.OutputTuple, TransferAddressToEvent.OutputObject>;
|
|
3213
|
-
TransferAddressTo: TypedContractEvent<TransferAddressToEvent.InputTuple, TransferAddressToEvent.OutputTuple, TransferAddressToEvent.OutputObject>;
|
|
3214
|
-
"UpdateBrokerAddedCash(uint8,uint32,uint32)": TypedContractEvent<UpdateBrokerAddedCashEvent.InputTuple, UpdateBrokerAddedCashEvent.OutputTuple, UpdateBrokerAddedCashEvent.OutputObject>;
|
|
3215
|
-
UpdateBrokerAddedCash: TypedContractEvent<UpdateBrokerAddedCashEvent.InputTuple, UpdateBrokerAddedCashEvent.OutputTuple, UpdateBrokerAddedCashEvent.OutputObject>;
|
|
3216
|
-
"UpdateFundingRate(uint24,int128)": TypedContractEvent<UpdateFundingRateEvent.InputTuple, UpdateFundingRateEvent.OutputTuple, UpdateFundingRateEvent.OutputObject>;
|
|
3217
|
-
UpdateFundingRate: TypedContractEvent<UpdateFundingRateEvent.InputTuple, UpdateFundingRateEvent.OutputTuple, UpdateFundingRateEvent.OutputObject>;
|
|
3218
|
-
"UpdateMarginAccount(uint24,address,int128)": TypedContractEvent<UpdateMarginAccountEvent.InputTuple, UpdateMarginAccountEvent.OutputTuple, UpdateMarginAccountEvent.OutputObject>;
|
|
3219
|
-
UpdateMarginAccount: TypedContractEvent<UpdateMarginAccountEvent.InputTuple, UpdateMarginAccountEvent.OutputTuple, UpdateMarginAccountEvent.OutputObject>;
|
|
3220
|
-
"UpdateMarkPrice(uint24,int128,int128,int128)": TypedContractEvent<UpdateMarkPriceEvent.InputTuple, UpdateMarkPriceEvent.OutputTuple, UpdateMarkPriceEvent.OutputObject>;
|
|
3221
|
-
UpdateMarkPrice: TypedContractEvent<UpdateMarkPriceEvent.InputTuple, UpdateMarkPriceEvent.OutputTuple, UpdateMarkPriceEvent.OutputObject>;
|
|
3222
|
-
};
|
|
3223
|
-
}
|