lynx-client 0.0.1-beta.13 → 0.0.1-beta.15
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 +6 -6
- package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +2 -2
- package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +3 -23
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +22 -7
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +2 -2
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +8 -10
- package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +2 -2
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +2 -2
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +2 -3
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +3 -23
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +2 -3
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +22 -7
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +2 -2
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +2 -2
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +4 -4
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +8 -10
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +2 -2
- package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +2 -3
- package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +2 -3
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +2 -2
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +4 -4
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,14 +135,14 @@ await tradersPortal.traderRequests.openNewPosition(
|
|
|
135
135
|
```typescript
|
|
136
136
|
import { createLexLensService, createTradingFloorLensService } from 'lynx-client';
|
|
137
137
|
|
|
138
|
-
// LEX Pool data
|
|
139
|
-
const lexLens = createLexLensService(
|
|
138
|
+
// LEX Pool data (accepts both provider and signer)
|
|
139
|
+
const lexLens = createLexLensService(signerOrProvider, lexLensAddress);
|
|
140
140
|
const poolState = await lexLens.getLexPoolState(lexPoolAddress);
|
|
141
141
|
const pairConfigs = await lexLens.getAllPairConfigurationsInLex(lexPoolAddress);
|
|
142
142
|
|
|
143
|
-
// Trading floor data
|
|
144
|
-
const tradingFloorLens = createTradingFloorLensService(
|
|
145
|
-
const position = await tradingFloorLens.
|
|
143
|
+
// Trading floor data (accepts both provider and signer)
|
|
144
|
+
const tradingFloorLens = createTradingFloorLensService(signerOrProvider, tradingFloorLensAddress);
|
|
145
|
+
const position = await tradingFloorLens.getCompletePositionData(tradingFloorAddress, positionId);
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
### Utility Functions
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
} from 'lynx-client';
|
|
259
259
|
|
|
260
260
|
// All contract structs are properly typed
|
|
261
|
-
const position
|
|
261
|
+
const position = await tradingFloorLens.getCompletePositionData(tradingFloorAddress, id);
|
|
262
262
|
console.log(position.trader); // string
|
|
263
263
|
console.log(position.collateral); // bigint
|
|
264
264
|
console.log(position.leverage); // bigint
|
package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js
CHANGED
|
@@ -5,8 +5,8 @@ const IntentsVerifierLens__factory_1 = require("../../typechain/factories/contra
|
|
|
5
5
|
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
6
6
|
const IIntentsVerifierLensService_1 = require("./IIntentsVerifierLensService");
|
|
7
7
|
class IntentsVerifierLensService {
|
|
8
|
-
constructor(
|
|
9
|
-
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address,
|
|
8
|
+
constructor(signerOrProvider, address) {
|
|
9
|
+
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
|
|
10
10
|
}
|
|
11
11
|
async getRequestBuildingInfoForChipsIntentsVerifier(account, actionType) {
|
|
12
12
|
const result = await this.contract.getRequestBuildingInfoForChipsIntentsVerifier(account, BigInt(actionType));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LexLensService = void 0;
|
|
4
|
+
const LexLens__factory_1 = require("../../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
|
|
4
5
|
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
5
6
|
const ILexLensService_1 = require("./ILexLensService");
|
|
6
7
|
class LexLensService {
|
|
7
|
-
constructor(
|
|
8
|
-
this.contract =
|
|
8
|
+
constructor(signerOrProvider, contractAddress) {
|
|
9
|
+
this.contract = LexLens__factory_1.LexLens__factory.connect(contractAddress, signerOrProvider);
|
|
9
10
|
}
|
|
10
11
|
async getAllFeeConfigurationsInLex(lexPool) {
|
|
11
12
|
const result = await this.contract.getAllFeeConfigurationsInLex(lexPool);
|
|
@@ -245,26 +246,5 @@ class LexLensService {
|
|
|
245
246
|
})),
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
|
-
convertCompleteStateResult(result) {
|
|
249
|
-
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
|
|
250
|
-
pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
|
|
251
|
-
groupsStates: ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS,
|
|
252
|
-
}, {
|
|
253
|
-
lexPoolState: ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE,
|
|
254
|
-
poolAccountantState: ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS,
|
|
255
|
-
});
|
|
256
|
-
// Apply number conversions
|
|
257
|
-
return {
|
|
258
|
-
...baseResult,
|
|
259
|
-
pairsStates: baseResult.pairsStates.map(item => ({
|
|
260
|
-
...item,
|
|
261
|
-
pairId: Number(item.pairId),
|
|
262
|
-
})),
|
|
263
|
-
groupsStates: baseResult.groupsStates.map(item => ({
|
|
264
|
-
...item,
|
|
265
|
-
groupId: Number(item.groupId),
|
|
266
|
-
})),
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
249
|
}
|
|
270
250
|
exports.LexLensService = LexLensService;
|
package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TradingFloorLensService = void 0;
|
|
4
|
+
const TradingFloorLens__factory_1 = require("../../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
|
|
4
5
|
class TradingFloorLensService {
|
|
5
|
-
constructor(
|
|
6
|
-
this.contract =
|
|
6
|
+
constructor(signerOrProvider, contractAddress) {
|
|
7
|
+
this.contract = TradingFloorLens__factory_1.TradingFloorLens__factory.connect(contractAddress, signerOrProvider);
|
|
7
8
|
}
|
|
8
9
|
async generatePositionHashId(settlementAsset, trader, pairId, index) {
|
|
9
10
|
return await this.contract.generatePositionHashId(settlementAsset, trader, pairId, index);
|
|
10
11
|
}
|
|
11
12
|
async getAllPositionsDataForAllTraders(params) {
|
|
12
13
|
// @ts-ignore
|
|
13
|
-
|
|
14
|
+
const result = await this.contract.getAllPositionsDataForAllTraders.staticCall(params);
|
|
15
|
+
// Filter out empty positions (collateral = 0)
|
|
16
|
+
const filteredPositions = result.positions.filter((pos) => pos.collateral > 0n);
|
|
17
|
+
return {
|
|
18
|
+
...result,
|
|
19
|
+
positions: filteredPositions
|
|
20
|
+
};
|
|
14
21
|
}
|
|
15
22
|
async getAllPositionsDataForAllTradersInDimension(tradingFloor, settlementAsset, arraySize) {
|
|
16
23
|
// @ts-ignore
|
|
17
|
-
|
|
24
|
+
const result = await this.contract.getAllPositionsDataForAllTradersInDimension.staticCall(tradingFloor, settlementAsset, arraySize);
|
|
25
|
+
// Filter out empty positions (collateral = 0)
|
|
26
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
18
27
|
}
|
|
19
28
|
async getAllPositionsDataForTraderInDimension(tradingFloor, settlementAsset, trader) {
|
|
20
29
|
// @ts-ignore
|
|
21
|
-
|
|
30
|
+
const result = await this.contract.getAllPositionsDataForTraderInDimension.staticCall(tradingFloor, settlementAsset, trader);
|
|
31
|
+
// Filter out empty positions (collateral = 0)
|
|
32
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
22
33
|
}
|
|
23
34
|
async getAllPositionsLiquidationInfo(params, phases) {
|
|
24
35
|
if (phases !== undefined) {
|
|
@@ -36,11 +47,15 @@ class TradingFloorLensService {
|
|
|
36
47
|
}
|
|
37
48
|
async getPositionDataInPairsForTrader(tradingFloor, settlementAsset, trader, pairIds) {
|
|
38
49
|
// @ts-ignore
|
|
39
|
-
|
|
50
|
+
const result = await this.contract.getPositionDataInPairsForTrader.staticCall(tradingFloor, settlementAsset, trader, pairIds);
|
|
51
|
+
// Filter out empty positions (collateral = 0)
|
|
52
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
40
53
|
}
|
|
41
54
|
async getPositionsDataInPairForTrader(tradingFloor, settlementAsset, trader, pairId) {
|
|
42
55
|
// @ts-ignore
|
|
43
|
-
|
|
56
|
+
const result = await this.contract.getPositionsDataInPairForTrader.staticCall(tradingFloor, settlementAsset, trader, pairId);
|
|
57
|
+
// Filter out empty positions (collateral = 0)
|
|
58
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
44
59
|
}
|
|
45
60
|
async getTradingFloorTradeParams(tradingFloor) {
|
|
46
61
|
return await this.contract.getTradingFloorTradeParams(tradingFloor);
|
|
@@ -5,8 +5,8 @@ const TriggersAndPortalLens__factory_1 = require("../../typechain/factories/cont
|
|
|
5
5
|
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
6
6
|
const ITriggersAndPortalLensService_1 = require("./ITriggersAndPortalLensService");
|
|
7
7
|
class TriggersAndPortalLensService {
|
|
8
|
-
constructor(
|
|
9
|
-
this.contract = TriggersAndPortalLens__factory_1.TriggersAndPortalLens__factory.connect(address,
|
|
8
|
+
constructor(signerOrProvider, address) {
|
|
9
|
+
this.contract = TriggersAndPortalLens__factory_1.TriggersAndPortalLens__factory.connect(address, signerOrProvider);
|
|
10
10
|
}
|
|
11
11
|
async getPairConfigsInTriggers(triggers, pairId) {
|
|
12
12
|
const result = await this.contract.getPairConfigsInTriggers(triggers, BigInt(pairId));
|
|
@@ -119,17 +119,15 @@ function connectToLeXLens(provider, address) {
|
|
|
119
119
|
//
|
|
120
120
|
// ***** Lens Services *****
|
|
121
121
|
//
|
|
122
|
-
function createIntentsVerifierLensService(
|
|
123
|
-
return new IntentsVerifierLensService_1.IntentsVerifierLensService(
|
|
122
|
+
function createIntentsVerifierLensService(signerOrProvider, address) {
|
|
123
|
+
return new IntentsVerifierLensService_1.IntentsVerifierLensService(signerOrProvider, address);
|
|
124
124
|
}
|
|
125
|
-
function createTriggersAndPortalLensService(
|
|
126
|
-
return new TriggersAndPortalLensService_1.TriggersAndPortalLensService(
|
|
125
|
+
function createTriggersAndPortalLensService(signerOrProvider, address) {
|
|
126
|
+
return new TriggersAndPortalLensService_1.TriggersAndPortalLensService(signerOrProvider, address);
|
|
127
127
|
}
|
|
128
|
-
function createTradingFloorLensService(
|
|
129
|
-
|
|
130
|
-
return new TradingFloorLensService_1.TradingFloorLensService(contract);
|
|
128
|
+
function createTradingFloorLensService(signerOrProvider, address) {
|
|
129
|
+
return new TradingFloorLensService_1.TradingFloorLensService(signerOrProvider, address);
|
|
131
130
|
}
|
|
132
|
-
function createLexLensService(
|
|
133
|
-
|
|
134
|
-
return new LexLensService_1.LexLensService(contract);
|
|
131
|
+
function createLexLensService(signerOrProvider, address) {
|
|
132
|
+
return new LexLensService_1.LexLensService(signerOrProvider, address);
|
|
135
133
|
}
|
|
@@ -43,6 +43,7 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
43
43
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
44
44
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
|
|
45
45
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
46
|
+
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "0x035aa8d0a2d74e19438f2c1440edff9f3b95f915ca65f681a25ed0bad3dc228d",
|
|
46
47
|
[pairIds_1.PAIR_CONFIGS_IDS.EUR_USD]: "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
47
48
|
[pairIds_1.PAIR_CONFIGS_IDS.GBP_USD]: "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
|
|
48
49
|
[pairIds_1.PAIR_CONFIGS_IDS.AUD_USD]: "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80",
|
|
@@ -58,6 +59,4 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
58
59
|
[pairIds_1.PAIR_CONFIGS_IDS.NZD_USD_CAT]: "",
|
|
59
60
|
[pairIds_1.PAIR_CONFIGS_IDS.USD_JPY_CAT]: "",
|
|
60
61
|
[pairIds_1.PAIR_CONFIGS_IDS.USD_CHF_CAT]: "",
|
|
61
|
-
// Pairs Unsupported by pyth
|
|
62
|
-
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "",
|
|
63
62
|
};
|
package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BytesLike, Provider } from "ethers";
|
|
1
|
+
import { BytesLike, Provider, Signer } from "ethers";
|
|
2
2
|
import { IIntentsVerifierLensService, TAccountBasedIntentsVerifierRequestBuildingInfoStruct, THashBasedIntentsVerifierRequestBuildingInfoStruct } from "./IIntentsVerifierLensService";
|
|
3
3
|
export declare class IntentsVerifierLensService implements IIntentsVerifierLensService {
|
|
4
4
|
private readonly contract;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
6
6
|
getRequestBuildingInfoForChipsIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
|
|
7
7
|
getRequestBuildingInfoForLiquidityIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
|
|
8
8
|
getRequestBuildingInfoForTradeIntentsVerifier(positionId: BytesLike, actionType: number): Promise<THashBasedIntentsVerifierRequestBuildingInfoStruct>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrD,OAAO,EACL,2BAA2B,EAC3B,qDAAqD,EACrD,kDAAkD,EAGnD,MAAM,+BAA+B,CAAC;AAEvC,qBAAa,0BAA2B,YAAW,2BAA2B;IAC5E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,6CAA6C,CACjD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAW3D,iDAAiD,CACrD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAW3D,6CAA6C,CACjD,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kDAAkD,CAAC;IAWxD,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC"}
|
package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js
CHANGED
|
@@ -5,8 +5,8 @@ const IntentsVerifierLens__factory_1 = require("../../typechain/factories/contra
|
|
|
5
5
|
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
6
6
|
const IIntentsVerifierLensService_1 = require("./IIntentsVerifierLensService");
|
|
7
7
|
class IntentsVerifierLensService {
|
|
8
|
-
constructor(
|
|
9
|
-
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address,
|
|
8
|
+
constructor(signerOrProvider, address) {
|
|
9
|
+
this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
|
|
10
10
|
}
|
|
11
11
|
async getRequestBuildingInfoForChipsIntentsVerifier(account, actionType) {
|
|
12
12
|
const result = await this.contract.getRequestBuildingInfoForChipsIntentsVerifier(account, BigInt(actionType));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { SinglePairTradesValuesInputStruct } from "../../typechain/contracts/Peripheral/Lens/LexLens";
|
|
3
3
|
import { ILexLensService, TLexFeeConfigsLensStruct, TLexGroupConfigsLensStruct, TLexGroupStateLensStruct, TLexPairConfigsLensStruct, TLexPairStateLensStruct, TLexPoolLensParamsStruct, TLexPoolLensConfigsStruct, TPoolAccountantConfigurationsLensStruct, TLexPoolLensStateStruct, TPoolAccountantStateLensStruct, TLensCompleteLexConfigsStruct, TLensCompleteLexStateStruct, TLexPoolSupplierLensStateStruct, TSinglePositionOutputStruct } from "./ILexLensService";
|
|
4
4
|
export declare class LexLensService implements ILexLensService {
|
|
5
5
|
private readonly contract;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(signerOrProvider: Signer | Provider, contractAddress: string);
|
|
7
7
|
getAllFeeConfigurationsInLex(lexPool: string): Promise<TLexFeeConfigsLensStruct[]>;
|
|
8
8
|
getAllGroupConfigurationsInLex(lexPool: string): Promise<TLexGroupConfigsLensStruct[]>;
|
|
9
9
|
getAllGroupStateInLex(lexPool: string): Promise<TLexGroupStateLensStruct[]>;
|
|
@@ -30,6 +30,5 @@ export declare class LexLensService implements ILexLensService {
|
|
|
30
30
|
tradesValuesMultiplePairs(accountant: string, pairsTrades: SinglePairTradesValuesInputStruct[]): Promise<TSinglePositionOutputStruct[][]>;
|
|
31
31
|
tradesValuesSinglePair(accountant: string, pairParams: SinglePairTradesValuesInputStruct): Promise<TSinglePositionOutputStruct[]>;
|
|
32
32
|
private convertCompleteConfigsResult;
|
|
33
|
-
private convertCompleteStateResult;
|
|
34
33
|
}
|
|
35
34
|
//# 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,
|
|
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;AAG1C,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,uCAAuC,EACvC,uBAAuB,EACvB,8BAA8B,EAC9B,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAiB5B,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,cAAe,YAAW,eAAe;IACpD,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BAAuB,CAAC;IAK7B,uBAAuB,CAC3B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,+BAA+B,CAAC;IAYrC,mBAAmB,CACvB,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAK/B,qCAAqC,CACzC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,uCAAuC,CAAC;IAK7C,wCAAwC,CAC5C,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,uCAAuC,EAAE,CAAC;IAK/C,2BAA2B,CAC/B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC;IAIZ,4BAA4B,CAChC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,8BAA8B,CAAC;IAKpC,+BAA+B,CACnC,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,8BAA8B,EAAE,CAAC;IAKtC,0BAA0B,CAC9B,QAAQ,EAAE,MAAM,EAAE,EAClB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,+BAA+B,EAAE,CAAC;IAYvC,yBAAyB,CAC7B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,iCAAiC,EAAE,GAC/C,OAAO,CAAC,2BAA2B,EAAE,EAAE,CAAC;IAQrC,sBAAsB,CAC1B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,iCAAiC,GAC5C,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAOzC,OAAO,CAAC,4BAA4B;CAwCrC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LexLensService = void 0;
|
|
4
|
+
const LexLens__factory_1 = require("../../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
|
|
4
5
|
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
5
6
|
const ILexLensService_1 = require("./ILexLensService");
|
|
6
7
|
class LexLensService {
|
|
7
|
-
constructor(
|
|
8
|
-
this.contract =
|
|
8
|
+
constructor(signerOrProvider, contractAddress) {
|
|
9
|
+
this.contract = LexLens__factory_1.LexLens__factory.connect(contractAddress, signerOrProvider);
|
|
9
10
|
}
|
|
10
11
|
async getAllFeeConfigurationsInLex(lexPool) {
|
|
11
12
|
const result = await this.contract.getAllFeeConfigurationsInLex(lexPool);
|
|
@@ -245,26 +246,5 @@ class LexLensService {
|
|
|
245
246
|
})),
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
|
-
convertCompleteStateResult(result) {
|
|
249
|
-
const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
|
|
250
|
-
pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
|
|
251
|
-
groupsStates: ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS,
|
|
252
|
-
}, {
|
|
253
|
-
lexPoolState: ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE,
|
|
254
|
-
poolAccountantState: ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS,
|
|
255
|
-
});
|
|
256
|
-
// Apply number conversions
|
|
257
|
-
return {
|
|
258
|
-
...baseResult,
|
|
259
|
-
pairsStates: baseResult.pairsStates.map(item => ({
|
|
260
|
-
...item,
|
|
261
|
-
pairId: Number(item.pairId),
|
|
262
|
-
})),
|
|
263
|
-
groupsStates: baseResult.groupsStates.map(item => ({
|
|
264
|
-
...item,
|
|
265
|
-
groupId: Number(item.groupId),
|
|
266
|
-
})),
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
249
|
}
|
|
270
250
|
exports.LexLensService = LexLensService;
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { BytesLike } from "ethers";
|
|
2
|
-
import { TradingFloorLens } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
1
|
+
import { BytesLike, Provider, Signer } from "ethers";
|
|
3
2
|
import { TradingFloorLensTradeParamsStructOutput } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
4
3
|
import { TradingFloorLensStructs } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
5
4
|
import { ITradingFloorLensService } from "./ITradingFloorLensService";
|
|
6
5
|
export declare class TradingFloorLensService implements ITradingFloorLensService {
|
|
7
6
|
private readonly contract;
|
|
8
|
-
constructor(
|
|
7
|
+
constructor(signerOrProvider: Signer | Provider, contractAddress: string);
|
|
9
8
|
generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint): Promise<string>;
|
|
10
9
|
getAllPositionsDataForAllTraders(params: TradingFloorLensStructs.GetAllPositionsDataForAllTradersParamsStruct): Promise<TradingFloorLensStructs.GetAllPositionsDataForAllTradersResultStructOutput>;
|
|
11
10
|
getAllPositionsDataForAllTradersInDimension(tradingFloor: string, settlementAsset: string, arraySize: bigint): Promise<TradingFloorLensStructs.CompletePositionDataFromLensStructOutput[]>;
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrD,OAAO,EACL,uCAAuC,EACxC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,w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AAE,MAAM,GACb,OAAO,CAAC,uBAAuB,CAAC,wCAAwC,EAAE,CAAC;IAYxE,0BAA0B,CAC9B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,uCAAuC,CAAC;CAGpD"}
|
package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TradingFloorLensService = void 0;
|
|
4
|
+
const TradingFloorLens__factory_1 = require("../../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
|
|
4
5
|
class TradingFloorLensService {
|
|
5
|
-
constructor(
|
|
6
|
-
this.contract =
|
|
6
|
+
constructor(signerOrProvider, contractAddress) {
|
|
7
|
+
this.contract = TradingFloorLens__factory_1.TradingFloorLens__factory.connect(contractAddress, signerOrProvider);
|
|
7
8
|
}
|
|
8
9
|
async generatePositionHashId(settlementAsset, trader, pairId, index) {
|
|
9
10
|
return await this.contract.generatePositionHashId(settlementAsset, trader, pairId, index);
|
|
10
11
|
}
|
|
11
12
|
async getAllPositionsDataForAllTraders(params) {
|
|
12
13
|
// @ts-ignore
|
|
13
|
-
|
|
14
|
+
const result = await this.contract.getAllPositionsDataForAllTraders.staticCall(params);
|
|
15
|
+
// Filter out empty positions (collateral = 0)
|
|
16
|
+
const filteredPositions = result.positions.filter((pos) => pos.collateral > 0n);
|
|
17
|
+
return {
|
|
18
|
+
...result,
|
|
19
|
+
positions: filteredPositions
|
|
20
|
+
};
|
|
14
21
|
}
|
|
15
22
|
async getAllPositionsDataForAllTradersInDimension(tradingFloor, settlementAsset, arraySize) {
|
|
16
23
|
// @ts-ignore
|
|
17
|
-
|
|
24
|
+
const result = await this.contract.getAllPositionsDataForAllTradersInDimension.staticCall(tradingFloor, settlementAsset, arraySize);
|
|
25
|
+
// Filter out empty positions (collateral = 0)
|
|
26
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
18
27
|
}
|
|
19
28
|
async getAllPositionsDataForTraderInDimension(tradingFloor, settlementAsset, trader) {
|
|
20
29
|
// @ts-ignore
|
|
21
|
-
|
|
30
|
+
const result = await this.contract.getAllPositionsDataForTraderInDimension.staticCall(tradingFloor, settlementAsset, trader);
|
|
31
|
+
// Filter out empty positions (collateral = 0)
|
|
32
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
22
33
|
}
|
|
23
34
|
async getAllPositionsLiquidationInfo(params, phases) {
|
|
24
35
|
if (phases !== undefined) {
|
|
@@ -36,11 +47,15 @@ class TradingFloorLensService {
|
|
|
36
47
|
}
|
|
37
48
|
async getPositionDataInPairsForTrader(tradingFloor, settlementAsset, trader, pairIds) {
|
|
38
49
|
// @ts-ignore
|
|
39
|
-
|
|
50
|
+
const result = await this.contract.getPositionDataInPairsForTrader.staticCall(tradingFloor, settlementAsset, trader, pairIds);
|
|
51
|
+
// Filter out empty positions (collateral = 0)
|
|
52
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
40
53
|
}
|
|
41
54
|
async getPositionsDataInPairForTrader(tradingFloor, settlementAsset, trader, pairId) {
|
|
42
55
|
// @ts-ignore
|
|
43
|
-
|
|
56
|
+
const result = await this.contract.getPositionsDataInPairForTrader.staticCall(tradingFloor, settlementAsset, trader, pairId);
|
|
57
|
+
// Filter out empty positions (collateral = 0)
|
|
58
|
+
return result.filter((pos) => pos.collateral > 0n);
|
|
44
59
|
}
|
|
45
60
|
async getTradingFloorTradeParams(tradingFloor) {
|
|
46
61
|
return await this.contract.getTradingFloorTradeParams(tradingFloor);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Provider } from "ethers";
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { ITriggersAndPortalLensService, TPairConfigsInTriggersStruct, TCompleteTradersPortalConfigurationsStruct, TCompleteTriggerConfigurationsStruct } from "./ITriggersAndPortalLensService";
|
|
3
3
|
export declare class TriggersAndPortalLensService implements ITriggersAndPortalLensService {
|
|
4
4
|
private readonly contract;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
6
6
|
getPairConfigsInTriggers(triggers: string, pairId: number): Promise<TPairConfigsInTriggersStruct>;
|
|
7
7
|
getPairsConfigsInTriggers(triggers: string, pairIds: number[]): Promise<TPairConfigsInTriggersStruct[]>;
|
|
8
8
|
getTradersPortalConfigurations(tradersPortal: string): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAI1C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0CAA0C,EAC1C,oCAAoC,EAIrC,MAAM,iCAAiC,CAAC;AAEzC,qBAAa,4BAA6B,YAAW,6BAA6B;IAChF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;gBAErC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,wBAAwB,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,4BAA4B,CAAC;IAKlC,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAQpC,8BAA8B,CAClC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,0CAA0C,CAAC;IAKhD,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,oCAAoC,CAAC;CAIjD"}
|
|
@@ -5,8 +5,8 @@ const TriggersAndPortalLens__factory_1 = require("../../typechain/factories/cont
|
|
|
5
5
|
const ethersTypes_1 = require("../../utils/ethersTypes");
|
|
6
6
|
const ITriggersAndPortalLensService_1 = require("./ITriggersAndPortalLensService");
|
|
7
7
|
class TriggersAndPortalLensService {
|
|
8
|
-
constructor(
|
|
9
|
-
this.contract = TriggersAndPortalLens__factory_1.TriggersAndPortalLens__factory.connect(address,
|
|
8
|
+
constructor(signerOrProvider, address) {
|
|
9
|
+
this.contract = TriggersAndPortalLens__factory_1.TriggersAndPortalLens__factory.connect(address, signerOrProvider);
|
|
10
10
|
}
|
|
11
11
|
async getPairConfigsInTriggers(triggers, pairId) {
|
|
12
12
|
const result = await this.contract.getPairConfigsInTriggers(triggers, BigInt(pairId));
|
|
@@ -42,8 +42,8 @@ export declare function connectToLatestTriggersForSigner(signer: Signer, address
|
|
|
42
42
|
export declare function connectToLatestTriggers(provider: Provider, address: string): TriggersV1;
|
|
43
43
|
export declare function connectToTradingFloorLens(provider: Provider, address: string): TradingFloorLens;
|
|
44
44
|
export declare function connectToLeXLens(provider: Provider, address: string): LexLens;
|
|
45
|
-
export declare function createIntentsVerifierLensService(
|
|
46
|
-
export declare function createTriggersAndPortalLensService(
|
|
47
|
-
export declare function createTradingFloorLensService(
|
|
48
|
-
export declare function createLexLensService(
|
|
45
|
+
export declare function createIntentsVerifierLensService(signerOrProvider: Signer | Provider, address: string): IntentsVerifierLensService;
|
|
46
|
+
export declare function createTriggersAndPortalLensService(signerOrProvider: Signer | Provider, address: string): TriggersAndPortalLensService;
|
|
47
|
+
export declare function createTradingFloorLensService(signerOrProvider: Signer | Provider, address: string): TradingFloorLensService;
|
|
48
|
+
export declare function createLexLensService(signerOrProvider: Signer | Provider, address: string): LexLensService;
|
|
49
49
|
//# sourceMappingURL=deployedContractsConnector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,aAAa,CAEf;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,UAAU,CAEZ;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,UAAU,CAEZ;AAMD,wB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AE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7E;AAOD,wBAAgB,gCAAgC,CAC9C,
|
|
1
|
+
{"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,aAAa,CAEf;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,UAAU,CAEZ;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,EAClB,OAAO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B,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7E;AAOD,wBAAgB,gCAAgC,CAC9C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,0BAA0B,CAE5B;AAED,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,4BAA4B,CAE9B;AAED,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,uBAAuB,CAEzB;AAED,wBAAgB,oBAAoB,CAClC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,cAAc,CAEhB"}
|
|
@@ -119,17 +119,15 @@ function connectToLeXLens(provider, address) {
|
|
|
119
119
|
//
|
|
120
120
|
// ***** Lens Services *****
|
|
121
121
|
//
|
|
122
|
-
function createIntentsVerifierLensService(
|
|
123
|
-
return new IntentsVerifierLensService_1.IntentsVerifierLensService(
|
|
122
|
+
function createIntentsVerifierLensService(signerOrProvider, address) {
|
|
123
|
+
return new IntentsVerifierLensService_1.IntentsVerifierLensService(signerOrProvider, address);
|
|
124
124
|
}
|
|
125
|
-
function createTriggersAndPortalLensService(
|
|
126
|
-
return new TriggersAndPortalLensService_1.TriggersAndPortalLensService(
|
|
125
|
+
function createTriggersAndPortalLensService(signerOrProvider, address) {
|
|
126
|
+
return new TriggersAndPortalLensService_1.TriggersAndPortalLensService(signerOrProvider, address);
|
|
127
127
|
}
|
|
128
|
-
function createTradingFloorLensService(
|
|
129
|
-
|
|
130
|
-
return new TradingFloorLensService_1.TradingFloorLensService(contract);
|
|
128
|
+
function createTradingFloorLensService(signerOrProvider, address) {
|
|
129
|
+
return new TradingFloorLensService_1.TradingFloorLensService(signerOrProvider, address);
|
|
131
130
|
}
|
|
132
|
-
function createLexLensService(
|
|
133
|
-
|
|
134
|
-
return new LexLensService_1.LexLensService(contract);
|
|
131
|
+
function createLexLensService(signerOrProvider, address) {
|
|
132
|
+
return new LexLensService_1.LexLensService(signerOrProvider, address);
|
|
135
133
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CA+BpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAKjD,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CA+BpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAKjD,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAuC9D,CAAC"}
|
|
@@ -43,6 +43,7 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
43
43
|
[pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
44
44
|
[pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
|
|
45
45
|
[pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
|
|
46
|
+
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "0x035aa8d0a2d74e19438f2c1440edff9f3b95f915ca65f681a25ed0bad3dc228d",
|
|
46
47
|
[pairIds_1.PAIR_CONFIGS_IDS.EUR_USD]: "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
|
|
47
48
|
[pairIds_1.PAIR_CONFIGS_IDS.GBP_USD]: "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
|
|
48
49
|
[pairIds_1.PAIR_CONFIGS_IDS.AUD_USD]: "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80",
|
|
@@ -58,6 +59,4 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
|
|
|
58
59
|
[pairIds_1.PAIR_CONFIGS_IDS.NZD_USD_CAT]: "",
|
|
59
60
|
[pairIds_1.PAIR_CONFIGS_IDS.USD_JPY_CAT]: "",
|
|
60
61
|
[pairIds_1.PAIR_CONFIGS_IDS.USD_CHF_CAT]: "",
|
|
61
|
-
// Pairs Unsupported by pyth
|
|
62
|
-
[pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "",
|
|
63
62
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BytesLike, Provider } from "ethers";
|
|
1
|
+
import { BytesLike, Provider, Signer } from "ethers";
|
|
2
2
|
import { IIntentsVerifierLensService, TAccountBasedIntentsVerifierRequestBuildingInfoStruct, THashBasedIntentsVerifierRequestBuildingInfoStruct } from "./IIntentsVerifierLensService";
|
|
3
3
|
export declare class IntentsVerifierLensService implements IIntentsVerifierLensService {
|
|
4
4
|
private readonly contract;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
6
6
|
getRequestBuildingInfoForChipsIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
|
|
7
7
|
getRequestBuildingInfoForLiquidityIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
|
|
8
8
|
getRequestBuildingInfoForTradeIntentsVerifier(positionId: BytesLike, actionType: number): Promise<THashBasedIntentsVerifierRequestBuildingInfoStruct>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrD,OAAO,EACL,2BAA2B,EAC3B,qDAAqD,EACrD,kDAAkD,EAGnD,MAAM,+BAA+B,CAAC;AAEvC,qBAAa,0BAA2B,YAAW,2BAA2B;IAC5E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,6CAA6C,CACjD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAW3D,iDAAiD,CACrD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAW3D,6CAA6C,CACjD,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kDAAkD,CAAC;IAWxD,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { SinglePairTradesValuesInputStruct } from "../../typechain/contracts/Peripheral/Lens/LexLens";
|
|
3
3
|
import { ILexLensService, TLexFeeConfigsLensStruct, TLexGroupConfigsLensStruct, TLexGroupStateLensStruct, TLexPairConfigsLensStruct, TLexPairStateLensStruct, TLexPoolLensParamsStruct, TLexPoolLensConfigsStruct, TPoolAccountantConfigurationsLensStruct, TLexPoolLensStateStruct, TPoolAccountantStateLensStruct, TLensCompleteLexConfigsStruct, TLensCompleteLexStateStruct, TLexPoolSupplierLensStateStruct, TSinglePositionOutputStruct } from "./ILexLensService";
|
|
4
4
|
export declare class LexLensService implements ILexLensService {
|
|
5
5
|
private readonly contract;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(signerOrProvider: Signer | Provider, contractAddress: string);
|
|
7
7
|
getAllFeeConfigurationsInLex(lexPool: string): Promise<TLexFeeConfigsLensStruct[]>;
|
|
8
8
|
getAllGroupConfigurationsInLex(lexPool: string): Promise<TLexGroupConfigsLensStruct[]>;
|
|
9
9
|
getAllGroupStateInLex(lexPool: string): Promise<TLexGroupStateLensStruct[]>;
|
|
@@ -30,6 +30,5 @@ export declare class LexLensService implements ILexLensService {
|
|
|
30
30
|
tradesValuesMultiplePairs(accountant: string, pairsTrades: SinglePairTradesValuesInputStruct[]): Promise<TSinglePositionOutputStruct[][]>;
|
|
31
31
|
tradesValuesSinglePair(accountant: string, pairParams: SinglePairTradesValuesInputStruct): Promise<TSinglePositionOutputStruct[]>;
|
|
32
32
|
private convertCompleteConfigsResult;
|
|
33
|
-
private convertCompleteStateResult;
|
|
34
33
|
}
|
|
35
34
|
//# 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,
|
|
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;AAG1C,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,uCAAuC,EACvC,uBAAuB,EACvB,8BAA8B,EAC9B,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAiB5B,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,cAAe,YAAW,eAAe;IACpD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;gBAEvB,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAIlE,4BAA4B,CAChC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,wBAAwB,EAAE,CAAC;IAahC,8BAA8B,CAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAUlC,qBAAqB,CACzB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,wBAAwB,EAAE,CAAC;IAShC,2CAA2C,CAC/C,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC;IAIb,6BAA6B,CACjC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAWjC,oBAAoB,CACxB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAS/B,wBAAwB,CAC5B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,6BAA6B,CAAC;IA0CnC,0BAA0B,CAC9B,KAAK,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AAO,CAAC,+BAA+B,EAAE,CAAC;IAYvC,yBAAyB,CAC7B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,iCAAiC,EAAE,GAC/C,OAAO,CAAC,2BAA2B,EAAE,EAAE,CAAC;IAQrC,sBAAsB,CAC1B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,iCAAiC,GAC5C,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAOzC,OAAO,CAAC,4BAA4B;CAwCrC"}
|
package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { BytesLike } from "ethers";
|
|
2
|
-
import { TradingFloorLens } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
1
|
+
import { BytesLike, Provider, Signer } from "ethers";
|
|
3
2
|
import { TradingFloorLensTradeParamsStructOutput } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
4
3
|
import { TradingFloorLensStructs } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
|
|
5
4
|
import { ITradingFloorLensService } from "./ITradingFloorLensService";
|
|
6
5
|
export declare class TradingFloorLensService implements ITradingFloorLensService {
|
|
7
6
|
private readonly contract;
|
|
8
|
-
constructor(
|
|
7
|
+
constructor(signerOrProvider: Signer | Provider, contractAddress: string);
|
|
9
8
|
generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint): Promise<string>;
|
|
10
9
|
getAllPositionsDataForAllTraders(params: TradingFloorLensStructs.GetAllPositionsDataForAllTradersParamsStruct): Promise<TradingFloorLensStructs.GetAllPositionsDataForAllTradersResultStructOutput>;
|
|
11
10
|
getAllPositionsDataForAllTradersInDimension(tradingFloor: string, settlementAsset: string, arraySize: bigint): Promise<TradingFloorLensStructs.CompletePositionDataFromLensStructOutput[]>;
|
package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrD,OAAO,EACL,uCAAuC,EACxC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,qBAAa,uBAAwB,YAAW,wBAAwB;IACtE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;gBAEhC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAIlE,sBAAsB,CAC1B,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,CAAC;IASZ,gCAAgC,CACpC,MAAM,EAAE,uBAAuB,CAAC,4CAA4C,GAC3E,OAAO,CAAC,uBAAuB,CAAC,kDAAkD,CAAC;IAWhF,2CAA2C,CAC/C,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,uBAAuB,CAAC,wCAAwC,EAAE,CAAC;IAWxE,uCAAuC,CAC3C,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,uBAAuB,CAAC,wCAAwC,EAAE,CAAC;IAWxE,8BAA8B,CAClC,MAAM,EAAE,uBAAuB,CAAC,0CAA0C,EAC1E,MAAM,CAAC,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,uBAAuB,CAAC,gDAAgD,CAAC;IAe9E,uBAAuB,CAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,GACpB,OAAO,CAAC,uBAAuB,CAAC,wCAAwC,CAAC;IAKtE,+BAA+B,CACnC,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,uBAAuB,CAAC,wCAAwC,EAAE,CAAC;IAYxE,+BAA+B,CACnC,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,uBAAuB,CAAC,wCAAwC,EAAE,CAAC;IAYxE,0BAA0B,CAC9B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,uCAAuC,CAAC;CAGpD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Provider } from "ethers";
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
2
|
import { ITriggersAndPortalLensService, TPairConfigsInTriggersStruct, TCompleteTradersPortalConfigurationsStruct, TCompleteTriggerConfigurationsStruct } from "./ITriggersAndPortalLensService";
|
|
3
3
|
export declare class TriggersAndPortalLensService implements ITriggersAndPortalLensService {
|
|
4
4
|
private readonly contract;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
6
6
|
getPairConfigsInTriggers(triggers: string, pairId: number): Promise<TPairConfigsInTriggersStruct>;
|
|
7
7
|
getPairsConfigsInTriggers(triggers: string, pairIds: number[]): Promise<TPairConfigsInTriggersStruct[]>;
|
|
8
8
|
getTradersPortalConfigurations(tradersPortal: string): Promise<TCompleteTradersPortalConfigurationsStruct>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"TriggersAndPortalLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAI1C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0CAA0C,EAC1C,oCAAoC,EAIrC,MAAM,iCAAiC,CAAC;AAEzC,qBAAa,4BAA6B,YAAW,6BAA6B;IAChF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;gBAErC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,wBAAwB,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,4BAA4B,CAAC;IAKlC,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAQpC,8BAA8B,CAClC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,0CAA0C,CAAC;IAKhD,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,oCAAoC,CAAC;CAIjD"}
|
|
@@ -42,8 +42,8 @@ export declare function connectToLatestTriggersForSigner(signer: Signer, address
|
|
|
42
42
|
export declare function connectToLatestTriggers(provider: Provider, address: string): TriggersV1;
|
|
43
43
|
export declare function connectToTradingFloorLens(provider: Provider, address: string): TradingFloorLens;
|
|
44
44
|
export declare function connectToLeXLens(provider: Provider, address: string): LexLens;
|
|
45
|
-
export declare function createIntentsVerifierLensService(
|
|
46
|
-
export declare function createTriggersAndPortalLensService(
|
|
47
|
-
export declare function createTradingFloorLensService(
|
|
48
|
-
export declare function createLexLensService(
|
|
45
|
+
export declare function createIntentsVerifierLensService(signerOrProvider: Signer | Provider, address: string): IntentsVerifierLensService;
|
|
46
|
+
export declare function createTriggersAndPortalLensService(signerOrProvider: Signer | Provider, address: string): TriggersAndPortalLensService;
|
|
47
|
+
export declare function createTradingFloorLensService(signerOrProvider: Signer | Provider, address: string): TradingFloorLensService;
|
|
48
|
+
export declare function createLexLensService(signerOrProvider: Signer | Provider, address: string): LexLensService;
|
|
49
49
|
//# sourceMappingURL=deployedContractsConnector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA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AE,MAAM,CAAC,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pythFeedConstants.d.ts","sourceRoot":"","sources":["../../../../../lib/priceFeeds/pyth/pythFeedConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CA+BpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAKjD,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAuC9D,CAAC"}
|