lynx-client 0.0.4 → 0.0.6
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 -2
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
- package/dist/cjs/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
- package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
- package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
- package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +10 -2
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
- package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
- package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
- package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
- package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
- package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
- package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +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;AAG/D,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;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,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAG7D,4BAA4B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,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AAiB;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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Signer, Provider } from "ethers";
|
|
2
|
+
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
|
+
export declare class LexPoolV1Service implements ILexPoolV1Service {
|
|
4
|
+
private lexPoolContract;
|
|
5
|
+
initialization: ILexPoolV1FunctionsGroup_Initialization;
|
|
6
|
+
adminConfiguration: ILexPoolV1FunctionsGroup_AdminConfiguration;
|
|
7
|
+
userDeposits: ILexPoolV1FunctionsGroup_UserDeposits;
|
|
8
|
+
userRedeems: ILexPoolV1FunctionsGroup_UserRedeems;
|
|
9
|
+
processing: ILexPoolV1FunctionsGroup_Processing;
|
|
10
|
+
epochManagement: ILexPoolV1FunctionsGroup_EpochManagement;
|
|
11
|
+
tradingFloorInteraction: ILexPoolV1FunctionsGroup_TradingFloorInteraction;
|
|
12
|
+
viewFunctions: ILexPoolV1FunctionsGroup_ViewFunctions;
|
|
13
|
+
stateVariables: ILexPoolV1FunctionsGroup_StateVariables;
|
|
14
|
+
erc20: ILexPoolV1FunctionsGroup_ERC20;
|
|
15
|
+
constants: ILexPoolV1FunctionsGroup_Constants;
|
|
16
|
+
contractInfo: ILexPoolV1FunctionsGroup_ContractInfo;
|
|
17
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
18
|
+
private createViewFunctionsGroup;
|
|
19
|
+
private createStateVariablesGroup;
|
|
20
|
+
private createERC20Group;
|
|
21
|
+
private createConstantsGroup;
|
|
22
|
+
private createContractInfoGroup;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=LexPoolV1Service.d.ts.map
|
|
@@ -0,0 +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,CAAA;AAGpD,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,EAItC,MAAM,qBAAqB,CAAA;AA6K5B,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,OAAO,CAAC,eAAe,CAAW;IAE3B,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;gBAE9C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAiChE,OAAO,CAAC,wBAAwB;IAoChC,OAAO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LexPoolV1Service = void 0;
|
|
4
|
+
const LexPoolV1__factory_1 = require("../../typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory");
|
|
5
|
+
class LexPoolV1FunctionsGroup_Initialization {
|
|
6
|
+
constructor(contract) {
|
|
7
|
+
this.contract = contract;
|
|
8
|
+
}
|
|
9
|
+
async _become(proxy) {
|
|
10
|
+
return this.contract._become(proxy);
|
|
11
|
+
}
|
|
12
|
+
async initialize(underlying, tradingFloor, epochDuration) {
|
|
13
|
+
return this.contract.initialize(underlying, tradingFloor, epochDuration);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class LexPoolV1FunctionsGroup_AdminConfiguration {
|
|
17
|
+
constructor(contract) {
|
|
18
|
+
this.contract = contract;
|
|
19
|
+
}
|
|
20
|
+
async setPoolAccountant(poolAccountant) {
|
|
21
|
+
return this.contract.setPoolAccountant(poolAccountant);
|
|
22
|
+
}
|
|
23
|
+
async setPnlRole(pnl) {
|
|
24
|
+
return this.contract.setPnlRole(pnl);
|
|
25
|
+
}
|
|
26
|
+
async setMaxExtraWithdrawalAmountF(maxExtra) {
|
|
27
|
+
return this.contract.setMaxExtraWithdrawalAmountF(maxExtra);
|
|
28
|
+
}
|
|
29
|
+
async setEpochsDelayDeposit(delay) {
|
|
30
|
+
return this.contract.setEpochsDelayDeposit(delay);
|
|
31
|
+
}
|
|
32
|
+
async setEpochsDelayRedeem(delay) {
|
|
33
|
+
return this.contract.setEpochsDelayRedeem(delay);
|
|
34
|
+
}
|
|
35
|
+
async setEpochDuration(duration) {
|
|
36
|
+
return this.contract.setEpochDuration(duration);
|
|
37
|
+
}
|
|
38
|
+
async setMinDepositAmount(amount) {
|
|
39
|
+
return this.contract.setMinDepositAmount(amount);
|
|
40
|
+
}
|
|
41
|
+
async toggleImmediateDepositAllowed() {
|
|
42
|
+
return this.contract.toggleImmediateDepositAllowed();
|
|
43
|
+
}
|
|
44
|
+
async reduceReserves(to) {
|
|
45
|
+
const result = await this.contract.reduceReserves.staticCall(to);
|
|
46
|
+
return {
|
|
47
|
+
interestShare: result[0],
|
|
48
|
+
totalFundingShare: result[1],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
class LexPoolV1FunctionsGroup_UserDeposits {
|
|
53
|
+
constructor(contract) {
|
|
54
|
+
this.contract = contract;
|
|
55
|
+
}
|
|
56
|
+
async immediateDeposit(depositAmount, domain, referralCode) {
|
|
57
|
+
return this.contract.immediateDeposit(depositAmount, domain, referralCode);
|
|
58
|
+
}
|
|
59
|
+
async requestDeposit(amount, minAmountOut, domain, referralCode) {
|
|
60
|
+
return this.contract.requestDeposit(amount, minAmountOut, domain, referralCode);
|
|
61
|
+
}
|
|
62
|
+
async requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode) {
|
|
63
|
+
return this.contract.requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
class LexPoolV1FunctionsGroup_UserRedeems {
|
|
67
|
+
constructor(contract) {
|
|
68
|
+
this.contract = contract;
|
|
69
|
+
}
|
|
70
|
+
async requestRedeem(amount, minAmountOut) {
|
|
71
|
+
return this.contract.requestRedeem(amount, minAmountOut);
|
|
72
|
+
}
|
|
73
|
+
async requestRedeemViaIntent(user, amount, minAmountOut) {
|
|
74
|
+
return this.contract.requestRedeemViaIntent(user, amount, minAmountOut);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
class LexPoolV1FunctionsGroup_Processing {
|
|
78
|
+
constructor(contract) {
|
|
79
|
+
this.contract = contract;
|
|
80
|
+
}
|
|
81
|
+
async processDeposit(users) {
|
|
82
|
+
const result = await this.contract.processDeposit.staticCall(users);
|
|
83
|
+
return {
|
|
84
|
+
amountDeposited: result[0],
|
|
85
|
+
amountCanceled: result[1],
|
|
86
|
+
counterDeposited: result[2],
|
|
87
|
+
counterCanceled: result[3],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
async processRedeems(users) {
|
|
91
|
+
const result = await this.contract.processRedeems.staticCall(users);
|
|
92
|
+
return {
|
|
93
|
+
amountRedeemed: result[0],
|
|
94
|
+
amountCanceled: result[1],
|
|
95
|
+
counterRedeemed: result[2],
|
|
96
|
+
counterCanceled: result[3],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
async cancelDeposits(users, epochs) {
|
|
100
|
+
return this.contract.cancelDeposits(users, epochs);
|
|
101
|
+
}
|
|
102
|
+
async cancelRedeems(users, epochs) {
|
|
103
|
+
return this.contract.cancelRedeems(users, epochs);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
class LexPoolV1FunctionsGroup_EpochManagement {
|
|
107
|
+
constructor(contract) {
|
|
108
|
+
this.contract = contract;
|
|
109
|
+
}
|
|
110
|
+
async nextEpoch(totalUnrealizedPricePnL) {
|
|
111
|
+
return this.contract.nextEpoch.staticCall(totalUnrealizedPricePnL);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
class LexPoolV1FunctionsGroup_TradingFloorInteraction {
|
|
115
|
+
constructor(contract) {
|
|
116
|
+
this.contract = contract;
|
|
117
|
+
}
|
|
118
|
+
async sendAssetToTrader(to, amount) {
|
|
119
|
+
return this.contract.sendAssetToTrader(to, amount);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
class LexPoolV1Service {
|
|
123
|
+
constructor(signerOrProvider, address) {
|
|
124
|
+
this.lexPoolContract = LexPoolV1__factory_1.LexPoolV1__factory.connect(address, signerOrProvider);
|
|
125
|
+
this.initialization = new LexPoolV1FunctionsGroup_Initialization(this.lexPoolContract);
|
|
126
|
+
this.adminConfiguration = new LexPoolV1FunctionsGroup_AdminConfiguration(this.lexPoolContract);
|
|
127
|
+
this.userDeposits = new LexPoolV1FunctionsGroup_UserDeposits(this.lexPoolContract);
|
|
128
|
+
this.userRedeems = new LexPoolV1FunctionsGroup_UserRedeems(this.lexPoolContract);
|
|
129
|
+
this.processing = new LexPoolV1FunctionsGroup_Processing(this.lexPoolContract);
|
|
130
|
+
this.epochManagement = new LexPoolV1FunctionsGroup_EpochManagement(this.lexPoolContract);
|
|
131
|
+
this.tradingFloorInteraction = new LexPoolV1FunctionsGroup_TradingFloorInteraction(this.lexPoolContract);
|
|
132
|
+
// Initialize remaining groups with direct method mappings
|
|
133
|
+
this.viewFunctions = this.createViewFunctionsGroup();
|
|
134
|
+
this.stateVariables = this.createStateVariablesGroup();
|
|
135
|
+
this.erc20 = this.createERC20Group();
|
|
136
|
+
this.constants = this.createConstantsGroup();
|
|
137
|
+
this.contractInfo = this.createContractInfoGroup();
|
|
138
|
+
}
|
|
139
|
+
createViewFunctionsGroup() {
|
|
140
|
+
return {
|
|
141
|
+
calcNextEpochStartMin: () => this.lexPoolContract.calcNextEpochStartMin(),
|
|
142
|
+
currentBalanceInternal: () => this.lexPoolContract.currentBalanceInternal(),
|
|
143
|
+
underlyingBalanceForExchangeRate: () => this.lexPoolContract.underlyingBalanceForExchangeRate(),
|
|
144
|
+
virtualBalanceForUtilization: (extraAmount, unrealizedFunding) => this.lexPoolContract["virtualBalanceForUtilization(uint256,int256)"](extraAmount, unrealizedFunding),
|
|
145
|
+
virtualBalanceForUtilizationCurrent: () => this.lexPoolContract["virtualBalanceForUtilization()"](),
|
|
146
|
+
currentVirtualUtilization: (totalBorrows, interestShare, unrealizedFunding) => this.lexPoolContract["currentVirtualUtilization(uint256,uint256,int256)"](totalBorrows, interestShare, unrealizedFunding),
|
|
147
|
+
currentVirtualUtilizationSimple: () => this.lexPoolContract["currentVirtualUtilization()"](),
|
|
148
|
+
isUtilizationForLPsValid: () => this.lexPoolContract.isUtilizationForLPsValid(),
|
|
149
|
+
underlyingAmountToOwnAmount: (underlyingAmount) => this.lexPoolContract.underlyingAmountToOwnAmount(underlyingAmount),
|
|
150
|
+
getDepositorsCount: (epoch) => this.lexPoolContract.getDepositorsCount(epoch),
|
|
151
|
+
getRedeemersCount: (epoch) => this.lexPoolContract.getRedeemersCount(epoch),
|
|
152
|
+
getDepositors: (epoch, indexFrom, count) => this.lexPoolContract.getDepositors(epoch, indexFrom, count),
|
|
153
|
+
getRedeemers: (epoch, indexFrom, count) => this.lexPoolContract.getRedeemers(epoch, indexFrom, count),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
createStateVariablesGroup() {
|
|
157
|
+
return {
|
|
158
|
+
// Configuration
|
|
159
|
+
underlyingDecimals: () => this.lexPoolContract.underlyingDecimals(),
|
|
160
|
+
epochDuration: () => this.lexPoolContract.epochDuration(),
|
|
161
|
+
epochsDelayDeposit: () => this.lexPoolContract.epochsDelayDeposit(),
|
|
162
|
+
epochsDelayRedeem: () => this.lexPoolContract.epochsDelayRedeem(),
|
|
163
|
+
minDepositAmount: () => this.lexPoolContract.minDepositAmount(),
|
|
164
|
+
maxExtraWithdrawalAmountF: () => this.lexPoolContract.maxExtraWithdrawalAmountF(),
|
|
165
|
+
immediateDepositAllowed: () => this.lexPoolContract.immediateDepositAllowed(),
|
|
166
|
+
// Epoch state
|
|
167
|
+
currentEpoch: () => this.lexPoolContract.currentEpoch(),
|
|
168
|
+
nextEpochStartMin: () => this.lexPoolContract.nextEpochStartMin(),
|
|
169
|
+
currentExchangeRate: () => this.lexPoolContract.currentExchangeRate(),
|
|
170
|
+
// Pending amounts
|
|
171
|
+
pendingDepositAmount: () => this.lexPoolContract.pendingDepositAmount(),
|
|
172
|
+
pendingWithdrawalAmount: () => this.lexPoolContract.pendingWithdrawalAmount(),
|
|
173
|
+
// Contract references
|
|
174
|
+
poolAccountant: () => this.lexPoolContract.poolAccountant(),
|
|
175
|
+
pnlRole: () => this.lexPoolContract.pnlRole(),
|
|
176
|
+
underlying: () => this.lexPoolContract.underlying(),
|
|
177
|
+
registry: () => this.lexPoolContract.registry(),
|
|
178
|
+
tradingFloor: () => this.lexPoolContract.tradingFloor(),
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
createERC20Group() {
|
|
182
|
+
return {
|
|
183
|
+
name: () => this.lexPoolContract.name(),
|
|
184
|
+
symbol: () => this.lexPoolContract.symbol(),
|
|
185
|
+
decimals: () => this.lexPoolContract.decimals(),
|
|
186
|
+
totalSupply: () => this.lexPoolContract.totalSupply(),
|
|
187
|
+
balanceOf: (account) => this.lexPoolContract.balanceOf(account),
|
|
188
|
+
allowance: (owner, spender) => this.lexPoolContract.allowance(owner, spender),
|
|
189
|
+
transfer: (to, amount) => this.lexPoolContract.transfer(to, amount),
|
|
190
|
+
transferFrom: (from, to, amount) => this.lexPoolContract.transferFrom(from, to, amount),
|
|
191
|
+
approve: (spender, amount) => this.lexPoolContract.approve(spender, amount),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
createConstantsGroup() {
|
|
195
|
+
return {
|
|
196
|
+
SELF_UNIT_SCALE: () => this.lexPoolContract.SELF_UNIT_SCALE(),
|
|
197
|
+
PRECISION: () => this.lexPoolContract.PRECISION(),
|
|
198
|
+
FRACTION_SCALE: () => this.lexPoolContract.FRACTION_SCALE(),
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
createContractInfoGroup() {
|
|
202
|
+
return {
|
|
203
|
+
admin: () => this.lexPoolContract.admin(),
|
|
204
|
+
pendingAdmin: () => this.lexPoolContract.pendingAdmin(),
|
|
205
|
+
implementation: () => this.lexPoolContract.implementation(),
|
|
206
|
+
pendingImplementation: () => this.lexPoolContract.pendingImplementation(),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
exports.LexPoolV1Service = LexPoolV1Service;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { 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, TProcessDepositResult, TProcessRedeemResult, TReduceReservesResult, } from "./ILexPoolV1Service";
|
|
2
|
+
export { LexPoolV1Service } from "./LexPoolV1Service";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexPoolV1Service/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,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,EACrC,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LexPoolV1Service = void 0;
|
|
4
|
+
var LexPoolV1Service_1 = require("./LexPoolV1Service");
|
|
5
|
+
Object.defineProperty(exports, "LexPoolV1Service", { enumerable: true, get: function () { return LexPoolV1Service_1.LexPoolV1Service; } });
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ContractTransactionResponse } from "ethers";
|
|
2
|
+
import { PairPriceStruct } from "../../typechain/contracts/Lynx/Lex/PNLR/PNLR";
|
|
3
|
+
export type TPairPriceStruct = PairPriceStruct;
|
|
4
|
+
export interface IPNLRFunctionsGroup_EpochManagement {
|
|
5
|
+
advanceEpoch(pool: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<ContractTransactionResponse>;
|
|
6
|
+
advanceEpochAllowMissingZeroOI(pool: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<ContractTransactionResponse>;
|
|
7
|
+
}
|
|
8
|
+
export interface IPNLRFunctionsGroup_PnLCalculation {
|
|
9
|
+
calculateUnrealizedPricePnl(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<bigint>;
|
|
10
|
+
calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<bigint>;
|
|
11
|
+
pairsTradersPricePnl(poolAccountant: string, pairsPrices: TPairPriceStruct[], value?: bigint): Promise<bigint>;
|
|
12
|
+
pairsTradersPricePnlWithMissingPairs(poolAccountant: string, pairsPrices: TPairPriceStruct[], allowMissingZeroOI: boolean, value?: bigint): Promise<bigint>;
|
|
13
|
+
}
|
|
14
|
+
export interface IPNLRFunctionsGroup_PermissionManagement {
|
|
15
|
+
allowEpochAdvancingAccount(account: string): Promise<ContractTransactionResponse>;
|
|
16
|
+
disallowEpochAdvancingAccount(account: string): Promise<ContractTransactionResponse>;
|
|
17
|
+
isAllowedToTrigger(account: string): Promise<boolean>;
|
|
18
|
+
getAllTriggerPermissionedAccounts(): Promise<string[]>;
|
|
19
|
+
}
|
|
20
|
+
export interface IPNLRFunctionsGroup_Configuration {
|
|
21
|
+
maxPriceDelay(): Promise<bigint>;
|
|
22
|
+
setMaxPriceDelay(delay: bigint): Promise<ContractTransactionResponse>;
|
|
23
|
+
priceValidator(): Promise<string>;
|
|
24
|
+
priceValidatorType(): Promise<bigint>;
|
|
25
|
+
}
|
|
26
|
+
export interface IPNLRFunctionsGroup_AdminManagement {
|
|
27
|
+
_setPendingAdmin(newPendingAdmin: string): Promise<ContractTransactionResponse>;
|
|
28
|
+
_acceptAdmin(): Promise<ContractTransactionResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface IPNLRFunctionsGroup_ContractInfo {
|
|
31
|
+
admin(): Promise<string>;
|
|
32
|
+
pendingAdmin(): Promise<string>;
|
|
33
|
+
getContractName(): Promise<string>;
|
|
34
|
+
getContractVersion(): Promise<string>;
|
|
35
|
+
}
|
|
36
|
+
export interface IPNLRFunctionsGroup_Constants {
|
|
37
|
+
CONTRACT_NAME(): Promise<string>;
|
|
38
|
+
CONTRACT_VERSION(): Promise<string>;
|
|
39
|
+
}
|
|
40
|
+
export interface IPNLRService {
|
|
41
|
+
epochManagement: IPNLRFunctionsGroup_EpochManagement;
|
|
42
|
+
pnlCalculation: IPNLRFunctionsGroup_PnLCalculation;
|
|
43
|
+
permissionManagement: IPNLRFunctionsGroup_PermissionManagement;
|
|
44
|
+
configuration: IPNLRFunctionsGroup_Configuration;
|
|
45
|
+
adminManagement: IPNLRFunctionsGroup_AdminManagement;
|
|
46
|
+
contractInfo: IPNLRFunctionsGroup_ContractInfo;
|
|
47
|
+
constants: IPNLRFunctionsGroup_Constants;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=IPNLRService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPNLRService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PNLRService/IPN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1,14 @@
|
|
|
1
|
+
import { Signer, Provider } from "ethers";
|
|
2
|
+
import { IPNLRService, IPNLRFunctionsGroup_EpochManagement, IPNLRFunctionsGroup_PnLCalculation, IPNLRFunctionsGroup_PermissionManagement, IPNLRFunctionsGroup_Configuration, IPNLRFunctionsGroup_AdminManagement, IPNLRFunctionsGroup_ContractInfo, IPNLRFunctionsGroup_Constants } from "./IPNLRService";
|
|
3
|
+
export declare class PNLRService implements IPNLRService {
|
|
4
|
+
private pnlrContract;
|
|
5
|
+
epochManagement: IPNLRFunctionsGroup_EpochManagement;
|
|
6
|
+
pnlCalculation: IPNLRFunctionsGroup_PnLCalculation;
|
|
7
|
+
permissionManagement: IPNLRFunctionsGroup_PermissionManagement;
|
|
8
|
+
configuration: IPNLRFunctionsGroup_Configuration;
|
|
9
|
+
adminManagement: IPNLRFunctionsGroup_AdminManagement;
|
|
10
|
+
contractInfo: IPNLRFunctionsGroup_ContractInfo;
|
|
11
|
+
constants: IPNLRFunctionsGroup_Constants;
|
|
12
|
+
constructor(signerOrProvider: Signer | Provider, address: string);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PNLRService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PNLRService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PNLRService/PNLRService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,QAAQ,CAAC;AAGvE,OAAO,EACL,YAAY,EACZ,mCAAmC,EACnC,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,EACjC,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAE9B,MAAM,gBAAgB,CAAC;AAwLxB,qBAAa,WAAY,YAAW,YAAY;IAC9C,OAAO,CAAC,YAAY,CAAO;IAEpB,eAAe,EAAE,mCAAmC,CAAC;IACrD,cAAc,EAAE,kCAAkC,CAAC;IACnD,oBAAoB,EAAE,wCAAwC,CAAC;IAC/D,aAAa,EAAE,iCAAiC,CAAC;IACjD,eAAe,EAAE,mCAAmC,CAAC;IACrD,YAAY,EAAE,gCAAgC,CAAC;IAC/C,SAAS,EAAE,6BAA6B,CAAC;gBAEpC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;CAqBjE"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PNLRService = void 0;
|
|
4
|
+
const PNLR__factory_1 = require("../../typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory");
|
|
5
|
+
class PNLRFunctionsGroup_EpochManagement {
|
|
6
|
+
constructor(contract) {
|
|
7
|
+
this.contract = contract;
|
|
8
|
+
}
|
|
9
|
+
async advanceEpoch(pool, pairsPrices, value) {
|
|
10
|
+
const options = value ? { value } : {};
|
|
11
|
+
return this.contract.advanceEpoch(pool, pairsPrices, options);
|
|
12
|
+
}
|
|
13
|
+
async advanceEpochAllowMissingZeroOI(pool, pairsPrices, value) {
|
|
14
|
+
const options = value ? { value } : {};
|
|
15
|
+
return this.contract.advanceEpochAllowMissingZeroOI(pool, pairsPrices, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
class PNLRFunctionsGroup_PnLCalculation {
|
|
19
|
+
constructor(contract) {
|
|
20
|
+
this.contract = contract;
|
|
21
|
+
}
|
|
22
|
+
async calculateUnrealizedPricePnl(poolAccountant, pairsPrices, value) {
|
|
23
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
24
|
+
return this.contract.calculateUnrealizedPricePnl.staticCall(poolAccountant, pairsPrices);
|
|
25
|
+
}
|
|
26
|
+
async calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant, pairsPrices, value) {
|
|
27
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
28
|
+
return this.contract.calculateUnrealizedPricePnlAllowMissingZeroOI.staticCall(poolAccountant, pairsPrices);
|
|
29
|
+
}
|
|
30
|
+
async pairsTradersPricePnl(poolAccountant, pairsPrices, value) {
|
|
31
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
32
|
+
return this.contract.pairsTradersPricePnl.staticCall(poolAccountant, pairsPrices);
|
|
33
|
+
}
|
|
34
|
+
async pairsTradersPricePnlWithMissingPairs(poolAccountant, pairsPrices, allowMissingZeroOI, value) {
|
|
35
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
36
|
+
return this.contract.pairsTradersPricePnlWithMissingPairs.staticCall(poolAccountant, pairsPrices, allowMissingZeroOI);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class PNLRFunctionsGroup_PermissionManagement {
|
|
40
|
+
constructor(contract) {
|
|
41
|
+
this.contract = contract;
|
|
42
|
+
}
|
|
43
|
+
async allowEpochAdvancingAccount(account) {
|
|
44
|
+
return this.contract.allowEpochAdvancingAccount(account);
|
|
45
|
+
}
|
|
46
|
+
async disallowEpochAdvancingAccount(account) {
|
|
47
|
+
return this.contract.disallowEpochAdvancingAccount(account);
|
|
48
|
+
}
|
|
49
|
+
async isAllowedToTrigger(account) {
|
|
50
|
+
return this.contract.isAllowedToTrigger(account);
|
|
51
|
+
}
|
|
52
|
+
async getAllTriggerPermissionedAccounts() {
|
|
53
|
+
return this.contract.getAllTriggerPermissionedAccounts();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class PNLRFunctionsGroup_Configuration {
|
|
57
|
+
constructor(contract) {
|
|
58
|
+
this.contract = contract;
|
|
59
|
+
}
|
|
60
|
+
async maxPriceDelay() {
|
|
61
|
+
return this.contract.maxPriceDelay();
|
|
62
|
+
}
|
|
63
|
+
async setMaxPriceDelay(delay) {
|
|
64
|
+
return this.contract.setMaxPriceDelay(delay);
|
|
65
|
+
}
|
|
66
|
+
async priceValidator() {
|
|
67
|
+
return this.contract.priceValidator();
|
|
68
|
+
}
|
|
69
|
+
async priceValidatorType() {
|
|
70
|
+
return this.contract.priceValidatorType();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
class PNLRFunctionsGroup_ContractInfo {
|
|
74
|
+
constructor(contract) {
|
|
75
|
+
this.contract = contract;
|
|
76
|
+
}
|
|
77
|
+
async admin() {
|
|
78
|
+
return this.contract.admin();
|
|
79
|
+
}
|
|
80
|
+
async pendingAdmin() {
|
|
81
|
+
return this.contract.pendingAdmin();
|
|
82
|
+
}
|
|
83
|
+
async getContractName() {
|
|
84
|
+
return this.contract.getContractName();
|
|
85
|
+
}
|
|
86
|
+
async getContractVersion() {
|
|
87
|
+
return this.contract.getContractVersion();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
class PNLRFunctionsGroup_AdminManagement {
|
|
91
|
+
constructor(contract) {
|
|
92
|
+
this.contract = contract;
|
|
93
|
+
}
|
|
94
|
+
async _setPendingAdmin(newPendingAdmin) {
|
|
95
|
+
return this.contract._setPendingAdmin(newPendingAdmin);
|
|
96
|
+
}
|
|
97
|
+
async _acceptAdmin() {
|
|
98
|
+
return this.contract._acceptAdmin();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
class PNLRFunctionsGroup_Constants {
|
|
102
|
+
constructor(contract) {
|
|
103
|
+
this.contract = contract;
|
|
104
|
+
}
|
|
105
|
+
async CONTRACT_NAME() {
|
|
106
|
+
return this.contract.CONTRACT_NAME();
|
|
107
|
+
}
|
|
108
|
+
async CONTRACT_VERSION() {
|
|
109
|
+
return this.contract.CONTRACT_VERSION();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
class PNLRService {
|
|
113
|
+
constructor(signerOrProvider, address) {
|
|
114
|
+
this.pnlrContract = PNLR__factory_1.PNLR__factory.connect(address, signerOrProvider);
|
|
115
|
+
this.epochManagement = new PNLRFunctionsGroup_EpochManagement(this.pnlrContract);
|
|
116
|
+
this.pnlCalculation = new PNLRFunctionsGroup_PnLCalculation(this.pnlrContract);
|
|
117
|
+
this.permissionManagement = new PNLRFunctionsGroup_PermissionManagement(this.pnlrContract);
|
|
118
|
+
this.configuration = new PNLRFunctionsGroup_Configuration(this.pnlrContract);
|
|
119
|
+
this.adminManagement = new PNLRFunctionsGroup_AdminManagement(this.pnlrContract);
|
|
120
|
+
this.contractInfo = new PNLRFunctionsGroup_ContractInfo(this.pnlrContract);
|
|
121
|
+
this.constants = new PNLRFunctionsGroup_Constants(this.pnlrContract);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.PNLRService = PNLRService;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { IPNLRService, IPNLRFunctionsGroup_EpochManagement, IPNLRFunctionsGroup_PnLCalculation, IPNLRFunctionsGroup_PermissionManagement, IPNLRFunctionsGroup_Configuration, IPNLRFunctionsGroup_AdminManagement, IPNLRFunctionsGroup_ContractInfo, IPNLRFunctionsGroup_Constants, TPairPriceStruct } from "./IPNLRService";
|
|
2
|
+
export { PNLRService } from "./PNLRService";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PNLRService/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,YAAY,EACZ,mCAAmC,EACnC,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,EACjC,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PNLRService = void 0;
|
|
4
|
+
var PNLRService_1 = require("./PNLRService");
|
|
5
|
+
Object.defineProperty(exports, "PNLRService", { enumerable: true, get: function () { return PNLRService_1.PNLRService; } });
|