lynx-client 0.0.19 → 0.0.21
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/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +0 -4
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +33 -1
- package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +0 -4
- package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +24 -1
- package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +13 -12
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +6 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +0 -4
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +3 -0
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +1 -0
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +3 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +0 -4
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +0 -4
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +3 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +3 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +19 -4
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +33 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +1 -0
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +3 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +0 -4
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +0 -4
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +3 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +3 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +13 -2
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +24 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +1 -0
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +3 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +13 -12
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +3 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +3 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +3 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +6 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +0 -4
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +0 -4
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +1 -0
- package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +0 -4
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +19 -4
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +1 -0
- package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +0 -4
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +13 -2
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +1 -0
- package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +1 -0
- package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +0 -4
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -49,5 +49,8 @@ class AcceptableImplementationClaimableAdminService {
|
|
|
49
49
|
this.implementationManagement = new AcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement(this.proxyContract);
|
|
50
50
|
this.stateVariables = new AcceptableImplementationClaimableAdminFunctionsGroup_StateVariables(this.proxyContract);
|
|
51
51
|
}
|
|
52
|
+
getContract() {
|
|
53
|
+
return this.proxyContract;
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
exports.AcceptableImplementationClaimableAdminService = AcceptableImplementationClaimableAdminService;
|
package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js
CHANGED
|
@@ -87,5 +87,8 @@ class ChipsIntentsVerifierService {
|
|
|
87
87
|
async wrapNativeChipInOutHelpers(oftChip) {
|
|
88
88
|
return await this.contract.wrapNativeChipInOutHelpers(oftChip);
|
|
89
89
|
}
|
|
90
|
+
getContract() {
|
|
91
|
+
return this.contract;
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
exports.ChipsIntentsVerifierService = ChipsIntentsVerifierService;
|
|
@@ -278,10 +278,6 @@ class EngineChipService {
|
|
|
278
278
|
this.pendableAdmin = new PendableAdmin(this.contract);
|
|
279
279
|
this.lynxVersionedContract = new LynxVersionedContract(this.contract);
|
|
280
280
|
}
|
|
281
|
-
/**
|
|
282
|
-
* Get the underlying contract instance
|
|
283
|
-
* Useful for accessing contract methods directly when needed
|
|
284
|
-
*/
|
|
285
281
|
getContract() {
|
|
286
282
|
return this.contract;
|
|
287
283
|
}
|
|
@@ -42,6 +42,9 @@ class LexPoolV1FunctionsGroup_AdminConfiguration {
|
|
|
42
42
|
return this.contract.toggleImmediateDepositAllowed();
|
|
43
43
|
}
|
|
44
44
|
async reduceReserves(to) {
|
|
45
|
+
return this.contract.reduceReserves(to);
|
|
46
|
+
}
|
|
47
|
+
async reduceReserves_static(to) {
|
|
45
48
|
const result = await this.contract.reduceReserves.staticCall(to);
|
|
46
49
|
return {
|
|
47
50
|
interestShare: result[0],
|
|
@@ -79,6 +82,9 @@ class LexPoolV1FunctionsGroup_Processing {
|
|
|
79
82
|
this.contract = contract;
|
|
80
83
|
}
|
|
81
84
|
async processDeposit(users) {
|
|
85
|
+
return this.contract.processDeposit(users);
|
|
86
|
+
}
|
|
87
|
+
async processDeposit_static(users) {
|
|
82
88
|
const result = await this.contract.processDeposit.staticCall(users);
|
|
83
89
|
return {
|
|
84
90
|
amountDeposited: result[0],
|
|
@@ -88,6 +94,9 @@ class LexPoolV1FunctionsGroup_Processing {
|
|
|
88
94
|
};
|
|
89
95
|
}
|
|
90
96
|
async processRedeems(users) {
|
|
97
|
+
return this.contract.processRedeems(users);
|
|
98
|
+
}
|
|
99
|
+
async processRedeems_static(users) {
|
|
91
100
|
const result = await this.contract.processRedeems.staticCall(users);
|
|
92
101
|
return {
|
|
93
102
|
amountRedeemed: result[0],
|
|
@@ -108,6 +117,9 @@ class LexPoolV1FunctionsGroup_EpochManagement {
|
|
|
108
117
|
this.contract = contract;
|
|
109
118
|
}
|
|
110
119
|
async nextEpoch(totalUnrealizedPricePnL) {
|
|
120
|
+
return this.contract.nextEpoch(totalUnrealizedPricePnL);
|
|
121
|
+
}
|
|
122
|
+
async nextEpoch_static(totalUnrealizedPricePnL) {
|
|
111
123
|
return this.contract.nextEpoch.staticCall(totalUnrealizedPricePnL);
|
|
112
124
|
}
|
|
113
125
|
}
|
|
@@ -128,7 +140,8 @@ class LexPoolV1Service {
|
|
|
128
140
|
this.userRedeems = new LexPoolV1FunctionsGroup_UserRedeems(this.lexPoolContract);
|
|
129
141
|
this.processing = new LexPoolV1FunctionsGroup_Processing(this.lexPoolContract);
|
|
130
142
|
this.epochManagement = new LexPoolV1FunctionsGroup_EpochManagement(this.lexPoolContract);
|
|
131
|
-
this.tradingFloorInteraction =
|
|
143
|
+
this.tradingFloorInteraction =
|
|
144
|
+
new LexPoolV1FunctionsGroup_TradingFloorInteraction(this.lexPoolContract);
|
|
132
145
|
// Initialize remaining groups with direct method mappings
|
|
133
146
|
this.viewFunctions = this.createViewFunctionsGroup();
|
|
134
147
|
this.stateVariables = this.createStateVariablesGroup();
|
|
@@ -136,6 +149,9 @@ class LexPoolV1Service {
|
|
|
136
149
|
this.constants = this.createConstantsGroup();
|
|
137
150
|
this.contractInfo = this.createContractInfoGroup();
|
|
138
151
|
}
|
|
152
|
+
getContract() {
|
|
153
|
+
return this.lexPoolContract;
|
|
154
|
+
}
|
|
139
155
|
createViewFunctionsGroup() {
|
|
140
156
|
return {
|
|
141
157
|
calcNextEpochStartMin: () => this.lexPoolContract.calcNextEpochStartMin(),
|
|
@@ -170,6 +186,22 @@ class LexPoolV1Service {
|
|
|
170
186
|
// Pending amounts
|
|
171
187
|
pendingDepositAmount: () => this.lexPoolContract.pendingDepositAmount(),
|
|
172
188
|
pendingWithdrawalAmount: () => this.lexPoolContract.pendingWithdrawalAmount(),
|
|
189
|
+
// Pending user requests (mappings)
|
|
190
|
+
pendingDeposits: async (epoch, user) => {
|
|
191
|
+
const result = await this.lexPoolContract.pendingDeposits(epoch, user);
|
|
192
|
+
return {
|
|
193
|
+
amount: result[0],
|
|
194
|
+
minAmountOut: result[1],
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
pendingRedeems: async (epoch, user) => {
|
|
198
|
+
const result = await this.lexPoolContract.pendingRedeems(epoch, user);
|
|
199
|
+
return {
|
|
200
|
+
amount: result[0],
|
|
201
|
+
minAmountOut: result[1],
|
|
202
|
+
maxAmountOut: result[2],
|
|
203
|
+
};
|
|
204
|
+
},
|
|
173
205
|
// Contract references
|
|
174
206
|
poolAccountant: () => this.lexPoolContract.poolAccountant(),
|
|
175
207
|
pnlRole: () => this.lexPoolContract.pnlRole(),
|
|
@@ -66,5 +66,8 @@ class LiquidityIntentsVerifierService {
|
|
|
66
66
|
async processedSignatures(signature) {
|
|
67
67
|
return await this.contract.processedSignatures(signature);
|
|
68
68
|
}
|
|
69
|
+
getContract() {
|
|
70
|
+
return this.contract;
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
73
|
exports.LiquidityIntentsVerifierService = LiquidityIntentsVerifierService;
|
|
@@ -267,10 +267,6 @@ class OnBehalfTradingService {
|
|
|
267
267
|
this.pendableAdmin = new PendableAdmin(this.contract);
|
|
268
268
|
this.lynxVersionedContract = new LynxVersionedContract(this.contract);
|
|
269
269
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Get the underlying contract instance
|
|
272
|
-
* Useful for accessing contract methods directly when needed
|
|
273
|
-
*/
|
|
274
270
|
getContract() {
|
|
275
271
|
return this.contract;
|
|
276
272
|
}
|
|
@@ -100,5 +100,8 @@ class OrderBookService {
|
|
|
100
100
|
this.administration = new Administration(this.orderBookContract);
|
|
101
101
|
this.constants = new Constants(this.orderBookContract);
|
|
102
102
|
}
|
|
103
|
+
getContract() {
|
|
104
|
+
return this.orderBookContract;
|
|
105
|
+
}
|
|
103
106
|
}
|
|
104
107
|
exports.OrderBookService = OrderBookService;
|
|
@@ -120,5 +120,8 @@ class PNLRService {
|
|
|
120
120
|
this.pendableAdmin = new PNLRFunctionsGroup_PendableAdmin(this.pnlrContract);
|
|
121
121
|
this.lynxVersionedContract = new PNLRFunctionsGroup_LynxVersionedContract(this.pnlrContract);
|
|
122
122
|
}
|
|
123
|
+
getContract() {
|
|
124
|
+
return this.pnlrContract;
|
|
125
|
+
}
|
|
123
126
|
}
|
|
124
127
|
exports.PNLRService = PNLRService;
|
package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js
CHANGED
|
@@ -68,6 +68,9 @@ class PoolAccountantV1Service {
|
|
|
68
68
|
this.contractInfo = this.createContractInfoGroup();
|
|
69
69
|
this.constants = this.createConstantsGroup();
|
|
70
70
|
}
|
|
71
|
+
getContract() {
|
|
72
|
+
return this.poolAccountantContract;
|
|
73
|
+
}
|
|
71
74
|
createVerificationGroup() {
|
|
72
75
|
return {
|
|
73
76
|
verifyLeveragedPosition: async (pairIndex, collateral, leverage) => {
|
|
@@ -89,6 +92,12 @@ class PoolAccountantV1Service {
|
|
|
89
92
|
createFundingGroup() {
|
|
90
93
|
return {
|
|
91
94
|
accrueFunding: async (pairId) => {
|
|
95
|
+
const tx = await this.poolAccountantContract.accrueFunding(pairId);
|
|
96
|
+
const receipt = await tx.wait();
|
|
97
|
+
// Return transaction receipt - developers can parse events if needed
|
|
98
|
+
return receipt;
|
|
99
|
+
},
|
|
100
|
+
accrueFunding_static: async (pairId) => {
|
|
92
101
|
const result = await this.poolAccountantContract.accrueFunding.staticCall(pairId);
|
|
93
102
|
return {
|
|
94
103
|
valueLong: result[0],
|
|
@@ -111,7 +120,12 @@ class PoolAccountantV1Service {
|
|
|
111
120
|
indexShortChange: r.indexShortChange,
|
|
112
121
|
protocolFundingShare: r.protocolFundingShare,
|
|
113
122
|
})),
|
|
114
|
-
getTradeFunding: (positionId, pairId, long, collateral, leverage) =>
|
|
123
|
+
getTradeFunding: async (positionId, pairId, long, collateral, leverage) => {
|
|
124
|
+
const tx = await this.poolAccountantContract.getTradeFunding(positionId, pairId, long, collateral, leverage);
|
|
125
|
+
const receipt = await tx.wait();
|
|
126
|
+
return receipt;
|
|
127
|
+
},
|
|
128
|
+
getTradeFunding_static: (positionId, pairId, long, collateral, leverage) => this.poolAccountantContract.getTradeFunding.staticCall(positionId, pairId, long, collateral, leverage),
|
|
115
129
|
getTradeFundingPure: (accFundingPerOi, endAccFundingPerOi, collateral, leverage) => this.poolAccountantContract.getTradeFundingPure(accFundingPerOi, endAccFundingPerOi, collateral, leverage),
|
|
116
130
|
getTradeInitialAccFundingPerOi: (positionId) => this.poolAccountantContract.getTradeInitialAccFundingPerOi(positionId),
|
|
117
131
|
getAccFundingLong: (pairIndex) => this.poolAccountantContract.getAccFundingLong(pairIndex),
|
|
@@ -167,6 +181,15 @@ class PoolAccountantV1Service {
|
|
|
167
181
|
pairTotalOpenInterest: (pairIndex) => this.poolAccountantContract.pairTotalOpenInterest(pairIndex),
|
|
168
182
|
calcAbsoluteSkew: (openInterestLong, openInterestShort, additionIsLong, additionOpenInterest) => this.poolAccountantContract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest),
|
|
169
183
|
pricePnL: (pairId, price) => this.poolAccountantContract.pricePnL(pairId, price),
|
|
184
|
+
pairBorrows: (pairIndex) => this.poolAccountantContract.pairBorrows(pairIndex),
|
|
185
|
+
pairMaxBorrow: (pairIndex) => this.poolAccountantContract.pairMaxBorrow(pairIndex),
|
|
186
|
+
pairMinOpenFee: (pairIndex) => this.poolAccountantContract.pairMinOpenFee(pairIndex),
|
|
187
|
+
pairOpenFeeF: (pairIndex) => this.poolAccountantContract.pairOpenFeeF(pairIndex),
|
|
188
|
+
pairCloseFeeF: (pairIndex) => this.poolAccountantContract.pairCloseFeeF(pairIndex),
|
|
189
|
+
pairPerformanceFeeF: (pairIndex) => this.poolAccountantContract.pairPerformanceFeeF(pairIndex),
|
|
190
|
+
pairTotalRatioOiToP: (pairIndex) => this.poolAccountantContract.pairTotalRatioOiToP(pairIndex),
|
|
191
|
+
groupBorrows: (groupIndex) => this.poolAccountantContract.groupBorrows(groupIndex),
|
|
192
|
+
groupMaxBorrow: (groupIndex) => this.poolAccountantContract.groupMaxBorrow(groupIndex),
|
|
170
193
|
};
|
|
171
194
|
}
|
|
172
195
|
createAdminConfigurationGroup() {
|
package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js
CHANGED
|
@@ -7,18 +7,16 @@ class TraderRequests {
|
|
|
7
7
|
constructor(tradingContract) {
|
|
8
8
|
this.tradingContract = tradingContract;
|
|
9
9
|
}
|
|
10
|
-
async openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
}
|
|
10
|
+
async openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee) {
|
|
11
|
+
return this.tradingContract.traderRequest_openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
|
|
12
|
+
value: nativeFee,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee) {
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
return this.tradingContract.traderRequest_openNewPosition.staticCall(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
|
|
18
|
+
value: nativeFee,
|
|
19
|
+
});
|
|
22
20
|
}
|
|
23
21
|
async setExistingPositionToMarketClose(positionId, minPrice, maxPrice, nativeFee) {
|
|
24
22
|
return this.tradingContract.traderRequest_marketClosePosition(positionId, minPrice, maxPrice, {
|
|
@@ -186,5 +184,8 @@ class TradersPortalServiceService {
|
|
|
186
184
|
this.constants = new Constants(this.tradingContract);
|
|
187
185
|
this.onBehalf = new OnBehalf(this.tradingContract);
|
|
188
186
|
}
|
|
187
|
+
getContract() {
|
|
188
|
+
return this.tradingContract;
|
|
189
|
+
}
|
|
189
190
|
}
|
|
190
191
|
exports.TradersPortalServiceService = TradersPortalServiceService;
|
|
@@ -252,5 +252,8 @@ class TradingFloorService {
|
|
|
252
252
|
this.lynxVersionedContract = new LynxVersionedContract(this.tradingFloorContract);
|
|
253
253
|
this.constants = new Constants(this.tradingFloorContract);
|
|
254
254
|
}
|
|
255
|
+
getContract() {
|
|
256
|
+
return this.tradingFloorContract;
|
|
257
|
+
}
|
|
255
258
|
}
|
|
256
259
|
exports.TradingFloorService = TradingFloorService;
|
|
@@ -128,6 +128,9 @@ class Configuration {
|
|
|
128
128
|
async triggersPerBlock(blockNumber) {
|
|
129
129
|
return this.triggersContract.triggersPerBlock(blockNumber);
|
|
130
130
|
}
|
|
131
|
+
async limitsMarginFraction() {
|
|
132
|
+
return this.triggersContract.limitsMarginFraction();
|
|
133
|
+
}
|
|
131
134
|
}
|
|
132
135
|
class PairConfiguration {
|
|
133
136
|
constructor(triggersContract) {
|
|
@@ -190,5 +193,8 @@ class TriggersService {
|
|
|
190
193
|
this.permissions = new Permissions(this.triggersContract);
|
|
191
194
|
this.constants = new Constants(this.triggersContract);
|
|
192
195
|
}
|
|
196
|
+
getContract() {
|
|
197
|
+
return this.triggersContract;
|
|
198
|
+
}
|
|
193
199
|
}
|
|
194
200
|
exports.TriggersService = TriggersService;
|
|
@@ -60,10 +60,6 @@ class WrappedNativeEngineChipHelperService {
|
|
|
60
60
|
this.burnHandling = new BurnHandling(this.contract, this.isSigner);
|
|
61
61
|
this.viewFunctions = new ViewFunctions(this.contract);
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
64
|
-
* Get the underlying contract instance
|
|
65
|
-
* Useful for accessing contract methods directly when needed
|
|
66
|
-
*/
|
|
67
63
|
getContract() {
|
|
68
64
|
return this.contract;
|
|
69
65
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Signer, Provider } from "ethers";
|
|
2
|
+
import { AcceptableImplementationClaimableAdmin } from "../../typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin";
|
|
2
3
|
import { IAcceptableImplementationClaimableAdminService, IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables } from "./IAcceptableImplementationClaimableAdminService";
|
|
3
4
|
export declare class AcceptableImplementationClaimableAdminService implements IAcceptableImplementationClaimableAdminService {
|
|
4
5
|
private proxyContract;
|
|
@@ -6,5 +7,6 @@ export declare class AcceptableImplementationClaimableAdminService implements IA
|
|
|
6
7
|
implementationManagement: IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement;
|
|
7
8
|
stateVariables: IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables;
|
|
8
9
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
10
|
+
getContract(): AcceptableImplementationClaimableAdmin;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=AcceptableImplementationClaimableAdminService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcceptableImplementationClaimableAdminService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"AcceptableImplementationClaimableAdminService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,QAAQ,CAAA;AACtE,OAAO,EAAE,sCAAsC,EAAE,MAAM,0FAA0F,CAAA;AAEjJ,OAAO,EACL,8CAA8C,EAC9C,qEAAqE,EACrE,8EAA8E,EAC9E,oEAAoE,EACrE,MAAM,kDAAkD,CAAA;AAkDzD,qBAAa,6CACX,YAAW,8CAA8C;IACzD,OAAO,CAAC,aAAa,CAAwC;IAEtD,eAAe,EAAE,qEAAqE,CAAA;IACtF,wBAAwB,EAAE,8EAA8E,CAAA;IACxG,cAAc,EAAE,oEAAoE,CAAA;gBAGzF,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM;IASjB,WAAW,IAAI,sCAAsC;CAGtD"}
|
|
@@ -49,5 +49,8 @@ class AcceptableImplementationClaimableAdminService {
|
|
|
49
49
|
this.implementationManagement = new AcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement(this.proxyContract);
|
|
50
50
|
this.stateVariables = new AcceptableImplementationClaimableAdminFunctionsGroup_StateVariables(this.proxyContract);
|
|
51
51
|
}
|
|
52
|
+
getContract() {
|
|
53
|
+
return this.proxyContract;
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
exports.AcceptableImplementationClaimableAdminService = AcceptableImplementationClaimableAdminService;
|
|
@@ -25,5 +25,6 @@ export declare class ChipsIntentsVerifierService implements IChipsIntentsVerifie
|
|
|
25
25
|
pendingAdmin(): Promise<string>;
|
|
26
26
|
registry(): Promise<string>;
|
|
27
27
|
wrapNativeChipInOutHelpers(oftChip: string): Promise<string>;
|
|
28
|
+
getContract(): ChipsIntentsVerifierV1;
|
|
28
29
|
}
|
|
29
30
|
//# sourceMappingURL=ChipsIntentsVerifierService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipsIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAA;AAE9G,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,qBAAa,2BAA4B,YAAW,4BAA4B;IAC9E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;IACjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,gBAAgB,EAAE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O,CAAC,OAAO,CAAC;IAIxD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;IAIxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3B,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlE,WAAW,IAAI,sBAAsB;CAGtC"}
|
package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js
CHANGED
|
@@ -87,5 +87,8 @@ class ChipsIntentsVerifierService {
|
|
|
87
87
|
async wrapNativeChipInOutHelpers(oftChip) {
|
|
88
88
|
return await this.contract.wrapNativeChipInOutHelpers(oftChip);
|
|
89
89
|
}
|
|
90
|
+
getContract() {
|
|
91
|
+
return this.contract;
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
exports.ChipsIntentsVerifierService = ChipsIntentsVerifierService;
|
|
@@ -18,10 +18,6 @@ export declare class EngineChipService implements IEngineChipService {
|
|
|
18
18
|
readonly pendableAdmin: IPendableAdmin;
|
|
19
19
|
readonly lynxVersionedContract: ILynxVersionedContract;
|
|
20
20
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
21
|
-
/**
|
|
22
|
-
* Get the underlying contract instance
|
|
23
|
-
* Useful for accessing contract methods directly when needed
|
|
24
|
-
*/
|
|
25
21
|
getContract(): EngineChip;
|
|
26
22
|
}
|
|
27
23
|
//# sourceMappingURL=EngineChipService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngineChipService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/EngineChipService/EngineChipService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,4DAA4D,CAAC;AAExF,OAAO,EACL,kBAAkB,EAClB,yCAAyC,EACzC,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,gDAAgD,EAChD,uCAAuC,EAIxC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgUnE;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC,SAAgB,eAAe,EAAE,yCAAyC,CAAC;IAC3E,SAAgB,iBAAiB,EAAE,2CAA2C,CAAC;IAC/E,SAAgB,iBAAiB,EAAE,2CAA2C,CAAC;IAC/E,SAAgB,cAAc,EAAE,wCAAwC,CAAC;IACzE,SAAgB,sBAAsB,EAAE,gDAAgD,CAAC;IACzF,SAAgB,aAAa,EAAE,uCAAuC,CAAC;IACvE,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;gBAElD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAwBhE
|
|
1
|
+
{"version":3,"file":"EngineChipService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/EngineChipService/EngineChipService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,4DAA4D,CAAC;AAExF,OAAO,EACL,kBAAkB,EAClB,yCAAyC,EACzC,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,gDAAgD,EAChD,uCAAuC,EAIxC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgUnE;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC,SAAgB,eAAe,EAAE,yCAAyC,CAAC;IAC3E,SAAgB,iBAAiB,EAAE,2CAA2C,CAAC;IAC/E,SAAgB,iBAAiB,EAAE,2CAA2C,CAAC;IAC/E,SAAgB,cAAc,EAAE,wCAAwC,CAAC;IACzE,SAAgB,sBAAsB,EAAE,gDAAgD,CAAC;IACzF,SAAgB,aAAa,EAAE,uCAAuC,CAAC;IACvE,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;gBAElD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAwBhE,WAAW,IAAI,UAAU;CAG1B"}
|
|
@@ -278,10 +278,6 @@ class EngineChipService {
|
|
|
278
278
|
this.pendableAdmin = new PendableAdmin(this.contract);
|
|
279
279
|
this.lynxVersionedContract = new LynxVersionedContract(this.contract);
|
|
280
280
|
}
|
|
281
|
-
/**
|
|
282
|
-
* Get the underlying contract instance
|
|
283
|
-
* Useful for accessing contract methods directly when needed
|
|
284
|
-
*/
|
|
285
281
|
getContract() {
|
|
286
282
|
return this.contract;
|
|
287
283
|
}
|
package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Provider, Signer } from "ethers";
|
|
2
|
+
import { IntentsVerifierLens } from "../../typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
|
|
2
3
|
import { IIntentsVerifierLensService } from "./IIntentsVerifierLensService";
|
|
3
4
|
export declare class IntentsVerifierLensService implements IIntentsVerifierLensService {
|
|
4
5
|
private readonly contract;
|
|
@@ -7,5 +8,6 @@ export declare class IntentsVerifierLensService implements IIntentsVerifierLensS
|
|
|
7
8
|
getRequestBuildingInfoForLiquidityIntentsVerifier(): Promise<string>;
|
|
8
9
|
getRequestBuildingInfoForTradeIntentsVerifier(): Promise<string>;
|
|
9
10
|
registry(): Promise<string>;
|
|
11
|
+
getContract(): IntentsVerifierLens;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=IntentsVerifierLensService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+DAA+D,CAAC;AAEpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,qBAAa,0BAA2B,YAAW,2BAA2B;IAC5E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,6CAA6C,IAAI,OAAO,CAAC,MAAM,CAAC;IAIhE,iDAAiD,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpE,6CAA6C,IAAI,OAAO,CAAC,MAAM,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAIjC,WAAW,IAAI,mBAAmB;CAGnC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Provider, Signer } from "ethers";
|
|
2
|
+
import { LexLens } from "../../typechain/contracts/Peripheral/Lens/LexLens";
|
|
2
3
|
import { SinglePairTradesValuesInputStruct } from "../../typechain/contracts/Peripheral/Lens/LexLens";
|
|
3
4
|
import { ILexLensService, TLexFeeConfigsLensStruct, TLexGroupConfigsLensStruct, TLexGroupStateLensStruct, TLexPairConfigsLensStruct, TLexPairStateLensStruct, TLexPoolLensParamsStruct, TLexPoolLensConfigsStruct, TPoolAccountantConfigurationsLensStruct, TLexPoolLensStateStruct, TPoolAccountantStateLensStruct, TLensCompleteLexConfigsStruct, TLensCompleteLexStateStruct, TLexPoolSupplierLensStateStruct, TSinglePositionOutputStruct } from "./ILexLensService";
|
|
4
5
|
export declare class LexLensService implements ILexLensService {
|
|
@@ -30,5 +31,6 @@ export declare class LexLensService implements ILexLensService {
|
|
|
30
31
|
tradesValuesMultiplePairs(accountant: string, pairsTrades: SinglePairTradesValuesInputStruct[]): Promise<TSinglePositionOutputStruct[][]>;
|
|
31
32
|
tradesValuesSinglePair(accountant: string, pairParams: SinglePairTradesValuesInputStruct): Promise<TSinglePositionOutputStruct[]>;
|
|
32
33
|
private convertCompleteConfigsResult;
|
|
34
|
+
getContract(): LexLens;
|
|
33
35
|
}
|
|
34
36
|
//# sourceMappingURL=LexLensService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LexLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexLensService/LexLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"LexLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexLensService/LexLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAE5E,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AAEtG,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,u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are: bigint;
|
|
18
18
|
}
|
|
19
|
+
export interface TPendingDeposit {
|
|
20
|
+
amount: bigint;
|
|
21
|
+
minAmountOut: bigint;
|
|
22
|
+
}
|
|
23
|
+
export interface TPendingRedeem {
|
|
24
|
+
amount: bigint;
|
|
25
|
+
minAmountOut: bigint;
|
|
26
|
+
maxAmountOut: bigint;
|
|
27
|
+
}
|
|
19
28
|
export interface ILexPoolV1FunctionsGroup_Initialization {
|
|
20
29
|
_become(proxy: string): Promise<ContractTransactionResponse>;
|
|
21
30
|
initialize(underlying: string, tradingFloor: string, epochDuration: bigint): Promise<ContractTransactionResponse>;
|
|
@@ -29,7 +38,8 @@ export interface ILexPoolV1FunctionsGroup_AdminConfiguration {
|
|
|
29
38
|
setEpochDuration(duration: bigint): Promise<ContractTransactionResponse>;
|
|
30
39
|
setMinDepositAmount(amount: bigint): Promise<ContractTransactionResponse>;
|
|
31
40
|
toggleImmediateDepositAllowed(): Promise<ContractTransactionResponse>;
|
|
32
|
-
reduceReserves(to: string): Promise<
|
|
41
|
+
reduceReserves(to: string): Promise<ContractTransactionResponse>;
|
|
42
|
+
reduceReserves_static(to: string): Promise<TReduceReservesResult>;
|
|
33
43
|
}
|
|
34
44
|
export interface ILexPoolV1FunctionsGroup_UserDeposits {
|
|
35
45
|
immediateDeposit(depositAmount: bigint, domain: BytesLike, referralCode: BytesLike): Promise<ContractTransactionResponse>;
|
|
@@ -41,13 +51,16 @@ export interface ILexPoolV1FunctionsGroup_UserRedeems {
|
|
|
41
51
|
requestRedeemViaIntent(user: string, amount: bigint, minAmountOut: bigint): Promise<ContractTransactionResponse>;
|
|
42
52
|
}
|
|
43
53
|
export interface ILexPoolV1FunctionsGroup_Processing {
|
|
44
|
-
processDeposit(users: string[]): Promise<
|
|
45
|
-
|
|
54
|
+
processDeposit(users: string[]): Promise<ContractTransactionResponse>;
|
|
55
|
+
processDeposit_static(users: string[]): Promise<TProcessDepositResult>;
|
|
56
|
+
processRedeems(users: string[]): Promise<ContractTransactionResponse>;
|
|
57
|
+
processRedeems_static(users: string[]): Promise<TProcessRedeemResult>;
|
|
46
58
|
cancelDeposits(users: string[], epochs: bigint[]): Promise<ContractTransactionResponse>;
|
|
47
59
|
cancelRedeems(users: string[], epochs: bigint[]): Promise<ContractTransactionResponse>;
|
|
48
60
|
}
|
|
49
61
|
export interface ILexPoolV1FunctionsGroup_EpochManagement {
|
|
50
|
-
nextEpoch(totalUnrealizedPricePnL: bigint): Promise<
|
|
62
|
+
nextEpoch(totalUnrealizedPricePnL: bigint): Promise<ContractTransactionResponse>;
|
|
63
|
+
nextEpoch_static(totalUnrealizedPricePnL: bigint): Promise<bigint>;
|
|
51
64
|
}
|
|
52
65
|
export interface ILexPoolV1FunctionsGroup_TradingFloorInteraction {
|
|
53
66
|
sendAssetToTrader(to: string, amount: bigint): Promise<ContractTransactionResponse>;
|
|
@@ -80,6 +93,8 @@ export interface ILexPoolV1FunctionsGroup_StateVariables {
|
|
|
80
93
|
currentExchangeRate(): Promise<bigint>;
|
|
81
94
|
pendingDepositAmount(): Promise<bigint>;
|
|
82
95
|
pendingWithdrawalAmount(): Promise<bigint>;
|
|
96
|
+
pendingDeposits(epoch: bigint, user: string): Promise<TPendingDeposit>;
|
|
97
|
+
pendingRedeems(epoch: bigint, user: string): Promise<TPendingRedeem>;
|
|
83
98
|
poolAccountant(): Promise<string>;
|
|
84
99
|
pnlRole(): Promise<string>;
|
|
85
100
|
underlying(): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAG9C,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAA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CAAC,qBAAqB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"ILexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAG9C,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;CACrB;AAGD,MAAM,WAAW,uCAAuC;IAEtD,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAG5D,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,2CAA2C;IAE1D,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAC/E,UAAU,CAAC,GA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I,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAC5F,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;CAC/E;AAED,MAAM,WAAW,kCAAmC,SAAQ,kBAAkB;IAE5E,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,qCAAqC;IACpD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACjC,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACzC;AAGD,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,uCAAuC,CAAA;IACvD,kBAAkB,EAAE,2CAA2C,CAAA;IAC/D,YAAY,EAAE,qCAAqC,CAAA;IACnD,WAAW,EAAE,oCAAoC,CAAA;IACjD,UAAU,EAAE,mCAAmC,CAAA;IAC/C,eAAe,EAAE,wCAAwC,CAAA;IACzD,uBAAuB,EAAE,gDAAgD,CAAA;IACzE,aAAa,EAAE,sCAAsC,CAAA;IACrD,cAAc,EAAE,uCAAuC,CAAA;IACvD,KAAK,EAAE,8BAA8B,CAAA;IACrC,SAAS,EAAE,kCAAkC,CAAA;IAC7C,YAAY,EAAE,qCAAqC,CAAA;CACpD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Signer, Provider } from "ethers";
|
|
2
|
+
import { LexPoolV1 } from "../../typechain/contracts/Lynx/Lex/LexPool/LexPoolV1";
|
|
2
3
|
import { ILexPoolV1Service, ILexPoolV1FunctionsGroup_Initialization, ILexPoolV1FunctionsGroup_AdminConfiguration, ILexPoolV1FunctionsGroup_UserDeposits, ILexPoolV1FunctionsGroup_UserRedeems, ILexPoolV1FunctionsGroup_Processing, ILexPoolV1FunctionsGroup_EpochManagement, ILexPoolV1FunctionsGroup_TradingFloorInteraction, ILexPoolV1FunctionsGroup_ViewFunctions, ILexPoolV1FunctionsGroup_StateVariables, ILexPoolV1FunctionsGroup_ERC20, ILexPoolV1FunctionsGroup_Constants, ILexPoolV1FunctionsGroup_ContractInfo } from "./ILexPoolV1Service";
|
|
3
4
|
export declare class LexPoolV1Service implements ILexPoolV1Service {
|
|
4
5
|
private lexPoolContract;
|
|
@@ -15,6 +16,7 @@ export declare class LexPoolV1Service implements ILexPoolV1Service {
|
|
|
15
16
|
constants: ILexPoolV1FunctionsGroup_Constants;
|
|
16
17
|
contractInfo: ILexPoolV1FunctionsGroup_ContractInfo;
|
|
17
18
|
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
19
|
+
getContract(): LexPoolV1;
|
|
18
20
|
private createViewFunctionsGroup;
|
|
19
21
|
private createStateVariablesGroup;
|
|
20
22
|
private createERC20Group;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAa,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"LexPoolV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAa,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AAEjF,OAAO,EACL,iBAAiB,EACjB,uCAAuC,EACvC,2CAA2C,EAC3C,qCAAqC,EACrC,oCAAoC,EACpC,mCAAmC,EACnC,wCAAwC,EACxC,gDAAgD,EAChD,sCAAsC,EACtC,uCAAuC,EACvC,8BAA8B,EAC9B,kCAAkC,EAClC,qCAAqC,EAMtC,MAAM,qBAAqB,CAAC;AAsM7B,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,OAAO,CAAC,eAAe,CAAY;IAE5B,cAAc,EAAE,uCAAuC,CAAC;IACxD,kBAAkB,EAAE,2CAA2C,CAAC;IAChE,YAAY,EAAE,qCAAqC,CAAC;IACpD,WAAW,EAAE,oCAAoC,CAAC;IAClD,UAAU,EAAE,mCAAmC,CAAC;IAChD,eAAe,EAAE,wCAAwC,CAAC;IAC1D,uBAAuB,EAAE,gDAAgD,CAAC;IAC1E,aAAa,EAAE,sCAAsC,CAAC;IACtD,cAAc,EAAE,uCAAuC,CAAC;IACxD,KAAK,EAAE,8BAA8B,CAAC;IACtC,SAAS,EAAE,kCAAkC,CAAC;IAC9C,YAAY,EAAE,qCAAqC,CAAC;gBAE/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAmChE,WAAW,IAAI,SAAS;IAIxB,OAAO,CAAC,wBAAwB;IAuChC,OAAO,CAAC,yBAAyB;IAuDjC,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,uBAAuB;CAQhC"}
|