@d8x/perpetuals-sdk 2.7.2 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/AMMPerpLogic.json +580 -0
- package/dist/cjs/abi/BeaconProxy.json +71 -0
- package/dist/cjs/abi/IPerpetualManager copy.json +5599 -0
- package/dist/cjs/abi/IPerpetualMarginViewLogic.json +286 -0
- package/dist/cjs/abi/Maintainer.json +774 -0
- package/dist/cjs/abi/MockToken.json +347 -0
- package/dist/cjs/abi/MockUSD.json +413 -0
- package/dist/cjs/abi/UUPSUpgradeable.json +104 -0
- package/dist/cjs/abi/WeETH.json +310 -0
- package/dist/cjs/abi-zkevm/IPerpetualManager.json +5366 -0
- package/dist/cjs/abi-zkevm/LimitOrderBook.json +910 -0
- package/dist/cjs/abi-zkevm/LimitOrderBookFactory.json +236 -0
- package/dist/cjs/contracts/AMMPerpLogic.d.ts +303 -0
- package/dist/cjs/contracts/AMMPerpLogic.js +3 -0
- package/dist/cjs/contracts/AMMPerpLogic.js.map +1 -0
- package/dist/cjs/contracts/BeaconProxy.d.ts +63 -0
- package/dist/cjs/contracts/BeaconProxy.js +3 -0
- package/dist/cjs/contracts/BeaconProxy.js.map +1 -0
- package/dist/cjs/contracts/IPerpetualManagerCopy.d.ts +3223 -0
- package/dist/cjs/contracts/IPerpetualManagerCopy.js +3 -0
- package/dist/cjs/contracts/IPerpetualManagerCopy.js.map +1 -0
- package/dist/cjs/contracts/IPerpetualMarginViewLogic.d.ts +183 -0
- package/dist/cjs/contracts/IPerpetualMarginViewLogic.js +3 -0
- package/dist/cjs/contracts/IPerpetualMarginViewLogic.js.map +1 -0
- package/dist/cjs/contracts/Maintainer.d.ts +799 -0
- package/dist/cjs/contracts/Maintainer.js +3 -0
- package/dist/cjs/contracts/Maintainer.js.map +1 -0
- package/dist/cjs/contracts/MockToken.d.ts +263 -0
- package/dist/cjs/contracts/MockToken.js +3 -0
- package/dist/cjs/contracts/MockToken.js.map +1 -0
- package/dist/cjs/contracts/MockUSD.d.ts +186 -0
- package/dist/cjs/contracts/MockUSD.js +3 -0
- package/dist/cjs/contracts/MockUSD.js.map +1 -0
- package/dist/cjs/contracts/UUPSUpgradeable.d.ts +118 -0
- package/dist/cjs/contracts/UUPSUpgradeable.js +3 -0
- package/dist/cjs/contracts/UUPSUpgradeable.js.map +1 -0
- package/dist/cjs/contracts/WeETH.d.ts +503 -0
- package/dist/cjs/contracts/WeETH.js +3 -0
- package/dist/cjs/contracts/WeETH.js.map +1 -0
- package/dist/cjs/contracts/factories/AMMPerpLogic__factory.d.ts +452 -0
- package/dist/cjs/contracts/factories/AMMPerpLogic__factory.js +598 -0
- package/dist/cjs/contracts/factories/AMMPerpLogic__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/BeaconProxy__factory.d.ts +61 -0
- package/dist/cjs/contracts/factories/BeaconProxy__factory.js +89 -0
- package/dist/cjs/contracts/factories/BeaconProxy__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/IPerpetualManagerCopy__factory.d.ts +4358 -0
- package/dist/cjs/contracts/factories/IPerpetualManagerCopy__factory.js +5617 -0
- package/dist/cjs/contracts/factories/IPerpetualManagerCopy__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/IPerpetualMarginViewLogic__factory.d.ts +221 -0
- package/dist/cjs/contracts/factories/IPerpetualMarginViewLogic__factory.js +304 -0
- package/dist/cjs/contracts/factories/IPerpetualMarginViewLogic__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/Maintainer__factory.d.ts +609 -0
- package/dist/cjs/contracts/factories/Maintainer__factory.js +792 -0
- package/dist/cjs/contracts/factories/Maintainer__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/MockToken__factory.d.ts +273 -0
- package/dist/cjs/contracts/factories/MockToken__factory.js +365 -0
- package/dist/cjs/contracts/factories/MockToken__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/MockUSD__factory.d.ts +320 -0
- package/dist/cjs/contracts/factories/MockUSD__factory.js +431 -0
- package/dist/cjs/contracts/factories/MockUSD__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/UUPSUpgradeable__factory.d.ts +87 -0
- package/dist/cjs/contracts/factories/UUPSUpgradeable__factory.js +122 -0
- package/dist/cjs/contracts/factories/UUPSUpgradeable__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/WeETH__factory.d.ts +545 -0
- package/dist/cjs/contracts/factories/WeETH__factory.js +721 -0
- package/dist/cjs/contracts/factories/WeETH__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/lean0/IPerpetualManager__factory.d.ts +4136 -0
- package/dist/cjs/contracts/factories/lean0/IPerpetualManager__factory.js +5324 -0
- package/dist/cjs/contracts/factories/lean0/IPerpetualManager__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/lean0/LimitOrderBookFactory__factory.d.ts +189 -0
- package/dist/cjs/contracts/factories/lean0/LimitOrderBookFactory__factory.js +254 -0
- package/dist/cjs/contracts/factories/lean0/LimitOrderBookFactory__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/lean0/LimitOrderBook__factory.d.ts +715 -0
- package/dist/cjs/contracts/factories/lean0/LimitOrderBook__factory.js +928 -0
- package/dist/cjs/contracts/factories/lean0/LimitOrderBook__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/lean0/ShareToken__factory.d.ts +344 -0
- package/dist/cjs/contracts/factories/lean0/ShareToken__factory.js +456 -0
- package/dist/cjs/contracts/factories/lean0/ShareToken__factory.js.map +1 -0
- package/dist/cjs/contracts/factories/lean0/index.d.ts +4 -0
- package/dist/cjs/contracts/factories/lean0/index.js +15 -0
- package/dist/cjs/contracts/factories/lean0/index.js.map +1 -0
- package/dist/cjs/contracts/lean0/IPerpetualManager.d.ts +2821 -0
- package/dist/cjs/contracts/lean0/IPerpetualManager.js +3 -0
- package/dist/cjs/contracts/lean0/IPerpetualManager.js.map +1 -0
- package/dist/cjs/contracts/lean0/LimitOrderBook.d.ts +533 -0
- package/dist/cjs/contracts/lean0/LimitOrderBook.js +3 -0
- package/dist/cjs/contracts/lean0/LimitOrderBook.js.map +1 -0
- package/dist/cjs/contracts/lean0/LimitOrderBookFactory.d.ts +210 -0
- package/dist/cjs/contracts/lean0/LimitOrderBookFactory.js +3 -0
- package/dist/cjs/contracts/lean0/LimitOrderBookFactory.js.map +1 -0
- package/dist/cjs/contracts/lean0/ShareToken.d.ts +320 -0
- package/dist/cjs/contracts/lean0/ShareToken.js +3 -0
- package/dist/cjs/contracts/lean0/ShareToken.js.map +1 -0
- package/dist/cjs/contracts/lean0/index.d.ts +4 -0
- package/dist/cjs/contracts/lean0/index.js +3 -0
- package/dist/cjs/contracts/lean0/index.js.map +1 -0
- package/dist/cjs/d8XMath.js +1 -3
- package/dist/cjs/d8XMath.js.map +1 -1
- package/dist/cjs/marketData.js +0 -1
- package/dist/cjs/marketData.js.map +1 -1
- package/dist/cjs/perpetualDataHandler.js +1 -3
- package/dist/cjs/perpetualDataHandler.js.map +1 -1
- package/dist/cjs/priceFeeds.js +1 -1
- package/dist/cjs/priceFeeds.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/abi/AMMPerpLogic.json +580 -0
- package/dist/esm/abi/BeaconProxy.json +71 -0
- package/dist/esm/abi/IPerpetualManager copy.json +5599 -0
- package/dist/esm/abi/IPerpetualMarginViewLogic.json +286 -0
- package/dist/esm/abi/Maintainer.json +774 -0
- package/dist/esm/abi/MockToken.json +347 -0
- package/dist/esm/abi/MockUSD.json +413 -0
- package/dist/esm/abi/UUPSUpgradeable.json +104 -0
- package/dist/esm/abi/WeETH.json +310 -0
- package/dist/esm/abi/lean0/IPerpetualManager.json +5306 -0
- package/dist/esm/abi/lean0/LimitOrderBook.json +910 -0
- package/dist/esm/abi/lean0/LimitOrderBookFactory.json +236 -0
- package/dist/esm/abi/lean0/ShareToken.json +438 -0
- package/dist/esm/abi-zkevm/IPerpetualManager.json +5366 -0
- package/dist/esm/abi-zkevm/LimitOrderBook.json +910 -0
- package/dist/esm/abi-zkevm/LimitOrderBookFactory.json +236 -0
- package/dist/esm/contracts/AMMPerpLogic.d.ts +303 -0
- package/dist/esm/contracts/AMMPerpLogic.js +2 -0
- package/dist/esm/contracts/AMMPerpLogic.js.map +1 -0
- package/dist/esm/contracts/BeaconProxy.d.ts +63 -0
- package/dist/esm/contracts/BeaconProxy.js +2 -0
- package/dist/esm/contracts/BeaconProxy.js.map +1 -0
- package/dist/esm/contracts/IPerpetualManagerCopy.d.ts +3223 -0
- package/dist/esm/contracts/IPerpetualManagerCopy.js +2 -0
- package/dist/esm/contracts/IPerpetualManagerCopy.js.map +1 -0
- package/dist/esm/contracts/IPerpetualMarginViewLogic.d.ts +183 -0
- package/dist/esm/contracts/IPerpetualMarginViewLogic.js +2 -0
- package/dist/esm/contracts/IPerpetualMarginViewLogic.js.map +1 -0
- package/dist/esm/contracts/Maintainer.d.ts +799 -0
- package/dist/esm/contracts/Maintainer.js +2 -0
- package/dist/esm/contracts/Maintainer.js.map +1 -0
- package/dist/esm/contracts/MockToken.d.ts +263 -0
- package/dist/esm/contracts/MockToken.js +2 -0
- package/dist/esm/contracts/MockToken.js.map +1 -0
- package/dist/esm/contracts/MockUSD.d.ts +186 -0
- package/dist/esm/contracts/MockUSD.js +2 -0
- package/dist/esm/contracts/MockUSD.js.map +1 -0
- package/dist/esm/contracts/UUPSUpgradeable.d.ts +118 -0
- package/dist/esm/contracts/UUPSUpgradeable.js +2 -0
- package/dist/esm/contracts/UUPSUpgradeable.js.map +1 -0
- package/dist/esm/contracts/WeETH.d.ts +503 -0
- package/dist/esm/contracts/WeETH.js +2 -0
- package/dist/esm/contracts/WeETH.js.map +1 -0
- package/dist/esm/contracts/factories/AMMPerpLogic__factory.d.ts +452 -0
- package/dist/esm/contracts/factories/AMMPerpLogic__factory.js +594 -0
- package/dist/esm/contracts/factories/AMMPerpLogic__factory.js.map +1 -0
- package/dist/esm/contracts/factories/BeaconProxy__factory.d.ts +61 -0
- package/dist/esm/contracts/factories/BeaconProxy__factory.js +85 -0
- package/dist/esm/contracts/factories/BeaconProxy__factory.js.map +1 -0
- package/dist/esm/contracts/factories/IPerpetualManagerCopy__factory.d.ts +4358 -0
- package/dist/esm/contracts/factories/IPerpetualManagerCopy__factory.js +5613 -0
- package/dist/esm/contracts/factories/IPerpetualManagerCopy__factory.js.map +1 -0
- package/dist/esm/contracts/factories/IPerpetualMarginViewLogic__factory.d.ts +221 -0
- package/dist/esm/contracts/factories/IPerpetualMarginViewLogic__factory.js +300 -0
- package/dist/esm/contracts/factories/IPerpetualMarginViewLogic__factory.js.map +1 -0
- package/dist/esm/contracts/factories/Maintainer__factory.d.ts +609 -0
- package/dist/esm/contracts/factories/Maintainer__factory.js +788 -0
- package/dist/esm/contracts/factories/Maintainer__factory.js.map +1 -0
- package/dist/esm/contracts/factories/MockToken__factory.d.ts +273 -0
- package/dist/esm/contracts/factories/MockToken__factory.js +361 -0
- package/dist/esm/contracts/factories/MockToken__factory.js.map +1 -0
- package/dist/esm/contracts/factories/MockUSD__factory.d.ts +320 -0
- package/dist/esm/contracts/factories/MockUSD__factory.js +427 -0
- package/dist/esm/contracts/factories/MockUSD__factory.js.map +1 -0
- package/dist/esm/contracts/factories/UUPSUpgradeable__factory.d.ts +87 -0
- package/dist/esm/contracts/factories/UUPSUpgradeable__factory.js +118 -0
- package/dist/esm/contracts/factories/UUPSUpgradeable__factory.js.map +1 -0
- package/dist/esm/contracts/factories/WeETH__factory.d.ts +545 -0
- package/dist/esm/contracts/factories/WeETH__factory.js +717 -0
- package/dist/esm/contracts/factories/WeETH__factory.js.map +1 -0
- package/dist/esm/contracts/factories/lean0/IPerpetualManager__factory.d.ts +4136 -0
- package/dist/esm/contracts/factories/lean0/IPerpetualManager__factory.js +5320 -0
- package/dist/esm/contracts/factories/lean0/IPerpetualManager__factory.js.map +1 -0
- package/dist/esm/contracts/factories/lean0/LimitOrderBookFactory__factory.d.ts +189 -0
- package/dist/esm/contracts/factories/lean0/LimitOrderBookFactory__factory.js +250 -0
- package/dist/esm/contracts/factories/lean0/LimitOrderBookFactory__factory.js.map +1 -0
- package/dist/esm/contracts/factories/lean0/LimitOrderBook__factory.d.ts +715 -0
- package/dist/esm/contracts/factories/lean0/LimitOrderBook__factory.js +924 -0
- package/dist/esm/contracts/factories/lean0/LimitOrderBook__factory.js.map +1 -0
- package/dist/esm/contracts/factories/lean0/ShareToken__factory.d.ts +344 -0
- package/dist/esm/contracts/factories/lean0/ShareToken__factory.js +452 -0
- package/dist/esm/contracts/factories/lean0/ShareToken__factory.js.map +1 -0
- package/dist/esm/contracts/factories/lean0/index.d.ts +4 -0
- package/dist/esm/contracts/factories/lean0/index.js +8 -0
- package/dist/esm/contracts/factories/lean0/index.js.map +1 -0
- package/dist/esm/contracts/lean0/IPerpetualManager.d.ts +2821 -0
- package/dist/esm/contracts/lean0/IPerpetualManager.js +2 -0
- package/dist/esm/contracts/lean0/IPerpetualManager.js.map +1 -0
- package/dist/esm/contracts/lean0/LimitOrderBook.d.ts +533 -0
- package/dist/esm/contracts/lean0/LimitOrderBook.js +2 -0
- package/dist/esm/contracts/lean0/LimitOrderBook.js.map +1 -0
- package/dist/esm/contracts/lean0/LimitOrderBookFactory.d.ts +210 -0
- package/dist/esm/contracts/lean0/LimitOrderBookFactory.js +2 -0
- package/dist/esm/contracts/lean0/LimitOrderBookFactory.js.map +1 -0
- package/dist/esm/contracts/lean0/ShareToken.d.ts +320 -0
- package/dist/esm/contracts/lean0/ShareToken.js +2 -0
- package/dist/esm/contracts/lean0/ShareToken.js.map +1 -0
- package/dist/esm/contracts/lean0/index.d.ts +4 -0
- package/dist/esm/contracts/lean0/index.js +2 -0
- package/dist/esm/contracts/lean0/index.js.map +1 -0
- package/dist/esm/d8XMath.js +1 -3
- package/dist/esm/d8XMath.js.map +1 -1
- package/dist/esm/marketData.js +0 -1
- package/dist/esm/marketData.js.map +1 -1
- package/dist/esm/perpetualDataHandler.js +1 -3
- package/dist/esm/perpetualDataHandler.js.map +1 -1
- package/dist/esm/priceFeeds.js +1 -1
- package/dist/esm/priceFeeds.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/contracts/IPerpetualMarginViewLogic.ts +347 -0
- package/src/contracts/MockUSD.ts +378 -0
- package/src/contracts/factories/IPerpetualMarginViewLogic__factory.ts +313 -0
- package/src/contracts/factories/MockUSD__factory.ts +430 -0
- package/src/d8XMath.ts +1 -3
- package/src/marketData.ts +1 -1
- package/src/perpetualDataHandler.ts +2 -3
- package/src/priceFeeds.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/cjs/main.d.ts +0 -1
- package/dist/cjs/main.js +0 -15
- package/dist/cjs/main.js.map +0 -1
- package/dist/esm/main.d.ts +0 -1
- package/dist/esm/main.js +0 -13
- package/dist/esm/main.js.map +0 -1
- package/dist/esm/main2.d.ts +0 -1
- package/dist/esm/main2.js +0 -18
- package/dist/esm/main2.js.map +0 -1
|
@@ -0,0 +1,4136 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IPerpetualManager, IPerpetualManagerInterface } from "../../lean0/IPerpetualManager";
|
|
4
|
+
export declare class IPerpetualManager__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "uint8";
|
|
10
|
+
readonly name: "poolId";
|
|
11
|
+
readonly type: "uint8";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: false;
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly name: "oldOwner";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly indexed: false;
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "newOwner";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly indexed: false;
|
|
24
|
+
readonly internalType: "uint32";
|
|
25
|
+
readonly name: "numLots";
|
|
26
|
+
readonly type: "uint32";
|
|
27
|
+
}];
|
|
28
|
+
readonly name: "BrokerLotsTransferred";
|
|
29
|
+
readonly type: "event";
|
|
30
|
+
}, {
|
|
31
|
+
readonly anonymous: false;
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly indexed: true;
|
|
34
|
+
readonly internalType: "uint8";
|
|
35
|
+
readonly name: "poolId";
|
|
36
|
+
readonly type: "uint8";
|
|
37
|
+
}, {
|
|
38
|
+
readonly indexed: false;
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "oldOwner";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly indexed: false;
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "newOwner";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly indexed: false;
|
|
49
|
+
readonly internalType: "int128";
|
|
50
|
+
readonly name: "fVolume";
|
|
51
|
+
readonly type: "int128";
|
|
52
|
+
}];
|
|
53
|
+
readonly name: "BrokerVolumeTransferred";
|
|
54
|
+
readonly type: "event";
|
|
55
|
+
}, {
|
|
56
|
+
readonly anonymous: false;
|
|
57
|
+
readonly inputs: readonly [{
|
|
58
|
+
readonly indexed: true;
|
|
59
|
+
readonly internalType: "uint24";
|
|
60
|
+
readonly name: "perpetualId";
|
|
61
|
+
readonly type: "uint24";
|
|
62
|
+
}, {
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly name: "trader";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "Clear";
|
|
69
|
+
readonly type: "event";
|
|
70
|
+
}, {
|
|
71
|
+
readonly anonymous: false;
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly indexed: true;
|
|
74
|
+
readonly internalType: "uint8";
|
|
75
|
+
readonly name: "poolId";
|
|
76
|
+
readonly type: "uint8";
|
|
77
|
+
}, {
|
|
78
|
+
readonly indexed: true;
|
|
79
|
+
readonly internalType: "uint24";
|
|
80
|
+
readonly name: "perpetualId";
|
|
81
|
+
readonly type: "uint24";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: true;
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly name: "trader";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
}, {
|
|
88
|
+
readonly indexed: false;
|
|
89
|
+
readonly internalType: "int128";
|
|
90
|
+
readonly name: "protocolFeeCC";
|
|
91
|
+
readonly type: "int128";
|
|
92
|
+
}, {
|
|
93
|
+
readonly indexed: false;
|
|
94
|
+
readonly internalType: "int128";
|
|
95
|
+
readonly name: "participationFundFeeCC";
|
|
96
|
+
readonly type: "int128";
|
|
97
|
+
}];
|
|
98
|
+
readonly name: "DistributeFees";
|
|
99
|
+
readonly type: "event";
|
|
100
|
+
}, {
|
|
101
|
+
readonly anonymous: false;
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly indexed: false;
|
|
104
|
+
readonly internalType: "uint24";
|
|
105
|
+
readonly name: "perpetualId";
|
|
106
|
+
readonly type: "uint24";
|
|
107
|
+
}, {
|
|
108
|
+
readonly indexed: true;
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly name: "liquidator";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
}, {
|
|
113
|
+
readonly indexed: true;
|
|
114
|
+
readonly internalType: "address";
|
|
115
|
+
readonly name: "trader";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly indexed: false;
|
|
119
|
+
readonly internalType: "int128";
|
|
120
|
+
readonly name: "amountLiquidatedBC";
|
|
121
|
+
readonly type: "int128";
|
|
122
|
+
}, {
|
|
123
|
+
readonly indexed: false;
|
|
124
|
+
readonly internalType: "int128";
|
|
125
|
+
readonly name: "liquidationPrice";
|
|
126
|
+
readonly type: "int128";
|
|
127
|
+
}, {
|
|
128
|
+
readonly indexed: false;
|
|
129
|
+
readonly internalType: "int128";
|
|
130
|
+
readonly name: "newPositionSizeBC";
|
|
131
|
+
readonly type: "int128";
|
|
132
|
+
}, {
|
|
133
|
+
readonly indexed: false;
|
|
134
|
+
readonly internalType: "int128";
|
|
135
|
+
readonly name: "fFeeCC";
|
|
136
|
+
readonly type: "int128";
|
|
137
|
+
}, {
|
|
138
|
+
readonly indexed: false;
|
|
139
|
+
readonly internalType: "int128";
|
|
140
|
+
readonly name: "fPnlCC";
|
|
141
|
+
readonly type: "int128";
|
|
142
|
+
}];
|
|
143
|
+
readonly name: "Liquidate";
|
|
144
|
+
readonly type: "event";
|
|
145
|
+
}, {
|
|
146
|
+
readonly anonymous: false;
|
|
147
|
+
readonly inputs: readonly [{
|
|
148
|
+
readonly indexed: true;
|
|
149
|
+
readonly internalType: "uint8";
|
|
150
|
+
readonly name: "poolId";
|
|
151
|
+
readonly type: "uint8";
|
|
152
|
+
}, {
|
|
153
|
+
readonly indexed: true;
|
|
154
|
+
readonly internalType: "address";
|
|
155
|
+
readonly name: "user";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}, {
|
|
158
|
+
readonly indexed: false;
|
|
159
|
+
readonly internalType: "uint256";
|
|
160
|
+
readonly name: "tokenAmount";
|
|
161
|
+
readonly type: "uint256";
|
|
162
|
+
}, {
|
|
163
|
+
readonly indexed: false;
|
|
164
|
+
readonly internalType: "uint256";
|
|
165
|
+
readonly name: "shareAmount";
|
|
166
|
+
readonly type: "uint256";
|
|
167
|
+
}];
|
|
168
|
+
readonly name: "LiquidityAdded";
|
|
169
|
+
readonly type: "event";
|
|
170
|
+
}, {
|
|
171
|
+
readonly anonymous: false;
|
|
172
|
+
readonly inputs: readonly [{
|
|
173
|
+
readonly indexed: false;
|
|
174
|
+
readonly internalType: "uint8";
|
|
175
|
+
readonly name: "id";
|
|
176
|
+
readonly type: "uint8";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: false;
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "marginTokenAddress";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly indexed: false;
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
readonly name: "shareTokenAddress";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
}, {
|
|
188
|
+
readonly indexed: false;
|
|
189
|
+
readonly internalType: "uint16";
|
|
190
|
+
readonly name: "iTargetPoolSizeUpdateTime";
|
|
191
|
+
readonly type: "uint16";
|
|
192
|
+
}, {
|
|
193
|
+
readonly indexed: false;
|
|
194
|
+
readonly internalType: "int128";
|
|
195
|
+
readonly name: "fBrokerCollateralLotSize";
|
|
196
|
+
readonly type: "int128";
|
|
197
|
+
}];
|
|
198
|
+
readonly name: "LiquidityPoolCreated";
|
|
199
|
+
readonly type: "event";
|
|
200
|
+
}, {
|
|
201
|
+
readonly anonymous: false;
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly indexed: false;
|
|
204
|
+
readonly internalType: "bool";
|
|
205
|
+
readonly name: "pauseOn";
|
|
206
|
+
readonly type: "bool";
|
|
207
|
+
}, {
|
|
208
|
+
readonly indexed: false;
|
|
209
|
+
readonly internalType: "uint8";
|
|
210
|
+
readonly name: "poolId";
|
|
211
|
+
readonly type: "uint8";
|
|
212
|
+
}];
|
|
213
|
+
readonly name: "LiquidityProvisionPaused";
|
|
214
|
+
readonly type: "event";
|
|
215
|
+
}, {
|
|
216
|
+
readonly anonymous: false;
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly indexed: true;
|
|
219
|
+
readonly internalType: "uint8";
|
|
220
|
+
readonly name: "poolId";
|
|
221
|
+
readonly type: "uint8";
|
|
222
|
+
}, {
|
|
223
|
+
readonly indexed: true;
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
readonly name: "user";
|
|
226
|
+
readonly type: "address";
|
|
227
|
+
}, {
|
|
228
|
+
readonly indexed: false;
|
|
229
|
+
readonly internalType: "uint256";
|
|
230
|
+
readonly name: "tokenAmount";
|
|
231
|
+
readonly type: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly indexed: false;
|
|
234
|
+
readonly internalType: "uint256";
|
|
235
|
+
readonly name: "shareAmount";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
}];
|
|
238
|
+
readonly name: "LiquidityRemoved";
|
|
239
|
+
readonly type: "event";
|
|
240
|
+
}, {
|
|
241
|
+
readonly anonymous: false;
|
|
242
|
+
readonly inputs: readonly [{
|
|
243
|
+
readonly indexed: true;
|
|
244
|
+
readonly internalType: "uint8";
|
|
245
|
+
readonly name: "poolId";
|
|
246
|
+
readonly type: "uint8";
|
|
247
|
+
}, {
|
|
248
|
+
readonly indexed: true;
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
readonly name: "user";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly indexed: false;
|
|
254
|
+
readonly internalType: "uint256";
|
|
255
|
+
readonly name: "shareAmount";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
}];
|
|
258
|
+
readonly name: "LiquidityWithdrawalInitiated";
|
|
259
|
+
readonly type: "event";
|
|
260
|
+
}, {
|
|
261
|
+
readonly anonymous: false;
|
|
262
|
+
readonly inputs: readonly [{
|
|
263
|
+
readonly indexed: false;
|
|
264
|
+
readonly internalType: "uint8";
|
|
265
|
+
readonly name: "poolId";
|
|
266
|
+
readonly type: "uint8";
|
|
267
|
+
}, {
|
|
268
|
+
readonly indexed: false;
|
|
269
|
+
readonly internalType: "uint24";
|
|
270
|
+
readonly name: "id";
|
|
271
|
+
readonly type: "uint24";
|
|
272
|
+
}, {
|
|
273
|
+
readonly indexed: false;
|
|
274
|
+
readonly internalType: "int128[7]";
|
|
275
|
+
readonly name: "baseParams";
|
|
276
|
+
readonly type: "int128[7]";
|
|
277
|
+
}, {
|
|
278
|
+
readonly indexed: false;
|
|
279
|
+
readonly internalType: "int128[5]";
|
|
280
|
+
readonly name: "underlyingRiskParams";
|
|
281
|
+
readonly type: "int128[5]";
|
|
282
|
+
}, {
|
|
283
|
+
readonly indexed: false;
|
|
284
|
+
readonly internalType: "int128[12]";
|
|
285
|
+
readonly name: "defaultFundRiskParams";
|
|
286
|
+
readonly type: "int128[12]";
|
|
287
|
+
}, {
|
|
288
|
+
readonly indexed: false;
|
|
289
|
+
readonly internalType: "uint256";
|
|
290
|
+
readonly name: "eCollateralCurrency";
|
|
291
|
+
readonly type: "uint256";
|
|
292
|
+
}];
|
|
293
|
+
readonly name: "PerpetualCreated";
|
|
294
|
+
readonly type: "event";
|
|
295
|
+
}, {
|
|
296
|
+
readonly anonymous: false;
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly indexed: true;
|
|
299
|
+
readonly internalType: "uint24";
|
|
300
|
+
readonly name: "perpetualId";
|
|
301
|
+
readonly type: "uint24";
|
|
302
|
+
}, {
|
|
303
|
+
readonly indexed: true;
|
|
304
|
+
readonly internalType: "bytes32";
|
|
305
|
+
readonly name: "orderHash";
|
|
306
|
+
readonly type: "bytes32";
|
|
307
|
+
}];
|
|
308
|
+
readonly name: "PerpetualLimitOrderCancelled";
|
|
309
|
+
readonly type: "event";
|
|
310
|
+
}, {
|
|
311
|
+
readonly anonymous: false;
|
|
312
|
+
readonly inputs: readonly [{
|
|
313
|
+
readonly indexed: false;
|
|
314
|
+
readonly internalType: "uint8";
|
|
315
|
+
readonly name: "_liqPoolID";
|
|
316
|
+
readonly type: "uint8";
|
|
317
|
+
}];
|
|
318
|
+
readonly name: "RunLiquidityPool";
|
|
319
|
+
readonly type: "event";
|
|
320
|
+
}, {
|
|
321
|
+
readonly anonymous: false;
|
|
322
|
+
readonly inputs: readonly [{
|
|
323
|
+
readonly indexed: false;
|
|
324
|
+
readonly internalType: "uint8";
|
|
325
|
+
readonly name: "delay";
|
|
326
|
+
readonly type: "uint8";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "SetBlockDelay";
|
|
329
|
+
readonly type: "event";
|
|
330
|
+
}, {
|
|
331
|
+
readonly anonymous: false;
|
|
332
|
+
readonly inputs: readonly [{
|
|
333
|
+
readonly indexed: false;
|
|
334
|
+
readonly internalType: "uint32[]";
|
|
335
|
+
readonly name: "designations";
|
|
336
|
+
readonly type: "uint32[]";
|
|
337
|
+
}, {
|
|
338
|
+
readonly indexed: false;
|
|
339
|
+
readonly internalType: "uint16[]";
|
|
340
|
+
readonly name: "fees";
|
|
341
|
+
readonly type: "uint16[]";
|
|
342
|
+
}];
|
|
343
|
+
readonly name: "SetBrokerDesignations";
|
|
344
|
+
readonly type: "event";
|
|
345
|
+
}, {
|
|
346
|
+
readonly anonymous: false;
|
|
347
|
+
readonly inputs: readonly [{
|
|
348
|
+
readonly indexed: false;
|
|
349
|
+
readonly internalType: "uint256[]";
|
|
350
|
+
readonly name: "tiers";
|
|
351
|
+
readonly type: "uint256[]";
|
|
352
|
+
}, {
|
|
353
|
+
readonly indexed: false;
|
|
354
|
+
readonly internalType: "uint16[]";
|
|
355
|
+
readonly name: "feesTbps";
|
|
356
|
+
readonly type: "uint16[]";
|
|
357
|
+
}];
|
|
358
|
+
readonly name: "SetBrokerTiers";
|
|
359
|
+
readonly type: "event";
|
|
360
|
+
}, {
|
|
361
|
+
readonly anonymous: false;
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly indexed: false;
|
|
364
|
+
readonly internalType: "uint256[]";
|
|
365
|
+
readonly name: "tiers";
|
|
366
|
+
readonly type: "uint256[]";
|
|
367
|
+
}, {
|
|
368
|
+
readonly indexed: false;
|
|
369
|
+
readonly internalType: "uint16[]";
|
|
370
|
+
readonly name: "feesTbps";
|
|
371
|
+
readonly type: "uint16[]";
|
|
372
|
+
}];
|
|
373
|
+
readonly name: "SetBrokerVolumeTiers";
|
|
374
|
+
readonly type: "event";
|
|
375
|
+
}, {
|
|
376
|
+
readonly anonymous: false;
|
|
377
|
+
readonly inputs: readonly [{
|
|
378
|
+
readonly indexed: true;
|
|
379
|
+
readonly internalType: "uint24";
|
|
380
|
+
readonly name: "perpetualId";
|
|
381
|
+
readonly type: "uint24";
|
|
382
|
+
}];
|
|
383
|
+
readonly name: "SetClearedState";
|
|
384
|
+
readonly type: "event";
|
|
385
|
+
}, {
|
|
386
|
+
readonly anonymous: false;
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly indexed: false;
|
|
389
|
+
readonly internalType: "address";
|
|
390
|
+
readonly name: "trader";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
}, {
|
|
393
|
+
readonly indexed: false;
|
|
394
|
+
readonly internalType: "address";
|
|
395
|
+
readonly name: "delegate";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
}];
|
|
398
|
+
readonly name: "SetDelegate";
|
|
399
|
+
readonly type: "event";
|
|
400
|
+
}, {
|
|
401
|
+
readonly anonymous: false;
|
|
402
|
+
readonly inputs: readonly [{
|
|
403
|
+
readonly indexed: true;
|
|
404
|
+
readonly internalType: "uint24";
|
|
405
|
+
readonly name: "perpetualId";
|
|
406
|
+
readonly type: "uint24";
|
|
407
|
+
}, {
|
|
408
|
+
readonly indexed: false;
|
|
409
|
+
readonly internalType: "int128";
|
|
410
|
+
readonly name: "fSettlementMarkPremiumRate";
|
|
411
|
+
readonly type: "int128";
|
|
412
|
+
}, {
|
|
413
|
+
readonly indexed: false;
|
|
414
|
+
readonly internalType: "int128";
|
|
415
|
+
readonly name: "fSettlementS2Price";
|
|
416
|
+
readonly type: "int128";
|
|
417
|
+
}, {
|
|
418
|
+
readonly indexed: false;
|
|
419
|
+
readonly internalType: "int128";
|
|
420
|
+
readonly name: "fSettlementS3Price";
|
|
421
|
+
readonly type: "int128";
|
|
422
|
+
}];
|
|
423
|
+
readonly name: "SetEmergencyState";
|
|
424
|
+
readonly type: "event";
|
|
425
|
+
}, {
|
|
426
|
+
readonly anonymous: false;
|
|
427
|
+
readonly inputs: readonly [{
|
|
428
|
+
readonly indexed: true;
|
|
429
|
+
readonly internalType: "uint24";
|
|
430
|
+
readonly name: "perpetualId";
|
|
431
|
+
readonly type: "uint24";
|
|
432
|
+
}];
|
|
433
|
+
readonly name: "SetNormalState";
|
|
434
|
+
readonly type: "event";
|
|
435
|
+
}, {
|
|
436
|
+
readonly anonymous: false;
|
|
437
|
+
readonly inputs: readonly [{
|
|
438
|
+
readonly indexed: true;
|
|
439
|
+
readonly internalType: "uint24";
|
|
440
|
+
readonly name: "perpetualId";
|
|
441
|
+
readonly type: "uint24";
|
|
442
|
+
}, {
|
|
443
|
+
readonly indexed: false;
|
|
444
|
+
readonly internalType: "bytes4[2]";
|
|
445
|
+
readonly name: "baseQuoteS2";
|
|
446
|
+
readonly type: "bytes4[2]";
|
|
447
|
+
}, {
|
|
448
|
+
readonly indexed: false;
|
|
449
|
+
readonly internalType: "bytes4[2]";
|
|
450
|
+
readonly name: "baseQuoteS3";
|
|
451
|
+
readonly type: "bytes4[2]";
|
|
452
|
+
}];
|
|
453
|
+
readonly name: "SetOracles";
|
|
454
|
+
readonly type: "event";
|
|
455
|
+
}, {
|
|
456
|
+
readonly anonymous: false;
|
|
457
|
+
readonly inputs: readonly [{
|
|
458
|
+
readonly indexed: true;
|
|
459
|
+
readonly internalType: "uint24";
|
|
460
|
+
readonly name: "perpetualId";
|
|
461
|
+
readonly type: "uint24";
|
|
462
|
+
}, {
|
|
463
|
+
readonly indexed: false;
|
|
464
|
+
readonly internalType: "string";
|
|
465
|
+
readonly name: "name";
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
}, {
|
|
468
|
+
readonly indexed: false;
|
|
469
|
+
readonly internalType: "int128";
|
|
470
|
+
readonly name: "value";
|
|
471
|
+
readonly type: "int128";
|
|
472
|
+
}];
|
|
473
|
+
readonly name: "SetParameter";
|
|
474
|
+
readonly type: "event";
|
|
475
|
+
}, {
|
|
476
|
+
readonly anonymous: false;
|
|
477
|
+
readonly inputs: readonly [{
|
|
478
|
+
readonly indexed: true;
|
|
479
|
+
readonly internalType: "uint24";
|
|
480
|
+
readonly name: "perpetualId";
|
|
481
|
+
readonly type: "uint24";
|
|
482
|
+
}, {
|
|
483
|
+
readonly indexed: false;
|
|
484
|
+
readonly internalType: "string";
|
|
485
|
+
readonly name: "name";
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
}, {
|
|
488
|
+
readonly indexed: false;
|
|
489
|
+
readonly internalType: "int128";
|
|
490
|
+
readonly name: "value1";
|
|
491
|
+
readonly type: "int128";
|
|
492
|
+
}, {
|
|
493
|
+
readonly indexed: false;
|
|
494
|
+
readonly internalType: "int128";
|
|
495
|
+
readonly name: "value2";
|
|
496
|
+
readonly type: "int128";
|
|
497
|
+
}];
|
|
498
|
+
readonly name: "SetParameterPair";
|
|
499
|
+
readonly type: "event";
|
|
500
|
+
}, {
|
|
501
|
+
readonly anonymous: false;
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly indexed: true;
|
|
504
|
+
readonly internalType: "uint24";
|
|
505
|
+
readonly name: "perpetualId";
|
|
506
|
+
readonly type: "uint24";
|
|
507
|
+
}, {
|
|
508
|
+
readonly indexed: false;
|
|
509
|
+
readonly internalType: "int128[7]";
|
|
510
|
+
readonly name: "baseParams";
|
|
511
|
+
readonly type: "int128[7]";
|
|
512
|
+
}];
|
|
513
|
+
readonly name: "SetPerpetualBaseParameters";
|
|
514
|
+
readonly type: "event";
|
|
515
|
+
}, {
|
|
516
|
+
readonly anonymous: false;
|
|
517
|
+
readonly inputs: readonly [{
|
|
518
|
+
readonly indexed: true;
|
|
519
|
+
readonly internalType: "uint24";
|
|
520
|
+
readonly name: "perpetualId";
|
|
521
|
+
readonly type: "uint24";
|
|
522
|
+
}, {
|
|
523
|
+
readonly indexed: false;
|
|
524
|
+
readonly internalType: "int128[5]";
|
|
525
|
+
readonly name: "underlyingRiskParams";
|
|
526
|
+
readonly type: "int128[5]";
|
|
527
|
+
}, {
|
|
528
|
+
readonly indexed: false;
|
|
529
|
+
readonly internalType: "int128[12]";
|
|
530
|
+
readonly name: "defaultFundRiskParams";
|
|
531
|
+
readonly type: "int128[12]";
|
|
532
|
+
}];
|
|
533
|
+
readonly name: "SetPerpetualRiskParameters";
|
|
534
|
+
readonly type: "event";
|
|
535
|
+
}, {
|
|
536
|
+
readonly anonymous: false;
|
|
537
|
+
readonly inputs: readonly [{
|
|
538
|
+
readonly indexed: true;
|
|
539
|
+
readonly internalType: "uint8";
|
|
540
|
+
readonly name: "poolId";
|
|
541
|
+
readonly type: "uint8";
|
|
542
|
+
}, {
|
|
543
|
+
readonly indexed: false;
|
|
544
|
+
readonly internalType: "string";
|
|
545
|
+
readonly name: "name";
|
|
546
|
+
readonly type: "string";
|
|
547
|
+
}, {
|
|
548
|
+
readonly indexed: false;
|
|
549
|
+
readonly internalType: "int128";
|
|
550
|
+
readonly name: "value";
|
|
551
|
+
readonly type: "int128";
|
|
552
|
+
}];
|
|
553
|
+
readonly name: "SetPoolParameter";
|
|
554
|
+
readonly type: "event";
|
|
555
|
+
}, {
|
|
556
|
+
readonly anonymous: false;
|
|
557
|
+
readonly inputs: readonly [{
|
|
558
|
+
readonly indexed: false;
|
|
559
|
+
readonly internalType: "uint256[]";
|
|
560
|
+
readonly name: "tiers";
|
|
561
|
+
readonly type: "uint256[]";
|
|
562
|
+
}, {
|
|
563
|
+
readonly indexed: false;
|
|
564
|
+
readonly internalType: "uint16[]";
|
|
565
|
+
readonly name: "feesTbps";
|
|
566
|
+
readonly type: "uint16[]";
|
|
567
|
+
}];
|
|
568
|
+
readonly name: "SetTraderTiers";
|
|
569
|
+
readonly type: "event";
|
|
570
|
+
}, {
|
|
571
|
+
readonly anonymous: false;
|
|
572
|
+
readonly inputs: readonly [{
|
|
573
|
+
readonly indexed: false;
|
|
574
|
+
readonly internalType: "uint256[]";
|
|
575
|
+
readonly name: "tiers";
|
|
576
|
+
readonly type: "uint256[]";
|
|
577
|
+
}, {
|
|
578
|
+
readonly indexed: false;
|
|
579
|
+
readonly internalType: "uint16[]";
|
|
580
|
+
readonly name: "feesTbps";
|
|
581
|
+
readonly type: "uint16[]";
|
|
582
|
+
}];
|
|
583
|
+
readonly name: "SetTraderVolumeTiers";
|
|
584
|
+
readonly type: "event";
|
|
585
|
+
}, {
|
|
586
|
+
readonly anonymous: false;
|
|
587
|
+
readonly inputs: readonly [{
|
|
588
|
+
readonly indexed: false;
|
|
589
|
+
readonly internalType: "address";
|
|
590
|
+
readonly name: "tokenAddr";
|
|
591
|
+
readonly type: "address";
|
|
592
|
+
}];
|
|
593
|
+
readonly name: "SetUtilityToken";
|
|
594
|
+
readonly type: "event";
|
|
595
|
+
}, {
|
|
596
|
+
readonly anonymous: false;
|
|
597
|
+
readonly inputs: readonly [{
|
|
598
|
+
readonly indexed: true;
|
|
599
|
+
readonly internalType: "uint24";
|
|
600
|
+
readonly name: "perpetualId";
|
|
601
|
+
readonly type: "uint24";
|
|
602
|
+
}, {
|
|
603
|
+
readonly indexed: true;
|
|
604
|
+
readonly internalType: "address";
|
|
605
|
+
readonly name: "trader";
|
|
606
|
+
readonly type: "address";
|
|
607
|
+
}, {
|
|
608
|
+
readonly indexed: false;
|
|
609
|
+
readonly internalType: "int256";
|
|
610
|
+
readonly name: "amount";
|
|
611
|
+
readonly type: "int256";
|
|
612
|
+
}];
|
|
613
|
+
readonly name: "Settle";
|
|
614
|
+
readonly type: "event";
|
|
615
|
+
}, {
|
|
616
|
+
readonly anonymous: false;
|
|
617
|
+
readonly inputs: readonly [{
|
|
618
|
+
readonly indexed: true;
|
|
619
|
+
readonly internalType: "uint24";
|
|
620
|
+
readonly name: "perpetualId";
|
|
621
|
+
readonly type: "uint24";
|
|
622
|
+
}];
|
|
623
|
+
readonly name: "SettleState";
|
|
624
|
+
readonly type: "event";
|
|
625
|
+
}, {
|
|
626
|
+
readonly anonymous: false;
|
|
627
|
+
readonly inputs: readonly [{
|
|
628
|
+
readonly indexed: true;
|
|
629
|
+
readonly internalType: "uint24";
|
|
630
|
+
readonly name: "perpetualId";
|
|
631
|
+
readonly type: "uint24";
|
|
632
|
+
}];
|
|
633
|
+
readonly name: "SettlementComplete";
|
|
634
|
+
readonly type: "event";
|
|
635
|
+
}, {
|
|
636
|
+
readonly anonymous: false;
|
|
637
|
+
readonly inputs: readonly [{
|
|
638
|
+
readonly indexed: true;
|
|
639
|
+
readonly internalType: "uint24";
|
|
640
|
+
readonly name: "perpetualId";
|
|
641
|
+
readonly type: "uint24";
|
|
642
|
+
}, {
|
|
643
|
+
readonly indexed: true;
|
|
644
|
+
readonly internalType: "address";
|
|
645
|
+
readonly name: "trader";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
}, {
|
|
648
|
+
readonly indexed: false;
|
|
649
|
+
readonly internalType: "int128";
|
|
650
|
+
readonly name: "amount";
|
|
651
|
+
readonly type: "int128";
|
|
652
|
+
}];
|
|
653
|
+
readonly name: "TokensDeposited";
|
|
654
|
+
readonly type: "event";
|
|
655
|
+
}, {
|
|
656
|
+
readonly anonymous: false;
|
|
657
|
+
readonly inputs: readonly [{
|
|
658
|
+
readonly indexed: true;
|
|
659
|
+
readonly internalType: "uint24";
|
|
660
|
+
readonly name: "perpetualId";
|
|
661
|
+
readonly type: "uint24";
|
|
662
|
+
}, {
|
|
663
|
+
readonly indexed: true;
|
|
664
|
+
readonly internalType: "address";
|
|
665
|
+
readonly name: "trader";
|
|
666
|
+
readonly type: "address";
|
|
667
|
+
}, {
|
|
668
|
+
readonly indexed: false;
|
|
669
|
+
readonly internalType: "int128";
|
|
670
|
+
readonly name: "amount";
|
|
671
|
+
readonly type: "int128";
|
|
672
|
+
}];
|
|
673
|
+
readonly name: "TokensWithdrawn";
|
|
674
|
+
readonly type: "event";
|
|
675
|
+
}, {
|
|
676
|
+
readonly anonymous: false;
|
|
677
|
+
readonly inputs: readonly [{
|
|
678
|
+
readonly indexed: true;
|
|
679
|
+
readonly internalType: "uint24";
|
|
680
|
+
readonly name: "perpetualId";
|
|
681
|
+
readonly type: "uint24";
|
|
682
|
+
}, {
|
|
683
|
+
readonly indexed: true;
|
|
684
|
+
readonly internalType: "address";
|
|
685
|
+
readonly name: "trader";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
}, {
|
|
688
|
+
readonly components: readonly [{
|
|
689
|
+
readonly internalType: "uint16";
|
|
690
|
+
readonly name: "leverageTDR";
|
|
691
|
+
readonly type: "uint16";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "uint16";
|
|
694
|
+
readonly name: "brokerFeeTbps";
|
|
695
|
+
readonly type: "uint16";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "uint24";
|
|
698
|
+
readonly name: "iPerpetualId";
|
|
699
|
+
readonly type: "uint24";
|
|
700
|
+
}, {
|
|
701
|
+
readonly internalType: "address";
|
|
702
|
+
readonly name: "traderAddr";
|
|
703
|
+
readonly type: "address";
|
|
704
|
+
}, {
|
|
705
|
+
readonly internalType: "uint32";
|
|
706
|
+
readonly name: "executionTimestamp";
|
|
707
|
+
readonly type: "uint32";
|
|
708
|
+
}, {
|
|
709
|
+
readonly internalType: "address";
|
|
710
|
+
readonly name: "brokerAddr";
|
|
711
|
+
readonly type: "address";
|
|
712
|
+
}, {
|
|
713
|
+
readonly internalType: "uint32";
|
|
714
|
+
readonly name: "submittedTimestamp";
|
|
715
|
+
readonly type: "uint32";
|
|
716
|
+
}, {
|
|
717
|
+
readonly internalType: "uint32";
|
|
718
|
+
readonly name: "flags";
|
|
719
|
+
readonly type: "uint32";
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "uint32";
|
|
722
|
+
readonly name: "iDeadline";
|
|
723
|
+
readonly type: "uint32";
|
|
724
|
+
}, {
|
|
725
|
+
readonly internalType: "address";
|
|
726
|
+
readonly name: "executorAddr";
|
|
727
|
+
readonly type: "address";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "int128";
|
|
730
|
+
readonly name: "fAmount";
|
|
731
|
+
readonly type: "int128";
|
|
732
|
+
}, {
|
|
733
|
+
readonly internalType: "int128";
|
|
734
|
+
readonly name: "fLimitPrice";
|
|
735
|
+
readonly type: "int128";
|
|
736
|
+
}, {
|
|
737
|
+
readonly internalType: "int128";
|
|
738
|
+
readonly name: "fTriggerPrice";
|
|
739
|
+
readonly type: "int128";
|
|
740
|
+
}, {
|
|
741
|
+
readonly internalType: "bytes";
|
|
742
|
+
readonly name: "brokerSignature";
|
|
743
|
+
readonly type: "bytes";
|
|
744
|
+
}];
|
|
745
|
+
readonly indexed: false;
|
|
746
|
+
readonly internalType: "struct IPerpetualOrder.Order";
|
|
747
|
+
readonly name: "order";
|
|
748
|
+
readonly type: "tuple";
|
|
749
|
+
}, {
|
|
750
|
+
readonly indexed: false;
|
|
751
|
+
readonly internalType: "bytes32";
|
|
752
|
+
readonly name: "orderDigest";
|
|
753
|
+
readonly type: "bytes32";
|
|
754
|
+
}, {
|
|
755
|
+
readonly indexed: false;
|
|
756
|
+
readonly internalType: "int128";
|
|
757
|
+
readonly name: "newPositionSizeBC";
|
|
758
|
+
readonly type: "int128";
|
|
759
|
+
}, {
|
|
760
|
+
readonly indexed: false;
|
|
761
|
+
readonly internalType: "int128";
|
|
762
|
+
readonly name: "price";
|
|
763
|
+
readonly type: "int128";
|
|
764
|
+
}, {
|
|
765
|
+
readonly indexed: false;
|
|
766
|
+
readonly internalType: "int128";
|
|
767
|
+
readonly name: "fFeeCC";
|
|
768
|
+
readonly type: "int128";
|
|
769
|
+
}, {
|
|
770
|
+
readonly indexed: false;
|
|
771
|
+
readonly internalType: "int128";
|
|
772
|
+
readonly name: "fPnlCC";
|
|
773
|
+
readonly type: "int128";
|
|
774
|
+
}, {
|
|
775
|
+
readonly indexed: false;
|
|
776
|
+
readonly internalType: "int128";
|
|
777
|
+
readonly name: "fB2C";
|
|
778
|
+
readonly type: "int128";
|
|
779
|
+
}];
|
|
780
|
+
readonly name: "Trade";
|
|
781
|
+
readonly type: "event";
|
|
782
|
+
}, {
|
|
783
|
+
readonly anonymous: false;
|
|
784
|
+
readonly inputs: readonly [{
|
|
785
|
+
readonly indexed: false;
|
|
786
|
+
readonly internalType: "string";
|
|
787
|
+
readonly name: "name";
|
|
788
|
+
readonly type: "string";
|
|
789
|
+
}, {
|
|
790
|
+
readonly indexed: false;
|
|
791
|
+
readonly internalType: "address";
|
|
792
|
+
readonly name: "oldOBFactory";
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
}, {
|
|
795
|
+
readonly indexed: false;
|
|
796
|
+
readonly internalType: "address";
|
|
797
|
+
readonly name: "newOBFactory";
|
|
798
|
+
readonly type: "address";
|
|
799
|
+
}];
|
|
800
|
+
readonly name: "TransferAddressTo";
|
|
801
|
+
readonly type: "event";
|
|
802
|
+
}, {
|
|
803
|
+
readonly anonymous: false;
|
|
804
|
+
readonly inputs: readonly [{
|
|
805
|
+
readonly indexed: true;
|
|
806
|
+
readonly internalType: "uint8";
|
|
807
|
+
readonly name: "poolId";
|
|
808
|
+
readonly type: "uint8";
|
|
809
|
+
}, {
|
|
810
|
+
readonly indexed: false;
|
|
811
|
+
readonly internalType: "uint32";
|
|
812
|
+
readonly name: "iLots";
|
|
813
|
+
readonly type: "uint32";
|
|
814
|
+
}, {
|
|
815
|
+
readonly indexed: false;
|
|
816
|
+
readonly internalType: "uint32";
|
|
817
|
+
readonly name: "iNewBrokerLots";
|
|
818
|
+
readonly type: "uint32";
|
|
819
|
+
}];
|
|
820
|
+
readonly name: "UpdateBrokerAddedCash";
|
|
821
|
+
readonly type: "event";
|
|
822
|
+
}, {
|
|
823
|
+
readonly anonymous: false;
|
|
824
|
+
readonly inputs: readonly [{
|
|
825
|
+
readonly indexed: true;
|
|
826
|
+
readonly internalType: "uint24";
|
|
827
|
+
readonly name: "perpetualId";
|
|
828
|
+
readonly type: "uint24";
|
|
829
|
+
}, {
|
|
830
|
+
readonly indexed: false;
|
|
831
|
+
readonly internalType: "int128";
|
|
832
|
+
readonly name: "fFundingRate";
|
|
833
|
+
readonly type: "int128";
|
|
834
|
+
}];
|
|
835
|
+
readonly name: "UpdateFundingRate";
|
|
836
|
+
readonly type: "event";
|
|
837
|
+
}, {
|
|
838
|
+
readonly anonymous: false;
|
|
839
|
+
readonly inputs: readonly [{
|
|
840
|
+
readonly indexed: true;
|
|
841
|
+
readonly internalType: "uint24";
|
|
842
|
+
readonly name: "perpetualId";
|
|
843
|
+
readonly type: "uint24";
|
|
844
|
+
}, {
|
|
845
|
+
readonly indexed: true;
|
|
846
|
+
readonly internalType: "address";
|
|
847
|
+
readonly name: "trader";
|
|
848
|
+
readonly type: "address";
|
|
849
|
+
}, {
|
|
850
|
+
readonly indexed: false;
|
|
851
|
+
readonly internalType: "int128";
|
|
852
|
+
readonly name: "fFundingPaymentCC";
|
|
853
|
+
readonly type: "int128";
|
|
854
|
+
}];
|
|
855
|
+
readonly name: "UpdateMarginAccount";
|
|
856
|
+
readonly type: "event";
|
|
857
|
+
}, {
|
|
858
|
+
readonly anonymous: false;
|
|
859
|
+
readonly inputs: readonly [{
|
|
860
|
+
readonly indexed: true;
|
|
861
|
+
readonly internalType: "uint24";
|
|
862
|
+
readonly name: "perpetualId";
|
|
863
|
+
readonly type: "uint24";
|
|
864
|
+
}, {
|
|
865
|
+
readonly indexed: false;
|
|
866
|
+
readonly internalType: "int128";
|
|
867
|
+
readonly name: "fMidPricePremium";
|
|
868
|
+
readonly type: "int128";
|
|
869
|
+
}, {
|
|
870
|
+
readonly indexed: false;
|
|
871
|
+
readonly internalType: "int128";
|
|
872
|
+
readonly name: "fMarkPricePremium";
|
|
873
|
+
readonly type: "int128";
|
|
874
|
+
}, {
|
|
875
|
+
readonly indexed: false;
|
|
876
|
+
readonly internalType: "int128";
|
|
877
|
+
readonly name: "fSpotIndexPrice";
|
|
878
|
+
readonly type: "int128";
|
|
879
|
+
}];
|
|
880
|
+
readonly name: "UpdateMarkPrice";
|
|
881
|
+
readonly type: "event";
|
|
882
|
+
}, {
|
|
883
|
+
readonly inputs: readonly [{
|
|
884
|
+
readonly internalType: "uint24";
|
|
885
|
+
readonly name: "_perpetualId";
|
|
886
|
+
readonly type: "uint24";
|
|
887
|
+
}];
|
|
888
|
+
readonly name: "activatePerpetual";
|
|
889
|
+
readonly outputs: readonly [];
|
|
890
|
+
readonly stateMutability: "nonpayable";
|
|
891
|
+
readonly type: "function";
|
|
892
|
+
}, {
|
|
893
|
+
readonly inputs: readonly [{
|
|
894
|
+
readonly internalType: "uint8";
|
|
895
|
+
readonly name: "_iPoolIndex";
|
|
896
|
+
readonly type: "uint8";
|
|
897
|
+
}, {
|
|
898
|
+
readonly internalType: "uint256";
|
|
899
|
+
readonly name: "_tokenAmount";
|
|
900
|
+
readonly type: "uint256";
|
|
901
|
+
}];
|
|
902
|
+
readonly name: "addLiquidity";
|
|
903
|
+
readonly outputs: readonly [];
|
|
904
|
+
readonly stateMutability: "nonpayable";
|
|
905
|
+
readonly type: "function";
|
|
906
|
+
}, {
|
|
907
|
+
readonly inputs: readonly [{
|
|
908
|
+
readonly internalType: "uint24";
|
|
909
|
+
readonly name: "_perpetualId";
|
|
910
|
+
readonly type: "uint24";
|
|
911
|
+
}, {
|
|
912
|
+
readonly internalType: "int128";
|
|
913
|
+
readonly name: "_fSettlementS2";
|
|
914
|
+
readonly type: "int128";
|
|
915
|
+
}, {
|
|
916
|
+
readonly internalType: "int128";
|
|
917
|
+
readonly name: "_fSettlementS3";
|
|
918
|
+
readonly type: "int128";
|
|
919
|
+
}];
|
|
920
|
+
readonly name: "adjustSettlementPrice";
|
|
921
|
+
readonly outputs: readonly [];
|
|
922
|
+
readonly stateMutability: "nonpayable";
|
|
923
|
+
readonly type: "function";
|
|
924
|
+
}, {
|
|
925
|
+
readonly inputs: readonly [{
|
|
926
|
+
readonly internalType: "int128[2]";
|
|
927
|
+
readonly name: "_fK2AMM";
|
|
928
|
+
readonly type: "int128[2]";
|
|
929
|
+
}, {
|
|
930
|
+
readonly internalType: "int128";
|
|
931
|
+
readonly name: "_fk2Trader";
|
|
932
|
+
readonly type: "int128";
|
|
933
|
+
}, {
|
|
934
|
+
readonly internalType: "int128";
|
|
935
|
+
readonly name: "_fCoverN";
|
|
936
|
+
readonly type: "int128";
|
|
937
|
+
}, {
|
|
938
|
+
readonly internalType: "int128[2]";
|
|
939
|
+
readonly name: "fStressRet2";
|
|
940
|
+
readonly type: "int128[2]";
|
|
941
|
+
}, {
|
|
942
|
+
readonly internalType: "int128[2]";
|
|
943
|
+
readonly name: "fStressRet3";
|
|
944
|
+
readonly type: "int128[2]";
|
|
945
|
+
}, {
|
|
946
|
+
readonly internalType: "int128[2]";
|
|
947
|
+
readonly name: "fIndexPrices";
|
|
948
|
+
readonly type: "int128[2]";
|
|
949
|
+
}, {
|
|
950
|
+
readonly internalType: "enum AMMPerpLogic.CollateralCurrency";
|
|
951
|
+
readonly name: "_eCCY";
|
|
952
|
+
readonly type: "uint8";
|
|
953
|
+
}];
|
|
954
|
+
readonly name: "calculateDefaultFundSize";
|
|
955
|
+
readonly outputs: readonly [{
|
|
956
|
+
readonly internalType: "int128";
|
|
957
|
+
readonly name: "";
|
|
958
|
+
readonly type: "int128";
|
|
959
|
+
}];
|
|
960
|
+
readonly stateMutability: "pure";
|
|
961
|
+
readonly type: "function";
|
|
962
|
+
}, {
|
|
963
|
+
readonly inputs: readonly [{
|
|
964
|
+
readonly components: readonly [{
|
|
965
|
+
readonly internalType: "int128";
|
|
966
|
+
readonly name: "fLockedValue1";
|
|
967
|
+
readonly type: "int128";
|
|
968
|
+
}, {
|
|
969
|
+
readonly internalType: "int128";
|
|
970
|
+
readonly name: "fPoolM1";
|
|
971
|
+
readonly type: "int128";
|
|
972
|
+
}, {
|
|
973
|
+
readonly internalType: "int128";
|
|
974
|
+
readonly name: "fPoolM2";
|
|
975
|
+
readonly type: "int128";
|
|
976
|
+
}, {
|
|
977
|
+
readonly internalType: "int128";
|
|
978
|
+
readonly name: "fPoolM3";
|
|
979
|
+
readonly type: "int128";
|
|
980
|
+
}, {
|
|
981
|
+
readonly internalType: "int128";
|
|
982
|
+
readonly name: "fAMM_K2";
|
|
983
|
+
readonly type: "int128";
|
|
984
|
+
}, {
|
|
985
|
+
readonly internalType: "int128";
|
|
986
|
+
readonly name: "fCurrentTraderExposureEMA";
|
|
987
|
+
readonly type: "int128";
|
|
988
|
+
}];
|
|
989
|
+
readonly internalType: "struct AMMPerpLogic.AMMVariables";
|
|
990
|
+
readonly name: "_ammVars";
|
|
991
|
+
readonly type: "tuple";
|
|
992
|
+
}, {
|
|
993
|
+
readonly components: readonly [{
|
|
994
|
+
readonly internalType: "int128";
|
|
995
|
+
readonly name: "fIndexPriceS2";
|
|
996
|
+
readonly type: "int128";
|
|
997
|
+
}, {
|
|
998
|
+
readonly internalType: "int128";
|
|
999
|
+
readonly name: "fIndexPriceS3";
|
|
1000
|
+
readonly type: "int128";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly internalType: "int128";
|
|
1003
|
+
readonly name: "fSigma2";
|
|
1004
|
+
readonly type: "int128";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly internalType: "int128";
|
|
1007
|
+
readonly name: "fSigma3";
|
|
1008
|
+
readonly type: "int128";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly internalType: "int128";
|
|
1011
|
+
readonly name: "fRho23";
|
|
1012
|
+
readonly type: "int128";
|
|
1013
|
+
}];
|
|
1014
|
+
readonly internalType: "struct AMMPerpLogic.MarketVariables";
|
|
1015
|
+
readonly name: "_mktVars";
|
|
1016
|
+
readonly type: "tuple";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly internalType: "int128";
|
|
1019
|
+
readonly name: "_fTradeAmount";
|
|
1020
|
+
readonly type: "int128";
|
|
1021
|
+
}, {
|
|
1022
|
+
readonly internalType: "int128";
|
|
1023
|
+
readonly name: "_fBidAskSpread";
|
|
1024
|
+
readonly type: "int128";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly internalType: "int128";
|
|
1027
|
+
readonly name: "_fIncentiveSpread";
|
|
1028
|
+
readonly type: "int128";
|
|
1029
|
+
}];
|
|
1030
|
+
readonly name: "calculatePerpetualPrice";
|
|
1031
|
+
readonly outputs: readonly [{
|
|
1032
|
+
readonly internalType: "int128";
|
|
1033
|
+
readonly name: "";
|
|
1034
|
+
readonly type: "int128";
|
|
1035
|
+
}];
|
|
1036
|
+
readonly stateMutability: "view";
|
|
1037
|
+
readonly type: "function";
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly inputs: readonly [{
|
|
1040
|
+
readonly components: readonly [{
|
|
1041
|
+
readonly internalType: "int128";
|
|
1042
|
+
readonly name: "fLockedValue1";
|
|
1043
|
+
readonly type: "int128";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly internalType: "int128";
|
|
1046
|
+
readonly name: "fPoolM1";
|
|
1047
|
+
readonly type: "int128";
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly internalType: "int128";
|
|
1050
|
+
readonly name: "fPoolM2";
|
|
1051
|
+
readonly type: "int128";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly internalType: "int128";
|
|
1054
|
+
readonly name: "fPoolM3";
|
|
1055
|
+
readonly type: "int128";
|
|
1056
|
+
}, {
|
|
1057
|
+
readonly internalType: "int128";
|
|
1058
|
+
readonly name: "fAMM_K2";
|
|
1059
|
+
readonly type: "int128";
|
|
1060
|
+
}, {
|
|
1061
|
+
readonly internalType: "int128";
|
|
1062
|
+
readonly name: "fCurrentTraderExposureEMA";
|
|
1063
|
+
readonly type: "int128";
|
|
1064
|
+
}];
|
|
1065
|
+
readonly internalType: "struct AMMPerpLogic.AMMVariables";
|
|
1066
|
+
readonly name: "_ammVars";
|
|
1067
|
+
readonly type: "tuple";
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly components: readonly [{
|
|
1070
|
+
readonly internalType: "int128";
|
|
1071
|
+
readonly name: "fIndexPriceS2";
|
|
1072
|
+
readonly type: "int128";
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly internalType: "int128";
|
|
1075
|
+
readonly name: "fIndexPriceS3";
|
|
1076
|
+
readonly type: "int128";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly internalType: "int128";
|
|
1079
|
+
readonly name: "fSigma2";
|
|
1080
|
+
readonly type: "int128";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly internalType: "int128";
|
|
1083
|
+
readonly name: "fSigma3";
|
|
1084
|
+
readonly type: "int128";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly internalType: "int128";
|
|
1087
|
+
readonly name: "fRho23";
|
|
1088
|
+
readonly type: "int128";
|
|
1089
|
+
}];
|
|
1090
|
+
readonly internalType: "struct AMMPerpLogic.MarketVariables";
|
|
1091
|
+
readonly name: "_mktVars";
|
|
1092
|
+
readonly type: "tuple";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly internalType: "int128";
|
|
1095
|
+
readonly name: "_fTradeAmount";
|
|
1096
|
+
readonly type: "int128";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly internalType: "bool";
|
|
1099
|
+
readonly name: "_withCDF";
|
|
1100
|
+
readonly type: "bool";
|
|
1101
|
+
}];
|
|
1102
|
+
readonly name: "calculateRiskNeutralPD";
|
|
1103
|
+
readonly outputs: readonly [{
|
|
1104
|
+
readonly internalType: "int128";
|
|
1105
|
+
readonly name: "";
|
|
1106
|
+
readonly type: "int128";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly internalType: "int128";
|
|
1109
|
+
readonly name: "";
|
|
1110
|
+
readonly type: "int128";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly stateMutability: "view";
|
|
1113
|
+
readonly type: "function";
|
|
1114
|
+
}, {
|
|
1115
|
+
readonly inputs: readonly [{
|
|
1116
|
+
readonly internalType: "uint24";
|
|
1117
|
+
readonly name: "_perpetualId";
|
|
1118
|
+
readonly type: "uint24";
|
|
1119
|
+
}];
|
|
1120
|
+
readonly name: "countActivePerpAccounts";
|
|
1121
|
+
readonly outputs: readonly [{
|
|
1122
|
+
readonly internalType: "uint256";
|
|
1123
|
+
readonly name: "";
|
|
1124
|
+
readonly type: "uint256";
|
|
1125
|
+
}];
|
|
1126
|
+
readonly stateMutability: "view";
|
|
1127
|
+
readonly type: "function";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly inputs: readonly [{
|
|
1130
|
+
readonly internalType: "address";
|
|
1131
|
+
readonly name: "_marginTokenAddress";
|
|
1132
|
+
readonly type: "address";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly internalType: "uint16";
|
|
1135
|
+
readonly name: "_iTargetPoolSizeUpdateTime";
|
|
1136
|
+
readonly type: "uint16";
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly internalType: "int128";
|
|
1139
|
+
readonly name: "_fBrokerCollateralLotSize";
|
|
1140
|
+
readonly type: "int128";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly internalType: "int128";
|
|
1143
|
+
readonly name: "_fCeilPnLShare";
|
|
1144
|
+
readonly type: "int128";
|
|
1145
|
+
}];
|
|
1146
|
+
readonly name: "createLiquidityPool";
|
|
1147
|
+
readonly outputs: readonly [{
|
|
1148
|
+
readonly internalType: "uint8";
|
|
1149
|
+
readonly name: "";
|
|
1150
|
+
readonly type: "uint8";
|
|
1151
|
+
}];
|
|
1152
|
+
readonly stateMutability: "nonpayable";
|
|
1153
|
+
readonly type: "function";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly inputs: readonly [{
|
|
1156
|
+
readonly internalType: "uint8";
|
|
1157
|
+
readonly name: "_iPoolId";
|
|
1158
|
+
readonly type: "uint8";
|
|
1159
|
+
}, {
|
|
1160
|
+
readonly internalType: "bytes4[2]";
|
|
1161
|
+
readonly name: "_baseQuoteS2";
|
|
1162
|
+
readonly type: "bytes4[2]";
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly internalType: "bytes4[2]";
|
|
1165
|
+
readonly name: "_baseQuoteS3";
|
|
1166
|
+
readonly type: "bytes4[2]";
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly internalType: "int128[7]";
|
|
1169
|
+
readonly name: "_baseParams";
|
|
1170
|
+
readonly type: "int128[7]";
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly internalType: "int128[5]";
|
|
1173
|
+
readonly name: "_underlyingRiskParams";
|
|
1174
|
+
readonly type: "int128[5]";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly internalType: "int128[12]";
|
|
1177
|
+
readonly name: "_defaultFundRiskParams";
|
|
1178
|
+
readonly type: "int128[12]";
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly internalType: "uint256";
|
|
1181
|
+
readonly name: "_eCollateralCurrency";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
}];
|
|
1184
|
+
readonly name: "createPerpetual";
|
|
1185
|
+
readonly outputs: readonly [];
|
|
1186
|
+
readonly stateMutability: "nonpayable";
|
|
1187
|
+
readonly type: "function";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly inputs: readonly [{
|
|
1190
|
+
readonly internalType: "uint24";
|
|
1191
|
+
readonly name: "_perpetualId";
|
|
1192
|
+
readonly type: "uint24";
|
|
1193
|
+
}];
|
|
1194
|
+
readonly name: "deactivatePerp";
|
|
1195
|
+
readonly outputs: readonly [];
|
|
1196
|
+
readonly stateMutability: "nonpayable";
|
|
1197
|
+
readonly type: "function";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly inputs: readonly [{
|
|
1200
|
+
readonly internalType: "uint8";
|
|
1201
|
+
readonly name: "_iPoolIdx";
|
|
1202
|
+
readonly type: "uint8";
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly internalType: "int128";
|
|
1205
|
+
readonly name: "_fAmount";
|
|
1206
|
+
readonly type: "int128";
|
|
1207
|
+
}];
|
|
1208
|
+
readonly name: "decreasePoolCash";
|
|
1209
|
+
readonly outputs: readonly [];
|
|
1210
|
+
readonly stateMutability: "nonpayable";
|
|
1211
|
+
readonly type: "function";
|
|
1212
|
+
}, {
|
|
1213
|
+
readonly inputs: readonly [{
|
|
1214
|
+
readonly internalType: "uint24";
|
|
1215
|
+
readonly name: "_iPerpetualId";
|
|
1216
|
+
readonly type: "uint24";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly internalType: "address";
|
|
1219
|
+
readonly name: "_traderAddr";
|
|
1220
|
+
readonly type: "address";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly internalType: "int128";
|
|
1223
|
+
readonly name: "_fAmount";
|
|
1224
|
+
readonly type: "int128";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly internalType: "bytes[]";
|
|
1227
|
+
readonly name: "_updateData";
|
|
1228
|
+
readonly type: "bytes[]";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly internalType: "uint64[]";
|
|
1231
|
+
readonly name: "_publishTimes";
|
|
1232
|
+
readonly type: "uint64[]";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly name: "deposit";
|
|
1235
|
+
readonly outputs: readonly [];
|
|
1236
|
+
readonly stateMutability: "payable";
|
|
1237
|
+
readonly type: "function";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly inputs: readonly [{
|
|
1240
|
+
readonly internalType: "uint8";
|
|
1241
|
+
readonly name: "_poolId";
|
|
1242
|
+
readonly type: "uint8";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly internalType: "uint32";
|
|
1245
|
+
readonly name: "_iLots";
|
|
1246
|
+
readonly type: "uint32";
|
|
1247
|
+
}];
|
|
1248
|
+
readonly name: "depositBrokerLots";
|
|
1249
|
+
readonly outputs: readonly [];
|
|
1250
|
+
readonly stateMutability: "nonpayable";
|
|
1251
|
+
readonly type: "function";
|
|
1252
|
+
}, {
|
|
1253
|
+
readonly inputs: readonly [{
|
|
1254
|
+
readonly internalType: "uint24";
|
|
1255
|
+
readonly name: "_iPerpetualId";
|
|
1256
|
+
readonly type: "uint24";
|
|
1257
|
+
}, {
|
|
1258
|
+
readonly internalType: "int128";
|
|
1259
|
+
readonly name: "_fDepositRequired";
|
|
1260
|
+
readonly type: "int128";
|
|
1261
|
+
}, {
|
|
1262
|
+
readonly components: readonly [{
|
|
1263
|
+
readonly internalType: "uint16";
|
|
1264
|
+
readonly name: "leverageTDR";
|
|
1265
|
+
readonly type: "uint16";
|
|
1266
|
+
}, {
|
|
1267
|
+
readonly internalType: "uint16";
|
|
1268
|
+
readonly name: "brokerFeeTbps";
|
|
1269
|
+
readonly type: "uint16";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly internalType: "uint24";
|
|
1272
|
+
readonly name: "iPerpetualId";
|
|
1273
|
+
readonly type: "uint24";
|
|
1274
|
+
}, {
|
|
1275
|
+
readonly internalType: "address";
|
|
1276
|
+
readonly name: "traderAddr";
|
|
1277
|
+
readonly type: "address";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly internalType: "uint32";
|
|
1280
|
+
readonly name: "executionTimestamp";
|
|
1281
|
+
readonly type: "uint32";
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly internalType: "address";
|
|
1284
|
+
readonly name: "brokerAddr";
|
|
1285
|
+
readonly type: "address";
|
|
1286
|
+
}, {
|
|
1287
|
+
readonly internalType: "uint32";
|
|
1288
|
+
readonly name: "submittedTimestamp";
|
|
1289
|
+
readonly type: "uint32";
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly internalType: "uint32";
|
|
1292
|
+
readonly name: "flags";
|
|
1293
|
+
readonly type: "uint32";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly internalType: "uint32";
|
|
1296
|
+
readonly name: "iDeadline";
|
|
1297
|
+
readonly type: "uint32";
|
|
1298
|
+
}, {
|
|
1299
|
+
readonly internalType: "address";
|
|
1300
|
+
readonly name: "executorAddr";
|
|
1301
|
+
readonly type: "address";
|
|
1302
|
+
}, {
|
|
1303
|
+
readonly internalType: "int128";
|
|
1304
|
+
readonly name: "fAmount";
|
|
1305
|
+
readonly type: "int128";
|
|
1306
|
+
}, {
|
|
1307
|
+
readonly internalType: "int128";
|
|
1308
|
+
readonly name: "fLimitPrice";
|
|
1309
|
+
readonly type: "int128";
|
|
1310
|
+
}, {
|
|
1311
|
+
readonly internalType: "int128";
|
|
1312
|
+
readonly name: "fTriggerPrice";
|
|
1313
|
+
readonly type: "int128";
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly internalType: "bytes";
|
|
1316
|
+
readonly name: "brokerSignature";
|
|
1317
|
+
readonly type: "bytes";
|
|
1318
|
+
}];
|
|
1319
|
+
readonly internalType: "struct IPerpetualOrder.Order";
|
|
1320
|
+
readonly name: "_order";
|
|
1321
|
+
readonly type: "tuple";
|
|
1322
|
+
}];
|
|
1323
|
+
readonly name: "depositMarginForOpeningTrade";
|
|
1324
|
+
readonly outputs: readonly [{
|
|
1325
|
+
readonly internalType: "bool";
|
|
1326
|
+
readonly name: "";
|
|
1327
|
+
readonly type: "bool";
|
|
1328
|
+
}];
|
|
1329
|
+
readonly stateMutability: "nonpayable";
|
|
1330
|
+
readonly type: "function";
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly inputs: readonly [{
|
|
1333
|
+
readonly internalType: "uint8";
|
|
1334
|
+
readonly name: "_poolId";
|
|
1335
|
+
readonly type: "uint8";
|
|
1336
|
+
}, {
|
|
1337
|
+
readonly internalType: "int128";
|
|
1338
|
+
readonly name: "_fAmount";
|
|
1339
|
+
readonly type: "int128";
|
|
1340
|
+
}];
|
|
1341
|
+
readonly name: "depositToDefaultFund";
|
|
1342
|
+
readonly outputs: readonly [];
|
|
1343
|
+
readonly stateMutability: "nonpayable";
|
|
1344
|
+
readonly type: "function";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly inputs: readonly [{
|
|
1347
|
+
readonly components: readonly [{
|
|
1348
|
+
readonly internalType: "uint16";
|
|
1349
|
+
readonly name: "leverageTDR";
|
|
1350
|
+
readonly type: "uint16";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly internalType: "uint16";
|
|
1353
|
+
readonly name: "brokerFeeTbps";
|
|
1354
|
+
readonly type: "uint16";
|
|
1355
|
+
}, {
|
|
1356
|
+
readonly internalType: "uint24";
|
|
1357
|
+
readonly name: "iPerpetualId";
|
|
1358
|
+
readonly type: "uint24";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly internalType: "address";
|
|
1361
|
+
readonly name: "traderAddr";
|
|
1362
|
+
readonly type: "address";
|
|
1363
|
+
}, {
|
|
1364
|
+
readonly internalType: "uint32";
|
|
1365
|
+
readonly name: "executionTimestamp";
|
|
1366
|
+
readonly type: "uint32";
|
|
1367
|
+
}, {
|
|
1368
|
+
readonly internalType: "address";
|
|
1369
|
+
readonly name: "brokerAddr";
|
|
1370
|
+
readonly type: "address";
|
|
1371
|
+
}, {
|
|
1372
|
+
readonly internalType: "uint32";
|
|
1373
|
+
readonly name: "submittedTimestamp";
|
|
1374
|
+
readonly type: "uint32";
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly internalType: "uint32";
|
|
1377
|
+
readonly name: "flags";
|
|
1378
|
+
readonly type: "uint32";
|
|
1379
|
+
}, {
|
|
1380
|
+
readonly internalType: "uint32";
|
|
1381
|
+
readonly name: "iDeadline";
|
|
1382
|
+
readonly type: "uint32";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly internalType: "address";
|
|
1385
|
+
readonly name: "executorAddr";
|
|
1386
|
+
readonly type: "address";
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly internalType: "int128";
|
|
1389
|
+
readonly name: "fAmount";
|
|
1390
|
+
readonly type: "int128";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly internalType: "int128";
|
|
1393
|
+
readonly name: "fLimitPrice";
|
|
1394
|
+
readonly type: "int128";
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly internalType: "int128";
|
|
1397
|
+
readonly name: "fTriggerPrice";
|
|
1398
|
+
readonly type: "int128";
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly internalType: "bytes";
|
|
1401
|
+
readonly name: "brokerSignature";
|
|
1402
|
+
readonly type: "bytes";
|
|
1403
|
+
}];
|
|
1404
|
+
readonly internalType: "struct IPerpetualOrder.Order";
|
|
1405
|
+
readonly name: "_order";
|
|
1406
|
+
readonly type: "tuple";
|
|
1407
|
+
}];
|
|
1408
|
+
readonly name: "determineExchangeFee";
|
|
1409
|
+
readonly outputs: readonly [{
|
|
1410
|
+
readonly internalType: "uint16";
|
|
1411
|
+
readonly name: "";
|
|
1412
|
+
readonly type: "uint16";
|
|
1413
|
+
}];
|
|
1414
|
+
readonly stateMutability: "view";
|
|
1415
|
+
readonly type: "function";
|
|
1416
|
+
}, {
|
|
1417
|
+
readonly inputs: readonly [{
|
|
1418
|
+
readonly components: readonly [{
|
|
1419
|
+
readonly internalType: "uint16";
|
|
1420
|
+
readonly name: "leverageTDR";
|
|
1421
|
+
readonly type: "uint16";
|
|
1422
|
+
}, {
|
|
1423
|
+
readonly internalType: "uint16";
|
|
1424
|
+
readonly name: "brokerFeeTbps";
|
|
1425
|
+
readonly type: "uint16";
|
|
1426
|
+
}, {
|
|
1427
|
+
readonly internalType: "uint24";
|
|
1428
|
+
readonly name: "iPerpetualId";
|
|
1429
|
+
readonly type: "uint24";
|
|
1430
|
+
}, {
|
|
1431
|
+
readonly internalType: "address";
|
|
1432
|
+
readonly name: "traderAddr";
|
|
1433
|
+
readonly type: "address";
|
|
1434
|
+
}, {
|
|
1435
|
+
readonly internalType: "uint32";
|
|
1436
|
+
readonly name: "executionTimestamp";
|
|
1437
|
+
readonly type: "uint32";
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly internalType: "address";
|
|
1440
|
+
readonly name: "brokerAddr";
|
|
1441
|
+
readonly type: "address";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly internalType: "uint32";
|
|
1444
|
+
readonly name: "submittedTimestamp";
|
|
1445
|
+
readonly type: "uint32";
|
|
1446
|
+
}, {
|
|
1447
|
+
readonly internalType: "uint32";
|
|
1448
|
+
readonly name: "flags";
|
|
1449
|
+
readonly type: "uint32";
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly internalType: "uint32";
|
|
1452
|
+
readonly name: "iDeadline";
|
|
1453
|
+
readonly type: "uint32";
|
|
1454
|
+
}, {
|
|
1455
|
+
readonly internalType: "address";
|
|
1456
|
+
readonly name: "executorAddr";
|
|
1457
|
+
readonly type: "address";
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly internalType: "int128";
|
|
1460
|
+
readonly name: "fAmount";
|
|
1461
|
+
readonly type: "int128";
|
|
1462
|
+
}, {
|
|
1463
|
+
readonly internalType: "int128";
|
|
1464
|
+
readonly name: "fLimitPrice";
|
|
1465
|
+
readonly type: "int128";
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly internalType: "int128";
|
|
1468
|
+
readonly name: "fTriggerPrice";
|
|
1469
|
+
readonly type: "int128";
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly internalType: "bytes";
|
|
1472
|
+
readonly name: "brokerSignature";
|
|
1473
|
+
readonly type: "bytes";
|
|
1474
|
+
}];
|
|
1475
|
+
readonly internalType: "struct IPerpetualOrder.Order";
|
|
1476
|
+
readonly name: "_order";
|
|
1477
|
+
readonly type: "tuple";
|
|
1478
|
+
}, {
|
|
1479
|
+
readonly internalType: "uint16";
|
|
1480
|
+
readonly name: "_brkrFeeTbps";
|
|
1481
|
+
readonly type: "uint16";
|
|
1482
|
+
}, {
|
|
1483
|
+
readonly internalType: "uint16";
|
|
1484
|
+
readonly name: "_protocolFeeTbps";
|
|
1485
|
+
readonly type: "uint16";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly internalType: "bool";
|
|
1488
|
+
readonly name: "_hasOpened";
|
|
1489
|
+
readonly type: "bool";
|
|
1490
|
+
}];
|
|
1491
|
+
readonly name: "distributeFees";
|
|
1492
|
+
readonly outputs: readonly [{
|
|
1493
|
+
readonly internalType: "int128";
|
|
1494
|
+
readonly name: "";
|
|
1495
|
+
readonly type: "int128";
|
|
1496
|
+
}];
|
|
1497
|
+
readonly stateMutability: "nonpayable";
|
|
1498
|
+
readonly type: "function";
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly inputs: readonly [{
|
|
1501
|
+
readonly internalType: "uint24";
|
|
1502
|
+
readonly name: "_iPerpetualId";
|
|
1503
|
+
readonly type: "uint24";
|
|
1504
|
+
}, {
|
|
1505
|
+
readonly internalType: "address";
|
|
1506
|
+
readonly name: "_traderAddr";
|
|
1507
|
+
readonly type: "address";
|
|
1508
|
+
}, {
|
|
1509
|
+
readonly internalType: "int128";
|
|
1510
|
+
readonly name: "_fDeltaPositionBC";
|
|
1511
|
+
readonly type: "int128";
|
|
1512
|
+
}, {
|
|
1513
|
+
readonly internalType: "uint16";
|
|
1514
|
+
readonly name: "_protocolFeeTbps";
|
|
1515
|
+
readonly type: "uint16";
|
|
1516
|
+
}];
|
|
1517
|
+
readonly name: "distributeFeesLiquidation";
|
|
1518
|
+
readonly outputs: readonly [{
|
|
1519
|
+
readonly internalType: "int128";
|
|
1520
|
+
readonly name: "";
|
|
1521
|
+
readonly type: "int128";
|
|
1522
|
+
}];
|
|
1523
|
+
readonly stateMutability: "nonpayable";
|
|
1524
|
+
readonly type: "function";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly inputs: readonly [{
|
|
1527
|
+
readonly internalType: "uint24";
|
|
1528
|
+
readonly name: "_perpetualId";
|
|
1529
|
+
readonly type: "uint24";
|
|
1530
|
+
}, {
|
|
1531
|
+
readonly internalType: "bytes32";
|
|
1532
|
+
readonly name: "_digest";
|
|
1533
|
+
readonly type: "bytes32";
|
|
1534
|
+
}];
|
|
1535
|
+
readonly name: "executeCancelOrder";
|
|
1536
|
+
readonly outputs: readonly [];
|
|
1537
|
+
readonly stateMutability: "nonpayable";
|
|
1538
|
+
readonly type: "function";
|
|
1539
|
+
}, {
|
|
1540
|
+
readonly inputs: readonly [{
|
|
1541
|
+
readonly internalType: "uint8";
|
|
1542
|
+
readonly name: "_poolId";
|
|
1543
|
+
readonly type: "uint8";
|
|
1544
|
+
}, {
|
|
1545
|
+
readonly internalType: "address";
|
|
1546
|
+
readonly name: "_lpAddr";
|
|
1547
|
+
readonly type: "address";
|
|
1548
|
+
}];
|
|
1549
|
+
readonly name: "executeLiquidityWithdrawal";
|
|
1550
|
+
readonly outputs: readonly [];
|
|
1551
|
+
readonly stateMutability: "nonpayable";
|
|
1552
|
+
readonly type: "function";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly inputs: readonly [{
|
|
1555
|
+
readonly internalType: "uint24";
|
|
1556
|
+
readonly name: "_iPerpetualId";
|
|
1557
|
+
readonly type: "uint24";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly internalType: "address";
|
|
1560
|
+
readonly name: "_traderAddr";
|
|
1561
|
+
readonly type: "address";
|
|
1562
|
+
}, {
|
|
1563
|
+
readonly internalType: "int128";
|
|
1564
|
+
readonly name: "_fTraderPos";
|
|
1565
|
+
readonly type: "int128";
|
|
1566
|
+
}, {
|
|
1567
|
+
readonly internalType: "int128";
|
|
1568
|
+
readonly name: "_fTradeAmount";
|
|
1569
|
+
readonly type: "int128";
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly internalType: "int128";
|
|
1572
|
+
readonly name: "_fPrice";
|
|
1573
|
+
readonly type: "int128";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly internalType: "bool";
|
|
1576
|
+
readonly name: "_isClose";
|
|
1577
|
+
readonly type: "bool";
|
|
1578
|
+
}];
|
|
1579
|
+
readonly name: "executeTrade";
|
|
1580
|
+
readonly outputs: readonly [{
|
|
1581
|
+
readonly internalType: "int128";
|
|
1582
|
+
readonly name: "";
|
|
1583
|
+
readonly type: "int128";
|
|
1584
|
+
}];
|
|
1585
|
+
readonly stateMutability: "nonpayable";
|
|
1586
|
+
readonly type: "function";
|
|
1587
|
+
}, {
|
|
1588
|
+
readonly inputs: readonly [];
|
|
1589
|
+
readonly name: "getAMMPerpLogic";
|
|
1590
|
+
readonly outputs: readonly [{
|
|
1591
|
+
readonly internalType: "address";
|
|
1592
|
+
readonly name: "";
|
|
1593
|
+
readonly type: "address";
|
|
1594
|
+
}];
|
|
1595
|
+
readonly stateMutability: "view";
|
|
1596
|
+
readonly type: "function";
|
|
1597
|
+
}, {
|
|
1598
|
+
readonly inputs: readonly [{
|
|
1599
|
+
readonly internalType: "uint24";
|
|
1600
|
+
readonly name: "_perpetualId";
|
|
1601
|
+
readonly type: "uint24";
|
|
1602
|
+
}, {
|
|
1603
|
+
readonly internalType: "int128[2]";
|
|
1604
|
+
readonly name: "_fIndexPrice";
|
|
1605
|
+
readonly type: "int128[2]";
|
|
1606
|
+
}];
|
|
1607
|
+
readonly name: "getAMMState";
|
|
1608
|
+
readonly outputs: readonly [{
|
|
1609
|
+
readonly internalType: "int128[15]";
|
|
1610
|
+
readonly name: "";
|
|
1611
|
+
readonly type: "int128[15]";
|
|
1612
|
+
}];
|
|
1613
|
+
readonly stateMutability: "view";
|
|
1614
|
+
readonly type: "function";
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly inputs: readonly [{
|
|
1617
|
+
readonly internalType: "uint24";
|
|
1618
|
+
readonly name: "_perpetualId";
|
|
1619
|
+
readonly type: "uint24";
|
|
1620
|
+
}];
|
|
1621
|
+
readonly name: "getActivePerpAccounts";
|
|
1622
|
+
readonly outputs: readonly [{
|
|
1623
|
+
readonly internalType: "address[]";
|
|
1624
|
+
readonly name: "";
|
|
1625
|
+
readonly type: "address[]";
|
|
1626
|
+
}];
|
|
1627
|
+
readonly stateMutability: "view";
|
|
1628
|
+
readonly type: "function";
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly inputs: readonly [{
|
|
1631
|
+
readonly internalType: "uint24";
|
|
1632
|
+
readonly name: "_perpetualId";
|
|
1633
|
+
readonly type: "uint24";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly internalType: "uint256";
|
|
1636
|
+
readonly name: "_from";
|
|
1637
|
+
readonly type: "uint256";
|
|
1638
|
+
}, {
|
|
1639
|
+
readonly internalType: "uint256";
|
|
1640
|
+
readonly name: "_to";
|
|
1641
|
+
readonly type: "uint256";
|
|
1642
|
+
}];
|
|
1643
|
+
readonly name: "getActivePerpAccountsByChunks";
|
|
1644
|
+
readonly outputs: readonly [{
|
|
1645
|
+
readonly internalType: "address[]";
|
|
1646
|
+
readonly name: "";
|
|
1647
|
+
readonly type: "address[]";
|
|
1648
|
+
}];
|
|
1649
|
+
readonly stateMutability: "view";
|
|
1650
|
+
readonly type: "function";
|
|
1651
|
+
}, {
|
|
1652
|
+
readonly inputs: readonly [{
|
|
1653
|
+
readonly internalType: "uint8";
|
|
1654
|
+
readonly name: "_poolId";
|
|
1655
|
+
readonly type: "uint8";
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly internalType: "address";
|
|
1658
|
+
readonly name: "_brokerAddr";
|
|
1659
|
+
readonly type: "address";
|
|
1660
|
+
}];
|
|
1661
|
+
readonly name: "getBrokerDesignation";
|
|
1662
|
+
readonly outputs: readonly [{
|
|
1663
|
+
readonly internalType: "uint32";
|
|
1664
|
+
readonly name: "";
|
|
1665
|
+
readonly type: "uint32";
|
|
1666
|
+
}];
|
|
1667
|
+
readonly stateMutability: "view";
|
|
1668
|
+
readonly type: "function";
|
|
1669
|
+
}, {
|
|
1670
|
+
readonly inputs: readonly [{
|
|
1671
|
+
readonly internalType: "uint8";
|
|
1672
|
+
readonly name: "_poolId";
|
|
1673
|
+
readonly type: "uint8";
|
|
1674
|
+
}, {
|
|
1675
|
+
readonly internalType: "address";
|
|
1676
|
+
readonly name: "_brokerAddr";
|
|
1677
|
+
readonly type: "address";
|
|
1678
|
+
}];
|
|
1679
|
+
readonly name: "getBrokerInducedFee";
|
|
1680
|
+
readonly outputs: readonly [{
|
|
1681
|
+
readonly internalType: "uint16";
|
|
1682
|
+
readonly name: "";
|
|
1683
|
+
readonly type: "uint16";
|
|
1684
|
+
}];
|
|
1685
|
+
readonly stateMutability: "view";
|
|
1686
|
+
readonly type: "function";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly inputs: readonly [{
|
|
1689
|
+
readonly internalType: "uint8";
|
|
1690
|
+
readonly name: "_poolId";
|
|
1691
|
+
readonly type: "uint8";
|
|
1692
|
+
}];
|
|
1693
|
+
readonly name: "getCollateralTokenAmountForPricing";
|
|
1694
|
+
readonly outputs: readonly [{
|
|
1695
|
+
readonly internalType: "int128";
|
|
1696
|
+
readonly name: "";
|
|
1697
|
+
readonly type: "int128";
|
|
1698
|
+
}];
|
|
1699
|
+
readonly stateMutability: "view";
|
|
1700
|
+
readonly type: "function";
|
|
1701
|
+
}, {
|
|
1702
|
+
readonly inputs: readonly [{
|
|
1703
|
+
readonly internalType: "uint8";
|
|
1704
|
+
readonly name: "_poolId";
|
|
1705
|
+
readonly type: "uint8";
|
|
1706
|
+
}, {
|
|
1707
|
+
readonly internalType: "address";
|
|
1708
|
+
readonly name: "_brokerAddr";
|
|
1709
|
+
readonly type: "address";
|
|
1710
|
+
}];
|
|
1711
|
+
readonly name: "getCurrentBrokerVolume";
|
|
1712
|
+
readonly outputs: readonly [{
|
|
1713
|
+
readonly internalType: "int128";
|
|
1714
|
+
readonly name: "";
|
|
1715
|
+
readonly type: "int128";
|
|
1716
|
+
}];
|
|
1717
|
+
readonly stateMutability: "view";
|
|
1718
|
+
readonly type: "function";
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly inputs: readonly [{
|
|
1721
|
+
readonly internalType: "uint8";
|
|
1722
|
+
readonly name: "_poolId";
|
|
1723
|
+
readonly type: "uint8";
|
|
1724
|
+
}, {
|
|
1725
|
+
readonly internalType: "address";
|
|
1726
|
+
readonly name: "_traderAddr";
|
|
1727
|
+
readonly type: "address";
|
|
1728
|
+
}];
|
|
1729
|
+
readonly name: "getCurrentTraderVolume";
|
|
1730
|
+
readonly outputs: readonly [{
|
|
1731
|
+
readonly internalType: "int128";
|
|
1732
|
+
readonly name: "";
|
|
1733
|
+
readonly type: "int128";
|
|
1734
|
+
}];
|
|
1735
|
+
readonly stateMutability: "view";
|
|
1736
|
+
readonly type: "function";
|
|
1737
|
+
}, {
|
|
1738
|
+
readonly inputs: readonly [{
|
|
1739
|
+
readonly internalType: "int128";
|
|
1740
|
+
readonly name: "_fPosition0";
|
|
1741
|
+
readonly type: "int128";
|
|
1742
|
+
}, {
|
|
1743
|
+
readonly internalType: "int128";
|
|
1744
|
+
readonly name: "_fBalance0";
|
|
1745
|
+
readonly type: "int128";
|
|
1746
|
+
}, {
|
|
1747
|
+
readonly internalType: "int128";
|
|
1748
|
+
readonly name: "_fTradeAmount";
|
|
1749
|
+
readonly type: "int128";
|
|
1750
|
+
}, {
|
|
1751
|
+
readonly internalType: "int128";
|
|
1752
|
+
readonly name: "_fTargetLeverage";
|
|
1753
|
+
readonly type: "int128";
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly internalType: "int128";
|
|
1756
|
+
readonly name: "_fPrice";
|
|
1757
|
+
readonly type: "int128";
|
|
1758
|
+
}, {
|
|
1759
|
+
readonly internalType: "int128";
|
|
1760
|
+
readonly name: "_fS2Mark";
|
|
1761
|
+
readonly type: "int128";
|
|
1762
|
+
}, {
|
|
1763
|
+
readonly internalType: "int128";
|
|
1764
|
+
readonly name: "_fS3";
|
|
1765
|
+
readonly type: "int128";
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly internalType: "int128";
|
|
1768
|
+
readonly name: "_fS2";
|
|
1769
|
+
readonly type: "int128";
|
|
1770
|
+
}];
|
|
1771
|
+
readonly name: "getDepositAmountForLvgPosition";
|
|
1772
|
+
readonly outputs: readonly [{
|
|
1773
|
+
readonly internalType: "int128";
|
|
1774
|
+
readonly name: "";
|
|
1775
|
+
readonly type: "int128";
|
|
1776
|
+
}];
|
|
1777
|
+
readonly stateMutability: "pure";
|
|
1778
|
+
readonly type: "function";
|
|
1779
|
+
}, {
|
|
1780
|
+
readonly inputs: readonly [{
|
|
1781
|
+
readonly internalType: "uint32";
|
|
1782
|
+
readonly name: "_brokerDesignation";
|
|
1783
|
+
readonly type: "uint32";
|
|
1784
|
+
}];
|
|
1785
|
+
readonly name: "getFeeForBrokerDesignation";
|
|
1786
|
+
readonly outputs: readonly [{
|
|
1787
|
+
readonly internalType: "uint16";
|
|
1788
|
+
readonly name: "";
|
|
1789
|
+
readonly type: "uint16";
|
|
1790
|
+
}];
|
|
1791
|
+
readonly stateMutability: "view";
|
|
1792
|
+
readonly type: "function";
|
|
1793
|
+
}, {
|
|
1794
|
+
readonly inputs: readonly [{
|
|
1795
|
+
readonly internalType: "address";
|
|
1796
|
+
readonly name: "brokerAddr";
|
|
1797
|
+
readonly type: "address";
|
|
1798
|
+
}];
|
|
1799
|
+
readonly name: "getFeeForBrokerStake";
|
|
1800
|
+
readonly outputs: readonly [{
|
|
1801
|
+
readonly internalType: "uint16";
|
|
1802
|
+
readonly name: "";
|
|
1803
|
+
readonly type: "uint16";
|
|
1804
|
+
}];
|
|
1805
|
+
readonly stateMutability: "view";
|
|
1806
|
+
readonly type: "function";
|
|
1807
|
+
}, {
|
|
1808
|
+
readonly inputs: readonly [{
|
|
1809
|
+
readonly internalType: "uint8";
|
|
1810
|
+
readonly name: "_poolId";
|
|
1811
|
+
readonly type: "uint8";
|
|
1812
|
+
}, {
|
|
1813
|
+
readonly internalType: "address";
|
|
1814
|
+
readonly name: "_brokerAddr";
|
|
1815
|
+
readonly type: "address";
|
|
1816
|
+
}];
|
|
1817
|
+
readonly name: "getFeeForBrokerVolume";
|
|
1818
|
+
readonly outputs: readonly [{
|
|
1819
|
+
readonly internalType: "uint16";
|
|
1820
|
+
readonly name: "";
|
|
1821
|
+
readonly type: "uint16";
|
|
1822
|
+
}];
|
|
1823
|
+
readonly stateMutability: "view";
|
|
1824
|
+
readonly type: "function";
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly inputs: readonly [{
|
|
1827
|
+
readonly internalType: "address";
|
|
1828
|
+
readonly name: "traderAddr";
|
|
1829
|
+
readonly type: "address";
|
|
1830
|
+
}];
|
|
1831
|
+
readonly name: "getFeeForTraderStake";
|
|
1832
|
+
readonly outputs: readonly [{
|
|
1833
|
+
readonly internalType: "uint16";
|
|
1834
|
+
readonly name: "";
|
|
1835
|
+
readonly type: "uint16";
|
|
1836
|
+
}];
|
|
1837
|
+
readonly stateMutability: "view";
|
|
1838
|
+
readonly type: "function";
|
|
1839
|
+
}, {
|
|
1840
|
+
readonly inputs: readonly [{
|
|
1841
|
+
readonly internalType: "uint8";
|
|
1842
|
+
readonly name: "_poolId";
|
|
1843
|
+
readonly type: "uint8";
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly internalType: "address";
|
|
1846
|
+
readonly name: "_traderAddr";
|
|
1847
|
+
readonly type: "address";
|
|
1848
|
+
}];
|
|
1849
|
+
readonly name: "getFeeForTraderVolume";
|
|
1850
|
+
readonly outputs: readonly [{
|
|
1851
|
+
readonly internalType: "uint16";
|
|
1852
|
+
readonly name: "";
|
|
1853
|
+
readonly type: "uint16";
|
|
1854
|
+
}];
|
|
1855
|
+
readonly stateMutability: "view";
|
|
1856
|
+
readonly type: "function";
|
|
1857
|
+
}, {
|
|
1858
|
+
readonly inputs: readonly [{
|
|
1859
|
+
readonly internalType: "uint24";
|
|
1860
|
+
readonly name: "_iPerpetualId";
|
|
1861
|
+
readonly type: "uint24";
|
|
1862
|
+
}];
|
|
1863
|
+
readonly name: "getLastPerpetualBaseToUSDConversion";
|
|
1864
|
+
readonly outputs: readonly [{
|
|
1865
|
+
readonly internalType: "int128";
|
|
1866
|
+
readonly name: "";
|
|
1867
|
+
readonly type: "int128";
|
|
1868
|
+
}];
|
|
1869
|
+
readonly stateMutability: "view";
|
|
1870
|
+
readonly type: "function";
|
|
1871
|
+
}, {
|
|
1872
|
+
readonly inputs: readonly [{
|
|
1873
|
+
readonly internalType: "uint24";
|
|
1874
|
+
readonly name: "_perpetualId";
|
|
1875
|
+
readonly type: "uint24";
|
|
1876
|
+
}, {
|
|
1877
|
+
readonly internalType: "int128[2]";
|
|
1878
|
+
readonly name: "_fIndexPrice";
|
|
1879
|
+
readonly type: "int128[2]";
|
|
1880
|
+
}];
|
|
1881
|
+
readonly name: "getLiquidatableAccounts";
|
|
1882
|
+
readonly outputs: readonly [{
|
|
1883
|
+
readonly internalType: "address[]";
|
|
1884
|
+
readonly name: "unsafeAccounts";
|
|
1885
|
+
readonly type: "address[]";
|
|
1886
|
+
}];
|
|
1887
|
+
readonly stateMutability: "view";
|
|
1888
|
+
readonly type: "function";
|
|
1889
|
+
}, {
|
|
1890
|
+
readonly inputs: readonly [{
|
|
1891
|
+
readonly internalType: "uint8";
|
|
1892
|
+
readonly name: "_poolId";
|
|
1893
|
+
readonly type: "uint8";
|
|
1894
|
+
}];
|
|
1895
|
+
readonly name: "getLiquidityPool";
|
|
1896
|
+
readonly outputs: readonly [{
|
|
1897
|
+
readonly components: readonly [{
|
|
1898
|
+
readonly internalType: "bool";
|
|
1899
|
+
readonly name: "isRunning";
|
|
1900
|
+
readonly type: "bool";
|
|
1901
|
+
}, {
|
|
1902
|
+
readonly internalType: "uint8";
|
|
1903
|
+
readonly name: "iPerpetualCount";
|
|
1904
|
+
readonly type: "uint8";
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly internalType: "uint8";
|
|
1907
|
+
readonly name: "id";
|
|
1908
|
+
readonly type: "uint8";
|
|
1909
|
+
}, {
|
|
1910
|
+
readonly internalType: "int32";
|
|
1911
|
+
readonly name: "fCeilPnLShare";
|
|
1912
|
+
readonly type: "int32";
|
|
1913
|
+
}, {
|
|
1914
|
+
readonly internalType: "uint8";
|
|
1915
|
+
readonly name: "marginTokenDecimals";
|
|
1916
|
+
readonly type: "uint8";
|
|
1917
|
+
}, {
|
|
1918
|
+
readonly internalType: "uint16";
|
|
1919
|
+
readonly name: "iTargetPoolSizeUpdateTime";
|
|
1920
|
+
readonly type: "uint16";
|
|
1921
|
+
}, {
|
|
1922
|
+
readonly internalType: "address";
|
|
1923
|
+
readonly name: "marginTokenAddress";
|
|
1924
|
+
readonly type: "address";
|
|
1925
|
+
}, {
|
|
1926
|
+
readonly internalType: "uint64";
|
|
1927
|
+
readonly name: "prevAnchor";
|
|
1928
|
+
readonly type: "uint64";
|
|
1929
|
+
}, {
|
|
1930
|
+
readonly internalType: "int128";
|
|
1931
|
+
readonly name: "fRedemptionRate";
|
|
1932
|
+
readonly type: "int128";
|
|
1933
|
+
}, {
|
|
1934
|
+
readonly internalType: "address";
|
|
1935
|
+
readonly name: "shareTokenAddress";
|
|
1936
|
+
readonly type: "address";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly internalType: "int128";
|
|
1939
|
+
readonly name: "fPnLparticipantsCashCC";
|
|
1940
|
+
readonly type: "int128";
|
|
1941
|
+
}, {
|
|
1942
|
+
readonly internalType: "int128";
|
|
1943
|
+
readonly name: "fTargetAMMFundSize";
|
|
1944
|
+
readonly type: "int128";
|
|
1945
|
+
}, {
|
|
1946
|
+
readonly internalType: "int128";
|
|
1947
|
+
readonly name: "fDefaultFundCashCC";
|
|
1948
|
+
readonly type: "int128";
|
|
1949
|
+
}, {
|
|
1950
|
+
readonly internalType: "int128";
|
|
1951
|
+
readonly name: "fTargetDFSize";
|
|
1952
|
+
readonly type: "int128";
|
|
1953
|
+
}, {
|
|
1954
|
+
readonly internalType: "int128";
|
|
1955
|
+
readonly name: "fBrokerCollateralLotSize";
|
|
1956
|
+
readonly type: "int128";
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly internalType: "uint128";
|
|
1959
|
+
readonly name: "prevTokenAmount";
|
|
1960
|
+
readonly type: "uint128";
|
|
1961
|
+
}, {
|
|
1962
|
+
readonly internalType: "uint128";
|
|
1963
|
+
readonly name: "nextTokenAmount";
|
|
1964
|
+
readonly type: "uint128";
|
|
1965
|
+
}, {
|
|
1966
|
+
readonly internalType: "uint128";
|
|
1967
|
+
readonly name: "totalSupplyShareToken";
|
|
1968
|
+
readonly type: "uint128";
|
|
1969
|
+
}, {
|
|
1970
|
+
readonly internalType: "int128";
|
|
1971
|
+
readonly name: "fBrokerFundCashCC";
|
|
1972
|
+
readonly type: "int128";
|
|
1973
|
+
}];
|
|
1974
|
+
readonly internalType: "struct PerpStorage.LiquidityPoolData";
|
|
1975
|
+
readonly name: "";
|
|
1976
|
+
readonly type: "tuple";
|
|
1977
|
+
}];
|
|
1978
|
+
readonly stateMutability: "view";
|
|
1979
|
+
readonly type: "function";
|
|
1980
|
+
}, {
|
|
1981
|
+
readonly inputs: readonly [{
|
|
1982
|
+
readonly internalType: "uint8";
|
|
1983
|
+
readonly name: "_poolIdFrom";
|
|
1984
|
+
readonly type: "uint8";
|
|
1985
|
+
}, {
|
|
1986
|
+
readonly internalType: "uint8";
|
|
1987
|
+
readonly name: "_poolIdTo";
|
|
1988
|
+
readonly type: "uint8";
|
|
1989
|
+
}];
|
|
1990
|
+
readonly name: "getLiquidityPools";
|
|
1991
|
+
readonly outputs: readonly [{
|
|
1992
|
+
readonly components: readonly [{
|
|
1993
|
+
readonly internalType: "bool";
|
|
1994
|
+
readonly name: "isRunning";
|
|
1995
|
+
readonly type: "bool";
|
|
1996
|
+
}, {
|
|
1997
|
+
readonly internalType: "uint8";
|
|
1998
|
+
readonly name: "iPerpetualCount";
|
|
1999
|
+
readonly type: "uint8";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly internalType: "uint8";
|
|
2002
|
+
readonly name: "id";
|
|
2003
|
+
readonly type: "uint8";
|
|
2004
|
+
}, {
|
|
2005
|
+
readonly internalType: "int32";
|
|
2006
|
+
readonly name: "fCeilPnLShare";
|
|
2007
|
+
readonly type: "int32";
|
|
2008
|
+
}, {
|
|
2009
|
+
readonly internalType: "uint8";
|
|
2010
|
+
readonly name: "marginTokenDecimals";
|
|
2011
|
+
readonly type: "uint8";
|
|
2012
|
+
}, {
|
|
2013
|
+
readonly internalType: "uint16";
|
|
2014
|
+
readonly name: "iTargetPoolSizeUpdateTime";
|
|
2015
|
+
readonly type: "uint16";
|
|
2016
|
+
}, {
|
|
2017
|
+
readonly internalType: "address";
|
|
2018
|
+
readonly name: "marginTokenAddress";
|
|
2019
|
+
readonly type: "address";
|
|
2020
|
+
}, {
|
|
2021
|
+
readonly internalType: "uint64";
|
|
2022
|
+
readonly name: "prevAnchor";
|
|
2023
|
+
readonly type: "uint64";
|
|
2024
|
+
}, {
|
|
2025
|
+
readonly internalType: "int128";
|
|
2026
|
+
readonly name: "fRedemptionRate";
|
|
2027
|
+
readonly type: "int128";
|
|
2028
|
+
}, {
|
|
2029
|
+
readonly internalType: "address";
|
|
2030
|
+
readonly name: "shareTokenAddress";
|
|
2031
|
+
readonly type: "address";
|
|
2032
|
+
}, {
|
|
2033
|
+
readonly internalType: "int128";
|
|
2034
|
+
readonly name: "fPnLparticipantsCashCC";
|
|
2035
|
+
readonly type: "int128";
|
|
2036
|
+
}, {
|
|
2037
|
+
readonly internalType: "int128";
|
|
2038
|
+
readonly name: "fTargetAMMFundSize";
|
|
2039
|
+
readonly type: "int128";
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly internalType: "int128";
|
|
2042
|
+
readonly name: "fDefaultFundCashCC";
|
|
2043
|
+
readonly type: "int128";
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly internalType: "int128";
|
|
2046
|
+
readonly name: "fTargetDFSize";
|
|
2047
|
+
readonly type: "int128";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly internalType: "int128";
|
|
2050
|
+
readonly name: "fBrokerCollateralLotSize";
|
|
2051
|
+
readonly type: "int128";
|
|
2052
|
+
}, {
|
|
2053
|
+
readonly internalType: "uint128";
|
|
2054
|
+
readonly name: "prevTokenAmount";
|
|
2055
|
+
readonly type: "uint128";
|
|
2056
|
+
}, {
|
|
2057
|
+
readonly internalType: "uint128";
|
|
2058
|
+
readonly name: "nextTokenAmount";
|
|
2059
|
+
readonly type: "uint128";
|
|
2060
|
+
}, {
|
|
2061
|
+
readonly internalType: "uint128";
|
|
2062
|
+
readonly name: "totalSupplyShareToken";
|
|
2063
|
+
readonly type: "uint128";
|
|
2064
|
+
}, {
|
|
2065
|
+
readonly internalType: "int128";
|
|
2066
|
+
readonly name: "fBrokerFundCashCC";
|
|
2067
|
+
readonly type: "int128";
|
|
2068
|
+
}];
|
|
2069
|
+
readonly internalType: "struct PerpStorage.LiquidityPoolData[]";
|
|
2070
|
+
readonly name: "";
|
|
2071
|
+
readonly type: "tuple[]";
|
|
2072
|
+
}];
|
|
2073
|
+
readonly stateMutability: "view";
|
|
2074
|
+
readonly type: "function";
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly inputs: readonly [{
|
|
2077
|
+
readonly internalType: "uint24";
|
|
2078
|
+
readonly name: "_perpetualId";
|
|
2079
|
+
readonly type: "uint24";
|
|
2080
|
+
}, {
|
|
2081
|
+
readonly internalType: "address";
|
|
2082
|
+
readonly name: "_traderAddress";
|
|
2083
|
+
readonly type: "address";
|
|
2084
|
+
}];
|
|
2085
|
+
readonly name: "getMarginAccount";
|
|
2086
|
+
readonly outputs: readonly [{
|
|
2087
|
+
readonly components: readonly [{
|
|
2088
|
+
readonly internalType: "int128";
|
|
2089
|
+
readonly name: "fLockedInValueQC";
|
|
2090
|
+
readonly type: "int128";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly internalType: "int128";
|
|
2093
|
+
readonly name: "fCashCC";
|
|
2094
|
+
readonly type: "int128";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly internalType: "int128";
|
|
2097
|
+
readonly name: "fPositionBC";
|
|
2098
|
+
readonly type: "int128";
|
|
2099
|
+
}, {
|
|
2100
|
+
readonly internalType: "int128";
|
|
2101
|
+
readonly name: "fUnitAccumulatedFundingStart";
|
|
2102
|
+
readonly type: "int128";
|
|
2103
|
+
}, {
|
|
2104
|
+
readonly internalType: "uint64";
|
|
2105
|
+
readonly name: "slot2";
|
|
2106
|
+
readonly type: "uint64";
|
|
2107
|
+
}, {
|
|
2108
|
+
readonly internalType: "uint16";
|
|
2109
|
+
readonly name: "slot3";
|
|
2110
|
+
readonly type: "uint16";
|
|
2111
|
+
}, {
|
|
2112
|
+
readonly internalType: "uint16";
|
|
2113
|
+
readonly name: "slot4";
|
|
2114
|
+
readonly type: "uint16";
|
|
2115
|
+
}, {
|
|
2116
|
+
readonly internalType: "bytes16";
|
|
2117
|
+
readonly name: "slot";
|
|
2118
|
+
readonly type: "bytes16";
|
|
2119
|
+
}];
|
|
2120
|
+
readonly internalType: "struct PerpStorage.MarginAccount";
|
|
2121
|
+
readonly name: "";
|
|
2122
|
+
readonly type: "tuple";
|
|
2123
|
+
}];
|
|
2124
|
+
readonly stateMutability: "view";
|
|
2125
|
+
readonly type: "function";
|
|
2126
|
+
}, {
|
|
2127
|
+
readonly inputs: readonly [{
|
|
2128
|
+
readonly internalType: "uint24";
|
|
2129
|
+
readonly name: "_perpetualId";
|
|
2130
|
+
readonly type: "uint24";
|
|
2131
|
+
}, {
|
|
2132
|
+
readonly internalType: "int128";
|
|
2133
|
+
readonly name: "_fCurrentTraderPos";
|
|
2134
|
+
readonly type: "int128";
|
|
2135
|
+
}, {
|
|
2136
|
+
readonly internalType: "bool";
|
|
2137
|
+
readonly name: "_isBuy";
|
|
2138
|
+
readonly type: "bool";
|
|
2139
|
+
}];
|
|
2140
|
+
readonly name: "getMaxSignedOpenTradeSizeForPos";
|
|
2141
|
+
readonly outputs: readonly [{
|
|
2142
|
+
readonly internalType: "int128";
|
|
2143
|
+
readonly name: "";
|
|
2144
|
+
readonly type: "int128";
|
|
2145
|
+
}];
|
|
2146
|
+
readonly stateMutability: "view";
|
|
2147
|
+
readonly type: "function";
|
|
2148
|
+
}, {
|
|
2149
|
+
readonly inputs: readonly [{
|
|
2150
|
+
readonly internalType: "uint24";
|
|
2151
|
+
readonly name: "_perpetualId";
|
|
2152
|
+
readonly type: "uint24";
|
|
2153
|
+
}, {
|
|
2154
|
+
readonly internalType: "int128[2]";
|
|
2155
|
+
readonly name: "_fIndexPrice";
|
|
2156
|
+
readonly type: "int128[2]";
|
|
2157
|
+
}];
|
|
2158
|
+
readonly name: "getNextLiquidatableTrader";
|
|
2159
|
+
readonly outputs: readonly [{
|
|
2160
|
+
readonly internalType: "address";
|
|
2161
|
+
readonly name: "traderAddr";
|
|
2162
|
+
readonly type: "address";
|
|
2163
|
+
}];
|
|
2164
|
+
readonly stateMutability: "view";
|
|
2165
|
+
readonly type: "function";
|
|
2166
|
+
}, {
|
|
2167
|
+
readonly inputs: readonly [];
|
|
2168
|
+
readonly name: "getOracleFactory";
|
|
2169
|
+
readonly outputs: readonly [{
|
|
2170
|
+
readonly internalType: "address";
|
|
2171
|
+
readonly name: "";
|
|
2172
|
+
readonly type: "address";
|
|
2173
|
+
}];
|
|
2174
|
+
readonly stateMutability: "view";
|
|
2175
|
+
readonly type: "function";
|
|
2176
|
+
}, {
|
|
2177
|
+
readonly inputs: readonly [{
|
|
2178
|
+
readonly internalType: "bytes4[2]";
|
|
2179
|
+
readonly name: "_baseQuote";
|
|
2180
|
+
readonly type: "bytes4[2]";
|
|
2181
|
+
}];
|
|
2182
|
+
readonly name: "getOraclePrice";
|
|
2183
|
+
readonly outputs: readonly [{
|
|
2184
|
+
readonly internalType: "int128";
|
|
2185
|
+
readonly name: "fPrice";
|
|
2186
|
+
readonly type: "int128";
|
|
2187
|
+
}];
|
|
2188
|
+
readonly stateMutability: "view";
|
|
2189
|
+
readonly type: "function";
|
|
2190
|
+
}, {
|
|
2191
|
+
readonly inputs: readonly [{
|
|
2192
|
+
readonly internalType: "uint24";
|
|
2193
|
+
readonly name: "_perpetualId";
|
|
2194
|
+
readonly type: "uint24";
|
|
2195
|
+
}];
|
|
2196
|
+
readonly name: "getOracleUpdateTime";
|
|
2197
|
+
readonly outputs: readonly [{
|
|
2198
|
+
readonly internalType: "uint256";
|
|
2199
|
+
readonly name: "";
|
|
2200
|
+
readonly type: "uint256";
|
|
2201
|
+
}];
|
|
2202
|
+
readonly stateMutability: "view";
|
|
2203
|
+
readonly type: "function";
|
|
2204
|
+
}, {
|
|
2205
|
+
readonly inputs: readonly [{
|
|
2206
|
+
readonly internalType: "uint24";
|
|
2207
|
+
readonly name: "_perpetualId";
|
|
2208
|
+
readonly type: "uint24";
|
|
2209
|
+
}];
|
|
2210
|
+
readonly name: "getOrderBookAddress";
|
|
2211
|
+
readonly outputs: readonly [{
|
|
2212
|
+
readonly internalType: "address";
|
|
2213
|
+
readonly name: "";
|
|
2214
|
+
readonly type: "address";
|
|
2215
|
+
}];
|
|
2216
|
+
readonly stateMutability: "view";
|
|
2217
|
+
readonly type: "function";
|
|
2218
|
+
}, {
|
|
2219
|
+
readonly inputs: readonly [];
|
|
2220
|
+
readonly name: "getOrderBookFactoryAddress";
|
|
2221
|
+
readonly outputs: readonly [{
|
|
2222
|
+
readonly internalType: "address";
|
|
2223
|
+
readonly name: "";
|
|
2224
|
+
readonly type: "address";
|
|
2225
|
+
}];
|
|
2226
|
+
readonly stateMutability: "view";
|
|
2227
|
+
readonly type: "function";
|
|
2228
|
+
}, {
|
|
2229
|
+
readonly inputs: readonly [{
|
|
2230
|
+
readonly internalType: "uint24";
|
|
2231
|
+
readonly name: "_perpetualId";
|
|
2232
|
+
readonly type: "uint24";
|
|
2233
|
+
}];
|
|
2234
|
+
readonly name: "getPerpetual";
|
|
2235
|
+
readonly outputs: readonly [{
|
|
2236
|
+
readonly components: readonly [{
|
|
2237
|
+
readonly internalType: "uint8";
|
|
2238
|
+
readonly name: "poolId";
|
|
2239
|
+
readonly type: "uint8";
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly internalType: "uint24";
|
|
2242
|
+
readonly name: "id";
|
|
2243
|
+
readonly type: "uint24";
|
|
2244
|
+
}, {
|
|
2245
|
+
readonly internalType: "int32";
|
|
2246
|
+
readonly name: "fInitialMarginRate";
|
|
2247
|
+
readonly type: "int32";
|
|
2248
|
+
}, {
|
|
2249
|
+
readonly internalType: "int32";
|
|
2250
|
+
readonly name: "fSigma2";
|
|
2251
|
+
readonly type: "int32";
|
|
2252
|
+
}, {
|
|
2253
|
+
readonly internalType: "uint32";
|
|
2254
|
+
readonly name: "iLastFundingTime";
|
|
2255
|
+
readonly type: "uint32";
|
|
2256
|
+
}, {
|
|
2257
|
+
readonly internalType: "uint32";
|
|
2258
|
+
readonly name: "slot0";
|
|
2259
|
+
readonly type: "uint32";
|
|
2260
|
+
}, {
|
|
2261
|
+
readonly internalType: "uint32";
|
|
2262
|
+
readonly name: "slot1";
|
|
2263
|
+
readonly type: "uint32";
|
|
2264
|
+
}, {
|
|
2265
|
+
readonly internalType: "int32";
|
|
2266
|
+
readonly name: "fMaintenanceMarginRate";
|
|
2267
|
+
readonly type: "int32";
|
|
2268
|
+
}, {
|
|
2269
|
+
readonly internalType: "enum PerpStorage.PerpetualState";
|
|
2270
|
+
readonly name: "state";
|
|
2271
|
+
readonly type: "uint8";
|
|
2272
|
+
}, {
|
|
2273
|
+
readonly internalType: "enum AMMPerpLogic.CollateralCurrency";
|
|
2274
|
+
readonly name: "eCollateralCurrency";
|
|
2275
|
+
readonly type: "uint8";
|
|
2276
|
+
}, {
|
|
2277
|
+
readonly internalType: "uint16";
|
|
2278
|
+
readonly name: "minimalSpreadTbps";
|
|
2279
|
+
readonly type: "uint16";
|
|
2280
|
+
}, {
|
|
2281
|
+
readonly internalType: "bytes4";
|
|
2282
|
+
readonly name: "S2BaseCCY";
|
|
2283
|
+
readonly type: "bytes4";
|
|
2284
|
+
}, {
|
|
2285
|
+
readonly internalType: "bytes4";
|
|
2286
|
+
readonly name: "S2QuoteCCY";
|
|
2287
|
+
readonly type: "bytes4";
|
|
2288
|
+
}, {
|
|
2289
|
+
readonly internalType: "uint16";
|
|
2290
|
+
readonly name: "incentiveSpreadTbps";
|
|
2291
|
+
readonly type: "uint16";
|
|
2292
|
+
}, {
|
|
2293
|
+
readonly internalType: "uint16";
|
|
2294
|
+
readonly name: "slot2";
|
|
2295
|
+
readonly type: "uint16";
|
|
2296
|
+
}, {
|
|
2297
|
+
readonly internalType: "bytes4";
|
|
2298
|
+
readonly name: "S3BaseCCY";
|
|
2299
|
+
readonly type: "bytes4";
|
|
2300
|
+
}, {
|
|
2301
|
+
readonly internalType: "bytes4";
|
|
2302
|
+
readonly name: "S3QuoteCCY";
|
|
2303
|
+
readonly type: "bytes4";
|
|
2304
|
+
}, {
|
|
2305
|
+
readonly internalType: "int32";
|
|
2306
|
+
readonly name: "fSigma3";
|
|
2307
|
+
readonly type: "int32";
|
|
2308
|
+
}, {
|
|
2309
|
+
readonly internalType: "int32";
|
|
2310
|
+
readonly name: "fRho23";
|
|
2311
|
+
readonly type: "int32";
|
|
2312
|
+
}, {
|
|
2313
|
+
readonly internalType: "uint16";
|
|
2314
|
+
readonly name: "liquidationPenaltyRateTbps";
|
|
2315
|
+
readonly type: "uint16";
|
|
2316
|
+
}, {
|
|
2317
|
+
readonly components: readonly [{
|
|
2318
|
+
readonly internalType: "int128";
|
|
2319
|
+
readonly name: "fPrice";
|
|
2320
|
+
readonly type: "int128";
|
|
2321
|
+
}, {
|
|
2322
|
+
readonly internalType: "uint64";
|
|
2323
|
+
readonly name: "time";
|
|
2324
|
+
readonly type: "uint64";
|
|
2325
|
+
}];
|
|
2326
|
+
readonly internalType: "struct PerpStorage.PriceTimeData";
|
|
2327
|
+
readonly name: "currentMarkPremiumRate";
|
|
2328
|
+
readonly type: "tuple";
|
|
2329
|
+
}, {
|
|
2330
|
+
readonly internalType: "int128";
|
|
2331
|
+
readonly name: "premiumRatesEMA";
|
|
2332
|
+
readonly type: "int128";
|
|
2333
|
+
}, {
|
|
2334
|
+
readonly internalType: "int128";
|
|
2335
|
+
readonly name: "fUnitAccumulatedFunding";
|
|
2336
|
+
readonly type: "int128";
|
|
2337
|
+
}, {
|
|
2338
|
+
readonly internalType: "int128";
|
|
2339
|
+
readonly name: "fOpenInterest";
|
|
2340
|
+
readonly type: "int128";
|
|
2341
|
+
}, {
|
|
2342
|
+
readonly internalType: "int128";
|
|
2343
|
+
readonly name: "fTargetAMMFundSize";
|
|
2344
|
+
readonly type: "int128";
|
|
2345
|
+
}, {
|
|
2346
|
+
readonly internalType: "int128";
|
|
2347
|
+
readonly name: "fCurrentTraderExposureEMA";
|
|
2348
|
+
readonly type: "int128";
|
|
2349
|
+
}, {
|
|
2350
|
+
readonly internalType: "int128";
|
|
2351
|
+
readonly name: "fCurrentFundingRate";
|
|
2352
|
+
readonly type: "int128";
|
|
2353
|
+
}, {
|
|
2354
|
+
readonly internalType: "int128";
|
|
2355
|
+
readonly name: "fLotSizeBC";
|
|
2356
|
+
readonly type: "int128";
|
|
2357
|
+
}, {
|
|
2358
|
+
readonly internalType: "int128";
|
|
2359
|
+
readonly name: "fReferralRebateCC";
|
|
2360
|
+
readonly type: "int128";
|
|
2361
|
+
}, {
|
|
2362
|
+
readonly internalType: "int128";
|
|
2363
|
+
readonly name: "fTargetDFSize";
|
|
2364
|
+
readonly type: "int128";
|
|
2365
|
+
}, {
|
|
2366
|
+
readonly internalType: "int128";
|
|
2367
|
+
readonly name: "fkStar";
|
|
2368
|
+
readonly type: "int128";
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly internalType: "int128";
|
|
2371
|
+
readonly name: "fAMMTargetDD";
|
|
2372
|
+
readonly type: "int128";
|
|
2373
|
+
}, {
|
|
2374
|
+
readonly internalType: "int128";
|
|
2375
|
+
readonly name: "fAMMMinSizeCC";
|
|
2376
|
+
readonly type: "int128";
|
|
2377
|
+
}, {
|
|
2378
|
+
readonly internalType: "int128";
|
|
2379
|
+
readonly name: "fMinimalTraderExposureEMA";
|
|
2380
|
+
readonly type: "int128";
|
|
2381
|
+
}, {
|
|
2382
|
+
readonly internalType: "int128";
|
|
2383
|
+
readonly name: "fMinimalAMMExposureEMA";
|
|
2384
|
+
readonly type: "int128";
|
|
2385
|
+
}, {
|
|
2386
|
+
readonly internalType: "int128";
|
|
2387
|
+
readonly name: "fSettlementS3PriceData";
|
|
2388
|
+
readonly type: "int128";
|
|
2389
|
+
}, {
|
|
2390
|
+
readonly internalType: "int128";
|
|
2391
|
+
readonly name: "fSettlementS2PriceData";
|
|
2392
|
+
readonly type: "int128";
|
|
2393
|
+
}, {
|
|
2394
|
+
readonly internalType: "int128";
|
|
2395
|
+
readonly name: "fTotalMarginBalance";
|
|
2396
|
+
readonly type: "int128";
|
|
2397
|
+
}, {
|
|
2398
|
+
readonly internalType: "int32";
|
|
2399
|
+
readonly name: "fMarkPriceEMALambda";
|
|
2400
|
+
readonly type: "int32";
|
|
2401
|
+
}, {
|
|
2402
|
+
readonly internalType: "int32";
|
|
2403
|
+
readonly name: "fFundingRateClamp";
|
|
2404
|
+
readonly type: "int32";
|
|
2405
|
+
}, {
|
|
2406
|
+
readonly internalType: "int32";
|
|
2407
|
+
readonly name: "fMaximalTradeSizeBumpUp";
|
|
2408
|
+
readonly type: "int32";
|
|
2409
|
+
}, {
|
|
2410
|
+
readonly internalType: "uint32";
|
|
2411
|
+
readonly name: "iLastTargetPoolSizeTime";
|
|
2412
|
+
readonly type: "uint32";
|
|
2413
|
+
}, {
|
|
2414
|
+
readonly internalType: "int32";
|
|
2415
|
+
readonly name: "fDFCoverNRate";
|
|
2416
|
+
readonly type: "int32";
|
|
2417
|
+
}, {
|
|
2418
|
+
readonly internalType: "int128[2]";
|
|
2419
|
+
readonly name: "fStressReturnS3";
|
|
2420
|
+
readonly type: "int128[2]";
|
|
2421
|
+
}, {
|
|
2422
|
+
readonly internalType: "int128[2]";
|
|
2423
|
+
readonly name: "fDFLambda";
|
|
2424
|
+
readonly type: "int128[2]";
|
|
2425
|
+
}, {
|
|
2426
|
+
readonly internalType: "int128[2]";
|
|
2427
|
+
readonly name: "fCurrentAMMExposureEMA";
|
|
2428
|
+
readonly type: "int128[2]";
|
|
2429
|
+
}, {
|
|
2430
|
+
readonly internalType: "int128[2]";
|
|
2431
|
+
readonly name: "fStressReturnS2";
|
|
2432
|
+
readonly type: "int128[2]";
|
|
2433
|
+
}];
|
|
2434
|
+
readonly internalType: "struct PerpStorage.PerpetualData";
|
|
2435
|
+
readonly name: "";
|
|
2436
|
+
readonly type: "tuple";
|
|
2437
|
+
}];
|
|
2438
|
+
readonly stateMutability: "view";
|
|
2439
|
+
readonly type: "function";
|
|
2440
|
+
}, {
|
|
2441
|
+
readonly inputs: readonly [{
|
|
2442
|
+
readonly internalType: "uint8";
|
|
2443
|
+
readonly name: "_poolId";
|
|
2444
|
+
readonly type: "uint8";
|
|
2445
|
+
}];
|
|
2446
|
+
readonly name: "getPerpetualCountInPool";
|
|
2447
|
+
readonly outputs: readonly [{
|
|
2448
|
+
readonly internalType: "uint8";
|
|
2449
|
+
readonly name: "";
|
|
2450
|
+
readonly type: "uint8";
|
|
2451
|
+
}];
|
|
2452
|
+
readonly stateMutability: "view";
|
|
2453
|
+
readonly type: "function";
|
|
2454
|
+
}, {
|
|
2455
|
+
readonly inputs: readonly [{
|
|
2456
|
+
readonly internalType: "uint8";
|
|
2457
|
+
readonly name: "_poolId";
|
|
2458
|
+
readonly type: "uint8";
|
|
2459
|
+
}, {
|
|
2460
|
+
readonly internalType: "uint8";
|
|
2461
|
+
readonly name: "_perpetualIndex";
|
|
2462
|
+
readonly type: "uint8";
|
|
2463
|
+
}];
|
|
2464
|
+
readonly name: "getPerpetualId";
|
|
2465
|
+
readonly outputs: readonly [{
|
|
2466
|
+
readonly internalType: "uint24";
|
|
2467
|
+
readonly name: "";
|
|
2468
|
+
readonly type: "uint24";
|
|
2469
|
+
}];
|
|
2470
|
+
readonly stateMutability: "view";
|
|
2471
|
+
readonly type: "function";
|
|
2472
|
+
}, {
|
|
2473
|
+
readonly inputs: readonly [{
|
|
2474
|
+
readonly internalType: "uint24[]";
|
|
2475
|
+
readonly name: "perpetualIds";
|
|
2476
|
+
readonly type: "uint24[]";
|
|
2477
|
+
}];
|
|
2478
|
+
readonly name: "getPerpetualStaticInfo";
|
|
2479
|
+
readonly outputs: readonly [{
|
|
2480
|
+
readonly components: readonly [{
|
|
2481
|
+
readonly internalType: "uint24";
|
|
2482
|
+
readonly name: "id";
|
|
2483
|
+
readonly type: "uint24";
|
|
2484
|
+
}, {
|
|
2485
|
+
readonly internalType: "address";
|
|
2486
|
+
readonly name: "limitOrderBookAddr";
|
|
2487
|
+
readonly type: "address";
|
|
2488
|
+
}, {
|
|
2489
|
+
readonly internalType: "int32";
|
|
2490
|
+
readonly name: "fInitialMarginRate";
|
|
2491
|
+
readonly type: "int32";
|
|
2492
|
+
}, {
|
|
2493
|
+
readonly internalType: "int32";
|
|
2494
|
+
readonly name: "fMaintenanceMarginRate";
|
|
2495
|
+
readonly type: "int32";
|
|
2496
|
+
}, {
|
|
2497
|
+
readonly internalType: "uint8";
|
|
2498
|
+
readonly name: "perpetualState";
|
|
2499
|
+
readonly type: "uint8";
|
|
2500
|
+
}, {
|
|
2501
|
+
readonly internalType: "enum AMMPerpLogic.CollateralCurrency";
|
|
2502
|
+
readonly name: "collCurrencyType";
|
|
2503
|
+
readonly type: "uint8";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly internalType: "bytes4";
|
|
2506
|
+
readonly name: "S2BaseCCY";
|
|
2507
|
+
readonly type: "bytes4";
|
|
2508
|
+
}, {
|
|
2509
|
+
readonly internalType: "bytes4";
|
|
2510
|
+
readonly name: "S2QuoteCCY";
|
|
2511
|
+
readonly type: "bytes4";
|
|
2512
|
+
}, {
|
|
2513
|
+
readonly internalType: "bytes4";
|
|
2514
|
+
readonly name: "S3BaseCCY";
|
|
2515
|
+
readonly type: "bytes4";
|
|
2516
|
+
}, {
|
|
2517
|
+
readonly internalType: "bytes4";
|
|
2518
|
+
readonly name: "S3QuoteCCY";
|
|
2519
|
+
readonly type: "bytes4";
|
|
2520
|
+
}, {
|
|
2521
|
+
readonly internalType: "int128";
|
|
2522
|
+
readonly name: "fLotSizeBC";
|
|
2523
|
+
readonly type: "int128";
|
|
2524
|
+
}, {
|
|
2525
|
+
readonly internalType: "int128";
|
|
2526
|
+
readonly name: "fReferralRebateCC";
|
|
2527
|
+
readonly type: "int128";
|
|
2528
|
+
}, {
|
|
2529
|
+
readonly internalType: "bytes32[]";
|
|
2530
|
+
readonly name: "priceIds";
|
|
2531
|
+
readonly type: "bytes32[]";
|
|
2532
|
+
}, {
|
|
2533
|
+
readonly internalType: "bool[]";
|
|
2534
|
+
readonly name: "isPyth";
|
|
2535
|
+
readonly type: "bool[]";
|
|
2536
|
+
}];
|
|
2537
|
+
readonly internalType: "struct IPerpetualInfo.PerpetualStaticInfo[]";
|
|
2538
|
+
readonly name: "";
|
|
2539
|
+
readonly type: "tuple[]";
|
|
2540
|
+
}];
|
|
2541
|
+
readonly stateMutability: "view";
|
|
2542
|
+
readonly type: "function";
|
|
2543
|
+
}, {
|
|
2544
|
+
readonly inputs: readonly [{
|
|
2545
|
+
readonly internalType: "uint24[]";
|
|
2546
|
+
readonly name: "perpetualIds";
|
|
2547
|
+
readonly type: "uint24[]";
|
|
2548
|
+
}];
|
|
2549
|
+
readonly name: "getPerpetuals";
|
|
2550
|
+
readonly outputs: readonly [{
|
|
2551
|
+
readonly components: readonly [{
|
|
2552
|
+
readonly internalType: "uint8";
|
|
2553
|
+
readonly name: "poolId";
|
|
2554
|
+
readonly type: "uint8";
|
|
2555
|
+
}, {
|
|
2556
|
+
readonly internalType: "uint24";
|
|
2557
|
+
readonly name: "id";
|
|
2558
|
+
readonly type: "uint24";
|
|
2559
|
+
}, {
|
|
2560
|
+
readonly internalType: "int32";
|
|
2561
|
+
readonly name: "fInitialMarginRate";
|
|
2562
|
+
readonly type: "int32";
|
|
2563
|
+
}, {
|
|
2564
|
+
readonly internalType: "int32";
|
|
2565
|
+
readonly name: "fSigma2";
|
|
2566
|
+
readonly type: "int32";
|
|
2567
|
+
}, {
|
|
2568
|
+
readonly internalType: "uint32";
|
|
2569
|
+
readonly name: "iLastFundingTime";
|
|
2570
|
+
readonly type: "uint32";
|
|
2571
|
+
}, {
|
|
2572
|
+
readonly internalType: "uint32";
|
|
2573
|
+
readonly name: "slot0";
|
|
2574
|
+
readonly type: "uint32";
|
|
2575
|
+
}, {
|
|
2576
|
+
readonly internalType: "uint32";
|
|
2577
|
+
readonly name: "slot1";
|
|
2578
|
+
readonly type: "uint32";
|
|
2579
|
+
}, {
|
|
2580
|
+
readonly internalType: "int32";
|
|
2581
|
+
readonly name: "fMaintenanceMarginRate";
|
|
2582
|
+
readonly type: "int32";
|
|
2583
|
+
}, {
|
|
2584
|
+
readonly internalType: "enum PerpStorage.PerpetualState";
|
|
2585
|
+
readonly name: "state";
|
|
2586
|
+
readonly type: "uint8";
|
|
2587
|
+
}, {
|
|
2588
|
+
readonly internalType: "enum AMMPerpLogic.CollateralCurrency";
|
|
2589
|
+
readonly name: "eCollateralCurrency";
|
|
2590
|
+
readonly type: "uint8";
|
|
2591
|
+
}, {
|
|
2592
|
+
readonly internalType: "uint16";
|
|
2593
|
+
readonly name: "minimalSpreadTbps";
|
|
2594
|
+
readonly type: "uint16";
|
|
2595
|
+
}, {
|
|
2596
|
+
readonly internalType: "bytes4";
|
|
2597
|
+
readonly name: "S2BaseCCY";
|
|
2598
|
+
readonly type: "bytes4";
|
|
2599
|
+
}, {
|
|
2600
|
+
readonly internalType: "bytes4";
|
|
2601
|
+
readonly name: "S2QuoteCCY";
|
|
2602
|
+
readonly type: "bytes4";
|
|
2603
|
+
}, {
|
|
2604
|
+
readonly internalType: "uint16";
|
|
2605
|
+
readonly name: "incentiveSpreadTbps";
|
|
2606
|
+
readonly type: "uint16";
|
|
2607
|
+
}, {
|
|
2608
|
+
readonly internalType: "uint16";
|
|
2609
|
+
readonly name: "slot2";
|
|
2610
|
+
readonly type: "uint16";
|
|
2611
|
+
}, {
|
|
2612
|
+
readonly internalType: "bytes4";
|
|
2613
|
+
readonly name: "S3BaseCCY";
|
|
2614
|
+
readonly type: "bytes4";
|
|
2615
|
+
}, {
|
|
2616
|
+
readonly internalType: "bytes4";
|
|
2617
|
+
readonly name: "S3QuoteCCY";
|
|
2618
|
+
readonly type: "bytes4";
|
|
2619
|
+
}, {
|
|
2620
|
+
readonly internalType: "int32";
|
|
2621
|
+
readonly name: "fSigma3";
|
|
2622
|
+
readonly type: "int32";
|
|
2623
|
+
}, {
|
|
2624
|
+
readonly internalType: "int32";
|
|
2625
|
+
readonly name: "fRho23";
|
|
2626
|
+
readonly type: "int32";
|
|
2627
|
+
}, {
|
|
2628
|
+
readonly internalType: "uint16";
|
|
2629
|
+
readonly name: "liquidationPenaltyRateTbps";
|
|
2630
|
+
readonly type: "uint16";
|
|
2631
|
+
}, {
|
|
2632
|
+
readonly components: readonly [{
|
|
2633
|
+
readonly internalType: "int128";
|
|
2634
|
+
readonly name: "fPrice";
|
|
2635
|
+
readonly type: "int128";
|
|
2636
|
+
}, {
|
|
2637
|
+
readonly internalType: "uint64";
|
|
2638
|
+
readonly name: "time";
|
|
2639
|
+
readonly type: "uint64";
|
|
2640
|
+
}];
|
|
2641
|
+
readonly internalType: "struct PerpStorage.PriceTimeData";
|
|
2642
|
+
readonly name: "currentMarkPremiumRate";
|
|
2643
|
+
readonly type: "tuple";
|
|
2644
|
+
}, {
|
|
2645
|
+
readonly internalType: "int128";
|
|
2646
|
+
readonly name: "premiumRatesEMA";
|
|
2647
|
+
readonly type: "int128";
|
|
2648
|
+
}, {
|
|
2649
|
+
readonly internalType: "int128";
|
|
2650
|
+
readonly name: "fUnitAccumulatedFunding";
|
|
2651
|
+
readonly type: "int128";
|
|
2652
|
+
}, {
|
|
2653
|
+
readonly internalType: "int128";
|
|
2654
|
+
readonly name: "fOpenInterest";
|
|
2655
|
+
readonly type: "int128";
|
|
2656
|
+
}, {
|
|
2657
|
+
readonly internalType: "int128";
|
|
2658
|
+
readonly name: "fTargetAMMFundSize";
|
|
2659
|
+
readonly type: "int128";
|
|
2660
|
+
}, {
|
|
2661
|
+
readonly internalType: "int128";
|
|
2662
|
+
readonly name: "fCurrentTraderExposureEMA";
|
|
2663
|
+
readonly type: "int128";
|
|
2664
|
+
}, {
|
|
2665
|
+
readonly internalType: "int128";
|
|
2666
|
+
readonly name: "fCurrentFundingRate";
|
|
2667
|
+
readonly type: "int128";
|
|
2668
|
+
}, {
|
|
2669
|
+
readonly internalType: "int128";
|
|
2670
|
+
readonly name: "fLotSizeBC";
|
|
2671
|
+
readonly type: "int128";
|
|
2672
|
+
}, {
|
|
2673
|
+
readonly internalType: "int128";
|
|
2674
|
+
readonly name: "fReferralRebateCC";
|
|
2675
|
+
readonly type: "int128";
|
|
2676
|
+
}, {
|
|
2677
|
+
readonly internalType: "int128";
|
|
2678
|
+
readonly name: "fTargetDFSize";
|
|
2679
|
+
readonly type: "int128";
|
|
2680
|
+
}, {
|
|
2681
|
+
readonly internalType: "int128";
|
|
2682
|
+
readonly name: "fkStar";
|
|
2683
|
+
readonly type: "int128";
|
|
2684
|
+
}, {
|
|
2685
|
+
readonly internalType: "int128";
|
|
2686
|
+
readonly name: "fAMMTargetDD";
|
|
2687
|
+
readonly type: "int128";
|
|
2688
|
+
}, {
|
|
2689
|
+
readonly internalType: "int128";
|
|
2690
|
+
readonly name: "fAMMMinSizeCC";
|
|
2691
|
+
readonly type: "int128";
|
|
2692
|
+
}, {
|
|
2693
|
+
readonly internalType: "int128";
|
|
2694
|
+
readonly name: "fMinimalTraderExposureEMA";
|
|
2695
|
+
readonly type: "int128";
|
|
2696
|
+
}, {
|
|
2697
|
+
readonly internalType: "int128";
|
|
2698
|
+
readonly name: "fMinimalAMMExposureEMA";
|
|
2699
|
+
readonly type: "int128";
|
|
2700
|
+
}, {
|
|
2701
|
+
readonly internalType: "int128";
|
|
2702
|
+
readonly name: "fSettlementS3PriceData";
|
|
2703
|
+
readonly type: "int128";
|
|
2704
|
+
}, {
|
|
2705
|
+
readonly internalType: "int128";
|
|
2706
|
+
readonly name: "fSettlementS2PriceData";
|
|
2707
|
+
readonly type: "int128";
|
|
2708
|
+
}, {
|
|
2709
|
+
readonly internalType: "int128";
|
|
2710
|
+
readonly name: "fTotalMarginBalance";
|
|
2711
|
+
readonly type: "int128";
|
|
2712
|
+
}, {
|
|
2713
|
+
readonly internalType: "int32";
|
|
2714
|
+
readonly name: "fMarkPriceEMALambda";
|
|
2715
|
+
readonly type: "int32";
|
|
2716
|
+
}, {
|
|
2717
|
+
readonly internalType: "int32";
|
|
2718
|
+
readonly name: "fFundingRateClamp";
|
|
2719
|
+
readonly type: "int32";
|
|
2720
|
+
}, {
|
|
2721
|
+
readonly internalType: "int32";
|
|
2722
|
+
readonly name: "fMaximalTradeSizeBumpUp";
|
|
2723
|
+
readonly type: "int32";
|
|
2724
|
+
}, {
|
|
2725
|
+
readonly internalType: "uint32";
|
|
2726
|
+
readonly name: "iLastTargetPoolSizeTime";
|
|
2727
|
+
readonly type: "uint32";
|
|
2728
|
+
}, {
|
|
2729
|
+
readonly internalType: "int32";
|
|
2730
|
+
readonly name: "fDFCoverNRate";
|
|
2731
|
+
readonly type: "int32";
|
|
2732
|
+
}, {
|
|
2733
|
+
readonly internalType: "int128[2]";
|
|
2734
|
+
readonly name: "fStressReturnS3";
|
|
2735
|
+
readonly type: "int128[2]";
|
|
2736
|
+
}, {
|
|
2737
|
+
readonly internalType: "int128[2]";
|
|
2738
|
+
readonly name: "fDFLambda";
|
|
2739
|
+
readonly type: "int128[2]";
|
|
2740
|
+
}, {
|
|
2741
|
+
readonly internalType: "int128[2]";
|
|
2742
|
+
readonly name: "fCurrentAMMExposureEMA";
|
|
2743
|
+
readonly type: "int128[2]";
|
|
2744
|
+
}, {
|
|
2745
|
+
readonly internalType: "int128[2]";
|
|
2746
|
+
readonly name: "fStressReturnS2";
|
|
2747
|
+
readonly type: "int128[2]";
|
|
2748
|
+
}];
|
|
2749
|
+
readonly internalType: "struct PerpStorage.PerpetualData[]";
|
|
2750
|
+
readonly name: "";
|
|
2751
|
+
readonly type: "tuple[]";
|
|
2752
|
+
}];
|
|
2753
|
+
readonly stateMutability: "view";
|
|
2754
|
+
readonly type: "function";
|
|
2755
|
+
}, {
|
|
2756
|
+
readonly inputs: readonly [];
|
|
2757
|
+
readonly name: "getPoolCount";
|
|
2758
|
+
readonly outputs: readonly [{
|
|
2759
|
+
readonly internalType: "uint8";
|
|
2760
|
+
readonly name: "";
|
|
2761
|
+
readonly type: "uint8";
|
|
2762
|
+
}];
|
|
2763
|
+
readonly stateMutability: "view";
|
|
2764
|
+
readonly type: "function";
|
|
2765
|
+
}, {
|
|
2766
|
+
readonly inputs: readonly [{
|
|
2767
|
+
readonly internalType: "uint24";
|
|
2768
|
+
readonly name: "_perpetualId";
|
|
2769
|
+
readonly type: "uint24";
|
|
2770
|
+
}];
|
|
2771
|
+
readonly name: "getPoolIdByPerpetualId";
|
|
2772
|
+
readonly outputs: readonly [{
|
|
2773
|
+
readonly internalType: "uint8";
|
|
2774
|
+
readonly name: "";
|
|
2775
|
+
readonly type: "uint8";
|
|
2776
|
+
}];
|
|
2777
|
+
readonly stateMutability: "view";
|
|
2778
|
+
readonly type: "function";
|
|
2779
|
+
}, {
|
|
2780
|
+
readonly inputs: readonly [{
|
|
2781
|
+
readonly internalType: "uint8";
|
|
2782
|
+
readonly name: "_poolFromIdx";
|
|
2783
|
+
readonly type: "uint8";
|
|
2784
|
+
}, {
|
|
2785
|
+
readonly internalType: "uint8";
|
|
2786
|
+
readonly name: "_poolToIdx";
|
|
2787
|
+
readonly type: "uint8";
|
|
2788
|
+
}];
|
|
2789
|
+
readonly name: "getPoolStaticInfo";
|
|
2790
|
+
readonly outputs: readonly [{
|
|
2791
|
+
readonly internalType: "uint24[][]";
|
|
2792
|
+
readonly name: "";
|
|
2793
|
+
readonly type: "uint24[][]";
|
|
2794
|
+
}, {
|
|
2795
|
+
readonly internalType: "address[]";
|
|
2796
|
+
readonly name: "";
|
|
2797
|
+
readonly type: "address[]";
|
|
2798
|
+
}, {
|
|
2799
|
+
readonly internalType: "address[]";
|
|
2800
|
+
readonly name: "";
|
|
2801
|
+
readonly type: "address[]";
|
|
2802
|
+
}, {
|
|
2803
|
+
readonly internalType: "address";
|
|
2804
|
+
readonly name: "_oracleFactoryAddress";
|
|
2805
|
+
readonly type: "address";
|
|
2806
|
+
}];
|
|
2807
|
+
readonly stateMutability: "view";
|
|
2808
|
+
readonly type: "function";
|
|
2809
|
+
}, {
|
|
2810
|
+
readonly inputs: readonly [{
|
|
2811
|
+
readonly internalType: "uint24";
|
|
2812
|
+
readonly name: "_perpetualId";
|
|
2813
|
+
readonly type: "uint24";
|
|
2814
|
+
}];
|
|
2815
|
+
readonly name: "getPriceInfo";
|
|
2816
|
+
readonly outputs: readonly [{
|
|
2817
|
+
readonly internalType: "bytes32[]";
|
|
2818
|
+
readonly name: "";
|
|
2819
|
+
readonly type: "bytes32[]";
|
|
2820
|
+
}, {
|
|
2821
|
+
readonly internalType: "bool[]";
|
|
2822
|
+
readonly name: "";
|
|
2823
|
+
readonly type: "bool[]";
|
|
2824
|
+
}];
|
|
2825
|
+
readonly stateMutability: "view";
|
|
2826
|
+
readonly type: "function";
|
|
2827
|
+
}, {
|
|
2828
|
+
readonly inputs: readonly [{
|
|
2829
|
+
readonly internalType: "uint24";
|
|
2830
|
+
readonly name: "_perpetualId";
|
|
2831
|
+
readonly type: "uint24";
|
|
2832
|
+
}, {
|
|
2833
|
+
readonly internalType: "uint256";
|
|
2834
|
+
readonly name: "start";
|
|
2835
|
+
readonly type: "uint256";
|
|
2836
|
+
}, {
|
|
2837
|
+
readonly internalType: "uint256";
|
|
2838
|
+
readonly name: "count";
|
|
2839
|
+
readonly type: "uint256";
|
|
2840
|
+
}];
|
|
2841
|
+
readonly name: "getSettleableAccounts";
|
|
2842
|
+
readonly outputs: readonly [{
|
|
2843
|
+
readonly internalType: "address[]";
|
|
2844
|
+
readonly name: "";
|
|
2845
|
+
readonly type: "address[]";
|
|
2846
|
+
}];
|
|
2847
|
+
readonly stateMutability: "view";
|
|
2848
|
+
readonly type: "function";
|
|
2849
|
+
}, {
|
|
2850
|
+
readonly inputs: readonly [];
|
|
2851
|
+
readonly name: "getShareTokenFactory";
|
|
2852
|
+
readonly outputs: readonly [{
|
|
2853
|
+
readonly internalType: "contract IShareTokenFactory";
|
|
2854
|
+
readonly name: "";
|
|
2855
|
+
readonly type: "address";
|
|
2856
|
+
}];
|
|
2857
|
+
readonly stateMutability: "view";
|
|
2858
|
+
readonly type: "function";
|
|
2859
|
+
}, {
|
|
2860
|
+
readonly inputs: readonly [{
|
|
2861
|
+
readonly internalType: "uint8";
|
|
2862
|
+
readonly name: "_poolId";
|
|
2863
|
+
readonly type: "uint8";
|
|
2864
|
+
}];
|
|
2865
|
+
readonly name: "getShareTokenPriceD18";
|
|
2866
|
+
readonly outputs: readonly [{
|
|
2867
|
+
readonly internalType: "uint256";
|
|
2868
|
+
readonly name: "price";
|
|
2869
|
+
readonly type: "uint256";
|
|
2870
|
+
}];
|
|
2871
|
+
readonly stateMutability: "view";
|
|
2872
|
+
readonly type: "function";
|
|
2873
|
+
}, {
|
|
2874
|
+
readonly inputs: readonly [{
|
|
2875
|
+
readonly internalType: "int128";
|
|
2876
|
+
readonly name: "_fK2";
|
|
2877
|
+
readonly type: "int128";
|
|
2878
|
+
}, {
|
|
2879
|
+
readonly internalType: "int128";
|
|
2880
|
+
readonly name: "_fL1";
|
|
2881
|
+
readonly type: "int128";
|
|
2882
|
+
}, {
|
|
2883
|
+
readonly components: readonly [{
|
|
2884
|
+
readonly internalType: "int128";
|
|
2885
|
+
readonly name: "fIndexPriceS2";
|
|
2886
|
+
readonly type: "int128";
|
|
2887
|
+
}, {
|
|
2888
|
+
readonly internalType: "int128";
|
|
2889
|
+
readonly name: "fIndexPriceS3";
|
|
2890
|
+
readonly type: "int128";
|
|
2891
|
+
}, {
|
|
2892
|
+
readonly internalType: "int128";
|
|
2893
|
+
readonly name: "fSigma2";
|
|
2894
|
+
readonly type: "int128";
|
|
2895
|
+
}, {
|
|
2896
|
+
readonly internalType: "int128";
|
|
2897
|
+
readonly name: "fSigma3";
|
|
2898
|
+
readonly type: "int128";
|
|
2899
|
+
}, {
|
|
2900
|
+
readonly internalType: "int128";
|
|
2901
|
+
readonly name: "fRho23";
|
|
2902
|
+
readonly type: "int128";
|
|
2903
|
+
}];
|
|
2904
|
+
readonly internalType: "struct AMMPerpLogic.MarketVariables";
|
|
2905
|
+
readonly name: "_mktVars";
|
|
2906
|
+
readonly type: "tuple";
|
|
2907
|
+
}, {
|
|
2908
|
+
readonly internalType: "int128";
|
|
2909
|
+
readonly name: "_fTargetDD";
|
|
2910
|
+
readonly type: "int128";
|
|
2911
|
+
}];
|
|
2912
|
+
readonly name: "getTargetCollateralM1";
|
|
2913
|
+
readonly outputs: readonly [{
|
|
2914
|
+
readonly internalType: "int128";
|
|
2915
|
+
readonly name: "";
|
|
2916
|
+
readonly type: "int128";
|
|
2917
|
+
}];
|
|
2918
|
+
readonly stateMutability: "pure";
|
|
2919
|
+
readonly type: "function";
|
|
2920
|
+
}, {
|
|
2921
|
+
readonly inputs: readonly [{
|
|
2922
|
+
readonly internalType: "int128";
|
|
2923
|
+
readonly name: "_fK2";
|
|
2924
|
+
readonly type: "int128";
|
|
2925
|
+
}, {
|
|
2926
|
+
readonly internalType: "int128";
|
|
2927
|
+
readonly name: "_fL1";
|
|
2928
|
+
readonly type: "int128";
|
|
2929
|
+
}, {
|
|
2930
|
+
readonly components: readonly [{
|
|
2931
|
+
readonly internalType: "int128";
|
|
2932
|
+
readonly name: "fIndexPriceS2";
|
|
2933
|
+
readonly type: "int128";
|
|
2934
|
+
}, {
|
|
2935
|
+
readonly internalType: "int128";
|
|
2936
|
+
readonly name: "fIndexPriceS3";
|
|
2937
|
+
readonly type: "int128";
|
|
2938
|
+
}, {
|
|
2939
|
+
readonly internalType: "int128";
|
|
2940
|
+
readonly name: "fSigma2";
|
|
2941
|
+
readonly type: "int128";
|
|
2942
|
+
}, {
|
|
2943
|
+
readonly internalType: "int128";
|
|
2944
|
+
readonly name: "fSigma3";
|
|
2945
|
+
readonly type: "int128";
|
|
2946
|
+
}, {
|
|
2947
|
+
readonly internalType: "int128";
|
|
2948
|
+
readonly name: "fRho23";
|
|
2949
|
+
readonly type: "int128";
|
|
2950
|
+
}];
|
|
2951
|
+
readonly internalType: "struct AMMPerpLogic.MarketVariables";
|
|
2952
|
+
readonly name: "_mktVars";
|
|
2953
|
+
readonly type: "tuple";
|
|
2954
|
+
}, {
|
|
2955
|
+
readonly internalType: "int128";
|
|
2956
|
+
readonly name: "_fTargetDD";
|
|
2957
|
+
readonly type: "int128";
|
|
2958
|
+
}];
|
|
2959
|
+
readonly name: "getTargetCollateralM2";
|
|
2960
|
+
readonly outputs: readonly [{
|
|
2961
|
+
readonly internalType: "int128";
|
|
2962
|
+
readonly name: "";
|
|
2963
|
+
readonly type: "int128";
|
|
2964
|
+
}];
|
|
2965
|
+
readonly stateMutability: "pure";
|
|
2966
|
+
readonly type: "function";
|
|
2967
|
+
}, {
|
|
2968
|
+
readonly inputs: readonly [{
|
|
2969
|
+
readonly internalType: "int128";
|
|
2970
|
+
readonly name: "_fK2";
|
|
2971
|
+
readonly type: "int128";
|
|
2972
|
+
}, {
|
|
2973
|
+
readonly internalType: "int128";
|
|
2974
|
+
readonly name: "_fL1";
|
|
2975
|
+
readonly type: "int128";
|
|
2976
|
+
}, {
|
|
2977
|
+
readonly components: readonly [{
|
|
2978
|
+
readonly internalType: "int128";
|
|
2979
|
+
readonly name: "fIndexPriceS2";
|
|
2980
|
+
readonly type: "int128";
|
|
2981
|
+
}, {
|
|
2982
|
+
readonly internalType: "int128";
|
|
2983
|
+
readonly name: "fIndexPriceS3";
|
|
2984
|
+
readonly type: "int128";
|
|
2985
|
+
}, {
|
|
2986
|
+
readonly internalType: "int128";
|
|
2987
|
+
readonly name: "fSigma2";
|
|
2988
|
+
readonly type: "int128";
|
|
2989
|
+
}, {
|
|
2990
|
+
readonly internalType: "int128";
|
|
2991
|
+
readonly name: "fSigma3";
|
|
2992
|
+
readonly type: "int128";
|
|
2993
|
+
}, {
|
|
2994
|
+
readonly internalType: "int128";
|
|
2995
|
+
readonly name: "fRho23";
|
|
2996
|
+
readonly type: "int128";
|
|
2997
|
+
}];
|
|
2998
|
+
readonly internalType: "struct AMMPerpLogic.MarketVariables";
|
|
2999
|
+
readonly name: "_mktVars";
|
|
3000
|
+
readonly type: "tuple";
|
|
3001
|
+
}, {
|
|
3002
|
+
readonly internalType: "int128";
|
|
3003
|
+
readonly name: "_fTargetDD";
|
|
3004
|
+
readonly type: "int128";
|
|
3005
|
+
}];
|
|
3006
|
+
readonly name: "getTargetCollateralM3";
|
|
3007
|
+
readonly outputs: readonly [{
|
|
3008
|
+
readonly internalType: "int128";
|
|
3009
|
+
readonly name: "";
|
|
3010
|
+
readonly type: "int128";
|
|
3011
|
+
}];
|
|
3012
|
+
readonly stateMutability: "pure";
|
|
3013
|
+
readonly type: "function";
|
|
3014
|
+
}, {
|
|
3015
|
+
readonly inputs: readonly [{
|
|
3016
|
+
readonly internalType: "uint8";
|
|
3017
|
+
readonly name: "_poolId";
|
|
3018
|
+
readonly type: "uint8";
|
|
3019
|
+
}, {
|
|
3020
|
+
readonly internalType: "uint256";
|
|
3021
|
+
readonly name: "_shareAmount";
|
|
3022
|
+
readonly type: "uint256";
|
|
3023
|
+
}];
|
|
3024
|
+
readonly name: "getTokenAmountToReturn";
|
|
3025
|
+
readonly outputs: readonly [{
|
|
3026
|
+
readonly internalType: "uint256";
|
|
3027
|
+
readonly name: "";
|
|
3028
|
+
readonly type: "uint256";
|
|
3029
|
+
}];
|
|
3030
|
+
readonly stateMutability: "view";
|
|
3031
|
+
readonly type: "function";
|
|
3032
|
+
}, {
|
|
3033
|
+
readonly inputs: readonly [{
|
|
3034
|
+
readonly internalType: "uint24";
|
|
3035
|
+
readonly name: "_perpetualId";
|
|
3036
|
+
readonly type: "uint24";
|
|
3037
|
+
}, {
|
|
3038
|
+
readonly internalType: "address";
|
|
3039
|
+
readonly name: "_traderAddress";
|
|
3040
|
+
readonly type: "address";
|
|
3041
|
+
}, {
|
|
3042
|
+
readonly internalType: "int128[2]";
|
|
3043
|
+
readonly name: "_fIndexPrice";
|
|
3044
|
+
readonly type: "int128[2]";
|
|
3045
|
+
}];
|
|
3046
|
+
readonly name: "getTraderState";
|
|
3047
|
+
readonly outputs: readonly [{
|
|
3048
|
+
readonly internalType: "int128[11]";
|
|
3049
|
+
readonly name: "";
|
|
3050
|
+
readonly type: "int128[11]";
|
|
3051
|
+
}];
|
|
3052
|
+
readonly stateMutability: "view";
|
|
3053
|
+
readonly type: "function";
|
|
3054
|
+
}, {
|
|
3055
|
+
readonly inputs: readonly [];
|
|
3056
|
+
readonly name: "getTreasuryAddress";
|
|
3057
|
+
readonly outputs: readonly [{
|
|
3058
|
+
readonly internalType: "address";
|
|
3059
|
+
readonly name: "";
|
|
3060
|
+
readonly type: "address";
|
|
3061
|
+
}];
|
|
3062
|
+
readonly stateMutability: "view";
|
|
3063
|
+
readonly type: "function";
|
|
3064
|
+
}, {
|
|
3065
|
+
readonly inputs: readonly [{
|
|
3066
|
+
readonly internalType: "uint8";
|
|
3067
|
+
readonly name: "poolId";
|
|
3068
|
+
readonly type: "uint8";
|
|
3069
|
+
}, {
|
|
3070
|
+
readonly internalType: "uint256";
|
|
3071
|
+
readonly name: "_fromIdx";
|
|
3072
|
+
readonly type: "uint256";
|
|
3073
|
+
}, {
|
|
3074
|
+
readonly internalType: "uint256";
|
|
3075
|
+
readonly name: "numRequests";
|
|
3076
|
+
readonly type: "uint256";
|
|
3077
|
+
}];
|
|
3078
|
+
readonly name: "getWithdrawRequests";
|
|
3079
|
+
readonly outputs: readonly [{
|
|
3080
|
+
readonly components: readonly [{
|
|
3081
|
+
readonly internalType: "address";
|
|
3082
|
+
readonly name: "lp";
|
|
3083
|
+
readonly type: "address";
|
|
3084
|
+
}, {
|
|
3085
|
+
readonly internalType: "uint256";
|
|
3086
|
+
readonly name: "shareTokens";
|
|
3087
|
+
readonly type: "uint256";
|
|
3088
|
+
}, {
|
|
3089
|
+
readonly internalType: "uint64";
|
|
3090
|
+
readonly name: "withdrawTimestamp";
|
|
3091
|
+
readonly type: "uint64";
|
|
3092
|
+
}];
|
|
3093
|
+
readonly internalType: "struct IPerpetualTreasury.WithdrawRequest[]";
|
|
3094
|
+
readonly name: "";
|
|
3095
|
+
readonly type: "tuple[]";
|
|
3096
|
+
}];
|
|
3097
|
+
readonly stateMutability: "view";
|
|
3098
|
+
readonly type: "function";
|
|
3099
|
+
}, {
|
|
3100
|
+
readonly inputs: readonly [{
|
|
3101
|
+
readonly internalType: "uint8";
|
|
3102
|
+
readonly name: "_iPoolIdx";
|
|
3103
|
+
readonly type: "uint8";
|
|
3104
|
+
}, {
|
|
3105
|
+
readonly internalType: "int128";
|
|
3106
|
+
readonly name: "_fAmount";
|
|
3107
|
+
readonly type: "int128";
|
|
3108
|
+
}];
|
|
3109
|
+
readonly name: "increasePoolCash";
|
|
3110
|
+
readonly outputs: readonly [];
|
|
3111
|
+
readonly stateMutability: "nonpayable";
|
|
3112
|
+
readonly type: "function";
|
|
3113
|
+
}, {
|
|
3114
|
+
readonly inputs: readonly [{
|
|
3115
|
+
readonly internalType: "uint24";
|
|
3116
|
+
readonly name: "_perpetualId";
|
|
3117
|
+
readonly type: "uint24";
|
|
3118
|
+
}, {
|
|
3119
|
+
readonly internalType: "address";
|
|
3120
|
+
readonly name: "_traderAddress";
|
|
3121
|
+
readonly type: "address";
|
|
3122
|
+
}];
|
|
3123
|
+
readonly name: "isActiveAccount";
|
|
3124
|
+
readonly outputs: readonly [{
|
|
3125
|
+
readonly internalType: "bool";
|
|
3126
|
+
readonly name: "";
|
|
3127
|
+
readonly type: "bool";
|
|
3128
|
+
}];
|
|
3129
|
+
readonly stateMutability: "view";
|
|
3130
|
+
readonly type: "function";
|
|
3131
|
+
}, {
|
|
3132
|
+
readonly inputs: readonly [{
|
|
3133
|
+
readonly internalType: "address";
|
|
3134
|
+
readonly name: "_trader";
|
|
3135
|
+
readonly type: "address";
|
|
3136
|
+
}, {
|
|
3137
|
+
readonly internalType: "address";
|
|
3138
|
+
readonly name: "_delegate";
|
|
3139
|
+
readonly type: "address";
|
|
3140
|
+
}];
|
|
3141
|
+
readonly name: "isDelegate";
|
|
3142
|
+
readonly outputs: readonly [{
|
|
3143
|
+
readonly internalType: "bool";
|
|
3144
|
+
readonly name: "";
|
|
3145
|
+
readonly type: "bool";
|
|
3146
|
+
}];
|
|
3147
|
+
readonly stateMutability: "view";
|
|
3148
|
+
readonly type: "function";
|
|
3149
|
+
}, {
|
|
3150
|
+
readonly inputs: readonly [{
|
|
3151
|
+
readonly internalType: "bytes4";
|
|
3152
|
+
readonly name: "_baseCurrency";
|
|
3153
|
+
readonly type: "bytes4";
|
|
3154
|
+
}, {
|
|
3155
|
+
readonly internalType: "bytes4";
|
|
3156
|
+
readonly name: "_quoteCurrency";
|
|
3157
|
+
readonly type: "bytes4";
|
|
3158
|
+
}];
|
|
3159
|
+
readonly name: "isMarketClosed";
|
|
3160
|
+
readonly outputs: readonly [{
|
|
3161
|
+
readonly internalType: "bool";
|
|
3162
|
+
readonly name: "";
|
|
3163
|
+
readonly type: "bool";
|
|
3164
|
+
}];
|
|
3165
|
+
readonly stateMutability: "view";
|
|
3166
|
+
readonly type: "function";
|
|
3167
|
+
}, {
|
|
3168
|
+
readonly inputs: readonly [{
|
|
3169
|
+
readonly internalType: "bytes32";
|
|
3170
|
+
readonly name: "digest";
|
|
3171
|
+
readonly type: "bytes32";
|
|
3172
|
+
}];
|
|
3173
|
+
readonly name: "isOrderCanceled";
|
|
3174
|
+
readonly outputs: readonly [{
|
|
3175
|
+
readonly internalType: "bool";
|
|
3176
|
+
readonly name: "";
|
|
3177
|
+
readonly type: "bool";
|
|
3178
|
+
}];
|
|
3179
|
+
readonly stateMutability: "view";
|
|
3180
|
+
readonly type: "function";
|
|
3181
|
+
}, {
|
|
3182
|
+
readonly inputs: readonly [{
|
|
3183
|
+
readonly internalType: "bytes32";
|
|
3184
|
+
readonly name: "digest";
|
|
3185
|
+
readonly type: "bytes32";
|
|
3186
|
+
}];
|
|
3187
|
+
readonly name: "isOrderExecuted";
|
|
3188
|
+
readonly outputs: readonly [{
|
|
3189
|
+
readonly internalType: "bool";
|
|
3190
|
+
readonly name: "";
|
|
3191
|
+
readonly type: "bool";
|
|
3192
|
+
}];
|
|
3193
|
+
readonly stateMutability: "view";
|
|
3194
|
+
readonly type: "function";
|
|
3195
|
+
}, {
|
|
3196
|
+
readonly inputs: readonly [{
|
|
3197
|
+
readonly internalType: "uint24";
|
|
3198
|
+
readonly name: "_perpetualId";
|
|
3199
|
+
readonly type: "uint24";
|
|
3200
|
+
}];
|
|
3201
|
+
readonly name: "isPerpMarketClosed";
|
|
3202
|
+
readonly outputs: readonly [{
|
|
3203
|
+
readonly internalType: "bool";
|
|
3204
|
+
readonly name: "isClosed";
|
|
3205
|
+
readonly type: "bool";
|
|
3206
|
+
}];
|
|
3207
|
+
readonly stateMutability: "view";
|
|
3208
|
+
readonly type: "function";
|
|
3209
|
+
}, {
|
|
3210
|
+
readonly inputs: readonly [{
|
|
3211
|
+
readonly internalType: "uint24";
|
|
3212
|
+
readonly name: "_perpetualIndex";
|
|
3213
|
+
readonly type: "uint24";
|
|
3214
|
+
}, {
|
|
3215
|
+
readonly internalType: "address";
|
|
3216
|
+
readonly name: "_liquidatorAddr";
|
|
3217
|
+
readonly type: "address";
|
|
3218
|
+
}, {
|
|
3219
|
+
readonly internalType: "address";
|
|
3220
|
+
readonly name: "_traderAddr";
|
|
3221
|
+
readonly type: "address";
|
|
3222
|
+
}, {
|
|
3223
|
+
readonly internalType: "bytes[]";
|
|
3224
|
+
readonly name: "_updateData";
|
|
3225
|
+
readonly type: "bytes[]";
|
|
3226
|
+
}, {
|
|
3227
|
+
readonly internalType: "uint64[]";
|
|
3228
|
+
readonly name: "_publishTimes";
|
|
3229
|
+
readonly type: "uint64[]";
|
|
3230
|
+
}];
|
|
3231
|
+
readonly name: "liquidateByAMM";
|
|
3232
|
+
readonly outputs: readonly [{
|
|
3233
|
+
readonly internalType: "int128";
|
|
3234
|
+
readonly name: "liquidatedAmount";
|
|
3235
|
+
readonly type: "int128";
|
|
3236
|
+
}];
|
|
3237
|
+
readonly stateMutability: "payable";
|
|
3238
|
+
readonly type: "function";
|
|
3239
|
+
}, {
|
|
3240
|
+
readonly inputs: readonly [{
|
|
3241
|
+
readonly internalType: "uint8";
|
|
3242
|
+
readonly name: "_poolId";
|
|
3243
|
+
readonly type: "uint8";
|
|
3244
|
+
}, {
|
|
3245
|
+
readonly internalType: "bool";
|
|
3246
|
+
readonly name: "_pauseOn";
|
|
3247
|
+
readonly type: "bool";
|
|
3248
|
+
}];
|
|
3249
|
+
readonly name: "pauseLiquidityProvision";
|
|
3250
|
+
readonly outputs: readonly [];
|
|
3251
|
+
readonly stateMutability: "nonpayable";
|
|
3252
|
+
readonly type: "function";
|
|
3253
|
+
}, {
|
|
3254
|
+
readonly inputs: readonly [{
|
|
3255
|
+
readonly components: readonly [{
|
|
3256
|
+
readonly internalType: "uint16";
|
|
3257
|
+
readonly name: "leverageTDR";
|
|
3258
|
+
readonly type: "uint16";
|
|
3259
|
+
}, {
|
|
3260
|
+
readonly internalType: "uint16";
|
|
3261
|
+
readonly name: "brokerFeeTbps";
|
|
3262
|
+
readonly type: "uint16";
|
|
3263
|
+
}, {
|
|
3264
|
+
readonly internalType: "uint24";
|
|
3265
|
+
readonly name: "iPerpetualId";
|
|
3266
|
+
readonly type: "uint24";
|
|
3267
|
+
}, {
|
|
3268
|
+
readonly internalType: "address";
|
|
3269
|
+
readonly name: "traderAddr";
|
|
3270
|
+
readonly type: "address";
|
|
3271
|
+
}, {
|
|
3272
|
+
readonly internalType: "uint32";
|
|
3273
|
+
readonly name: "executionTimestamp";
|
|
3274
|
+
readonly type: "uint32";
|
|
3275
|
+
}, {
|
|
3276
|
+
readonly internalType: "address";
|
|
3277
|
+
readonly name: "brokerAddr";
|
|
3278
|
+
readonly type: "address";
|
|
3279
|
+
}, {
|
|
3280
|
+
readonly internalType: "uint32";
|
|
3281
|
+
readonly name: "submittedTimestamp";
|
|
3282
|
+
readonly type: "uint32";
|
|
3283
|
+
}, {
|
|
3284
|
+
readonly internalType: "uint32";
|
|
3285
|
+
readonly name: "flags";
|
|
3286
|
+
readonly type: "uint32";
|
|
3287
|
+
}, {
|
|
3288
|
+
readonly internalType: "uint32";
|
|
3289
|
+
readonly name: "iDeadline";
|
|
3290
|
+
readonly type: "uint32";
|
|
3291
|
+
}, {
|
|
3292
|
+
readonly internalType: "address";
|
|
3293
|
+
readonly name: "executorAddr";
|
|
3294
|
+
readonly type: "address";
|
|
3295
|
+
}, {
|
|
3296
|
+
readonly internalType: "int128";
|
|
3297
|
+
readonly name: "fAmount";
|
|
3298
|
+
readonly type: "int128";
|
|
3299
|
+
}, {
|
|
3300
|
+
readonly internalType: "int128";
|
|
3301
|
+
readonly name: "fLimitPrice";
|
|
3302
|
+
readonly type: "int128";
|
|
3303
|
+
}, {
|
|
3304
|
+
readonly internalType: "int128";
|
|
3305
|
+
readonly name: "fTriggerPrice";
|
|
3306
|
+
readonly type: "int128";
|
|
3307
|
+
}, {
|
|
3308
|
+
readonly internalType: "bytes";
|
|
3309
|
+
readonly name: "brokerSignature";
|
|
3310
|
+
readonly type: "bytes";
|
|
3311
|
+
}];
|
|
3312
|
+
readonly internalType: "struct IPerpetualOrder.Order";
|
|
3313
|
+
readonly name: "_order";
|
|
3314
|
+
readonly type: "tuple";
|
|
3315
|
+
}];
|
|
3316
|
+
readonly name: "preTrade";
|
|
3317
|
+
readonly outputs: readonly [{
|
|
3318
|
+
readonly internalType: "int128";
|
|
3319
|
+
readonly name: "";
|
|
3320
|
+
readonly type: "int128";
|
|
3321
|
+
}, {
|
|
3322
|
+
readonly internalType: "int128";
|
|
3323
|
+
readonly name: "";
|
|
3324
|
+
readonly type: "int128";
|
|
3325
|
+
}];
|
|
3326
|
+
readonly stateMutability: "nonpayable";
|
|
3327
|
+
readonly type: "function";
|
|
3328
|
+
}, {
|
|
3329
|
+
readonly inputs: readonly [{
|
|
3330
|
+
readonly internalType: "uint8";
|
|
3331
|
+
readonly name: "_poolId";
|
|
3332
|
+
readonly type: "uint8";
|
|
3333
|
+
}, {
|
|
3334
|
+
readonly internalType: "address";
|
|
3335
|
+
readonly name: "_traderAddr";
|
|
3336
|
+
readonly type: "address";
|
|
3337
|
+
}, {
|
|
3338
|
+
readonly internalType: "address";
|
|
3339
|
+
readonly name: "_brokerAddr";
|
|
3340
|
+
readonly type: "address";
|
|
3341
|
+
}];
|
|
3342
|
+
readonly name: "queryExchangeFee";
|
|
3343
|
+
readonly outputs: readonly [{
|
|
3344
|
+
readonly internalType: "uint16";
|
|
3345
|
+
readonly name: "";
|
|
3346
|
+
readonly type: "uint16";
|
|
3347
|
+
}];
|
|
3348
|
+
readonly stateMutability: "view";
|
|
3349
|
+
readonly type: "function";
|
|
3350
|
+
}, {
|
|
3351
|
+
readonly inputs: readonly [{
|
|
3352
|
+
readonly internalType: "uint24[]";
|
|
3353
|
+
readonly name: "perpetualIds";
|
|
3354
|
+
readonly type: "uint24[]";
|
|
3355
|
+
}, {
|
|
3356
|
+
readonly internalType: "int128[]";
|
|
3357
|
+
readonly name: "idxPriceDataPairs";
|
|
3358
|
+
readonly type: "int128[]";
|
|
3359
|
+
}];
|
|
3360
|
+
readonly name: "queryMidPrices";
|
|
3361
|
+
readonly outputs: readonly [{
|
|
3362
|
+
readonly internalType: "int128[]";
|
|
3363
|
+
readonly name: "";
|
|
3364
|
+
readonly type: "int128[]";
|
|
3365
|
+
}];
|
|
3366
|
+
readonly stateMutability: "view";
|
|
3367
|
+
readonly type: "function";
|
|
3368
|
+
}, {
|
|
3369
|
+
readonly inputs: readonly [{
|
|
3370
|
+
readonly internalType: "uint24";
|
|
3371
|
+
readonly name: "_iPerpetualId";
|
|
3372
|
+
readonly type: "uint24";
|
|
3373
|
+
}, {
|
|
3374
|
+
readonly internalType: "int128";
|
|
3375
|
+
readonly name: "_fTradeAmountBC";
|
|
3376
|
+
readonly type: "int128";
|
|
3377
|
+
}, {
|
|
3378
|
+
readonly internalType: "int128[2]";
|
|
3379
|
+
readonly name: "_fIndexPrice";
|
|
3380
|
+
readonly type: "int128[2]";
|
|
3381
|
+
}];
|
|
3382
|
+
readonly name: "queryPerpetualPrice";
|
|
3383
|
+
readonly outputs: readonly [{
|
|
3384
|
+
readonly internalType: "int128";
|
|
3385
|
+
readonly name: "";
|
|
3386
|
+
readonly type: "int128";
|
|
3387
|
+
}];
|
|
3388
|
+
readonly stateMutability: "view";
|
|
3389
|
+
readonly type: "function";
|
|
3390
|
+
}, {
|
|
3391
|
+
readonly inputs: readonly [{
|
|
3392
|
+
readonly internalType: "uint24";
|
|
3393
|
+
readonly name: "_iPerpetualId";
|
|
3394
|
+
readonly type: "uint24";
|
|
3395
|
+
}];
|
|
3396
|
+
readonly name: "rebalance";
|
|
3397
|
+
readonly outputs: readonly [];
|
|
3398
|
+
readonly stateMutability: "nonpayable";
|
|
3399
|
+
readonly type: "function";
|
|
3400
|
+
}, {
|
|
3401
|
+
readonly inputs: readonly [{
|
|
3402
|
+
readonly internalType: "uint24";
|
|
3403
|
+
readonly name: "_iPerpetualId";
|
|
3404
|
+
readonly type: "uint24";
|
|
3405
|
+
}, {
|
|
3406
|
+
readonly internalType: "address";
|
|
3407
|
+
readonly name: "_traderAddr";
|
|
3408
|
+
readonly type: "address";
|
|
3409
|
+
}, {
|
|
3410
|
+
readonly internalType: "int128";
|
|
3411
|
+
readonly name: "_fAmountToWithdraw";
|
|
3412
|
+
readonly type: "int128";
|
|
3413
|
+
}];
|
|
3414
|
+
readonly name: "reduceMarginCollateral";
|
|
3415
|
+
readonly outputs: readonly [];
|
|
3416
|
+
readonly stateMutability: "nonpayable";
|
|
3417
|
+
readonly type: "function";
|
|
3418
|
+
}, {
|
|
3419
|
+
readonly inputs: readonly [];
|
|
3420
|
+
readonly name: "removeDelegate";
|
|
3421
|
+
readonly outputs: readonly [];
|
|
3422
|
+
readonly stateMutability: "nonpayable";
|
|
3423
|
+
readonly type: "function";
|
|
3424
|
+
}, {
|
|
3425
|
+
readonly inputs: readonly [{
|
|
3426
|
+
readonly internalType: "uint8";
|
|
3427
|
+
readonly name: "_liqPoolID";
|
|
3428
|
+
readonly type: "uint8";
|
|
3429
|
+
}];
|
|
3430
|
+
readonly name: "runLiquidityPool";
|
|
3431
|
+
readonly outputs: readonly [];
|
|
3432
|
+
readonly stateMutability: "nonpayable";
|
|
3433
|
+
readonly type: "function";
|
|
3434
|
+
}, {
|
|
3435
|
+
readonly inputs: readonly [{
|
|
3436
|
+
readonly internalType: "address";
|
|
3437
|
+
readonly name: "_AMMPerpLogic";
|
|
3438
|
+
readonly type: "address";
|
|
3439
|
+
}];
|
|
3440
|
+
readonly name: "setAMMPerpLogic";
|
|
3441
|
+
readonly outputs: readonly [];
|
|
3442
|
+
readonly stateMutability: "nonpayable";
|
|
3443
|
+
readonly type: "function";
|
|
3444
|
+
}, {
|
|
3445
|
+
readonly inputs: readonly [{
|
|
3446
|
+
readonly internalType: "uint8";
|
|
3447
|
+
readonly name: "_delay";
|
|
3448
|
+
readonly type: "uint8";
|
|
3449
|
+
}];
|
|
3450
|
+
readonly name: "setBlockDelay";
|
|
3451
|
+
readonly outputs: readonly [];
|
|
3452
|
+
readonly stateMutability: "nonpayable";
|
|
3453
|
+
readonly type: "function";
|
|
3454
|
+
}, {
|
|
3455
|
+
readonly inputs: readonly [{
|
|
3456
|
+
readonly internalType: "uint256[]";
|
|
3457
|
+
readonly name: "_tiers";
|
|
3458
|
+
readonly type: "uint256[]";
|
|
3459
|
+
}, {
|
|
3460
|
+
readonly internalType: "uint16[]";
|
|
3461
|
+
readonly name: "_feesTbps";
|
|
3462
|
+
readonly type: "uint16[]";
|
|
3463
|
+
}];
|
|
3464
|
+
readonly name: "setBrokerTiers";
|
|
3465
|
+
readonly outputs: readonly [];
|
|
3466
|
+
readonly stateMutability: "nonpayable";
|
|
3467
|
+
readonly type: "function";
|
|
3468
|
+
}, {
|
|
3469
|
+
readonly inputs: readonly [{
|
|
3470
|
+
readonly internalType: "uint256[]";
|
|
3471
|
+
readonly name: "_tiers";
|
|
3472
|
+
readonly type: "uint256[]";
|
|
3473
|
+
}, {
|
|
3474
|
+
readonly internalType: "uint16[]";
|
|
3475
|
+
readonly name: "_feesTbps";
|
|
3476
|
+
readonly type: "uint16[]";
|
|
3477
|
+
}];
|
|
3478
|
+
readonly name: "setBrokerVolumeTiers";
|
|
3479
|
+
readonly outputs: readonly [];
|
|
3480
|
+
readonly stateMutability: "nonpayable";
|
|
3481
|
+
readonly type: "function";
|
|
3482
|
+
}, {
|
|
3483
|
+
readonly inputs: readonly [{
|
|
3484
|
+
readonly internalType: "address";
|
|
3485
|
+
readonly name: "delegate";
|
|
3486
|
+
readonly type: "address";
|
|
3487
|
+
}];
|
|
3488
|
+
readonly name: "setDelegate";
|
|
3489
|
+
readonly outputs: readonly [];
|
|
3490
|
+
readonly stateMutability: "nonpayable";
|
|
3491
|
+
readonly type: "function";
|
|
3492
|
+
}, {
|
|
3493
|
+
readonly inputs: readonly [{
|
|
3494
|
+
readonly internalType: "uint24";
|
|
3495
|
+
readonly name: "_iPerpetualId";
|
|
3496
|
+
readonly type: "uint24";
|
|
3497
|
+
}];
|
|
3498
|
+
readonly name: "setEmergencyState";
|
|
3499
|
+
readonly outputs: readonly [];
|
|
3500
|
+
readonly stateMutability: "nonpayable";
|
|
3501
|
+
readonly type: "function";
|
|
3502
|
+
}, {
|
|
3503
|
+
readonly inputs: readonly [{
|
|
3504
|
+
readonly internalType: "uint32[]";
|
|
3505
|
+
readonly name: "_designations";
|
|
3506
|
+
readonly type: "uint32[]";
|
|
3507
|
+
}, {
|
|
3508
|
+
readonly internalType: "uint16[]";
|
|
3509
|
+
readonly name: "_fees";
|
|
3510
|
+
readonly type: "uint16[]";
|
|
3511
|
+
}];
|
|
3512
|
+
readonly name: "setFeesForDesignation";
|
|
3513
|
+
readonly outputs: readonly [];
|
|
3514
|
+
readonly stateMutability: "nonpayable";
|
|
3515
|
+
readonly type: "function";
|
|
3516
|
+
}, {
|
|
3517
|
+
readonly inputs: readonly [{
|
|
3518
|
+
readonly internalType: "uint8";
|
|
3519
|
+
readonly name: "_poolId";
|
|
3520
|
+
readonly type: "uint8";
|
|
3521
|
+
}, {
|
|
3522
|
+
readonly internalType: "address";
|
|
3523
|
+
readonly name: "_brokerAddr";
|
|
3524
|
+
readonly type: "address";
|
|
3525
|
+
}, {
|
|
3526
|
+
readonly internalType: "uint16";
|
|
3527
|
+
readonly name: "_feeTbps";
|
|
3528
|
+
readonly type: "uint16";
|
|
3529
|
+
}];
|
|
3530
|
+
readonly name: "setInitialVolumeForFee";
|
|
3531
|
+
readonly outputs: readonly [];
|
|
3532
|
+
readonly stateMutability: "nonpayable";
|
|
3533
|
+
readonly type: "function";
|
|
3534
|
+
}, {
|
|
3535
|
+
readonly inputs: readonly [{
|
|
3536
|
+
readonly internalType: "uint24";
|
|
3537
|
+
readonly name: "_iPerpetualId";
|
|
3538
|
+
readonly type: "uint24";
|
|
3539
|
+
}];
|
|
3540
|
+
readonly name: "setNormalState";
|
|
3541
|
+
readonly outputs: readonly [];
|
|
3542
|
+
readonly stateMutability: "nonpayable";
|
|
3543
|
+
readonly type: "function";
|
|
3544
|
+
}, {
|
|
3545
|
+
readonly inputs: readonly [{
|
|
3546
|
+
readonly internalType: "address";
|
|
3547
|
+
readonly name: "_oracleFactory";
|
|
3548
|
+
readonly type: "address";
|
|
3549
|
+
}];
|
|
3550
|
+
readonly name: "setOracleFactory";
|
|
3551
|
+
readonly outputs: readonly [];
|
|
3552
|
+
readonly stateMutability: "nonpayable";
|
|
3553
|
+
readonly type: "function";
|
|
3554
|
+
}, {
|
|
3555
|
+
readonly inputs: readonly [{
|
|
3556
|
+
readonly internalType: "uint24";
|
|
3557
|
+
readonly name: "_iPerpetualId";
|
|
3558
|
+
readonly type: "uint24";
|
|
3559
|
+
}, {
|
|
3560
|
+
readonly internalType: "address";
|
|
3561
|
+
readonly name: "_oracleAddr";
|
|
3562
|
+
readonly type: "address";
|
|
3563
|
+
}];
|
|
3564
|
+
readonly name: "setOracleFactoryForPerpetual";
|
|
3565
|
+
readonly outputs: readonly [];
|
|
3566
|
+
readonly stateMutability: "nonpayable";
|
|
3567
|
+
readonly type: "function";
|
|
3568
|
+
}, {
|
|
3569
|
+
readonly inputs: readonly [{
|
|
3570
|
+
readonly internalType: "address";
|
|
3571
|
+
readonly name: "_orderBookFactory";
|
|
3572
|
+
readonly type: "address";
|
|
3573
|
+
}];
|
|
3574
|
+
readonly name: "setOrderBookFactory";
|
|
3575
|
+
readonly outputs: readonly [];
|
|
3576
|
+
readonly stateMutability: "nonpayable";
|
|
3577
|
+
readonly type: "function";
|
|
3578
|
+
}, {
|
|
3579
|
+
readonly inputs: readonly [{
|
|
3580
|
+
readonly internalType: "uint24";
|
|
3581
|
+
readonly name: "_iPerpetualId";
|
|
3582
|
+
readonly type: "uint24";
|
|
3583
|
+
}, {
|
|
3584
|
+
readonly internalType: "int128[7]";
|
|
3585
|
+
readonly name: "_baseParams";
|
|
3586
|
+
readonly type: "int128[7]";
|
|
3587
|
+
}];
|
|
3588
|
+
readonly name: "setPerpetualBaseParams";
|
|
3589
|
+
readonly outputs: readonly [];
|
|
3590
|
+
readonly stateMutability: "nonpayable";
|
|
3591
|
+
readonly type: "function";
|
|
3592
|
+
}, {
|
|
3593
|
+
readonly inputs: readonly [{
|
|
3594
|
+
readonly internalType: "uint24";
|
|
3595
|
+
readonly name: "_iPerpetualId";
|
|
3596
|
+
readonly type: "uint24";
|
|
3597
|
+
}, {
|
|
3598
|
+
readonly internalType: "bytes4[2]";
|
|
3599
|
+
readonly name: "_baseQuoteS2";
|
|
3600
|
+
readonly type: "bytes4[2]";
|
|
3601
|
+
}, {
|
|
3602
|
+
readonly internalType: "bytes4[2]";
|
|
3603
|
+
readonly name: "_baseQuoteS3";
|
|
3604
|
+
readonly type: "bytes4[2]";
|
|
3605
|
+
}];
|
|
3606
|
+
readonly name: "setPerpetualOracles";
|
|
3607
|
+
readonly outputs: readonly [];
|
|
3608
|
+
readonly stateMutability: "nonpayable";
|
|
3609
|
+
readonly type: "function";
|
|
3610
|
+
}, {
|
|
3611
|
+
readonly inputs: readonly [{
|
|
3612
|
+
readonly internalType: "uint24";
|
|
3613
|
+
readonly name: "_iPerpetualId";
|
|
3614
|
+
readonly type: "uint24";
|
|
3615
|
+
}, {
|
|
3616
|
+
readonly internalType: "string";
|
|
3617
|
+
readonly name: "_varName";
|
|
3618
|
+
readonly type: "string";
|
|
3619
|
+
}, {
|
|
3620
|
+
readonly internalType: "int128";
|
|
3621
|
+
readonly name: "_value";
|
|
3622
|
+
readonly type: "int128";
|
|
3623
|
+
}];
|
|
3624
|
+
readonly name: "setPerpetualParam";
|
|
3625
|
+
readonly outputs: readonly [];
|
|
3626
|
+
readonly stateMutability: "nonpayable";
|
|
3627
|
+
readonly type: "function";
|
|
3628
|
+
}, {
|
|
3629
|
+
readonly inputs: readonly [{
|
|
3630
|
+
readonly internalType: "uint24";
|
|
3631
|
+
readonly name: "_iPerpetualId";
|
|
3632
|
+
readonly type: "uint24";
|
|
3633
|
+
}, {
|
|
3634
|
+
readonly internalType: "string";
|
|
3635
|
+
readonly name: "_name";
|
|
3636
|
+
readonly type: "string";
|
|
3637
|
+
}, {
|
|
3638
|
+
readonly internalType: "int128";
|
|
3639
|
+
readonly name: "_value1";
|
|
3640
|
+
readonly type: "int128";
|
|
3641
|
+
}, {
|
|
3642
|
+
readonly internalType: "int128";
|
|
3643
|
+
readonly name: "_value2";
|
|
3644
|
+
readonly type: "int128";
|
|
3645
|
+
}];
|
|
3646
|
+
readonly name: "setPerpetualParamPair";
|
|
3647
|
+
readonly outputs: readonly [];
|
|
3648
|
+
readonly stateMutability: "nonpayable";
|
|
3649
|
+
readonly type: "function";
|
|
3650
|
+
}, {
|
|
3651
|
+
readonly inputs: readonly [{
|
|
3652
|
+
readonly internalType: "address";
|
|
3653
|
+
readonly name: "_shareTokenFactory";
|
|
3654
|
+
readonly type: "address";
|
|
3655
|
+
}];
|
|
3656
|
+
readonly name: "setPerpetualPoolFactory";
|
|
3657
|
+
readonly outputs: readonly [];
|
|
3658
|
+
readonly stateMutability: "nonpayable";
|
|
3659
|
+
readonly type: "function";
|
|
3660
|
+
}, {
|
|
3661
|
+
readonly inputs: readonly [{
|
|
3662
|
+
readonly internalType: "uint24";
|
|
3663
|
+
readonly name: "_iPerpetualId";
|
|
3664
|
+
readonly type: "uint24";
|
|
3665
|
+
}, {
|
|
3666
|
+
readonly internalType: "int128[5]";
|
|
3667
|
+
readonly name: "_underlyingRiskParams";
|
|
3668
|
+
readonly type: "int128[5]";
|
|
3669
|
+
}, {
|
|
3670
|
+
readonly internalType: "int128[12]";
|
|
3671
|
+
readonly name: "_defaultFundRiskParams";
|
|
3672
|
+
readonly type: "int128[12]";
|
|
3673
|
+
}];
|
|
3674
|
+
readonly name: "setPerpetualRiskParams";
|
|
3675
|
+
readonly outputs: readonly [];
|
|
3676
|
+
readonly stateMutability: "nonpayable";
|
|
3677
|
+
readonly type: "function";
|
|
3678
|
+
}, {
|
|
3679
|
+
readonly inputs: readonly [{
|
|
3680
|
+
readonly internalType: "uint8";
|
|
3681
|
+
readonly name: "_poolId";
|
|
3682
|
+
readonly type: "uint8";
|
|
3683
|
+
}, {
|
|
3684
|
+
readonly internalType: "string";
|
|
3685
|
+
readonly name: "_name";
|
|
3686
|
+
readonly type: "string";
|
|
3687
|
+
}, {
|
|
3688
|
+
readonly internalType: "int128";
|
|
3689
|
+
readonly name: "_value";
|
|
3690
|
+
readonly type: "int128";
|
|
3691
|
+
}];
|
|
3692
|
+
readonly name: "setPoolParam";
|
|
3693
|
+
readonly outputs: readonly [];
|
|
3694
|
+
readonly stateMutability: "nonpayable";
|
|
3695
|
+
readonly type: "function";
|
|
3696
|
+
}, {
|
|
3697
|
+
readonly inputs: readonly [{
|
|
3698
|
+
readonly internalType: "uint256[]";
|
|
3699
|
+
readonly name: "_tiers";
|
|
3700
|
+
readonly type: "uint256[]";
|
|
3701
|
+
}, {
|
|
3702
|
+
readonly internalType: "uint16[]";
|
|
3703
|
+
readonly name: "_feesTbps";
|
|
3704
|
+
readonly type: "uint16[]";
|
|
3705
|
+
}];
|
|
3706
|
+
readonly name: "setTraderTiers";
|
|
3707
|
+
readonly outputs: readonly [];
|
|
3708
|
+
readonly stateMutability: "nonpayable";
|
|
3709
|
+
readonly type: "function";
|
|
3710
|
+
}, {
|
|
3711
|
+
readonly inputs: readonly [{
|
|
3712
|
+
readonly internalType: "uint256[]";
|
|
3713
|
+
readonly name: "_tiers";
|
|
3714
|
+
readonly type: "uint256[]";
|
|
3715
|
+
}, {
|
|
3716
|
+
readonly internalType: "uint16[]";
|
|
3717
|
+
readonly name: "_feesTbps";
|
|
3718
|
+
readonly type: "uint16[]";
|
|
3719
|
+
}];
|
|
3720
|
+
readonly name: "setTraderVolumeTiers";
|
|
3721
|
+
readonly outputs: readonly [];
|
|
3722
|
+
readonly stateMutability: "nonpayable";
|
|
3723
|
+
readonly type: "function";
|
|
3724
|
+
}, {
|
|
3725
|
+
readonly inputs: readonly [{
|
|
3726
|
+
readonly internalType: "address";
|
|
3727
|
+
readonly name: "_treasury";
|
|
3728
|
+
readonly type: "address";
|
|
3729
|
+
}];
|
|
3730
|
+
readonly name: "setTreasury";
|
|
3731
|
+
readonly outputs: readonly [];
|
|
3732
|
+
readonly stateMutability: "nonpayable";
|
|
3733
|
+
readonly type: "function";
|
|
3734
|
+
}, {
|
|
3735
|
+
readonly inputs: readonly [{
|
|
3736
|
+
readonly internalType: "address";
|
|
3737
|
+
readonly name: "tokenAddr";
|
|
3738
|
+
readonly type: "address";
|
|
3739
|
+
}];
|
|
3740
|
+
readonly name: "setUtilityTokenAddr";
|
|
3741
|
+
readonly outputs: readonly [];
|
|
3742
|
+
readonly stateMutability: "nonpayable";
|
|
3743
|
+
readonly type: "function";
|
|
3744
|
+
}, {
|
|
3745
|
+
readonly inputs: readonly [{
|
|
3746
|
+
readonly internalType: "uint24";
|
|
3747
|
+
readonly name: "_perpetualID";
|
|
3748
|
+
readonly type: "uint24";
|
|
3749
|
+
}, {
|
|
3750
|
+
readonly internalType: "address";
|
|
3751
|
+
readonly name: "_traderAddr";
|
|
3752
|
+
readonly type: "address";
|
|
3753
|
+
}];
|
|
3754
|
+
readonly name: "settle";
|
|
3755
|
+
readonly outputs: readonly [];
|
|
3756
|
+
readonly stateMutability: "nonpayable";
|
|
3757
|
+
readonly type: "function";
|
|
3758
|
+
}, {
|
|
3759
|
+
readonly inputs: readonly [{
|
|
3760
|
+
readonly internalType: "uint8";
|
|
3761
|
+
readonly name: "_id";
|
|
3762
|
+
readonly type: "uint8";
|
|
3763
|
+
}];
|
|
3764
|
+
readonly name: "settleNextTraderInPool";
|
|
3765
|
+
readonly outputs: readonly [{
|
|
3766
|
+
readonly internalType: "bool";
|
|
3767
|
+
readonly name: "";
|
|
3768
|
+
readonly type: "bool";
|
|
3769
|
+
}];
|
|
3770
|
+
readonly stateMutability: "nonpayable";
|
|
3771
|
+
readonly type: "function";
|
|
3772
|
+
}, {
|
|
3773
|
+
readonly inputs: readonly [{
|
|
3774
|
+
readonly internalType: "uint16";
|
|
3775
|
+
readonly name: "fee";
|
|
3776
|
+
readonly type: "uint16";
|
|
3777
|
+
}];
|
|
3778
|
+
readonly name: "splitProtocolFee";
|
|
3779
|
+
readonly outputs: readonly [{
|
|
3780
|
+
readonly internalType: "int128";
|
|
3781
|
+
readonly name: "";
|
|
3782
|
+
readonly type: "int128";
|
|
3783
|
+
}, {
|
|
3784
|
+
readonly internalType: "int128";
|
|
3785
|
+
readonly name: "";
|
|
3786
|
+
readonly type: "int128";
|
|
3787
|
+
}];
|
|
3788
|
+
readonly stateMutability: "pure";
|
|
3789
|
+
readonly type: "function";
|
|
3790
|
+
}, {
|
|
3791
|
+
readonly inputs: readonly [{
|
|
3792
|
+
readonly internalType: "uint24";
|
|
3793
|
+
readonly name: "_perpetualId";
|
|
3794
|
+
readonly type: "uint24";
|
|
3795
|
+
}];
|
|
3796
|
+
readonly name: "togglePerpEmergencyState";
|
|
3797
|
+
readonly outputs: readonly [];
|
|
3798
|
+
readonly stateMutability: "nonpayable";
|
|
3799
|
+
readonly type: "function";
|
|
3800
|
+
}, {
|
|
3801
|
+
readonly inputs: readonly [{
|
|
3802
|
+
readonly components: readonly [{
|
|
3803
|
+
readonly internalType: "uint16";
|
|
3804
|
+
readonly name: "leverageTDR";
|
|
3805
|
+
readonly type: "uint16";
|
|
3806
|
+
}, {
|
|
3807
|
+
readonly internalType: "uint16";
|
|
3808
|
+
readonly name: "brokerFeeTbps";
|
|
3809
|
+
readonly type: "uint16";
|
|
3810
|
+
}, {
|
|
3811
|
+
readonly internalType: "uint24";
|
|
3812
|
+
readonly name: "iPerpetualId";
|
|
3813
|
+
readonly type: "uint24";
|
|
3814
|
+
}, {
|
|
3815
|
+
readonly internalType: "address";
|
|
3816
|
+
readonly name: "traderAddr";
|
|
3817
|
+
readonly type: "address";
|
|
3818
|
+
}, {
|
|
3819
|
+
readonly internalType: "uint32";
|
|
3820
|
+
readonly name: "executionTimestamp";
|
|
3821
|
+
readonly type: "uint32";
|
|
3822
|
+
}, {
|
|
3823
|
+
readonly internalType: "address";
|
|
3824
|
+
readonly name: "brokerAddr";
|
|
3825
|
+
readonly type: "address";
|
|
3826
|
+
}, {
|
|
3827
|
+
readonly internalType: "uint32";
|
|
3828
|
+
readonly name: "submittedTimestamp";
|
|
3829
|
+
readonly type: "uint32";
|
|
3830
|
+
}, {
|
|
3831
|
+
readonly internalType: "uint32";
|
|
3832
|
+
readonly name: "flags";
|
|
3833
|
+
readonly type: "uint32";
|
|
3834
|
+
}, {
|
|
3835
|
+
readonly internalType: "uint32";
|
|
3836
|
+
readonly name: "iDeadline";
|
|
3837
|
+
readonly type: "uint32";
|
|
3838
|
+
}, {
|
|
3839
|
+
readonly internalType: "address";
|
|
3840
|
+
readonly name: "executorAddr";
|
|
3841
|
+
readonly type: "address";
|
|
3842
|
+
}, {
|
|
3843
|
+
readonly internalType: "int128";
|
|
3844
|
+
readonly name: "fAmount";
|
|
3845
|
+
readonly type: "int128";
|
|
3846
|
+
}, {
|
|
3847
|
+
readonly internalType: "int128";
|
|
3848
|
+
readonly name: "fLimitPrice";
|
|
3849
|
+
readonly type: "int128";
|
|
3850
|
+
}, {
|
|
3851
|
+
readonly internalType: "int128";
|
|
3852
|
+
readonly name: "fTriggerPrice";
|
|
3853
|
+
readonly type: "int128";
|
|
3854
|
+
}, {
|
|
3855
|
+
readonly internalType: "bytes";
|
|
3856
|
+
readonly name: "brokerSignature";
|
|
3857
|
+
readonly type: "bytes";
|
|
3858
|
+
}];
|
|
3859
|
+
readonly internalType: "struct IPerpetualOrder.Order";
|
|
3860
|
+
readonly name: "_order";
|
|
3861
|
+
readonly type: "tuple";
|
|
3862
|
+
}];
|
|
3863
|
+
readonly name: "tradeViaOrderBook";
|
|
3864
|
+
readonly outputs: readonly [{
|
|
3865
|
+
readonly internalType: "bool";
|
|
3866
|
+
readonly name: "";
|
|
3867
|
+
readonly type: "bool";
|
|
3868
|
+
}];
|
|
3869
|
+
readonly stateMutability: "nonpayable";
|
|
3870
|
+
readonly type: "function";
|
|
3871
|
+
}, {
|
|
3872
|
+
readonly inputs: readonly [{
|
|
3873
|
+
readonly internalType: "uint8";
|
|
3874
|
+
readonly name: "_poolId";
|
|
3875
|
+
readonly type: "uint8";
|
|
3876
|
+
}, {
|
|
3877
|
+
readonly internalType: "address";
|
|
3878
|
+
readonly name: "_transferToAddr";
|
|
3879
|
+
readonly type: "address";
|
|
3880
|
+
}, {
|
|
3881
|
+
readonly internalType: "uint32";
|
|
3882
|
+
readonly name: "_lots";
|
|
3883
|
+
readonly type: "uint32";
|
|
3884
|
+
}];
|
|
3885
|
+
readonly name: "transferBrokerLots";
|
|
3886
|
+
readonly outputs: readonly [];
|
|
3887
|
+
readonly stateMutability: "nonpayable";
|
|
3888
|
+
readonly type: "function";
|
|
3889
|
+
}, {
|
|
3890
|
+
readonly inputs: readonly [{
|
|
3891
|
+
readonly internalType: "uint8";
|
|
3892
|
+
readonly name: "_poolId";
|
|
3893
|
+
readonly type: "uint8";
|
|
3894
|
+
}, {
|
|
3895
|
+
readonly internalType: "address";
|
|
3896
|
+
readonly name: "_transferToAddr";
|
|
3897
|
+
readonly type: "address";
|
|
3898
|
+
}];
|
|
3899
|
+
readonly name: "transferBrokerOwnership";
|
|
3900
|
+
readonly outputs: readonly [];
|
|
3901
|
+
readonly stateMutability: "nonpayable";
|
|
3902
|
+
readonly type: "function";
|
|
3903
|
+
}, {
|
|
3904
|
+
readonly inputs: readonly [{
|
|
3905
|
+
readonly internalType: "uint8";
|
|
3906
|
+
readonly name: "_poolId";
|
|
3907
|
+
readonly type: "uint8";
|
|
3908
|
+
}, {
|
|
3909
|
+
readonly internalType: "int128";
|
|
3910
|
+
readonly name: "_fAmount";
|
|
3911
|
+
readonly type: "int128";
|
|
3912
|
+
}];
|
|
3913
|
+
readonly name: "transferEarningsToTreasury";
|
|
3914
|
+
readonly outputs: readonly [];
|
|
3915
|
+
readonly stateMutability: "nonpayable";
|
|
3916
|
+
readonly type: "function";
|
|
3917
|
+
}, {
|
|
3918
|
+
readonly inputs: readonly [];
|
|
3919
|
+
readonly name: "transferValueToTreasury";
|
|
3920
|
+
readonly outputs: readonly [{
|
|
3921
|
+
readonly internalType: "bool";
|
|
3922
|
+
readonly name: "success";
|
|
3923
|
+
readonly type: "bool";
|
|
3924
|
+
}];
|
|
3925
|
+
readonly stateMutability: "nonpayable";
|
|
3926
|
+
readonly type: "function";
|
|
3927
|
+
}, {
|
|
3928
|
+
readonly inputs: readonly [{
|
|
3929
|
+
readonly internalType: "uint24";
|
|
3930
|
+
readonly name: "_iPerpetualId";
|
|
3931
|
+
readonly type: "uint24";
|
|
3932
|
+
}];
|
|
3933
|
+
readonly name: "updateAMMTargetFundSize";
|
|
3934
|
+
readonly outputs: readonly [];
|
|
3935
|
+
readonly stateMutability: "nonpayable";
|
|
3936
|
+
readonly type: "function";
|
|
3937
|
+
}, {
|
|
3938
|
+
readonly inputs: readonly [{
|
|
3939
|
+
readonly internalType: "uint24";
|
|
3940
|
+
readonly name: "_iPerpetualId";
|
|
3941
|
+
readonly type: "uint24";
|
|
3942
|
+
}];
|
|
3943
|
+
readonly name: "updateDefaultFundTargetSize";
|
|
3944
|
+
readonly outputs: readonly [];
|
|
3945
|
+
readonly stateMutability: "nonpayable";
|
|
3946
|
+
readonly type: "function";
|
|
3947
|
+
}, {
|
|
3948
|
+
readonly inputs: readonly [{
|
|
3949
|
+
readonly internalType: "uint8";
|
|
3950
|
+
readonly name: "_iPoolIndex";
|
|
3951
|
+
readonly type: "uint8";
|
|
3952
|
+
}];
|
|
3953
|
+
readonly name: "updateDefaultFundTargetSizeRandom";
|
|
3954
|
+
readonly outputs: readonly [];
|
|
3955
|
+
readonly stateMutability: "nonpayable";
|
|
3956
|
+
readonly type: "function";
|
|
3957
|
+
}, {
|
|
3958
|
+
readonly inputs: readonly [{
|
|
3959
|
+
readonly internalType: "uint24";
|
|
3960
|
+
readonly name: "_iPerpetualId";
|
|
3961
|
+
readonly type: "uint24";
|
|
3962
|
+
}];
|
|
3963
|
+
readonly name: "updateFundingAndPricesAfter";
|
|
3964
|
+
readonly outputs: readonly [];
|
|
3965
|
+
readonly stateMutability: "nonpayable";
|
|
3966
|
+
readonly type: "function";
|
|
3967
|
+
}, {
|
|
3968
|
+
readonly inputs: readonly [{
|
|
3969
|
+
readonly internalType: "uint24";
|
|
3970
|
+
readonly name: "_iPerpetualId";
|
|
3971
|
+
readonly type: "uint24";
|
|
3972
|
+
}, {
|
|
3973
|
+
readonly internalType: "bool";
|
|
3974
|
+
readonly name: "_revertIfClosed";
|
|
3975
|
+
readonly type: "bool";
|
|
3976
|
+
}];
|
|
3977
|
+
readonly name: "updateFundingAndPricesBefore";
|
|
3978
|
+
readonly outputs: readonly [];
|
|
3979
|
+
readonly stateMutability: "nonpayable";
|
|
3980
|
+
readonly type: "function";
|
|
3981
|
+
}, {
|
|
3982
|
+
readonly inputs: readonly [{
|
|
3983
|
+
readonly internalType: "uint24";
|
|
3984
|
+
readonly name: "_perpetualId";
|
|
3985
|
+
readonly type: "uint24";
|
|
3986
|
+
}, {
|
|
3987
|
+
readonly internalType: "bytes[]";
|
|
3988
|
+
readonly name: "_updateData";
|
|
3989
|
+
readonly type: "bytes[]";
|
|
3990
|
+
}, {
|
|
3991
|
+
readonly internalType: "uint64[]";
|
|
3992
|
+
readonly name: "_publishTimes";
|
|
3993
|
+
readonly type: "uint64[]";
|
|
3994
|
+
}, {
|
|
3995
|
+
readonly internalType: "uint256";
|
|
3996
|
+
readonly name: "_maxAcceptableFeedAge";
|
|
3997
|
+
readonly type: "uint256";
|
|
3998
|
+
}];
|
|
3999
|
+
readonly name: "updatePriceFeeds";
|
|
4000
|
+
readonly outputs: readonly [];
|
|
4001
|
+
readonly stateMutability: "payable";
|
|
4002
|
+
readonly type: "function";
|
|
4003
|
+
}, {
|
|
4004
|
+
readonly inputs: readonly [{
|
|
4005
|
+
readonly internalType: "uint24";
|
|
4006
|
+
readonly name: "_iPerpetualId";
|
|
4007
|
+
readonly type: "uint24";
|
|
4008
|
+
}, {
|
|
4009
|
+
readonly internalType: "address";
|
|
4010
|
+
readonly name: "_traderAddr";
|
|
4011
|
+
readonly type: "address";
|
|
4012
|
+
}, {
|
|
4013
|
+
readonly internalType: "address";
|
|
4014
|
+
readonly name: "_brokerAddr";
|
|
4015
|
+
readonly type: "address";
|
|
4016
|
+
}, {
|
|
4017
|
+
readonly internalType: "int128";
|
|
4018
|
+
readonly name: "_tradeAmountBC";
|
|
4019
|
+
readonly type: "int128";
|
|
4020
|
+
}];
|
|
4021
|
+
readonly name: "updateVolumeEMAOnNewTrade";
|
|
4022
|
+
readonly outputs: readonly [];
|
|
4023
|
+
readonly stateMutability: "nonpayable";
|
|
4024
|
+
readonly type: "function";
|
|
4025
|
+
}, {
|
|
4026
|
+
readonly inputs: readonly [{
|
|
4027
|
+
readonly internalType: "bool";
|
|
4028
|
+
readonly name: "_isLong";
|
|
4029
|
+
readonly type: "bool";
|
|
4030
|
+
}, {
|
|
4031
|
+
readonly internalType: "int128";
|
|
4032
|
+
readonly name: "_fMarkPrice";
|
|
4033
|
+
readonly type: "int128";
|
|
4034
|
+
}, {
|
|
4035
|
+
readonly internalType: "int128";
|
|
4036
|
+
readonly name: "_fTriggerPrice";
|
|
4037
|
+
readonly type: "int128";
|
|
4038
|
+
}];
|
|
4039
|
+
readonly name: "validateStopPrice";
|
|
4040
|
+
readonly outputs: readonly [];
|
|
4041
|
+
readonly stateMutability: "pure";
|
|
4042
|
+
readonly type: "function";
|
|
4043
|
+
}, {
|
|
4044
|
+
readonly inputs: readonly [{
|
|
4045
|
+
readonly internalType: "uint24";
|
|
4046
|
+
readonly name: "_iPerpetualId";
|
|
4047
|
+
readonly type: "uint24";
|
|
4048
|
+
}, {
|
|
4049
|
+
readonly internalType: "address";
|
|
4050
|
+
readonly name: "_traderAddr";
|
|
4051
|
+
readonly type: "address";
|
|
4052
|
+
}, {
|
|
4053
|
+
readonly internalType: "int128";
|
|
4054
|
+
readonly name: "_fAmount";
|
|
4055
|
+
readonly type: "int128";
|
|
4056
|
+
}, {
|
|
4057
|
+
readonly internalType: "bytes[]";
|
|
4058
|
+
readonly name: "_updateData";
|
|
4059
|
+
readonly type: "bytes[]";
|
|
4060
|
+
}, {
|
|
4061
|
+
readonly internalType: "uint64[]";
|
|
4062
|
+
readonly name: "_publishTimes";
|
|
4063
|
+
readonly type: "uint64[]";
|
|
4064
|
+
}];
|
|
4065
|
+
readonly name: "withdraw";
|
|
4066
|
+
readonly outputs: readonly [];
|
|
4067
|
+
readonly stateMutability: "payable";
|
|
4068
|
+
readonly type: "function";
|
|
4069
|
+
}, {
|
|
4070
|
+
readonly inputs: readonly [{
|
|
4071
|
+
readonly internalType: "uint24";
|
|
4072
|
+
readonly name: "_iPerpetualId";
|
|
4073
|
+
readonly type: "uint24";
|
|
4074
|
+
}, {
|
|
4075
|
+
readonly internalType: "address";
|
|
4076
|
+
readonly name: "_traderAddr";
|
|
4077
|
+
readonly type: "address";
|
|
4078
|
+
}, {
|
|
4079
|
+
readonly internalType: "bytes[]";
|
|
4080
|
+
readonly name: "_updateData";
|
|
4081
|
+
readonly type: "bytes[]";
|
|
4082
|
+
}, {
|
|
4083
|
+
readonly internalType: "uint64[]";
|
|
4084
|
+
readonly name: "_publishTimes";
|
|
4085
|
+
readonly type: "uint64[]";
|
|
4086
|
+
}];
|
|
4087
|
+
readonly name: "withdrawAll";
|
|
4088
|
+
readonly outputs: readonly [];
|
|
4089
|
+
readonly stateMutability: "payable";
|
|
4090
|
+
readonly type: "function";
|
|
4091
|
+
}, {
|
|
4092
|
+
readonly inputs: readonly [{
|
|
4093
|
+
readonly internalType: "uint24";
|
|
4094
|
+
readonly name: "_iPerpetualId";
|
|
4095
|
+
readonly type: "uint24";
|
|
4096
|
+
}, {
|
|
4097
|
+
readonly internalType: "address";
|
|
4098
|
+
readonly name: "_traderAddr";
|
|
4099
|
+
readonly type: "address";
|
|
4100
|
+
}];
|
|
4101
|
+
readonly name: "withdrawDepositFromMarginAccount";
|
|
4102
|
+
readonly outputs: readonly [];
|
|
4103
|
+
readonly stateMutability: "nonpayable";
|
|
4104
|
+
readonly type: "function";
|
|
4105
|
+
}, {
|
|
4106
|
+
readonly inputs: readonly [{
|
|
4107
|
+
readonly internalType: "uint8";
|
|
4108
|
+
readonly name: "_poolId";
|
|
4109
|
+
readonly type: "uint8";
|
|
4110
|
+
}, {
|
|
4111
|
+
readonly internalType: "int128";
|
|
4112
|
+
readonly name: "_fAmount";
|
|
4113
|
+
readonly type: "int128";
|
|
4114
|
+
}];
|
|
4115
|
+
readonly name: "withdrawFromDefaultFund";
|
|
4116
|
+
readonly outputs: readonly [];
|
|
4117
|
+
readonly stateMutability: "nonpayable";
|
|
4118
|
+
readonly type: "function";
|
|
4119
|
+
}, {
|
|
4120
|
+
readonly inputs: readonly [{
|
|
4121
|
+
readonly internalType: "uint8";
|
|
4122
|
+
readonly name: "_iPoolIndex";
|
|
4123
|
+
readonly type: "uint8";
|
|
4124
|
+
}, {
|
|
4125
|
+
readonly internalType: "uint256";
|
|
4126
|
+
readonly name: "_shareAmount";
|
|
4127
|
+
readonly type: "uint256";
|
|
4128
|
+
}];
|
|
4129
|
+
readonly name: "withdrawLiquidity";
|
|
4130
|
+
readonly outputs: readonly [];
|
|
4131
|
+
readonly stateMutability: "nonpayable";
|
|
4132
|
+
readonly type: "function";
|
|
4133
|
+
}];
|
|
4134
|
+
static createInterface(): IPerpetualManagerInterface;
|
|
4135
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IPerpetualManager;
|
|
4136
|
+
}
|