lynx-client 0.0.5 → 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.
Files changed (131) hide show
  1. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  2. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  3. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  4. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  5. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  6. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  7. package/dist/cjs/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  8. package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  9. package/dist/cjs/lib/contractsIntegration/PNLRService/index.js +5 -0
  10. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  11. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  12. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  13. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  14. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  15. package/dist/cjs/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  16. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  17. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  18. package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  19. package/dist/cjs/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  20. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  23. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  24. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  25. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  26. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  27. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  28. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  29. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  30. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  31. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  32. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  33. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  34. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  35. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  36. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  37. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  38. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  39. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  40. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  41. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  42. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  43. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  44. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  45. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  46. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  47. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  48. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  49. package/dist/esm/lib/contractsIntegration/PNLRService/index.js +5 -0
  50. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  51. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  52. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  53. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  54. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  55. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  56. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  57. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  58. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  59. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  60. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  61. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  62. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  63. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  64. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  65. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  66. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  67. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  68. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  69. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  70. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  71. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  72. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  73. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  74. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  75. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  76. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  77. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  78. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  79. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  80. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  81. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  82. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  83. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  84. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  85. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  88. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  89. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  90. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  91. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  92. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  93. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  94. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  95. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  96. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  97. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  98. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  99. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  100. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  101. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  102. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  103. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  104. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  105. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  106. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  107. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  109. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  110. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  111. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  112. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  113. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  114. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  115. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  116. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  117. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  118. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  119. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  120. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  121. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  122. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  123. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  124. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  125. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  126. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  127. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  128. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  129. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  130. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  131. package/package.json +1 -1
@@ -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/IPNLRService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAE9E,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAA;AAE9C,MAAM,WAAW,mCAAmC;IAClD,YAAY,CACV,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,gBAAgB,EAAE,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAEvC,8BAA8B,CAC5B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,gBAAgB,EAAE,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,kCAAkC;IAEjD,2BAA2B,CACzB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,gBAAgB,EAAE,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CA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KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACtC;AAED,MAAM,WAAW,6BAA6B;IAC5C,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAChC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,mCAAmC,CAAA;IACpD,cAAc,EAAE,kCAAkC,CAAA;IAClD,oBAAoB,EAAE,wCAAwC,CAAA;IAC9D,aAAa,EAAE,iCAAiC,CAAA;IAChD,eAAe,EAAE,mCAAmC,CAAA;IACpD,YAAY,EAAE,gCAAgC,CAAA;IAC9C,SAAS,EAAE,6BAA6B,CAAA;CACzC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +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; } });
@@ -0,0 +1,160 @@
1
+ import { BytesLike, ContractTransactionResponse } from "ethers";
2
+ export type TAccrueFundingValuesOutput = {
3
+ freshened: boolean;
4
+ valueLong: bigint;
5
+ valueShort: bigint;
6
+ protocolFundingShare: bigint;
7
+ };
8
+ export type TFundingIndicesCalculationOutput = {
9
+ indexLongChange: bigint;
10
+ indexShortChange: bigint;
11
+ protocolFundingShare: bigint;
12
+ };
13
+ export type TTradeClosingValuesOutput = {
14
+ tradeValue: bigint;
15
+ safeClosingFee: bigint;
16
+ profitPrecision: bigint;
17
+ interest: bigint;
18
+ funding: bigint;
19
+ };
20
+ export type TDynamicFeesOutput = {
21
+ interest: bigint;
22
+ funding: bigint;
23
+ };
24
+ export interface IPoolAccountantV1FunctionsGroup_TradeUtilities {
25
+ adjustClosePrice(closePrice: bigint, tp: bigint, long: boolean): Promise<bigint>;
26
+ generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint): Promise<string>;
27
+ }
28
+ export interface IPoolAccountantV1FunctionsGroup_Verification {
29
+ verifyLeveragedPosition(pairIndex: bigint, collateral: bigint, leverage: bigint): Promise<bigint>;
30
+ verifyOpenFee(pairIndex: bigint, leveragedPosition: bigint): Promise<{
31
+ openFee: bigint;
32
+ lexPartFee: bigint;
33
+ }>;
34
+ verifyPerformanceFee(pairIndex: bigint, collateral: bigint): Promise<void>;
35
+ verifyMaxPercentProfit(openPrice: bigint, targetPrice: bigint, leverage: bigint, long: boolean): Promise<void>;
36
+ verifyUtilizationForTraders(totalBorrows: bigint, totalReserves: bigint, unrealizedFunding: bigint): Promise<void>;
37
+ }
38
+ export interface IPoolAccountantV1FunctionsGroup_FeeCalculations {
39
+ calcClosingFee(pairId: bigint, collateral: bigint, leverage: bigint): Promise<bigint>;
40
+ calcPerformanceFee(pairId: bigint, collateral: bigint, profitPrecision: bigint): Promise<bigint>;
41
+ calcBorrowAmount(collateral: bigint, leverage: bigint, long: boolean, openPrice: bigint, tp: bigint): Promise<bigint>;
42
+ calcTradeDynamicFees(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint, openPrice: bigint, tp: bigint): Promise<TDynamicFeesOutput>;
43
+ }
44
+ export interface IPoolAccountantV1FunctionsGroup_Funding {
45
+ accrueFunding(pairId: bigint): Promise<{
46
+ valueLong: bigint;
47
+ valueShort: bigint;
48
+ protocolFundingShare: bigint;
49
+ }>;
50
+ calcAccrueFundingValues(pairId: bigint): Promise<TAccrueFundingValuesOutput>;
51
+ fundingIndicesCalculation(oiLong: bigint, oiShort: bigint, fundingRate: bigint, timeDiff: bigint): Promise<TFundingIndicesCalculationOutput>;
52
+ getTradeFunding(positionId: BytesLike, pairId: bigint, long: boolean, collateral: bigint, leverage: bigint): Promise<bigint>;
53
+ getTradeFundingPure(accFundingPerOi: bigint, endAccFundingPerOi: bigint, collateral: bigint, leverage: bigint): Promise<bigint>;
54
+ getAccFundingLong(pairIndex: bigint): Promise<bigint>;
55
+ getAccFundingShort(pairIndex: bigint): Promise<bigint>;
56
+ getAccFundingUpdateBlock(pairIndex: bigint): Promise<bigint>;
57
+ getTradeInitialAccFundingPerOi(positionId: BytesLike): Promise<bigint>;
58
+ }
59
+ export interface IPoolAccountantV1FunctionsGroup_Interest {
60
+ getTradeInterest(positionId: BytesLike, borrowAmount: bigint): Promise<bigint>;
61
+ getTradeInterestPure(tradeBorrowIndex: bigint, currentBorrowIndex: bigint, borrowAmount: bigint, alreadyAccumulated: bigint): Promise<bigint>;
62
+ getTradeInitialAccBorrowIndex(positionId: BytesLike): Promise<bigint>;
63
+ accrueInterest(availableCash: bigint): Promise<{
64
+ totalInterestNew: bigint;
65
+ interestShareNew: bigint;
66
+ borrowIndexNew: bigint;
67
+ }>;
68
+ }
69
+ export interface IPoolAccountantV1FunctionsGroup_Liquidation {
70
+ getTradeLiquidationPrice(positionId: BytesLike, pairId: bigint, openPrice: bigint, tp: bigint, long: boolean, collateral: bigint, leverage: bigint): Promise<bigint>;
71
+ getTradeLiquidationPriceView(openPrice: bigint, long: boolean, collateral: bigint, leverage: bigint, interest: bigint, funding: bigint, closingFee: bigint): Promise<bigint>;
72
+ }
73
+ export interface IPoolAccountantV1FunctionsGroup_TradeValues {
74
+ getTradeValueView(collateral: bigint, profitPrecision: bigint, interest: bigint, funding: bigint, closingFee: bigint, liquidation: boolean): Promise<bigint>;
75
+ getTradeClosingValues(positionId: BytesLike, pairId: bigint, collateral: bigint, leverage: bigint, long: boolean, openPrice: bigint, tp: bigint, closePrice: bigint, isLiquidation: boolean): Promise<TTradeClosingValuesOutput>;
76
+ }
77
+ export interface IPoolAccountantV1FunctionsGroup_PairManagement {
78
+ pairTotalOpenInterest(pairIndex: bigint): Promise<bigint>;
79
+ calcAbsoluteSkew(openInterestLong: bigint, openInterestShort: bigint, additionIsLong: boolean, additionOpenInterest: bigint): Promise<bigint>;
80
+ pricePnL(pairId: bigint, price: bigint): Promise<bigint>;
81
+ }
82
+ export interface IPoolAccountantV1FunctionsGroup_AdminConfiguration {
83
+ setTradeIncentivizer(incentivizer: string): Promise<ContractTransactionResponse>;
84
+ setMaxGainF(maxGainF: bigint): Promise<ContractTransactionResponse>;
85
+ setFrm(frm: string): Promise<ContractTransactionResponse>;
86
+ setMinOpenFee(min: bigint): Promise<ContractTransactionResponse>;
87
+ setLexPartF(partF: bigint): Promise<ContractTransactionResponse>;
88
+ setFundingRateMax(maxValue: bigint): Promise<ContractTransactionResponse>;
89
+ setLiquidationThresholdF(threshold: bigint): Promise<ContractTransactionResponse>;
90
+ setLiquidationFeeF(fee: bigint): Promise<ContractTransactionResponse>;
91
+ setIrm(irm: string): Promise<ContractTransactionResponse>;
92
+ setIrmHard(irm: string): Promise<ContractTransactionResponse>;
93
+ setInterestShareFactor(factor: bigint): Promise<ContractTransactionResponse>;
94
+ setFundingShareFactor(factor: bigint): Promise<ContractTransactionResponse>;
95
+ setBorrowRateMax(rate: bigint): Promise<ContractTransactionResponse>;
96
+ setMaxTotalBorrows(maxBorrows: bigint): Promise<ContractTransactionResponse>;
97
+ setMaxVirtualUtilization(maxUtilization: bigint): Promise<ContractTransactionResponse>;
98
+ }
99
+ export interface IPoolAccountantV1FunctionsGroup_PoolInteraction {
100
+ readAndZeroReserves(): Promise<{
101
+ accumulatedInterestShare: bigint;
102
+ accFundingShare: bigint;
103
+ }>;
104
+ }
105
+ export interface IPoolAccountantV1FunctionsGroup_StateVariables {
106
+ borrowIndex(): Promise<bigint>;
107
+ borrowRateMax(): Promise<bigint>;
108
+ totalBorrows(): Promise<bigint>;
109
+ totalInterest(): Promise<bigint>;
110
+ interestShare(): Promise<bigint>;
111
+ interestShareFactor(): Promise<bigint>;
112
+ fundingRateMax(): Promise<bigint>;
113
+ fundingShare(): Promise<bigint>;
114
+ fundingShareFactor(): Promise<bigint>;
115
+ unrealizedFunding(): Promise<bigint>;
116
+ realizedFundingSurplusDeficit(): Promise<bigint>;
117
+ maxGainF(): Promise<bigint>;
118
+ liquidationFeeF(): Promise<bigint>;
119
+ liquidationThresholdF(): Promise<bigint>;
120
+ maxTotalBorrows(): Promise<bigint>;
121
+ maxVirtualUtilization(): Promise<bigint>;
122
+ minOpenFee(): Promise<bigint>;
123
+ lexPartF(): Promise<bigint>;
124
+ lexPool(): Promise<string>;
125
+ tradingFloor(): Promise<string>;
126
+ tradeIncentivizer(): Promise<string>;
127
+ frm(): Promise<string>;
128
+ irm(): Promise<string>;
129
+ underlying(): Promise<string>;
130
+ accrualBlockTimestamp(): Promise<bigint>;
131
+ }
132
+ export interface IPoolAccountantV1FunctionsGroup_ContractInfo {
133
+ admin(): Promise<string>;
134
+ pendingAdmin(): Promise<string>;
135
+ implementation(): Promise<string>;
136
+ pendingImplementation(): Promise<string>;
137
+ registry(): Promise<string>;
138
+ }
139
+ export interface IPoolAccountantV1FunctionsGroup_Constants {
140
+ ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
141
+ FRACTION_SCALE(): Promise<bigint>;
142
+ LEVERAGE_SCALE(): Promise<bigint>;
143
+ PRECISION(): Promise<bigint>;
144
+ }
145
+ export interface IPoolAccountantV1Service {
146
+ tradeUtilities: IPoolAccountantV1FunctionsGroup_TradeUtilities;
147
+ verification: IPoolAccountantV1FunctionsGroup_Verification;
148
+ feeCalculations: IPoolAccountantV1FunctionsGroup_FeeCalculations;
149
+ funding: IPoolAccountantV1FunctionsGroup_Funding;
150
+ interest: IPoolAccountantV1FunctionsGroup_Interest;
151
+ liquidation: IPoolAccountantV1FunctionsGroup_Liquidation;
152
+ tradeValues: IPoolAccountantV1FunctionsGroup_TradeValues;
153
+ pairManagement: IPoolAccountantV1FunctionsGroup_PairManagement;
154
+ adminConfiguration: IPoolAccountantV1FunctionsGroup_AdminConfiguration;
155
+ poolInteraction: IPoolAccountantV1FunctionsGroup_PoolInteraction;
156
+ stateVariables: IPoolAccountantV1FunctionsGroup_StateVariables;
157
+ contractInfo: IPoolAccountantV1FunctionsGroup_ContractInfo;
158
+ constants: IPoolAccountantV1FunctionsGroup_Constants;
159
+ }
160
+ //# sourceMappingURL=IPoolAccountantV1Service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPoolAccountantV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAA;AAG/D,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC7C,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAKD,MAAM,WAAW,8CAA8C;IAE7D,gBAAgB,CACd,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,MAAM,CAAC,CAAA;IAGlB,sBAAsB,CACpB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC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W,wBAAwB;IACvC,cAAc,EAAE,8CAA8C,CAAA;IAC9D,YAAY,EAAE,4CAA4C,CAAA;IAC1D,eAAe,EAAE,+CAA+C,CAAA;IAChE,OAAO,EAAE,uCAAuC,CAAA;IAChD,QAAQ,EAAE,wCAAwC,CAAA;IAClD,WAAW,EAAE,2CAA2C,CAAA;IACxD,WAAW,EAAE,2CAA2C,CAAA;IACxD,cAAc,EAAE,8CAA8C,CAAA;IAC9D,kBAAkB,EAAE,kDAAkD,CAAA;IACtE,eAAe,EAAE,+CAA+C,CAAA;IAChE,cAAc,EAAE,8CAA8C,CAAA;IAC9D,YAAY,EAAE,4CAA4C,CAAA;IAC1D,SAAS,EAAE,yCAAyC,CAAA;CACrD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import { Signer, Provider } from "ethers";
2
+ import { IPoolAccountantV1Service, IPoolAccountantV1FunctionsGroup_TradeUtilities, IPoolAccountantV1FunctionsGroup_Verification, IPoolAccountantV1FunctionsGroup_FeeCalculations, IPoolAccountantV1FunctionsGroup_Funding, IPoolAccountantV1FunctionsGroup_Interest, IPoolAccountantV1FunctionsGroup_Liquidation, IPoolAccountantV1FunctionsGroup_TradeValues, IPoolAccountantV1FunctionsGroup_PairManagement, IPoolAccountantV1FunctionsGroup_AdminConfiguration, IPoolAccountantV1FunctionsGroup_PoolInteraction, IPoolAccountantV1FunctionsGroup_StateVariables, IPoolAccountantV1FunctionsGroup_ContractInfo, IPoolAccountantV1FunctionsGroup_Constants } from "./IPoolAccountantV1Service";
3
+ export declare class PoolAccountantV1Service implements IPoolAccountantV1Service {
4
+ private poolAccountantContract;
5
+ tradeUtilities: IPoolAccountantV1FunctionsGroup_TradeUtilities;
6
+ verification: IPoolAccountantV1FunctionsGroup_Verification;
7
+ feeCalculations: IPoolAccountantV1FunctionsGroup_FeeCalculations;
8
+ funding: IPoolAccountantV1FunctionsGroup_Funding;
9
+ interest: IPoolAccountantV1FunctionsGroup_Interest;
10
+ liquidation: IPoolAccountantV1FunctionsGroup_Liquidation;
11
+ tradeValues: IPoolAccountantV1FunctionsGroup_TradeValues;
12
+ pairManagement: IPoolAccountantV1FunctionsGroup_PairManagement;
13
+ adminConfiguration: IPoolAccountantV1FunctionsGroup_AdminConfiguration;
14
+ poolInteraction: IPoolAccountantV1FunctionsGroup_PoolInteraction;
15
+ stateVariables: IPoolAccountantV1FunctionsGroup_StateVariables;
16
+ contractInfo: IPoolAccountantV1FunctionsGroup_ContractInfo;
17
+ constants: IPoolAccountantV1FunctionsGroup_Constants;
18
+ constructor(signerOrProvider: Signer | Provider, address: string);
19
+ private createVerificationGroup;
20
+ private createFundingGroup;
21
+ private createInterestGroup;
22
+ private createLiquidationGroup;
23
+ private createTradeValuesGroup;
24
+ private createPairManagementGroup;
25
+ private createAdminConfigurationGroup;
26
+ private createPoolInteractionGroup;
27
+ private createStateVariablesGroup;
28
+ private createContractInfoGroup;
29
+ private createConstantsGroup;
30
+ }
31
+ //# sourceMappingURL=PoolAccountantV1Service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PoolAccountantV1Service.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAa,MAAM,QAAQ,CAAC;AAGrD,OAAO,EACL,wBAAwB,EACxB,8CAA8C,EAC9C,4CAA4C,EAC5C,+CAA+C,EAC/C,uCAAuC,EACvC,wCAAwC,EACxC,2CAA2C,EAC3C,2CAA2C,EAC3C,8CAA8C,EAC9C,kDAAkD,EAClD,+CAA+C,EAC/C,8CAA8C,EAC9C,4CAA4C,EAC5C,yCAAyC,EAE1C,MAAM,4BAA4B,CAAC;AA+HpC,qBAAa,uBAAwB,YAAW,wBAAwB;IACtE,OAAO,CAAC,sBAAsB,CAAmB;IAE1C,cAAc,EAAE,8CAA8C,CA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