lynx-client 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/cjs/index.js +10 -2
  2. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  3. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  4. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  5. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  6. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  7. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  8. package/dist/cjs/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  9. package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  10. package/dist/cjs/lib/contractsIntegration/PNLRService/index.js +5 -0
  11. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  12. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  13. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  14. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  15. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  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/cjs/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  25. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  26. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  27. package/dist/esm/index.d.ts +14 -0
  28. package/dist/esm/index.d.ts.map +1 -1
  29. package/dist/esm/index.js +10 -2
  30. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  31. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  32. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  33. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  34. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  35. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  36. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  37. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  38. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  39. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  40. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  41. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  42. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  43. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  44. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  45. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  46. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  47. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  48. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  49. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  50. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  51. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  52. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  53. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  54. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  55. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  56. package/dist/esm/lib/contractsIntegration/PNLRService/index.js +5 -0
  57. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  58. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  59. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  60. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  61. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  62. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  63. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  64. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  65. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  66. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  67. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  68. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  69. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  70. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  71. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  72. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  73. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  74. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  75. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  76. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  77. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  78. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  79. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  80. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  81. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  82. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  83. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  84. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  85. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  88. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  89. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  90. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  91. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  92. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  93. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  94. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  95. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  96. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  97. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  98. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  99. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  100. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  101. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  102. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  103. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  104. package/dist/types/index.d.ts +14 -0
  105. package/dist/types/index.d.ts.map +1 -1
  106. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  107. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  109. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  110. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  111. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  112. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  113. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  114. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  115. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  116. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  117. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  118. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  119. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  120. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  121. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  122. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  123. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  124. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  125. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  126. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  127. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  128. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  129. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  130. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  131. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  132. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  133. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  134. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  135. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  136. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  137. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  138. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  139. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  140. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  141. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  142. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  143. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  144. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  145. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  146. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  147. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  148. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  149. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  150. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  151. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  152. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  153. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  154. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  155. 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,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chipsIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, chipIntentsVerifierAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Chips Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: chipIntentsVerifierAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ = {
14
+ HolderRequestPayload_ChipOutLZ: [
15
+ { name: "timestamp", type: "uint256" },
16
+ { name: "validUntil", type: "uint256" },
17
+ { name: "chip", type: "address" },
18
+ { name: "holder", type: "address" },
19
+ { name: "receiver", type: "address" },
20
+ { name: "amount", type: "uint256" },
21
+ ],
22
+ };
23
+ const HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP = {
24
+ HolderRequestPayload_ChipOutLZ_Unwrap: [
25
+ { name: "timestamp", type: "uint256" },
26
+ { name: "validUntil", type: "uint256" },
27
+ { name: "chip", type: "address" },
28
+ { name: "holder", type: "address" },
29
+ { name: "receiver", type: "address" },
30
+ { name: "amount", type: "uint256" },
31
+ ],
32
+ };
33
+ exports.chipsIntentsVerifierPayloadTypes = {
34
+ buildDomainSeparator: generateVerificationDomain,
35
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ,
36
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP,
37
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.liquidityIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, liquidityIntentsVerifierAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Liquidity Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: liquidityIntentsVerifierAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT = {
14
+ LiquidityProviderRequestPayload_EpochDeposit: [
15
+ { name: "timestamp", type: "uint256" },
16
+ { name: "validUntil", type: "uint256" },
17
+ { name: "pool", type: "address" },
18
+ { name: "liquidityProvider", type: "address" },
19
+ { name: "epoch", type: "uint256" },
20
+ { name: "amount", type: "uint256" },
21
+ { name: "minAmountOut", type: "uint256" },
22
+ ],
23
+ };
24
+ const LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM = {
25
+ LiquidityProviderRequestPayload_EpochRedeem: [
26
+ { name: "timestamp", type: "uint256" },
27
+ { name: "validUntil", type: "uint256" },
28
+ { name: "pool", type: "address" },
29
+ { name: "liquidityProvider", type: "address" },
30
+ { name: "epoch", type: "uint256" },
31
+ { name: "amount", type: "uint256" },
32
+ { name: "minAmountOut", type: "uint256" },
33
+ ],
34
+ };
35
+ exports.liquidityIntentsVerifierPayloadTypes = {
36
+ buildDomainSeparator: generateVerificationDomain,
37
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT,
38
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM,
39
+ };
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tradeIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, tradersPortalAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Trade Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: tradersPortalAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const TRADER_REQUEST_PAYLOAD_CLOSE_MARKET = {
14
+ UserRequestPayload_CloseMarket: [
15
+ {
16
+ name: "timestamp",
17
+ type: "uint256",
18
+ },
19
+ { name: "validUntil", type: "uint256" },
20
+ {
21
+ name: "positionId",
22
+ type: "bytes32",
23
+ },
24
+ {
25
+ name: "minPrice",
26
+ type: "uint64",
27
+ },
28
+ {
29
+ name: "maxPrice",
30
+ type: "uint64",
31
+ },
32
+ ],
33
+ };
34
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION = {
35
+ UserRequestPayload_OpenPosition: [
36
+ {
37
+ name: "timestamp",
38
+ type: "uint256",
39
+ },
40
+ { name: "validUntil", type: "uint256" },
41
+ {
42
+ name: "positionRequestIdentifiers",
43
+ type: "PositionRequestIdentifiers",
44
+ },
45
+ {
46
+ name: "positionRequestParams",
47
+ type: "PositionRequestParams",
48
+ },
49
+ {
50
+ name: "orderType",
51
+ type: "uint8",
52
+ },
53
+ ],
54
+ PositionRequestIdentifiers: [
55
+ {
56
+ name: "trader",
57
+ type: "address",
58
+ },
59
+ {
60
+ name: "pairId",
61
+ type: "uint16",
62
+ },
63
+ {
64
+ name: "settlementAsset",
65
+ type: "address",
66
+ },
67
+ ],
68
+ PositionRequestParams: [
69
+ {
70
+ name: "long",
71
+ type: "bool",
72
+ },
73
+ {
74
+ name: "collateral",
75
+ type: "uint256",
76
+ },
77
+ {
78
+ name: "leverage",
79
+ type: "uint32",
80
+ },
81
+ {
82
+ name: "minPrice",
83
+ type: "uint64",
84
+ },
85
+ {
86
+ name: "maxPrice",
87
+ type: "uint64",
88
+ },
89
+ {
90
+ name: "tp",
91
+ type: "uint64",
92
+ },
93
+ {
94
+ name: "sl",
95
+ type: "uint64",
96
+ },
97
+ {
98
+ name: "tpByFraction",
99
+ type: "uint64",
100
+ },
101
+ {
102
+ name: "slByFraction",
103
+ type: "uint64",
104
+ },
105
+ ],
106
+ };
107
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD = {
108
+ UserRequestPayload_UpdatePositionSingleField: [
109
+ { name: "timestamp", type: "uint256" },
110
+ { name: "validUntil", type: "uint256" },
111
+ { name: "positionId", type: "bytes32" },
112
+ { name: "orderType", type: "uint8" },
113
+ { name: "fieldValue", type: "uint64" },
114
+ ],
115
+ };
116
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD = {
117
+ UserRequestPayload_UpdatePositionDoubleField: [
118
+ { name: "timestamp", type: "uint256" },
119
+ { name: "validUntil", type: "uint256" },
120
+ { name: "positionId", type: "bytes32" },
121
+ { name: "orderType", type: "uint8" },
122
+ { name: "fieldValueA", type: "uint64" },
123
+ { name: "fieldValueB", type: "uint64" },
124
+ ],
125
+ };
126
+ const TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION = {
127
+ UserDirectPayload_UpdatePendingLimitPosition: [
128
+ { name: "timestamp", type: "uint256" },
129
+ { name: "validUntil", type: "uint256" },
130
+ { name: "positionId", type: "bytes32" },
131
+ { name: "minPrice", type: "uint64" },
132
+ { name: "maxPrice", type: "uint64" },
133
+ { name: "tp", type: "uint64" },
134
+ { name: "sl", type: "uint64" },
135
+ ],
136
+ };
137
+ const TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION = {
138
+ UserDirectPayload_CancelPendingLimitPosition: [
139
+ { name: "timestamp", type: "uint256" },
140
+ { name: "validUntil", type: "uint256" },
141
+ { name: "positionId", type: "bytes32" },
142
+ ],
143
+ };
144
+ exports.tradeIntentsVerifierPayloadTypes = {
145
+ buildDomainSeparator: generateVerificationDomain,
146
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION,
147
+ TRADER_REQUEST_PAYLOAD_CLOSE_MARKET,
148
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD,
149
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD,
150
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION,
151
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION,
152
+ };
@@ -38,6 +38,20 @@ export * from "./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
38
38
  export * from "./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
39
39
  export * from "./lib/typechain/contracts/Peripheral/Lens/LexLens";
40
40
  export * from "./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens";
41
+ export type { RegistryProxy } from "./lib/typechain/contracts/Lynx/Registry/RegistryProxy";
42
+ export type { RegistryV1 } from "./lib/typechain/contracts/Lynx/Registry/RegistryV1";
43
+ export type { TradingFloorProxy } from "./lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy";
44
+ export type { TradingFloorV1 } from "./lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
45
+ export type { OrderBookProxy } from "./lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy";
46
+ export type { OrderBookV1 } from "./lib/typechain/contracts/Lynx/OrderBook/OrderBookV1";
47
+ export type { TradersPortalV1 } from "./lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1";
48
+ export type { TriggersV1 } from "./lib/typechain/contracts/Lynx/Triggers/TriggersV1";
49
+ export type { ChipsIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
50
+ export type { LiquidityIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
51
+ export type { TradeIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
52
+ export { chipsIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes";
53
+ export { liquidityIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes";
54
+ export { tradeIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes";
41
55
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory";
42
56
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory";
43
57
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory";
@@ -1 +1 @@
1
- {"version":3,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AAC7G,cAAc,0FAA0F,CAAC;AAGzG,cAAc,aAAa,CAAC"}
package/dist/esm/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
17
+ exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
18
18
  __exportStar(require("./lib/chains/chainConstants"), exports);
19
19
  __exportStar(require("./lib/chains/chainTypes"), exports);
20
20
  __exportStar(require("./lib/utils/addresses"), exports);
@@ -55,11 +55,19 @@ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierL
55
55
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
56
56
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
57
57
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
58
- // Intents Verifier types are exported through their respective services to avoid conflicts
58
+ // Intents Verifier payload types for EIP-712 signature generation
59
+ var chipsIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes");
60
+ Object.defineProperty(exports, "chipsIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return chipsIntentsVerifierPayloadTypes_1.chipsIntentsVerifierPayloadTypes; } });
61
+ var liquidityIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes");
62
+ Object.defineProperty(exports, "liquidityIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return liquidityIntentsVerifierPayloadTypes_1.liquidityIntentsVerifierPayloadTypes; } });
63
+ var tradeIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes");
64
+ Object.defineProperty(exports, "tradeIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return tradeIntentsVerifierPayloadTypes_1.tradeIntentsVerifierPayloadTypes; } });
65
+ // Contract factory exports for Lens contracts
59
66
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
60
67
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
61
68
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
62
69
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
70
+ // Contract factory exports for Intents Verifiers
63
71
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory"), exports);
64
72
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory"), exports);
65
73
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
@@ -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