lynx-client 0.0.5 → 0.0.7

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 (141) 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/contractsIntegration/TradingFloorService/TradingFloorService.js +22 -0
  16. package/dist/cjs/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  17. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  18. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  19. package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  20. package/dist/cjs/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  23. package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  24. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  25. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  26. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  27. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  28. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  29. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  30. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  31. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  32. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  33. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  34. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  35. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  36. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  37. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  38. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  39. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  40. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  41. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  42. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  43. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  44. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  45. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  46. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  47. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  48. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  49. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  50. package/dist/esm/lib/contractsIntegration/PNLRService/index.js +5 -0
  51. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  52. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  53. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  54. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  55. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  56. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  57. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  58. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  59. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  60. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  61. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  62. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  63. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  64. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  65. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +7 -0
  66. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  67. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +7 -0
  68. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  69. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +22 -0
  70. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  71. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  72. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  73. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  74. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  75. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  76. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  77. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  78. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  79. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  80. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  81. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  82. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  83. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  84. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  85. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  88. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  89. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  90. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  91. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  92. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  93. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  94. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  95. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  96. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  97. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  98. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  99. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  100. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  101. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  102. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  103. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  104. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  105. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  106. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  107. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  109. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  110. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  111. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  112. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  113. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  114. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  115. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  116. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  117. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  118. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  119. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  120. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  121. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +7 -0
  122. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  123. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +7 -0
  124. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  125. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  126. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  127. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  128. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  129. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  130. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  131. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  132. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  133. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  134. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  135. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  136. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  137. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  138. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  139. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  140. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  141. package/package.json +1 -1
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IPriceValidatorV1__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "NotSupportedError",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "bytes[]",
18
+ name: "updateData",
19
+ type: "bytes[]",
20
+ },
21
+ ],
22
+ name: "getUpdateFee",
23
+ outputs: [
24
+ {
25
+ internalType: "uint256",
26
+ name: "feeAmount",
27
+ type: "uint256",
28
+ },
29
+ ],
30
+ stateMutability: "view",
31
+ type: "function",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "uint256",
37
+ name: "pairIndex",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "getUpdateFeeByPair",
42
+ outputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "feeAmount",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ stateMutability: "view",
50
+ type: "function",
51
+ },
52
+ {
53
+ inputs: [],
54
+ name: "isPriceValidator",
55
+ outputs: [
56
+ {
57
+ internalType: "bool",
58
+ name: "",
59
+ type: "bool",
60
+ },
61
+ ],
62
+ stateMutability: "view",
63
+ type: "function",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "uint256",
69
+ name: "pairIndex",
70
+ type: "uint256",
71
+ },
72
+ {
73
+ internalType: "bytes[]",
74
+ name: "updateData",
75
+ type: "bytes[]",
76
+ },
77
+ ],
78
+ name: "validatePrice",
79
+ outputs: [
80
+ {
81
+ components: [
82
+ {
83
+ internalType: "uint256",
84
+ name: "timestamp",
85
+ type: "uint256",
86
+ },
87
+ {
88
+ internalType: "uint64",
89
+ name: "price",
90
+ type: "uint64",
91
+ },
92
+ {
93
+ internalType: "uint64",
94
+ name: "confidence",
95
+ type: "uint64",
96
+ },
97
+ ],
98
+ internalType: "struct IPriceValidatorV1.ValidatedPrice",
99
+ name: "validatedPrice",
100
+ type: "tuple",
101
+ },
102
+ ],
103
+ stateMutability: "payable",
104
+ type: "function",
105
+ },
106
+ ];
107
+ class IPriceValidatorV1__factory {
108
+ static createInterface() {
109
+ return new ethers_1.Interface(_abi);
110
+ }
111
+ static connect(address, runner) {
112
+ return new ethers_1.Contract(address, _abi, runner);
113
+ }
114
+ }
115
+ exports.IPriceValidatorV1__factory = IPriceValidatorV1__factory;
116
+ IPriceValidatorV1__factory.abi = _abi;
@@ -0,0 +1,10 @@
1
+ import { Signer, Provider } from "ethers";
2
+ import { IAcceptableImplementationClaimableAdminService, IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables } from "./IAcceptableImplementationClaimableAdminService";
3
+ export declare class AcceptableImplementationClaimableAdminService implements IAcceptableImplementationClaimableAdminService {
4
+ private proxyContract;
5
+ adminManagement: IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement;
6
+ implementationManagement: IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement;
7
+ stateVariables: IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables;
8
+ constructor(signerOrProvider: Signer | Provider, address: string);
9
+ }
10
+ //# sourceMappingURL=AcceptableImplementationClaimableAdminService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcceptableImplementationClaimableAdminService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,QAAQ,CAAA;AAGtE,OAAO,EACL,8CAA8C,EAC9C,qEAAqE,EACrE,8EAA8E,EAC9E,oEAAoE,EACrE,MAAM,kDAAkD,CAAA;AAkDzD,qBAAa,6CACX,YAAW,8CAA8C;IACzD,OAAO,CAAC,aAAa,CAAwC;IAEtD,eAAe,EAAE,qEAAqE,CAAA;IACtF,wBAAwB,EAAE,8EAA8E,CAAA;IACxG,cAAc,EAAE,oEAAoE,CAAA;gBAGzF,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM;CAQlB"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcceptableImplementationClaimableAdminService = void 0;
4
+ const AcceptableImplementationClaimableAdmin__factory_1 = require("../../typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory");
5
+ class AcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement {
6
+ constructor(contract) {
7
+ this.contract = contract;
8
+ }
9
+ async _setPendingAdmin(newPendingAdmin) {
10
+ return this.contract._setPendingAdmin(newPendingAdmin);
11
+ }
12
+ async _acceptAdmin() {
13
+ return this.contract._acceptAdmin();
14
+ }
15
+ }
16
+ class AcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement {
17
+ constructor(contract) {
18
+ this.contract = contract;
19
+ }
20
+ async _setPendingImplementation(newPendingImplementation) {
21
+ return this.contract._setPendingImplementation(newPendingImplementation);
22
+ }
23
+ async _acceptImplementation() {
24
+ // This function modifies state and returns a uint status code (0 on success) via transaction receipt
25
+ return this.contract._acceptImplementation();
26
+ }
27
+ }
28
+ class AcceptableImplementationClaimableAdminFunctionsGroup_StateVariables {
29
+ constructor(contract) {
30
+ this.contract = contract;
31
+ }
32
+ async admin() {
33
+ return this.contract.admin();
34
+ }
35
+ async pendingAdmin() {
36
+ return this.contract.pendingAdmin();
37
+ }
38
+ async implementation() {
39
+ return this.contract.implementation();
40
+ }
41
+ async pendingImplementation() {
42
+ return this.contract.pendingImplementation();
43
+ }
44
+ }
45
+ class AcceptableImplementationClaimableAdminService {
46
+ constructor(signerOrProvider, address) {
47
+ this.proxyContract = AcceptableImplementationClaimableAdmin__factory_1.AcceptableImplementationClaimableAdmin__factory.connect(address, signerOrProvider);
48
+ this.adminManagement = new AcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement(this.proxyContract);
49
+ this.implementationManagement = new AcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement(this.proxyContract);
50
+ this.stateVariables = new AcceptableImplementationClaimableAdminFunctionsGroup_StateVariables(this.proxyContract);
51
+ }
52
+ }
53
+ exports.AcceptableImplementationClaimableAdminService = AcceptableImplementationClaimableAdminService;
@@ -0,0 +1,21 @@
1
+ import { ContractTransactionResponse } from "ethers";
2
+ export interface IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement {
3
+ _setPendingAdmin(newPendingAdmin: string): Promise<ContractTransactionResponse>;
4
+ _acceptAdmin(): Promise<ContractTransactionResponse>;
5
+ }
6
+ export interface IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement {
7
+ _setPendingImplementation(newPendingImplementation: string): Promise<ContractTransactionResponse>;
8
+ _acceptImplementation(): Promise<ContractTransactionResponse>;
9
+ }
10
+ export interface IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables {
11
+ admin(): Promise<string>;
12
+ pendingAdmin(): Promise<string>;
13
+ implementation(): Promise<string>;
14
+ pendingImplementation(): Promise<string>;
15
+ }
16
+ export interface IAcceptableImplementationClaimableAdminService {
17
+ adminManagement: IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement;
18
+ implementationManagement: IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement;
19
+ stateVariables: IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables;
20
+ }
21
+ //# sourceMappingURL=IAcceptableImplementationClaimableAdminService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAcceptableImplementationClaimableAdminService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAA;AAGpD,MAAM,WAAW,qEAAqE;IACpF,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAC/E,YAAY,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACrD;AAGD,MAAM,WAAW,8EAA8E;IAC7F,yBAAyB,CAAC,wBAAwB,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACjG,qBAAqB,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAA;CAC9D;AAGD,MAAM,WAAW,oEAAoE;IACnF,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACjC,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACzC;AAGD,MAAM,WAAW,8CAA8C;IAC7D,eAAe,EAAE,qEAAqE,CAAA;IACtF,wBAAwB,EAAE,8EAA8E,CAAA;IACxG,cAAc,EAAE,oEAAoE,CAAA;CACrF"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type { IAcceptableImplementationClaimableAdminService, IAcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement, IAcceptableImplementationClaimableAdminFunctionsGroup_StateVariables } from "./IAcceptableImplementationClaimableAdminService";
2
+ export { AcceptableImplementationClaimableAdminService } from "./AcceptableImplementationClaimableAdminService";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,8CAA8C,EAC9C,qEAAqE,EACrE,8EAA8E,EAC9E,oEAAoE,EACrE,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,6CAA6C,EAAE,MAAM,iDAAiD,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcceptableImplementationClaimableAdminService = void 0;
4
+ var AcceptableImplementationClaimableAdminService_1 = require("./AcceptableImplementationClaimableAdminService");
5
+ Object.defineProperty(exports, "AcceptableImplementationClaimableAdminService", { enumerable: true, get: function () { return AcceptableImplementationClaimableAdminService_1.AcceptableImplementationClaimableAdminService; } });
@@ -0,0 +1,124 @@
1
+ import { ContractTransactionResponse, BytesLike } from "ethers";
2
+ export interface TProcessDepositResult {
3
+ amountDeposited: bigint;
4
+ amountCanceled: bigint;
5
+ counterDeposited: bigint;
6
+ counterCanceled: bigint;
7
+ }
8
+ export interface TProcessRedeemResult {
9
+ amountRedeemed: bigint;
10
+ amountCanceled: bigint;
11
+ counterRedeemed: bigint;
12
+ counterCanceled: bigint;
13
+ }
14
+ export interface TReduceReservesResult {
15
+ interestShare: bigint;
16
+ totalFundingShare: bigint;
17
+ }
18
+ export interface ILexPoolV1FunctionsGroup_Initialization {
19
+ _become(proxy: string): Promise<ContractTransactionResponse>;
20
+ initialize(underlying: string, tradingFloor: string, epochDuration: bigint): Promise<ContractTransactionResponse>;
21
+ }
22
+ export interface ILexPoolV1FunctionsGroup_AdminConfiguration {
23
+ setPoolAccountant(poolAccountant: string): Promise<ContractTransactionResponse>;
24
+ setPnlRole(pnl: string): Promise<ContractTransactionResponse>;
25
+ setMaxExtraWithdrawalAmountF(maxExtra: bigint): Promise<ContractTransactionResponse>;
26
+ setEpochsDelayDeposit(delay: bigint): Promise<ContractTransactionResponse>;
27
+ setEpochsDelayRedeem(delay: bigint): Promise<ContractTransactionResponse>;
28
+ setEpochDuration(duration: bigint): Promise<ContractTransactionResponse>;
29
+ setMinDepositAmount(amount: bigint): Promise<ContractTransactionResponse>;
30
+ toggleImmediateDepositAllowed(): Promise<ContractTransactionResponse>;
31
+ reduceReserves(to: string): Promise<TReduceReservesResult>;
32
+ }
33
+ export interface ILexPoolV1FunctionsGroup_UserDeposits {
34
+ immediateDeposit(depositAmount: bigint, domain: BytesLike, referralCode: BytesLike): Promise<ContractTransactionResponse>;
35
+ requestDeposit(amount: bigint, minAmountOut: bigint, domain: BytesLike, referralCode: BytesLike): Promise<ContractTransactionResponse>;
36
+ requestDepositViaIntent(user: string, amount: bigint, minAmountOut: bigint, domain: BytesLike, referralCode: BytesLike): Promise<ContractTransactionResponse>;
37
+ }
38
+ export interface ILexPoolV1FunctionsGroup_UserRedeems {
39
+ requestRedeem(amount: bigint, minAmountOut: bigint): Promise<ContractTransactionResponse>;
40
+ requestRedeemViaIntent(user: string, amount: bigint, minAmountOut: bigint): Promise<ContractTransactionResponse>;
41
+ }
42
+ export interface ILexPoolV1FunctionsGroup_Processing {
43
+ processDeposit(users: string[]): Promise<TProcessDepositResult>;
44
+ processRedeems(users: string[]): Promise<TProcessRedeemResult>;
45
+ cancelDeposits(users: string[], epochs: bigint[]): Promise<ContractTransactionResponse>;
46
+ cancelRedeems(users: string[], epochs: bigint[]): Promise<ContractTransactionResponse>;
47
+ }
48
+ export interface ILexPoolV1FunctionsGroup_EpochManagement {
49
+ nextEpoch(totalUnrealizedPricePnL: bigint): Promise<bigint>;
50
+ }
51
+ export interface ILexPoolV1FunctionsGroup_TradingFloorInteraction {
52
+ sendAssetToTrader(to: string, amount: bigint): Promise<ContractTransactionResponse>;
53
+ }
54
+ export interface ILexPoolV1FunctionsGroup_ViewFunctions {
55
+ calcNextEpochStartMin(): Promise<bigint>;
56
+ currentBalanceInternal(): Promise<bigint>;
57
+ underlyingBalanceForExchangeRate(): Promise<bigint>;
58
+ virtualBalanceForUtilization(extraAmount: bigint, unrealizedFunding: bigint): Promise<bigint>;
59
+ virtualBalanceForUtilizationCurrent(): Promise<bigint>;
60
+ currentVirtualUtilization(totalBorrows: bigint, interestShare: bigint, unrealizedFunding: bigint): Promise<bigint>;
61
+ currentVirtualUtilizationSimple(): Promise<bigint>;
62
+ isUtilizationForLPsValid(): Promise<boolean>;
63
+ underlyingAmountToOwnAmount(underlyingAmount: bigint): Promise<bigint>;
64
+ getDepositorsCount(epoch: bigint): Promise<bigint>;
65
+ getRedeemersCount(epoch: bigint): Promise<bigint>;
66
+ getDepositors(epoch: bigint, indexFrom: bigint, count: bigint): Promise<string[]>;
67
+ getRedeemers(epoch: bigint, indexFrom: bigint, count: bigint): Promise<string[]>;
68
+ }
69
+ export interface ILexPoolV1FunctionsGroup_StateVariables {
70
+ underlyingDecimals(): Promise<bigint>;
71
+ epochDuration(): Promise<bigint>;
72
+ epochsDelayDeposit(): Promise<bigint>;
73
+ epochsDelayRedeem(): Promise<bigint>;
74
+ minDepositAmount(): Promise<bigint>;
75
+ maxExtraWithdrawalAmountF(): Promise<bigint>;
76
+ immediateDepositAllowed(): Promise<boolean>;
77
+ currentEpoch(): Promise<bigint>;
78
+ nextEpochStartMin(): Promise<bigint>;
79
+ currentExchangeRate(): Promise<bigint>;
80
+ pendingDepositAmount(): Promise<bigint>;
81
+ pendingWithdrawalAmount(): Promise<bigint>;
82
+ poolAccountant(): Promise<string>;
83
+ pnlRole(): Promise<string>;
84
+ underlying(): Promise<string>;
85
+ registry(): Promise<string>;
86
+ tradingFloor(): Promise<string>;
87
+ }
88
+ export interface ILexPoolV1FunctionsGroup_ERC20 {
89
+ name(): Promise<string>;
90
+ symbol(): Promise<string>;
91
+ decimals(): Promise<bigint>;
92
+ totalSupply(): Promise<bigint>;
93
+ balanceOf(account: string): Promise<bigint>;
94
+ allowance(owner: string, spender: string): Promise<bigint>;
95
+ transfer(to: string, amount: bigint): Promise<ContractTransactionResponse>;
96
+ transferFrom(from: string, to: string, amount: bigint): Promise<ContractTransactionResponse>;
97
+ approve(spender: string, amount: bigint): Promise<ContractTransactionResponse>;
98
+ }
99
+ export interface ILexPoolV1FunctionsGroup_Constants {
100
+ SELF_UNIT_SCALE(): Promise<bigint>;
101
+ PRECISION(): Promise<bigint>;
102
+ FRACTION_SCALE(): Promise<bigint>;
103
+ }
104
+ export interface ILexPoolV1FunctionsGroup_ContractInfo {
105
+ admin(): Promise<string>;
106
+ pendingAdmin(): Promise<string>;
107
+ implementation(): Promise<string>;
108
+ pendingImplementation(): Promise<string>;
109
+ }
110
+ export interface ILexPoolV1Service {
111
+ initialization: ILexPoolV1FunctionsGroup_Initialization;
112
+ adminConfiguration: ILexPoolV1FunctionsGroup_AdminConfiguration;
113
+ userDeposits: ILexPoolV1FunctionsGroup_UserDeposits;
114
+ userRedeems: ILexPoolV1FunctionsGroup_UserRedeems;
115
+ processing: ILexPoolV1FunctionsGroup_Processing;
116
+ epochManagement: ILexPoolV1FunctionsGroup_EpochManagement;
117
+ tradingFloorInteraction: ILexPoolV1FunctionsGroup_TradingFloorInteraction;
118
+ viewFunctions: ILexPoolV1FunctionsGroup_ViewFunctions;
119
+ stateVariables: ILexPoolV1FunctionsGroup_StateVariables;
120
+ erc20: ILexPoolV1FunctionsGroup_ERC20;
121
+ constants: ILexPoolV1FunctionsGroup_Constants;
122
+ contractInfo: ILexPoolV1FunctionsGroup_ContractInfo;
123
+ }
124
+ //# sourceMappingURL=ILexPoolV1Service.d.ts.map
@@ -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,CAAC,CAAA;IAC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Ac,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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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; } });