lynx-client 0.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cjs/addresses/lensAddresses.js +29 -0
- package/dist/cjs/common/constants/contractEnums.js +138 -0
- package/dist/cjs/common/constants/feeIds.js +27 -0
- package/dist/cjs/common/constants/generalConstants.js +4 -0
- package/dist/cjs/common/constants/groupIds.js +27 -0
- package/dist/cjs/common/constants/pairIds.js +91 -0
- package/dist/cjs/common/constants/scales.js +24 -0
- package/dist/cjs/common/contractsIntegration/deployedContractsConnector.js +16 -0
- package/dist/cjs/common/priceFeeds/pyth/pythFeedConstants.js +63 -0
- package/dist/cjs/common/priceFeeds/pyth/pythFeedFunctions.js +11 -0
- package/dist/cjs/common/typechain/common.js +2 -0
- package/dist/cjs/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
- package/dist/cjs/common/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
- package/dist/cjs/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
- package/dist/cjs/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
- package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +201 -0
- package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +2269 -0
- package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1339 -0
- package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +253 -0
- package/dist/cjs/index.js +46 -0
- package/dist/cjs/utils/addresses.js +14 -0
- package/dist/cjs/utils/bignumbers.js +35 -0
- package/dist/cjs/utils/chainTypes.js +20 -0
- package/dist/cjs/utils/chipsCalculationsUtils.js +12 -0
- package/dist/cjs/utils/cloning.js +17 -0
- package/dist/cjs/utils/enumTypes.js +2 -0
- package/dist/cjs/utils/ethersTypes.js +51 -0
- package/dist/cjs/utils/hashes.js +8 -0
- package/dist/cjs/utils/leverageCalculationsUtils.js +25 -0
- package/dist/cjs/utils/lynxScalesUtils.js +20 -0
- package/dist/cjs/utils/types.js +3 -0
- package/dist/esm/addresses/lensAddresses.d.ts +27 -0
- package/dist/esm/addresses/lensAddresses.d.ts.map +1 -0
- package/dist/esm/addresses/lensAddresses.js +29 -0
- package/dist/esm/common/constants/contractEnums.d.ts +148 -0
- package/dist/esm/common/constants/contractEnums.d.ts.map +1 -0
- package/dist/esm/common/constants/contractEnums.js +138 -0
- package/dist/esm/common/constants/feeIds.d.ts +13 -0
- package/dist/esm/common/constants/feeIds.d.ts.map +1 -0
- package/dist/esm/common/constants/feeIds.js +27 -0
- package/dist/esm/common/constants/generalConstants.d.ts +2 -0
- package/dist/esm/common/constants/generalConstants.d.ts.map +1 -0
- package/dist/esm/common/constants/generalConstants.js +4 -0
- package/dist/esm/common/constants/groupIds.d.ts +15 -0
- package/dist/esm/common/constants/groupIds.d.ts.map +1 -0
- package/dist/esm/common/constants/groupIds.js +27 -0
- package/dist/esm/common/constants/pairIds.d.ts +40 -0
- package/dist/esm/common/constants/pairIds.d.ts.map +1 -0
- package/dist/esm/common/constants/pairIds.js +91 -0
- package/dist/esm/common/constants/scales.d.ts +16 -0
- package/dist/esm/common/constants/scales.d.ts.map +1 -0
- package/dist/esm/common/constants/scales.js +24 -0
- package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts +7 -0
- package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
- package/dist/esm/common/contractsIntegration/deployedContractsConnector.js +16 -0
- package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.d.ts +5 -0
- package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
- package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.js +63 -0
- package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.d.ts +7 -0
- package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
- package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.js +11 -0
- package/dist/esm/common/typechain/common.d.ts +51 -0
- package/dist/esm/common/typechain/common.d.ts.map +1 -0
- package/dist/esm/common/typechain/common.js +2 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +102 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts +740 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +390 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +152 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
- package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +146 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +201 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1747 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +2269 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1042 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1339 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +187 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
- package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +253 -0
- package/dist/esm/index.d.ts +30 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +46 -0
- package/dist/esm/utils/addresses.d.ts +4 -0
- package/dist/esm/utils/addresses.d.ts.map +1 -0
- package/dist/esm/utils/addresses.js +14 -0
- package/dist/esm/utils/bignumbers.d.ts +6 -0
- package/dist/esm/utils/bignumbers.d.ts.map +1 -0
- package/dist/esm/utils/bignumbers.js +35 -0
- package/dist/esm/utils/chainTypes.d.ts +137 -0
- package/dist/esm/utils/chainTypes.d.ts.map +1 -0
- package/dist/esm/utils/chainTypes.js +20 -0
- package/dist/esm/utils/chipsCalculationsUtils.d.ts +3 -0
- package/dist/esm/utils/chipsCalculationsUtils.d.ts.map +1 -0
- package/dist/esm/utils/chipsCalculationsUtils.js +12 -0
- package/dist/esm/utils/cloning.d.ts +6 -0
- package/dist/esm/utils/cloning.d.ts.map +1 -0
- package/dist/esm/utils/cloning.js +17 -0
- package/dist/esm/utils/enumTypes.d.ts +2 -0
- package/dist/esm/utils/enumTypes.d.ts.map +1 -0
- package/dist/esm/utils/enumTypes.js +2 -0
- package/dist/esm/utils/ethersTypes.d.ts +14 -0
- package/dist/esm/utils/ethersTypes.d.ts.map +1 -0
- package/dist/esm/utils/ethersTypes.js +51 -0
- package/dist/esm/utils/hashes.d.ts +2 -0
- package/dist/esm/utils/hashes.d.ts.map +1 -0
- package/dist/esm/utils/hashes.js +8 -0
- package/dist/esm/utils/leverageCalculationsUtils.d.ts +6 -0
- package/dist/esm/utils/leverageCalculationsUtils.d.ts.map +1 -0
- package/dist/esm/utils/leverageCalculationsUtils.js +25 -0
- package/dist/esm/utils/lynxScalesUtils.d.ts +5 -0
- package/dist/esm/utils/lynxScalesUtils.d.ts.map +1 -0
- package/dist/esm/utils/lynxScalesUtils.js +20 -0
- package/dist/esm/utils/types.d.ts +7 -0
- package/dist/esm/utils/types.d.ts.map +1 -0
- package/dist/esm/utils/types.js +3 -0
- package/dist/types/addresses/lensAddresses.d.ts +27 -0
- package/dist/types/addresses/lensAddresses.d.ts.map +1 -0
- package/dist/types/common/constants/contractEnums.d.ts +148 -0
- package/dist/types/common/constants/contractEnums.d.ts.map +1 -0
- package/dist/types/common/constants/feeIds.d.ts +13 -0
- package/dist/types/common/constants/feeIds.d.ts.map +1 -0
- package/dist/types/common/constants/generalConstants.d.ts +2 -0
- package/dist/types/common/constants/generalConstants.d.ts.map +1 -0
- package/dist/types/common/constants/groupIds.d.ts +15 -0
- package/dist/types/common/constants/groupIds.d.ts.map +1 -0
- package/dist/types/common/constants/pairIds.d.ts +40 -0
- package/dist/types/common/constants/pairIds.d.ts.map +1 -0
- package/dist/types/common/constants/scales.d.ts +16 -0
- package/dist/types/common/constants/scales.d.ts.map +1 -0
- package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts +7 -0
- package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
- package/dist/types/common/priceFeeds/pyth/pythFeedConstants.d.ts +5 -0
- package/dist/types/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
- package/dist/types/common/priceFeeds/pyth/pythFeedFunctions.d.ts +7 -0
- package/dist/types/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
- package/dist/types/common/typechain/common.d.ts +51 -0
- package/dist/types/common/typechain/common.d.ts.map +1 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +102 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts +740 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +390 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +152 -0
- package/dist/types/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +146 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1747 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1042 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +187 -0
- package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/utils/addresses.d.ts +4 -0
- package/dist/types/utils/addresses.d.ts.map +1 -0
- package/dist/types/utils/bignumbers.d.ts +6 -0
- package/dist/types/utils/bignumbers.d.ts.map +1 -0
- package/dist/types/utils/chainTypes.d.ts +137 -0
- package/dist/types/utils/chainTypes.d.ts.map +1 -0
- package/dist/types/utils/chipsCalculationsUtils.d.ts +3 -0
- package/dist/types/utils/chipsCalculationsUtils.d.ts.map +1 -0
- package/dist/types/utils/cloning.d.ts +6 -0
- package/dist/types/utils/cloning.d.ts.map +1 -0
- package/dist/types/utils/enumTypes.d.ts +2 -0
- package/dist/types/utils/enumTypes.d.ts.map +1 -0
- package/dist/types/utils/ethersTypes.d.ts +14 -0
- package/dist/types/utils/ethersTypes.d.ts.map +1 -0
- package/dist/types/utils/hashes.d.ts +2 -0
- package/dist/types/utils/hashes.d.ts.map +1 -0
- package/dist/types/utils/leverageCalculationsUtils.d.ts +6 -0
- package/dist/types/utils/leverageCalculationsUtils.d.ts.map +1 -0
- package/dist/types/utils/lynxScalesUtils.d.ts +5 -0
- package/dist/types/utils/lynxScalesUtils.d.ts.map +1 -0
- package/dist/types/utils/types.d.ts +7 -0
- package/dist/types/utils/types.d.ts.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export type LexFeeConfigsLensStruct = {
|
|
4
|
+
feeId: BigNumberish;
|
|
5
|
+
openFeeF: BigNumberish;
|
|
6
|
+
closeFeeF: BigNumberish;
|
|
7
|
+
performanceFeeF: BigNumberish;
|
|
8
|
+
};
|
|
9
|
+
export type LexFeeConfigsLensStructOutput = [
|
|
10
|
+
feeId: bigint,
|
|
11
|
+
openFeeF: bigint,
|
|
12
|
+
closeFeeF: bigint,
|
|
13
|
+
performanceFeeF: bigint
|
|
14
|
+
] & {
|
|
15
|
+
feeId: bigint;
|
|
16
|
+
openFeeF: bigint;
|
|
17
|
+
closeFeeF: bigint;
|
|
18
|
+
performanceFeeF: bigint;
|
|
19
|
+
};
|
|
20
|
+
export type LexGroupConfigsLensStruct = {
|
|
21
|
+
groupId: BigNumberish;
|
|
22
|
+
minLeverage: BigNumberish;
|
|
23
|
+
maxLeverage: BigNumberish;
|
|
24
|
+
maxBorrowF: BigNumberish;
|
|
25
|
+
maxPositionSize: BigNumberish;
|
|
26
|
+
};
|
|
27
|
+
export type LexGroupConfigsLensStructOutput = [
|
|
28
|
+
groupId: bigint,
|
|
29
|
+
minLeverage: bigint,
|
|
30
|
+
maxLeverage: bigint,
|
|
31
|
+
maxBorrowF: bigint,
|
|
32
|
+
maxPositionSize: bigint
|
|
33
|
+
] & {
|
|
34
|
+
groupId: bigint;
|
|
35
|
+
minLeverage: bigint;
|
|
36
|
+
maxLeverage: bigint;
|
|
37
|
+
maxBorrowF: bigint;
|
|
38
|
+
maxPositionSize: bigint;
|
|
39
|
+
};
|
|
40
|
+
export type LexGroupStateLensStruct = {
|
|
41
|
+
lexPool: AddressLike;
|
|
42
|
+
groupId: BigNumberish;
|
|
43
|
+
groupBorrows: BigNumberish;
|
|
44
|
+
};
|
|
45
|
+
export type LexGroupStateLensStructOutput = [
|
|
46
|
+
lexPool: string,
|
|
47
|
+
groupId: bigint,
|
|
48
|
+
groupBorrows: bigint
|
|
49
|
+
] & {
|
|
50
|
+
lexPool: string;
|
|
51
|
+
groupId: bigint;
|
|
52
|
+
groupBorrows: bigint;
|
|
53
|
+
};
|
|
54
|
+
export type LexPairConfigsLensStruct = {
|
|
55
|
+
pairId: BigNumberish;
|
|
56
|
+
groupId: BigNumberish;
|
|
57
|
+
feeId: BigNumberish;
|
|
58
|
+
minLeverage: BigNumberish;
|
|
59
|
+
maxLeverage: BigNumberish;
|
|
60
|
+
maxBorrowF: BigNumberish;
|
|
61
|
+
maxPositionSize: BigNumberish;
|
|
62
|
+
maxGain: BigNumberish;
|
|
63
|
+
maxOpenInterest: BigNumberish;
|
|
64
|
+
maxSkew: BigNumberish;
|
|
65
|
+
minPerformanceFee: BigNumberish;
|
|
66
|
+
minOpenFee: BigNumberish;
|
|
67
|
+
};
|
|
68
|
+
export type LexPairConfigsLensStructOutput = [
|
|
69
|
+
pairId: bigint,
|
|
70
|
+
groupId: bigint,
|
|
71
|
+
feeId: bigint,
|
|
72
|
+
minLeverage: bigint,
|
|
73
|
+
maxLeverage: bigint,
|
|
74
|
+
maxBorrowF: bigint,
|
|
75
|
+
maxPositionSize: bigint,
|
|
76
|
+
maxGain: bigint,
|
|
77
|
+
maxOpenInterest: bigint,
|
|
78
|
+
maxSkew: bigint,
|
|
79
|
+
minPerformanceFee: bigint,
|
|
80
|
+
minOpenFee: bigint
|
|
81
|
+
] & {
|
|
82
|
+
pairId: bigint;
|
|
83
|
+
groupId: bigint;
|
|
84
|
+
feeId: bigint;
|
|
85
|
+
minLeverage: bigint;
|
|
86
|
+
maxLeverage: bigint;
|
|
87
|
+
maxBorrowF: bigint;
|
|
88
|
+
maxPositionSize: bigint;
|
|
89
|
+
maxGain: bigint;
|
|
90
|
+
maxOpenInterest: bigint;
|
|
91
|
+
maxSkew: bigint;
|
|
92
|
+
minPerformanceFee: bigint;
|
|
93
|
+
minOpenFee: bigint;
|
|
94
|
+
};
|
|
95
|
+
export type LexPairStateLensStruct = {
|
|
96
|
+
lexPool: AddressLike;
|
|
97
|
+
pairId: BigNumberish;
|
|
98
|
+
openInterestShort: BigNumberish;
|
|
99
|
+
openInterestLong: BigNumberish;
|
|
100
|
+
fundingRate: BigNumberish;
|
|
101
|
+
tradersPairGains: BigNumberish;
|
|
102
|
+
pairBorrows: BigNumberish;
|
|
103
|
+
};
|
|
104
|
+
export type LexPairStateLensStructOutput = [
|
|
105
|
+
lexPool: string,
|
|
106
|
+
pairId: bigint,
|
|
107
|
+
openInterestShort: bigint,
|
|
108
|
+
openInterestLong: bigint,
|
|
109
|
+
fundingRate: bigint,
|
|
110
|
+
tradersPairGains: bigint,
|
|
111
|
+
pairBorrows: bigint
|
|
112
|
+
] & {
|
|
113
|
+
lexPool: string;
|
|
114
|
+
pairId: bigint;
|
|
115
|
+
openInterestShort: bigint;
|
|
116
|
+
openInterestLong: bigint;
|
|
117
|
+
fundingRate: bigint;
|
|
118
|
+
tradersPairGains: bigint;
|
|
119
|
+
pairBorrows: bigint;
|
|
120
|
+
};
|
|
121
|
+
export type LexPoolLensParamsStruct = {
|
|
122
|
+
lexToken: AddressLike;
|
|
123
|
+
name: string;
|
|
124
|
+
symbol: string;
|
|
125
|
+
underlying: AddressLike;
|
|
126
|
+
};
|
|
127
|
+
export type LexPoolLensParamsStructOutput = [
|
|
128
|
+
lexToken: string,
|
|
129
|
+
name: string,
|
|
130
|
+
symbol: string,
|
|
131
|
+
underlying: string
|
|
132
|
+
] & {
|
|
133
|
+
lexToken: string;
|
|
134
|
+
name: string;
|
|
135
|
+
symbol: string;
|
|
136
|
+
underlying: string;
|
|
137
|
+
};
|
|
138
|
+
export type LexPoolConfigurationsLensStruct = {
|
|
139
|
+
lexPool: AddressLike;
|
|
140
|
+
epochLength: BigNumberish;
|
|
141
|
+
minDepositAmount: BigNumberish;
|
|
142
|
+
epochsDelayDeposit: BigNumberish;
|
|
143
|
+
epochsDelayRedeem: BigNumberish;
|
|
144
|
+
immediateDepositAllowed: boolean;
|
|
145
|
+
};
|
|
146
|
+
export type LexPoolConfigurationsLensStructOutput = [
|
|
147
|
+
lexPool: string,
|
|
148
|
+
epochLength: bigint,
|
|
149
|
+
minDepositAmount: bigint,
|
|
150
|
+
epochsDelayDeposit: bigint,
|
|
151
|
+
epochsDelayRedeem: bigint,
|
|
152
|
+
immediateDepositAllowed: boolean
|
|
153
|
+
] & {
|
|
154
|
+
lexPool: string;
|
|
155
|
+
epochLength: bigint;
|
|
156
|
+
minDepositAmount: bigint;
|
|
157
|
+
epochsDelayDeposit: bigint;
|
|
158
|
+
epochsDelayRedeem: bigint;
|
|
159
|
+
immediateDepositAllowed: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type PoolAccountantConfigurationsLensStruct = {
|
|
162
|
+
accountant: AddressLike;
|
|
163
|
+
matchingPool: AddressLike;
|
|
164
|
+
interestRateModel: AddressLike;
|
|
165
|
+
fundingRateModel: AddressLike;
|
|
166
|
+
interestShareFactor: BigNumberish;
|
|
167
|
+
minOpenFee: BigNumberish;
|
|
168
|
+
liquidationThresholdF: BigNumberish;
|
|
169
|
+
liquidationFeeF: BigNumberish;
|
|
170
|
+
lexPartF: BigNumberish;
|
|
171
|
+
supportedPairIds: BigNumberish[];
|
|
172
|
+
};
|
|
173
|
+
export type PoolAccountantConfigurationsLensStructOutput = [
|
|
174
|
+
accountant: string,
|
|
175
|
+
matchingPool: string,
|
|
176
|
+
interestRateModel: string,
|
|
177
|
+
fundingRateModel: string,
|
|
178
|
+
interestShareFactor: bigint,
|
|
179
|
+
minOpenFee: bigint,
|
|
180
|
+
liquidationThresholdF: bigint,
|
|
181
|
+
liquidationFeeF: bigint,
|
|
182
|
+
lexPartF: bigint,
|
|
183
|
+
supportedPairIds: bigint[]
|
|
184
|
+
] & {
|
|
185
|
+
accountant: string;
|
|
186
|
+
matchingPool: string;
|
|
187
|
+
interestRateModel: string;
|
|
188
|
+
fundingRateModel: string;
|
|
189
|
+
interestShareFactor: bigint;
|
|
190
|
+
minOpenFee: bigint;
|
|
191
|
+
liquidationThresholdF: bigint;
|
|
192
|
+
liquidationFeeF: bigint;
|
|
193
|
+
lexPartF: bigint;
|
|
194
|
+
supportedPairIds: bigint[];
|
|
195
|
+
};
|
|
196
|
+
export type CompleteLexConfigsLensStruct = {
|
|
197
|
+
lexPoolParams: LexPoolLensParamsStruct;
|
|
198
|
+
lexPoolConfigurations: LexPoolConfigurationsLensStruct;
|
|
199
|
+
poolAccountantConfigurations: PoolAccountantConfigurationsLensStruct;
|
|
200
|
+
groupsConfigs: LexGroupConfigsLensStruct[];
|
|
201
|
+
pairsConfigs: LexPairConfigsLensStruct[];
|
|
202
|
+
feesConfigs: LexFeeConfigsLensStruct[];
|
|
203
|
+
};
|
|
204
|
+
export type CompleteLexConfigsLensStructOutput = [
|
|
205
|
+
lexPoolParams: LexPoolLensParamsStructOutput,
|
|
206
|
+
lexPoolConfigurations: LexPoolConfigurationsLensStructOutput,
|
|
207
|
+
poolAccountantConfigurations: PoolAccountantConfigurationsLensStructOutput,
|
|
208
|
+
groupsConfigs: LexGroupConfigsLensStructOutput[],
|
|
209
|
+
pairsConfigs: LexPairConfigsLensStructOutput[],
|
|
210
|
+
feesConfigs: LexFeeConfigsLensStructOutput[]
|
|
211
|
+
] & {
|
|
212
|
+
lexPoolParams: LexPoolLensParamsStructOutput;
|
|
213
|
+
lexPoolConfigurations: LexPoolConfigurationsLensStructOutput;
|
|
214
|
+
poolAccountantConfigurations: PoolAccountantConfigurationsLensStructOutput;
|
|
215
|
+
groupsConfigs: LexGroupConfigsLensStructOutput[];
|
|
216
|
+
pairsConfigs: LexPairConfigsLensStructOutput[];
|
|
217
|
+
feesConfigs: LexFeeConfigsLensStructOutput[];
|
|
218
|
+
};
|
|
219
|
+
export type LexPoolLensStateStruct = {
|
|
220
|
+
lexPool: AddressLike;
|
|
221
|
+
connectedToCenter: boolean;
|
|
222
|
+
totalSupply: BigNumberish;
|
|
223
|
+
poolBalance: BigNumberish;
|
|
224
|
+
cash: BigNumberish;
|
|
225
|
+
currentEpochNumber: BigNumberish;
|
|
226
|
+
currentExchangeRate: BigNumberish;
|
|
227
|
+
nextEpochStartMin: BigNumberish;
|
|
228
|
+
virtualBalanceForUtilization: BigNumberish;
|
|
229
|
+
currentVirtualUtilization: BigNumberish;
|
|
230
|
+
totalPendingDeposits: BigNumberish;
|
|
231
|
+
totalPendingWithdrawals: BigNumberish;
|
|
232
|
+
};
|
|
233
|
+
export type LexPoolLensStateStructOutput = [
|
|
234
|
+
lexPool: string,
|
|
235
|
+
connectedToCenter: boolean,
|
|
236
|
+
totalSupply: bigint,
|
|
237
|
+
poolBalance: bigint,
|
|
238
|
+
cash: bigint,
|
|
239
|
+
currentEpochNumber: bigint,
|
|
240
|
+
currentExchangeRate: bigint,
|
|
241
|
+
nextEpochStartMin: bigint,
|
|
242
|
+
virtualBalanceForUtilization: bigint,
|
|
243
|
+
currentVirtualUtilization: bigint,
|
|
244
|
+
totalPendingDeposits: bigint,
|
|
245
|
+
totalPendingWithdrawals: bigint
|
|
246
|
+
] & {
|
|
247
|
+
lexPool: string;
|
|
248
|
+
connectedToCenter: boolean;
|
|
249
|
+
totalSupply: bigint;
|
|
250
|
+
poolBalance: bigint;
|
|
251
|
+
cash: bigint;
|
|
252
|
+
currentEpochNumber: bigint;
|
|
253
|
+
currentExchangeRate: bigint;
|
|
254
|
+
nextEpochStartMin: bigint;
|
|
255
|
+
virtualBalanceForUtilization: bigint;
|
|
256
|
+
currentVirtualUtilization: bigint;
|
|
257
|
+
totalPendingDeposits: bigint;
|
|
258
|
+
totalPendingWithdrawals: bigint;
|
|
259
|
+
};
|
|
260
|
+
export type PoolAccountantStateLensStruct = {
|
|
261
|
+
accountant: AddressLike;
|
|
262
|
+
matchingPool: AddressLike;
|
|
263
|
+
borrowRatePerSecond: BigNumberish;
|
|
264
|
+
interestShare: BigNumberish;
|
|
265
|
+
fundingShare: BigNumberish;
|
|
266
|
+
totalBorrows: BigNumberish;
|
|
267
|
+
unrealizedFunding: BigNumberish;
|
|
268
|
+
};
|
|
269
|
+
export type PoolAccountantStateLensStructOutput = [
|
|
270
|
+
accountant: string,
|
|
271
|
+
matchingPool: string,
|
|
272
|
+
borrowRatePerSecond: bigint,
|
|
273
|
+
interestShare: bigint,
|
|
274
|
+
fundingShare: bigint,
|
|
275
|
+
totalBorrows: bigint,
|
|
276
|
+
unrealizedFunding: bigint
|
|
277
|
+
] & {
|
|
278
|
+
accountant: string;
|
|
279
|
+
matchingPool: string;
|
|
280
|
+
borrowRatePerSecond: bigint;
|
|
281
|
+
interestShare: bigint;
|
|
282
|
+
fundingShare: bigint;
|
|
283
|
+
totalBorrows: bigint;
|
|
284
|
+
unrealizedFunding: bigint;
|
|
285
|
+
};
|
|
286
|
+
export type CompleteLexStateLensStruct = {
|
|
287
|
+
lexPoolState: LexPoolLensStateStruct;
|
|
288
|
+
poolAccountantState: PoolAccountantStateLensStruct;
|
|
289
|
+
pairsStates: LexPairStateLensStruct[];
|
|
290
|
+
groupsStates: LexGroupStateLensStruct[];
|
|
291
|
+
};
|
|
292
|
+
export type CompleteLexStateLensStructOutput = [
|
|
293
|
+
lexPoolState: LexPoolLensStateStructOutput,
|
|
294
|
+
poolAccountantState: PoolAccountantStateLensStructOutput,
|
|
295
|
+
pairsStates: LexPairStateLensStructOutput[],
|
|
296
|
+
groupsStates: LexGroupStateLensStructOutput[]
|
|
297
|
+
] & {
|
|
298
|
+
lexPoolState: LexPoolLensStateStructOutput;
|
|
299
|
+
poolAccountantState: PoolAccountantStateLensStructOutput;
|
|
300
|
+
pairsStates: LexPairStateLensStructOutput[];
|
|
301
|
+
groupsStates: LexGroupStateLensStructOutput[];
|
|
302
|
+
};
|
|
303
|
+
export type PendingEpochDepositLensStruct = {
|
|
304
|
+
epochNumber: BigNumberish;
|
|
305
|
+
account: AddressLike;
|
|
306
|
+
amount: BigNumberish;
|
|
307
|
+
minAmountOut: BigNumberish;
|
|
308
|
+
};
|
|
309
|
+
export type PendingEpochDepositLensStructOutput = [
|
|
310
|
+
epochNumber: bigint,
|
|
311
|
+
account: string,
|
|
312
|
+
amount: bigint,
|
|
313
|
+
minAmountOut: bigint
|
|
314
|
+
] & {
|
|
315
|
+
epochNumber: bigint;
|
|
316
|
+
account: string;
|
|
317
|
+
amount: bigint;
|
|
318
|
+
minAmountOut: bigint;
|
|
319
|
+
};
|
|
320
|
+
export type PendingEpochRedeemLensStruct = {
|
|
321
|
+
epochNumber: BigNumberish;
|
|
322
|
+
account: AddressLike;
|
|
323
|
+
amount: BigNumberish;
|
|
324
|
+
minAmountOut: BigNumberish;
|
|
325
|
+
maxAmountOut: BigNumberish;
|
|
326
|
+
};
|
|
327
|
+
export type PendingEpochRedeemLensStructOutput = [
|
|
328
|
+
epochNumber: bigint,
|
|
329
|
+
account: string,
|
|
330
|
+
amount: bigint,
|
|
331
|
+
minAmountOut: bigint,
|
|
332
|
+
maxAmountOut: bigint
|
|
333
|
+
] & {
|
|
334
|
+
epochNumber: bigint;
|
|
335
|
+
account: string;
|
|
336
|
+
amount: bigint;
|
|
337
|
+
minAmountOut: bigint;
|
|
338
|
+
maxAmountOut: bigint;
|
|
339
|
+
};
|
|
340
|
+
export type LexPoolSupplierLensStateStruct = {
|
|
341
|
+
lexPool: AddressLike;
|
|
342
|
+
supplier: AddressLike;
|
|
343
|
+
lxpBalance: BigNumberish;
|
|
344
|
+
lxpBalanceInUnderlying: BigNumberish;
|
|
345
|
+
underlyingBalance: BigNumberish;
|
|
346
|
+
allowanceForLexPool: BigNumberish;
|
|
347
|
+
pendingEpochDeposits: PendingEpochDepositLensStruct[];
|
|
348
|
+
pendingEpochRedeems: PendingEpochRedeemLensStruct[];
|
|
349
|
+
};
|
|
350
|
+
export type LexPoolSupplierLensStateStructOutput = [
|
|
351
|
+
lexPool: string,
|
|
352
|
+
supplier: string,
|
|
353
|
+
lxpBalance: bigint,
|
|
354
|
+
lxpBalanceInUnderlying: bigint,
|
|
355
|
+
underlyingBalance: bigint,
|
|
356
|
+
allowanceForLexPool: bigint,
|
|
357
|
+
pendingEpochDeposits: PendingEpochDepositLensStructOutput[],
|
|
358
|
+
pendingEpochRedeems: PendingEpochRedeemLensStructOutput[]
|
|
359
|
+
] & {
|
|
360
|
+
lexPool: string;
|
|
361
|
+
supplier: string;
|
|
362
|
+
lxpBalance: bigint;
|
|
363
|
+
lxpBalanceInUnderlying: bigint;
|
|
364
|
+
underlyingBalance: bigint;
|
|
365
|
+
allowanceForLexPool: bigint;
|
|
366
|
+
pendingEpochDeposits: PendingEpochDepositLensStructOutput[];
|
|
367
|
+
pendingEpochRedeems: PendingEpochRedeemLensStructOutput[];
|
|
368
|
+
};
|
|
369
|
+
export type SinglePositionInputStruct = {
|
|
370
|
+
positionId: BytesLike;
|
|
371
|
+
collateral: BigNumberish;
|
|
372
|
+
openPrice: BigNumberish;
|
|
373
|
+
tp: BigNumberish;
|
|
374
|
+
leverage: BigNumberish;
|
|
375
|
+
long: boolean;
|
|
376
|
+
};
|
|
377
|
+
export type SinglePositionInputStructOutput = [
|
|
378
|
+
positionId: string,
|
|
379
|
+
collateral: bigint,
|
|
380
|
+
openPrice: bigint,
|
|
381
|
+
tp: bigint,
|
|
382
|
+
leverage: bigint,
|
|
383
|
+
long: boolean
|
|
384
|
+
] & {
|
|
385
|
+
positionId: string;
|
|
386
|
+
collateral: bigint;
|
|
387
|
+
openPrice: bigint;
|
|
388
|
+
tp: bigint;
|
|
389
|
+
leverage: bigint;
|
|
390
|
+
long: boolean;
|
|
391
|
+
};
|
|
392
|
+
export type SinglePairTradesValuesInputStruct = {
|
|
393
|
+
pairId: BigNumberish;
|
|
394
|
+
currentPrice: BigNumberish;
|
|
395
|
+
positionsParams: SinglePositionInputStruct[];
|
|
396
|
+
};
|
|
397
|
+
export type SinglePairTradesValuesInputStructOutput = [
|
|
398
|
+
pairId: bigint,
|
|
399
|
+
currentPrice: bigint,
|
|
400
|
+
positionsParams: SinglePositionInputStructOutput[]
|
|
401
|
+
] & {
|
|
402
|
+
pairId: bigint;
|
|
403
|
+
currentPrice: bigint;
|
|
404
|
+
positionsParams: SinglePositionInputStructOutput[];
|
|
405
|
+
};
|
|
406
|
+
export type SinglePositionOutputStruct = {
|
|
407
|
+
totalValue: BigNumberish;
|
|
408
|
+
safeClosingFee: BigNumberish;
|
|
409
|
+
interest: BigNumberish;
|
|
410
|
+
funding: BigNumberish;
|
|
411
|
+
};
|
|
412
|
+
export type SinglePositionOutputStructOutput = [
|
|
413
|
+
totalValue: bigint,
|
|
414
|
+
safeClosingFee: bigint,
|
|
415
|
+
interest: bigint,
|
|
416
|
+
funding: bigint
|
|
417
|
+
] & {
|
|
418
|
+
totalValue: bigint;
|
|
419
|
+
safeClosingFee: bigint;
|
|
420
|
+
interest: bigint;
|
|
421
|
+
funding: bigint;
|
|
422
|
+
};
|
|
423
|
+
export interface LexLensInterface extends Interface {
|
|
424
|
+
getFunction(nameOrSignature: "getAllFeeConfigurationsInLex" | "getAllGroupConfigurationsInLex" | "getAllGroupStateInLex" | "getAllPairAndGroupAndFeeConfigurationsInLex" | "getAllPairConfigurationsInLex" | "getAllPairStateInLex" | "getCompleteConfigsForLex" | "getCompleteConfigsForLexes" | "getCompleteStateForLex" | "getCompleteStateForLexes" | "getLExPoolForPoolAccountant" | "getLexPairState" | "getLexPoolConfigs" | "getLexPoolParams" | "getLexPoolState" | "getLexPoolSupplierState" | "getLexPoolsStateAll" | "getPoolAccountantConfigurationsByPool" | "getPoolAccountantConfigurationsByPoolAll" | "getPoolAccountantForLexPool" | "getPoolAccountantStateByPool" | "getPoolAccountantStateByPoolAll" | "getSupplierCurrentStateAll" | "tradesValuesMultiplePairs" | "tradesValuesSinglePair"): FunctionFragment;
|
|
425
|
+
encodeFunctionData(functionFragment: "getAllFeeConfigurationsInLex", values: [AddressLike]): string;
|
|
426
|
+
encodeFunctionData(functionFragment: "getAllGroupConfigurationsInLex", values: [AddressLike]): string;
|
|
427
|
+
encodeFunctionData(functionFragment: "getAllGroupStateInLex", values: [AddressLike]): string;
|
|
428
|
+
encodeFunctionData(functionFragment: "getAllPairAndGroupAndFeeConfigurationsInLex", values: [AddressLike]): string;
|
|
429
|
+
encodeFunctionData(functionFragment: "getAllPairConfigurationsInLex", values: [AddressLike]): string;
|
|
430
|
+
encodeFunctionData(functionFragment: "getAllPairStateInLex", values: [AddressLike]): string;
|
|
431
|
+
encodeFunctionData(functionFragment: "getCompleteConfigsForLex", values: [AddressLike]): string;
|
|
432
|
+
encodeFunctionData(functionFragment: "getCompleteConfigsForLexes", values: [AddressLike[]]): string;
|
|
433
|
+
encodeFunctionData(functionFragment: "getCompleteStateForLex", values: [AddressLike]): string;
|
|
434
|
+
encodeFunctionData(functionFragment: "getCompleteStateForLexes", values: [AddressLike[]]): string;
|
|
435
|
+
encodeFunctionData(functionFragment: "getLExPoolForPoolAccountant", values: [AddressLike]): string;
|
|
436
|
+
encodeFunctionData(functionFragment: "getLexPairState", values: [AddressLike, BigNumberish]): string;
|
|
437
|
+
encodeFunctionData(functionFragment: "getLexPoolConfigs", values: [AddressLike]): string;
|
|
438
|
+
encodeFunctionData(functionFragment: "getLexPoolParams", values: [AddressLike]): string;
|
|
439
|
+
encodeFunctionData(functionFragment: "getLexPoolState", values: [AddressLike]): string;
|
|
440
|
+
encodeFunctionData(functionFragment: "getLexPoolSupplierState", values: [AddressLike, AddressLike]): string;
|
|
441
|
+
encodeFunctionData(functionFragment: "getLexPoolsStateAll", values: [AddressLike[]]): string;
|
|
442
|
+
encodeFunctionData(functionFragment: "getPoolAccountantConfigurationsByPool", values: [AddressLike]): string;
|
|
443
|
+
encodeFunctionData(functionFragment: "getPoolAccountantConfigurationsByPoolAll", values: [AddressLike[]]): string;
|
|
444
|
+
encodeFunctionData(functionFragment: "getPoolAccountantForLexPool", values: [AddressLike]): string;
|
|
445
|
+
encodeFunctionData(functionFragment: "getPoolAccountantStateByPool", values: [AddressLike]): string;
|
|
446
|
+
encodeFunctionData(functionFragment: "getPoolAccountantStateByPoolAll", values: [AddressLike[]]): string;
|
|
447
|
+
encodeFunctionData(functionFragment: "getSupplierCurrentStateAll", values: [AddressLike[], AddressLike]): string;
|
|
448
|
+
encodeFunctionData(functionFragment: "tradesValuesMultiplePairs", values: [AddressLike, SinglePairTradesValuesInputStruct[]]): string;
|
|
449
|
+
encodeFunctionData(functionFragment: "tradesValuesSinglePair", values: [AddressLike, SinglePairTradesValuesInputStruct]): string;
|
|
450
|
+
decodeFunctionResult(functionFragment: "getAllFeeConfigurationsInLex", data: BytesLike): Result;
|
|
451
|
+
decodeFunctionResult(functionFragment: "getAllGroupConfigurationsInLex", data: BytesLike): Result;
|
|
452
|
+
decodeFunctionResult(functionFragment: "getAllGroupStateInLex", data: BytesLike): Result;
|
|
453
|
+
decodeFunctionResult(functionFragment: "getAllPairAndGroupAndFeeConfigurationsInLex", data: BytesLike): Result;
|
|
454
|
+
decodeFunctionResult(functionFragment: "getAllPairConfigurationsInLex", data: BytesLike): Result;
|
|
455
|
+
decodeFunctionResult(functionFragment: "getAllPairStateInLex", data: BytesLike): Result;
|
|
456
|
+
decodeFunctionResult(functionFragment: "getCompleteConfigsForLex", data: BytesLike): Result;
|
|
457
|
+
decodeFunctionResult(functionFragment: "getCompleteConfigsForLexes", data: BytesLike): Result;
|
|
458
|
+
decodeFunctionResult(functionFragment: "getCompleteStateForLex", data: BytesLike): Result;
|
|
459
|
+
decodeFunctionResult(functionFragment: "getCompleteStateForLexes", data: BytesLike): Result;
|
|
460
|
+
decodeFunctionResult(functionFragment: "getLExPoolForPoolAccountant", data: BytesLike): Result;
|
|
461
|
+
decodeFunctionResult(functionFragment: "getLexPairState", data: BytesLike): Result;
|
|
462
|
+
decodeFunctionResult(functionFragment: "getLexPoolConfigs", data: BytesLike): Result;
|
|
463
|
+
decodeFunctionResult(functionFragment: "getLexPoolParams", data: BytesLike): Result;
|
|
464
|
+
decodeFunctionResult(functionFragment: "getLexPoolState", data: BytesLike): Result;
|
|
465
|
+
decodeFunctionResult(functionFragment: "getLexPoolSupplierState", data: BytesLike): Result;
|
|
466
|
+
decodeFunctionResult(functionFragment: "getLexPoolsStateAll", data: BytesLike): Result;
|
|
467
|
+
decodeFunctionResult(functionFragment: "getPoolAccountantConfigurationsByPool", data: BytesLike): Result;
|
|
468
|
+
decodeFunctionResult(functionFragment: "getPoolAccountantConfigurationsByPoolAll", data: BytesLike): Result;
|
|
469
|
+
decodeFunctionResult(functionFragment: "getPoolAccountantForLexPool", data: BytesLike): Result;
|
|
470
|
+
decodeFunctionResult(functionFragment: "getPoolAccountantStateByPool", data: BytesLike): Result;
|
|
471
|
+
decodeFunctionResult(functionFragment: "getPoolAccountantStateByPoolAll", data: BytesLike): Result;
|
|
472
|
+
decodeFunctionResult(functionFragment: "getSupplierCurrentStateAll", data: BytesLike): Result;
|
|
473
|
+
decodeFunctionResult(functionFragment: "tradesValuesMultiplePairs", data: BytesLike): Result;
|
|
474
|
+
decodeFunctionResult(functionFragment: "tradesValuesSinglePair", data: BytesLike): Result;
|
|
475
|
+
}
|
|
476
|
+
export interface LexLens extends BaseContract {
|
|
477
|
+
connect(runner?: ContractRunner | null): LexLens;
|
|
478
|
+
waitForDeployment(): Promise<this>;
|
|
479
|
+
interface: LexLensInterface;
|
|
480
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
481
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
482
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
483
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
484
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
485
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
486
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
487
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
488
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
489
|
+
getAllFeeConfigurationsInLex: TypedContractMethod<[
|
|
490
|
+
lx: AddressLike
|
|
491
|
+
], [
|
|
492
|
+
LexFeeConfigsLensStructOutput[]
|
|
493
|
+
], "view">;
|
|
494
|
+
getAllGroupConfigurationsInLex: TypedContractMethod<[
|
|
495
|
+
lx: AddressLike
|
|
496
|
+
], [
|
|
497
|
+
LexGroupConfigsLensStructOutput[]
|
|
498
|
+
], "view">;
|
|
499
|
+
getAllGroupStateInLex: TypedContractMethod<[
|
|
500
|
+
lx: AddressLike
|
|
501
|
+
], [
|
|
502
|
+
LexGroupStateLensStructOutput[]
|
|
503
|
+
], "view">;
|
|
504
|
+
getAllPairAndGroupAndFeeConfigurationsInLex: TypedContractMethod<[
|
|
505
|
+
arg0: AddressLike
|
|
506
|
+
], [
|
|
507
|
+
boolean
|
|
508
|
+
], "view">;
|
|
509
|
+
getAllPairConfigurationsInLex: TypedContractMethod<[
|
|
510
|
+
lx: AddressLike
|
|
511
|
+
], [
|
|
512
|
+
LexPairConfigsLensStructOutput[]
|
|
513
|
+
], "view">;
|
|
514
|
+
getAllPairStateInLex: TypedContractMethod<[
|
|
515
|
+
lx: AddressLike
|
|
516
|
+
], [
|
|
517
|
+
LexPairStateLensStructOutput[]
|
|
518
|
+
], "view">;
|
|
519
|
+
getCompleteConfigsForLex: TypedContractMethod<[
|
|
520
|
+
pool: AddressLike
|
|
521
|
+
], [
|
|
522
|
+
CompleteLexConfigsLensStructOutput
|
|
523
|
+
], "view">;
|
|
524
|
+
getCompleteConfigsForLexes: TypedContractMethod<[
|
|
525
|
+
pools: AddressLike[]
|
|
526
|
+
], [
|
|
527
|
+
CompleteLexConfigsLensStructOutput[]
|
|
528
|
+
], "view">;
|
|
529
|
+
getCompleteStateForLex: TypedContractMethod<[
|
|
530
|
+
pool: AddressLike
|
|
531
|
+
], [
|
|
532
|
+
CompleteLexStateLensStructOutput
|
|
533
|
+
], "view">;
|
|
534
|
+
getCompleteStateForLexes: TypedContractMethod<[
|
|
535
|
+
pools: AddressLike[]
|
|
536
|
+
], [
|
|
537
|
+
CompleteLexStateLensStructOutput[]
|
|
538
|
+
], "view">;
|
|
539
|
+
getLExPoolForPoolAccountant: TypedContractMethod<[
|
|
540
|
+
accountant: AddressLike
|
|
541
|
+
], [
|
|
542
|
+
string
|
|
543
|
+
], "view">;
|
|
544
|
+
getLexPairState: TypedContractMethod<[
|
|
545
|
+
lx: AddressLike,
|
|
546
|
+
pairId: BigNumberish
|
|
547
|
+
], [
|
|
548
|
+
LexPairStateLensStructOutput
|
|
549
|
+
], "view">;
|
|
550
|
+
getLexPoolConfigs: TypedContractMethod<[
|
|
551
|
+
lx: AddressLike
|
|
552
|
+
], [
|
|
553
|
+
LexPoolConfigurationsLensStructOutput
|
|
554
|
+
], "view">;
|
|
555
|
+
getLexPoolParams: TypedContractMethod<[
|
|
556
|
+
lx: AddressLike
|
|
557
|
+
], [
|
|
558
|
+
LexPoolLensParamsStructOutput
|
|
559
|
+
], "view">;
|
|
560
|
+
getLexPoolState: TypedContractMethod<[
|
|
561
|
+
lx: AddressLike
|
|
562
|
+
], [
|
|
563
|
+
LexPoolLensStateStructOutput
|
|
564
|
+
], "view">;
|
|
565
|
+
getLexPoolSupplierState: TypedContractMethod<[
|
|
566
|
+
lx: AddressLike,
|
|
567
|
+
supplier: AddressLike
|
|
568
|
+
], [
|
|
569
|
+
LexPoolSupplierLensStateStructOutput
|
|
570
|
+
], "view">;
|
|
571
|
+
getLexPoolsStateAll: TypedContractMethod<[
|
|
572
|
+
lxs: AddressLike[]
|
|
573
|
+
], [
|
|
574
|
+
LexPoolLensStateStructOutput[]
|
|
575
|
+
], "view">;
|
|
576
|
+
getPoolAccountantConfigurationsByPool: TypedContractMethod<[
|
|
577
|
+
lx: AddressLike
|
|
578
|
+
], [
|
|
579
|
+
PoolAccountantConfigurationsLensStructOutput
|
|
580
|
+
], "view">;
|
|
581
|
+
getPoolAccountantConfigurationsByPoolAll: TypedContractMethod<[
|
|
582
|
+
lxs: AddressLike[]
|
|
583
|
+
], [
|
|
584
|
+
PoolAccountantConfigurationsLensStructOutput[]
|
|
585
|
+
], "view">;
|
|
586
|
+
getPoolAccountantForLexPool: TypedContractMethod<[
|
|
587
|
+
lx: AddressLike
|
|
588
|
+
], [
|
|
589
|
+
string
|
|
590
|
+
], "view">;
|
|
591
|
+
getPoolAccountantStateByPool: TypedContractMethod<[
|
|
592
|
+
lx: AddressLike
|
|
593
|
+
], [
|
|
594
|
+
PoolAccountantStateLensStructOutput
|
|
595
|
+
], "view">;
|
|
596
|
+
getPoolAccountantStateByPoolAll: TypedContractMethod<[
|
|
597
|
+
lxs: AddressLike[]
|
|
598
|
+
], [
|
|
599
|
+
PoolAccountantStateLensStructOutput[]
|
|
600
|
+
], "view">;
|
|
601
|
+
getSupplierCurrentStateAll: TypedContractMethod<[
|
|
602
|
+
lxs: AddressLike[],
|
|
603
|
+
supplier: AddressLike
|
|
604
|
+
], [
|
|
605
|
+
LexPoolSupplierLensStateStructOutput[]
|
|
606
|
+
], "view">;
|
|
607
|
+
tradesValuesMultiplePairs: TypedContractMethod<[
|
|
608
|
+
accountant: AddressLike,
|
|
609
|
+
pairsTrades: SinglePairTradesValuesInputStruct[]
|
|
610
|
+
], [
|
|
611
|
+
SinglePositionOutputStructOutput[][]
|
|
612
|
+
], "nonpayable">;
|
|
613
|
+
tradesValuesSinglePair: TypedContractMethod<[
|
|
614
|
+
accountant: AddressLike,
|
|
615
|
+
pairParams: SinglePairTradesValuesInputStruct
|
|
616
|
+
], [
|
|
617
|
+
SinglePositionOutputStructOutput[]
|
|
618
|
+
], "nonpayable">;
|
|
619
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
620
|
+
getFunction(nameOrSignature: "getAllFeeConfigurationsInLex"): TypedContractMethod<[
|
|
621
|
+
lx: AddressLike
|
|
622
|
+
], [
|
|
623
|
+
LexFeeConfigsLensStructOutput[]
|
|
624
|
+
], "view">;
|
|
625
|
+
getFunction(nameOrSignature: "getAllGroupConfigurationsInLex"): TypedContractMethod<[
|
|
626
|
+
lx: AddressLike
|
|
627
|
+
], [
|
|
628
|
+
LexGroupConfigsLensStructOutput[]
|
|
629
|
+
], "view">;
|
|
630
|
+
getFunction(nameOrSignature: "getAllGroupStateInLex"): TypedContractMethod<[
|
|
631
|
+
lx: AddressLike
|
|
632
|
+
], [
|
|
633
|
+
LexGroupStateLensStructOutput[]
|
|
634
|
+
], "view">;
|
|
635
|
+
getFunction(nameOrSignature: "getAllPairAndGroupAndFeeConfigurationsInLex"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
636
|
+
getFunction(nameOrSignature: "getAllPairConfigurationsInLex"): TypedContractMethod<[
|
|
637
|
+
lx: AddressLike
|
|
638
|
+
], [
|
|
639
|
+
LexPairConfigsLensStructOutput[]
|
|
640
|
+
], "view">;
|
|
641
|
+
getFunction(nameOrSignature: "getAllPairStateInLex"): TypedContractMethod<[
|
|
642
|
+
lx: AddressLike
|
|
643
|
+
], [
|
|
644
|
+
LexPairStateLensStructOutput[]
|
|
645
|
+
], "view">;
|
|
646
|
+
getFunction(nameOrSignature: "getCompleteConfigsForLex"): TypedContractMethod<[
|
|
647
|
+
pool: AddressLike
|
|
648
|
+
], [
|
|
649
|
+
CompleteLexConfigsLensStructOutput
|
|
650
|
+
], "view">;
|
|
651
|
+
getFunction(nameOrSignature: "getCompleteConfigsForLexes"): TypedContractMethod<[
|
|
652
|
+
pools: AddressLike[]
|
|
653
|
+
], [
|
|
654
|
+
CompleteLexConfigsLensStructOutput[]
|
|
655
|
+
], "view">;
|
|
656
|
+
getFunction(nameOrSignature: "getCompleteStateForLex"): TypedContractMethod<[
|
|
657
|
+
pool: AddressLike
|
|
658
|
+
], [
|
|
659
|
+
CompleteLexStateLensStructOutput
|
|
660
|
+
], "view">;
|
|
661
|
+
getFunction(nameOrSignature: "getCompleteStateForLexes"): TypedContractMethod<[
|
|
662
|
+
pools: AddressLike[]
|
|
663
|
+
], [
|
|
664
|
+
CompleteLexStateLensStructOutput[]
|
|
665
|
+
], "view">;
|
|
666
|
+
getFunction(nameOrSignature: "getLExPoolForPoolAccountant"): TypedContractMethod<[accountant: AddressLike], [string], "view">;
|
|
667
|
+
getFunction(nameOrSignature: "getLexPairState"): TypedContractMethod<[
|
|
668
|
+
lx: AddressLike,
|
|
669
|
+
pairId: BigNumberish
|
|
670
|
+
], [
|
|
671
|
+
LexPairStateLensStructOutput
|
|
672
|
+
], "view">;
|
|
673
|
+
getFunction(nameOrSignature: "getLexPoolConfigs"): TypedContractMethod<[
|
|
674
|
+
lx: AddressLike
|
|
675
|
+
], [
|
|
676
|
+
LexPoolConfigurationsLensStructOutput
|
|
677
|
+
], "view">;
|
|
678
|
+
getFunction(nameOrSignature: "getLexPoolParams"): TypedContractMethod<[
|
|
679
|
+
lx: AddressLike
|
|
680
|
+
], [
|
|
681
|
+
LexPoolLensParamsStructOutput
|
|
682
|
+
], "view">;
|
|
683
|
+
getFunction(nameOrSignature: "getLexPoolState"): TypedContractMethod<[
|
|
684
|
+
lx: AddressLike
|
|
685
|
+
], [
|
|
686
|
+
LexPoolLensStateStructOutput
|
|
687
|
+
], "view">;
|
|
688
|
+
getFunction(nameOrSignature: "getLexPoolSupplierState"): TypedContractMethod<[
|
|
689
|
+
lx: AddressLike,
|
|
690
|
+
supplier: AddressLike
|
|
691
|
+
], [
|
|
692
|
+
LexPoolSupplierLensStateStructOutput
|
|
693
|
+
], "view">;
|
|
694
|
+
getFunction(nameOrSignature: "getLexPoolsStateAll"): TypedContractMethod<[
|
|
695
|
+
lxs: AddressLike[]
|
|
696
|
+
], [
|
|
697
|
+
LexPoolLensStateStructOutput[]
|
|
698
|
+
], "view">;
|
|
699
|
+
getFunction(nameOrSignature: "getPoolAccountantConfigurationsByPool"): TypedContractMethod<[
|
|
700
|
+
lx: AddressLike
|
|
701
|
+
], [
|
|
702
|
+
PoolAccountantConfigurationsLensStructOutput
|
|
703
|
+
], "view">;
|
|
704
|
+
getFunction(nameOrSignature: "getPoolAccountantConfigurationsByPoolAll"): TypedContractMethod<[
|
|
705
|
+
lxs: AddressLike[]
|
|
706
|
+
], [
|
|
707
|
+
PoolAccountantConfigurationsLensStructOutput[]
|
|
708
|
+
], "view">;
|
|
709
|
+
getFunction(nameOrSignature: "getPoolAccountantForLexPool"): TypedContractMethod<[lx: AddressLike], [string], "view">;
|
|
710
|
+
getFunction(nameOrSignature: "getPoolAccountantStateByPool"): TypedContractMethod<[
|
|
711
|
+
lx: AddressLike
|
|
712
|
+
], [
|
|
713
|
+
PoolAccountantStateLensStructOutput
|
|
714
|
+
], "view">;
|
|
715
|
+
getFunction(nameOrSignature: "getPoolAccountantStateByPoolAll"): TypedContractMethod<[
|
|
716
|
+
lxs: AddressLike[]
|
|
717
|
+
], [
|
|
718
|
+
PoolAccountantStateLensStructOutput[]
|
|
719
|
+
], "view">;
|
|
720
|
+
getFunction(nameOrSignature: "getSupplierCurrentStateAll"): TypedContractMethod<[
|
|
721
|
+
lxs: AddressLike[],
|
|
722
|
+
supplier: AddressLike
|
|
723
|
+
], [
|
|
724
|
+
LexPoolSupplierLensStateStructOutput[]
|
|
725
|
+
], "view">;
|
|
726
|
+
getFunction(nameOrSignature: "tradesValuesMultiplePairs"): TypedContractMethod<[
|
|
727
|
+
accountant: AddressLike,
|
|
728
|
+
pairsTrades: SinglePairTradesValuesInputStruct[]
|
|
729
|
+
], [
|
|
730
|
+
SinglePositionOutputStructOutput[][]
|
|
731
|
+
], "nonpayable">;
|
|
732
|
+
getFunction(nameOrSignature: "tradesValuesSinglePair"): TypedContractMethod<[
|
|
733
|
+
accountant: AddressLike,
|
|
734
|
+
pairParams: SinglePairTradesValuesInputStruct
|
|
735
|
+
], [
|
|
736
|
+
SinglePositionOutputStructOutput[]
|
|
737
|
+
], "nonpayable">;
|
|
738
|
+
filters: {};
|
|
739
|
+
}
|
|
740
|
+
//# sourceMappingURL=LexLens.d.ts.map
|