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,81 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IPriceValidatorV1, IPriceValidatorV1Interface } from "../../../../contracts/Lynx/interfaces/IPriceValidatorV1";
3
+ export declare class IPriceValidatorV1__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "NotSupportedError";
7
+ readonly type: "error";
8
+ }, {
9
+ readonly inputs: readonly [{
10
+ readonly internalType: "bytes[]";
11
+ readonly name: "updateData";
12
+ readonly type: "bytes[]";
13
+ }];
14
+ readonly name: "getUpdateFee";
15
+ readonly outputs: readonly [{
16
+ readonly internalType: "uint256";
17
+ readonly name: "feeAmount";
18
+ readonly type: "uint256";
19
+ }];
20
+ readonly stateMutability: "view";
21
+ readonly type: "function";
22
+ }, {
23
+ readonly inputs: readonly [{
24
+ readonly internalType: "uint256";
25
+ readonly name: "pairIndex";
26
+ readonly type: "uint256";
27
+ }];
28
+ readonly name: "getUpdateFeeByPair";
29
+ readonly outputs: readonly [{
30
+ readonly internalType: "uint256";
31
+ readonly name: "feeAmount";
32
+ readonly type: "uint256";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ readonly type: "function";
36
+ }, {
37
+ readonly inputs: readonly [];
38
+ readonly name: "isPriceValidator";
39
+ readonly outputs: readonly [{
40
+ readonly internalType: "bool";
41
+ readonly name: "";
42
+ readonly type: "bool";
43
+ }];
44
+ readonly stateMutability: "view";
45
+ readonly type: "function";
46
+ }, {
47
+ readonly inputs: readonly [{
48
+ readonly internalType: "uint256";
49
+ readonly name: "pairIndex";
50
+ readonly type: "uint256";
51
+ }, {
52
+ readonly internalType: "bytes[]";
53
+ readonly name: "updateData";
54
+ readonly type: "bytes[]";
55
+ }];
56
+ readonly name: "validatePrice";
57
+ readonly outputs: readonly [{
58
+ readonly components: readonly [{
59
+ readonly internalType: "uint256";
60
+ readonly name: "timestamp";
61
+ readonly type: "uint256";
62
+ }, {
63
+ readonly internalType: "uint64";
64
+ readonly name: "price";
65
+ readonly type: "uint64";
66
+ }, {
67
+ readonly internalType: "uint64";
68
+ readonly name: "confidence";
69
+ readonly type: "uint64";
70
+ }];
71
+ readonly internalType: "struct IPriceValidatorV1.ValidatedPrice";
72
+ readonly name: "validatedPrice";
73
+ readonly type: "tuple";
74
+ }];
75
+ readonly stateMutability: "payable";
76
+ readonly type: "function";
77
+ }];
78
+ static createInterface(): IPriceValidatorV1Interface;
79
+ static connect(address: string, runner?: ContractRunner | null): IPriceValidatorV1;
80
+ }
81
+ //# sourceMappingURL=IPriceValidatorV1__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPriceValidatorV1__factory.d.ts","sourceRoot":"","sources":["../../../../../../../../lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,yDAAyD,CAAC;AAsGjE,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,0BAA0B;IAGpD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,iBAAiB;CAGrB"}
@@ -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,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,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,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,MAA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AE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;CAC/E;AAED,MAAM,WAAW,kCAAkC;IAEjD,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC5B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAClC;AAED,MAAM,WAAW,qCAAqC;IACpD,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,iBAAiB;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,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,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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AAW,iCAAiC;IAChD,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAChC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACrE,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACjC,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACtC;AAED,MAAM,WAAW,mCAAmC;IAClD,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAC/E,YAAY,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACrD;AAED,MAAM,WAAW,gCAAgC;IAC/C,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,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,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"}