lynx-client 0.0.13 → 0.0.14
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/index.js +10 -1
- package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
- package/dist/cjs/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/EngineChipService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
- package/dist/cjs/lib/contractsIntegration/OrderBookService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
- package/dist/cjs/lib/contractsIntegration/TriggersService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
- package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +34 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +195 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/esm/index.d.ts +10 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +10 -1
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/EngineChipService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
- package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OrderBookService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
- package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +34 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
- package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +195 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
- package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
- package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
- package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js
CHANGED
|
@@ -131,6 +131,12 @@ class Settings {
|
|
|
131
131
|
async actionFees(actionType) {
|
|
132
132
|
return this.tradingContract.actionFees(actionType);
|
|
133
133
|
}
|
|
134
|
+
async limitsMarginFraction() {
|
|
135
|
+
return this.tradingContract.limitsMarginFraction();
|
|
136
|
+
}
|
|
137
|
+
async setLimitsMarginFraction(limitsMarginFraction) {
|
|
138
|
+
return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction);
|
|
139
|
+
}
|
|
134
140
|
}
|
|
135
141
|
class Constants {
|
|
136
142
|
constructor(tradingContract) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TriggersService/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggersService = void 0;
|
|
4
|
+
var TriggersService_1 = require("./TriggersService");
|
|
5
|
+
Object.defineProperty(exports, "TriggersService", { enumerable: true, get: function () { return TriggersService_1.TriggersService; } });
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ContractTransactionResponse } from "ethers";
|
|
2
|
+
export interface IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint {
|
|
3
|
+
/**
|
|
4
|
+
* Wraps native tokens and mints engine chips
|
|
5
|
+
* Payable function - native tokens sent as msg.value
|
|
6
|
+
* @returns ContractTransactionResponse
|
|
7
|
+
*/
|
|
8
|
+
wrapNativeAndMintEngineChip(): Promise<ContractTransactionResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling {
|
|
11
|
+
/**
|
|
12
|
+
* Handles burning operations - callback from EngineChip contract
|
|
13
|
+
* @param burner Address that initiated the burn
|
|
14
|
+
* @param arg1 Unused parameter
|
|
15
|
+
* @param underlyingAmount Amount of underlying tokens to handle
|
|
16
|
+
* @param arg3 Additional data parameter
|
|
17
|
+
* @returns ContractTransactionResponse
|
|
18
|
+
*/
|
|
19
|
+
handleBurn(burner: string, arg1: bigint, underlyingAmount: bigint, arg3: string): Promise<ContractTransactionResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions {
|
|
22
|
+
/**
|
|
23
|
+
* Get the wrapped native engine chip contract address
|
|
24
|
+
*/
|
|
25
|
+
wrappedNativeEngineChip(): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the wrapped native token contract address
|
|
28
|
+
*/
|
|
29
|
+
wrappedNativeToken(): Promise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if wrapped native token returns uint256
|
|
32
|
+
*/
|
|
33
|
+
wrappedNativeReturnsUint256(): Promise<boolean>;
|
|
34
|
+
}
|
|
35
|
+
export interface IWrappedNativeEngineChipHelperService {
|
|
36
|
+
wrapAndMint: IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint;
|
|
37
|
+
burnHandling: IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling;
|
|
38
|
+
viewFunctions: IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=IWrappedNativeEngineChipHelperService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWrappedNativeEngineChipHelperService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAIrD,MAAM,WAAW,wDAAwD;IACvE;;;;OAIG;IACH,2BAA2B,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACpE;AAED,MAAM,WAAW,yDAAyD;IACxE;;;;;;;OAOG;IACH,UAAU,CACR,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,0DAA0D;IACzE;;OAEG;IACH,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAE1C;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAErC;;OAEG;IACH,2BAA2B,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;CAChD;AAID,MAAM,WAAW,qCAAqC;IACpD,WAAW,EAAE,wDAAwD,CAAA;IACrE,YAAY,EAAE,yDAAyD,CAAA;IACvE,aAAa,EAAE,0DAA0D,CAAA;CAC1E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Provider, Signer } from "ethers";
|
|
2
|
+
import { WrappedNativeEngineChipHelper } from "../../typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper";
|
|
3
|
+
import { IWrappedNativeEngineChipHelperService, IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint, IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling, IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions } from "./IWrappedNativeEngineChipHelperService";
|
|
4
|
+
/**
|
|
5
|
+
* Service for interacting with the WrappedNativeEngineChipHelper contract
|
|
6
|
+
* Facilitates wrapping native tokens (like ETH) into wrapped native tokens (like WETH)
|
|
7
|
+
* and then minting the corresponding engine chips
|
|
8
|
+
*/
|
|
9
|
+
export declare class WrappedNativeEngineChipHelperService implements IWrappedNativeEngineChipHelperService {
|
|
10
|
+
private readonly contract;
|
|
11
|
+
private readonly isSigner;
|
|
12
|
+
readonly wrapAndMint: IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint;
|
|
13
|
+
readonly burnHandling: IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling;
|
|
14
|
+
readonly viewFunctions: IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions;
|
|
15
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
16
|
+
/**
|
|
17
|
+
* Get the underlying contract instance
|
|
18
|
+
* Useful for accessing contract methods directly when needed
|
|
19
|
+
*/
|
|
20
|
+
getContract(): WrappedNativeEngineChipHelper;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=WrappedNativeEngineChipHelperService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WrappedNativeEngineChipHelperService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0EAA0E,CAAA;AAExH,OAAO,EACL,qCAAqC,EACrC,wDAAwD,EACxD,yDAAyD,EACzD,0DAA0D,EAC3D,MAAM,yCAAyC,CAAA;AA2DhD;;;;GAIG;AACH,qBAAa,oCAAqC,YAAW,qCAAqC;IAChG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAElC,SAAgB,WAAW,EAAE,wDAAwD,CAAA;IACrF,SAAgB,YAAY,EAAE,yDAAyD,CAAA;IACvF,SAAgB,aAAa,EAAE,0DAA0D,CAAA;gBAE7E,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAahE;;;OAGG;IACH,WAAW,IAAI,6BAA6B;CAG7C"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WrappedNativeEngineChipHelperService = void 0;
|
|
4
|
+
const WrappedNativeEngineChipHelper__factory_1 = require("../../typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory");
|
|
5
|
+
// ============ Wrap And Mint Implementation ============
|
|
6
|
+
class WrapAndMint {
|
|
7
|
+
constructor(contract, isSigner) {
|
|
8
|
+
this.contract = contract;
|
|
9
|
+
this.isSigner = isSigner;
|
|
10
|
+
}
|
|
11
|
+
async wrapNativeAndMintEngineChip() {
|
|
12
|
+
if (!this.isSigner) {
|
|
13
|
+
throw new Error("WrappedNativeEngineChipHelperService: Write operations require a signer");
|
|
14
|
+
}
|
|
15
|
+
return await this.contract.wrapNativeAndMintEngineChip();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
// ============ Burn Handling Implementation ============
|
|
19
|
+
class BurnHandling {
|
|
20
|
+
constructor(contract, isSigner) {
|
|
21
|
+
this.contract = contract;
|
|
22
|
+
this.isSigner = isSigner;
|
|
23
|
+
}
|
|
24
|
+
async handleBurn(burner, arg1, underlyingAmount, arg3) {
|
|
25
|
+
if (!this.isSigner) {
|
|
26
|
+
throw new Error("WrappedNativeEngineChipHelperService: Write operations require a signer");
|
|
27
|
+
}
|
|
28
|
+
return await this.contract.handleBurn(burner, arg1, underlyingAmount, arg3);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// ============ View Functions Implementation ============
|
|
32
|
+
class ViewFunctions {
|
|
33
|
+
constructor(contract) {
|
|
34
|
+
this.contract = contract;
|
|
35
|
+
}
|
|
36
|
+
async wrappedNativeEngineChip() {
|
|
37
|
+
return await this.contract.wrappedNativeEngineChip();
|
|
38
|
+
}
|
|
39
|
+
async wrappedNativeToken() {
|
|
40
|
+
return await this.contract.wrappedNativeToken();
|
|
41
|
+
}
|
|
42
|
+
async wrappedNativeReturnsUint256() {
|
|
43
|
+
return await this.contract.wrappedNativeReturnsUint256();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// ============ Main Service Class ============
|
|
47
|
+
/**
|
|
48
|
+
* Service for interacting with the WrappedNativeEngineChipHelper contract
|
|
49
|
+
* Facilitates wrapping native tokens (like ETH) into wrapped native tokens (like WETH)
|
|
50
|
+
* and then minting the corresponding engine chips
|
|
51
|
+
*/
|
|
52
|
+
class WrappedNativeEngineChipHelperService {
|
|
53
|
+
constructor(signerOrProvider, address) {
|
|
54
|
+
this.contract = WrappedNativeEngineChipHelper__factory_1.WrappedNativeEngineChipHelper__factory.connect(address, signerOrProvider);
|
|
55
|
+
this.isSigner = "sendTransaction" in signerOrProvider;
|
|
56
|
+
// Initialize all function groups using separate classes
|
|
57
|
+
this.wrapAndMint = new WrapAndMint(this.contract, this.isSigner);
|
|
58
|
+
this.burnHandling = new BurnHandling(this.contract, this.isSigner);
|
|
59
|
+
this.viewFunctions = new ViewFunctions(this.contract);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get the underlying contract instance
|
|
63
|
+
* Useful for accessing contract methods directly when needed
|
|
64
|
+
*/
|
|
65
|
+
getContract() {
|
|
66
|
+
return this.contract;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.WrappedNativeEngineChipHelperService = WrappedNativeEngineChipHelperService;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { WrappedNativeEngineChipHelperService } from "./WrappedNativeEngineChipHelperService";
|
|
2
|
+
export type { IWrappedNativeEngineChipHelperService, IWrappedNativeEngineChipHelperFunctionsGroup_WrapAndMint, IWrappedNativeEngineChipHelperFunctionsGroup_BurnHandling, IWrappedNativeEngineChipHelperFunctionsGroup_ViewFunctions, } from "./IWrappedNativeEngineChipHelperService";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAA;AAC7F,YAAY,EACV,qCAAqC,EACrC,wDAAwD,EACxD,yDAAyD,EACzD,0DAA0D,GAC3D,MAAM,yCAAyC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WrappedNativeEngineChipHelperService = void 0;
|
|
4
|
+
var WrappedNativeEngineChipHelperService_1 = require("./WrappedNativeEngineChipHelperService");
|
|
5
|
+
Object.defineProperty(exports, "WrappedNativeEngineChipHelperService", { enumerable: true, get: function () { return WrappedNativeEngineChipHelperService_1.WrappedNativeEngineChipHelperService; } });
|
|
@@ -21,6 +21,10 @@ import { LiquidityIntentsVerifierService } from "./LiquidityIntentsVerifierServi
|
|
|
21
21
|
import { TradeIntentsVerifierService } from "./TradeIntentsVerifierService";
|
|
22
22
|
import { OnBehalfTradingV1 } from "../typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1";
|
|
23
23
|
import { OnBehalfTradingService } from "./OnBehalfTradingService";
|
|
24
|
+
import { EngineChip } from "../typechain/contracts/Lynx/Chips/EngineChip/EngineChip";
|
|
25
|
+
import { EngineChipService } from "./EngineChipService";
|
|
26
|
+
import { WrappedNativeEngineChipHelper } from "../typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper";
|
|
27
|
+
import { WrappedNativeEngineChipHelperService } from "./WrappedNativeEngineChipHelperService";
|
|
24
28
|
export declare function connectToRegistryProxyForSigner(signer: Signer, address: string): RegistryProxy;
|
|
25
29
|
/**
|
|
26
30
|
* To be used with the proxy address and the implementation ABI
|
|
@@ -66,4 +70,10 @@ export declare function createChipsIntentsVerifierService(signerOrProvider: Sign
|
|
|
66
70
|
export declare function createLiquidityIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): LiquidityIntentsVerifierService;
|
|
67
71
|
export declare function createTradeIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): TradeIntentsVerifierService;
|
|
68
72
|
export declare function createOnBehalfTradingService(signerOrProvider: Signer | Provider, address: string): OnBehalfTradingService;
|
|
73
|
+
export declare function connectToEngineChipForSigner(signer: Signer, address: string): EngineChip;
|
|
74
|
+
export declare function connectToEngineChip(provider: Provider, address: string): EngineChip;
|
|
75
|
+
export declare function createEngineChipService(signerOrProvider: Signer | Provider, address: string): EngineChipService;
|
|
76
|
+
export declare function connectToWrappedNativeEngineChipHelperForSigner(signer: Signer, address: string): WrappedNativeEngineChipHelper;
|
|
77
|
+
export declare function connectToWrappedNativeEngineChipHelper(provider: Provider, address: string): WrappedNativeEngineChipHelper;
|
|
78
|
+
export declare function createWrappedNativeEngineChipHelperService(signerOrProvider: Signer | Provider, address: string): WrappedNativeEngineChipHelperService;
|
|
69
79
|
//# 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,k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wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,2BAA2B,CAE7B;AAED,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,sBAAsB,CAExB;AAMD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,UAAU,CAEZ;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,UAAU,CAEZ;AAED,wBAAgB,uBAAuB,CACrC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,iBAAiB,CAEnB;AAMD,wBAAgB,+CAA+C,CAC7D,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,6BAA6B,CAE/B;AAED,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,6BAA6B,CAE/B;AAED,wBAAgB,0CAA0C,CACxD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,oCAAoC,CAEtC"}
|
|
@@ -33,6 +33,12 @@ exports.createChipsIntentsVerifierService = createChipsIntentsVerifierService;
|
|
|
33
33
|
exports.createLiquidityIntentsVerifierService = createLiquidityIntentsVerifierService;
|
|
34
34
|
exports.createTradeIntentsVerifierService = createTradeIntentsVerifierService;
|
|
35
35
|
exports.createOnBehalfTradingService = createOnBehalfTradingService;
|
|
36
|
+
exports.connectToEngineChipForSigner = connectToEngineChipForSigner;
|
|
37
|
+
exports.connectToEngineChip = connectToEngineChip;
|
|
38
|
+
exports.createEngineChipService = createEngineChipService;
|
|
39
|
+
exports.connectToWrappedNativeEngineChipHelperForSigner = connectToWrappedNativeEngineChipHelperForSigner;
|
|
40
|
+
exports.connectToWrappedNativeEngineChipHelper = connectToWrappedNativeEngineChipHelper;
|
|
41
|
+
exports.createWrappedNativeEngineChipHelperService = createWrappedNativeEngineChipHelperService;
|
|
36
42
|
const TradingFloorLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
|
|
37
43
|
const LexLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
|
|
38
44
|
const RegistryProxy__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory");
|
|
@@ -55,6 +61,10 @@ const LiquidityIntentsVerifierService_1 = require("./LiquidityIntentsVerifierSer
|
|
|
55
61
|
const TradeIntentsVerifierService_1 = require("./TradeIntentsVerifierService");
|
|
56
62
|
const OnBehalfTradingV1__factory_1 = require("../typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory");
|
|
57
63
|
const OnBehalfTradingService_1 = require("./OnBehalfTradingService");
|
|
64
|
+
const EngineChip__factory_1 = require("../typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory");
|
|
65
|
+
const EngineChipService_1 = require("./EngineChipService");
|
|
66
|
+
const WrappedNativeEngineChipHelper__factory_1 = require("../typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory");
|
|
67
|
+
const WrappedNativeEngineChipHelperService_1 = require("./WrappedNativeEngineChipHelperService");
|
|
58
68
|
//
|
|
59
69
|
// ***** Registry & Proxy *****
|
|
60
70
|
//
|
|
@@ -193,3 +203,27 @@ function createTradeIntentsVerifierService(signerOrProvider, address) {
|
|
|
193
203
|
function createOnBehalfTradingService(signerOrProvider, address) {
|
|
194
204
|
return new OnBehalfTradingService_1.OnBehalfTradingService(signerOrProvider, address);
|
|
195
205
|
}
|
|
206
|
+
//
|
|
207
|
+
// ***** EngineChip *****
|
|
208
|
+
//
|
|
209
|
+
function connectToEngineChipForSigner(signer, address) {
|
|
210
|
+
return EngineChip__factory_1.EngineChip__factory.connect(address, signer);
|
|
211
|
+
}
|
|
212
|
+
function connectToEngineChip(provider, address) {
|
|
213
|
+
return EngineChip__factory_1.EngineChip__factory.connect(address, provider);
|
|
214
|
+
}
|
|
215
|
+
function createEngineChipService(signerOrProvider, address) {
|
|
216
|
+
return new EngineChipService_1.EngineChipService(signerOrProvider, address);
|
|
217
|
+
}
|
|
218
|
+
//
|
|
219
|
+
// ***** WrappedNativeEngineChipHelper *****
|
|
220
|
+
//
|
|
221
|
+
function connectToWrappedNativeEngineChipHelperForSigner(signer, address) {
|
|
222
|
+
return WrappedNativeEngineChipHelper__factory_1.WrappedNativeEngineChipHelper__factory.connect(address, signer);
|
|
223
|
+
}
|
|
224
|
+
function connectToWrappedNativeEngineChipHelper(provider, address) {
|
|
225
|
+
return WrappedNativeEngineChipHelper__factory_1.WrappedNativeEngineChipHelper__factory.connect(address, provider);
|
|
226
|
+
}
|
|
227
|
+
function createWrappedNativeEngineChipHelperService(signerOrProvider, address) {
|
|
228
|
+
return new WrappedNativeEngineChipHelperService_1.WrappedNativeEngineChipHelperService(signerOrProvider, address);
|
|
229
|
+
}
|