lynx-client 0.0.1-beta.9 → 0.0.3

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 (372) hide show
  1. package/README.md +391 -3
  2. package/dist/cjs/index.js +9 -0
  3. package/dist/cjs/lib/addresses/lensAddresses.js +16 -16
  4. package/dist/cjs/lib/chains/chainMappings.js +17 -0
  5. package/dist/cjs/lib/constants/contractEnums.js +1 -0
  6. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +2 -0
  7. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +22 -0
  8. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  9. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  10. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  11. package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
  12. package/dist/cjs/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  13. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  14. package/dist/cjs/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  16. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +63 -0
  17. package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +57 -0
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +111 -0
  20. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  21. package/dist/cjs/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  22. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +177 -0
  23. package/dist/cjs/lib/contractsIntegration/TradingFloorService/index.js +5 -0
  24. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  25. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  26. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  27. package/dist/cjs/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  28. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  29. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  30. package/dist/cjs/lib/devex/getChainAddresses.js +65 -0
  31. package/dist/cjs/lib/devex/getSupportedEngineChains.js +45 -0
  32. package/dist/cjs/lib/devex/index.js +9 -0
  33. package/dist/cjs/lib/devex/types.js +2 -0
  34. package/dist/cjs/lib/lynxSystem/hashes.js +9 -0
  35. package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +8 -0
  36. package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
  37. package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  38. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
  39. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  40. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  41. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  42. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  43. package/dist/cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  44. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  45. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  46. package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  47. package/dist/cjs/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
  48. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -0
  49. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  50. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  51. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  52. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  53. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1038 -0
  54. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  55. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1991 -0
  56. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  57. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
  58. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  59. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
  60. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  61. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
  62. package/dist/cjs/lib/utils/ethersTypes.js +29 -6
  63. package/dist/esm/index.d.ts +8 -0
  64. package/dist/esm/index.d.ts.map +1 -1
  65. package/dist/esm/index.js +9 -0
  66. package/dist/esm/lib/addresses/lensAddresses.d.ts +16 -16
  67. package/dist/esm/lib/addresses/lensAddresses.js +16 -16
  68. package/dist/esm/lib/chains/chainMappings.d.ts +13 -0
  69. package/dist/esm/lib/chains/chainMappings.d.ts.map +1 -0
  70. package/dist/esm/lib/chains/chainMappings.js +17 -0
  71. package/dist/esm/lib/chains/chainTypes.d.ts +3 -0
  72. package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -1
  73. package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -1
  74. package/dist/esm/lib/constants/contractEnums.js +1 -0
  75. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +7 -0
  76. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  77. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +2 -0
  78. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  79. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  80. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +22 -0
  81. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  82. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  83. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  84. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  85. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  86. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  87. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  88. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  89. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  90. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  91. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  92. package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
  93. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  94. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  95. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  96. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  97. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  98. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  99. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  100. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  101. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  102. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  103. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  104. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  105. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +31 -0
  106. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  107. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +63 -0
  108. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  109. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  110. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  111. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +65 -0
  112. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  113. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +57 -0
  114. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +13 -0
  115. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  116. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +111 -0
  117. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  118. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  119. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  120. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +89 -0
  121. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  122. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  123. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +86 -0
  124. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  125. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +177 -0
  126. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
  127. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
  128. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.js +5 -0
  129. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  130. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  131. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  132. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  133. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  134. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  135. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  136. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  137. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  138. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  139. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  140. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  141. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  142. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  143. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  144. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  145. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  146. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  147. package/dist/esm/lib/devex/getChainAddresses.d.ts +20 -0
  148. package/dist/esm/lib/devex/getChainAddresses.d.ts.map +1 -0
  149. package/dist/esm/lib/devex/getChainAddresses.js +65 -0
  150. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts +37 -0
  151. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  152. package/dist/esm/lib/devex/getSupportedEngineChains.js +45 -0
  153. package/dist/esm/lib/devex/index.d.ts +5 -0
  154. package/dist/esm/lib/devex/index.d.ts.map +1 -0
  155. package/dist/esm/lib/devex/index.js +9 -0
  156. package/dist/esm/lib/devex/types.d.ts +20 -0
  157. package/dist/esm/lib/devex/types.d.ts.map +1 -0
  158. package/dist/esm/lib/devex/types.js +2 -0
  159. package/dist/esm/lib/lynxSystem/hashes.d.ts +6 -0
  160. package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -1
  161. package/dist/esm/lib/lynxSystem/hashes.js +9 -0
  162. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  163. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  164. package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +8 -0
  165. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  166. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  167. package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
  168. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  169. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  170. package/dist/esm/lib/typechain/common.d.ts.map +1 -1
  171. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
  172. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
  173. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
  174. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  175. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  176. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  177. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  178. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  179. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  180. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  181. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  182. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  183. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  184. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  185. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  186. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +607 -0
  187. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  188. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  189. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  190. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  191. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  192. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1251 -0
  193. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  194. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  195. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  196. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  197. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  198. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +10 -65
  199. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
  200. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -114
  201. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  202. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
  203. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
  204. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
  205. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
  206. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
  207. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -0
  208. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  209. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  210. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  211. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  212. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  213. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  214. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  215. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  216. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  217. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  218. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  219. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  220. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +800 -0
  221. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  222. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1038 -0
  223. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  224. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  225. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  226. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1536 -0
  227. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  228. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1991 -0
  229. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  230. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  231. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  232. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +10 -85
  233. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
  234. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
  235. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  236. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  237. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
  238. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  239. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
  240. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  241. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  242. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
  243. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
  244. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
  245. package/dist/esm/lib/utils/ethersTypes.d.ts +2 -2
  246. package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -1
  247. package/dist/esm/lib/utils/ethersTypes.js +29 -6
  248. package/dist/types/index.d.ts +8 -0
  249. package/dist/types/index.d.ts.map +1 -1
  250. package/dist/types/lib/addresses/lensAddresses.d.ts +16 -16
  251. package/dist/types/lib/chains/chainMappings.d.ts +13 -0
  252. package/dist/types/lib/chains/chainMappings.d.ts.map +1 -0
  253. package/dist/types/lib/chains/chainTypes.d.ts +3 -0
  254. package/dist/types/lib/chains/chainTypes.d.ts.map +1 -1
  255. package/dist/types/lib/constants/contractEnums.d.ts.map +1 -1
  256. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +7 -0
  257. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  258. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  259. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  260. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  261. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  262. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  263. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  264. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  265. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  266. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  267. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  268. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  269. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  270. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  271. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  272. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  273. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  274. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  275. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  276. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +31 -0
  277. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  278. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  279. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  280. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +65 -0
  281. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  282. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +13 -0
  283. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  284. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  285. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  286. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +89 -0
  287. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  288. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +86 -0
  289. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  290. package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
  291. package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
  292. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  293. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  294. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  295. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  296. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  297. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  298. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  299. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  300. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  301. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  302. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  303. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  304. package/dist/types/lib/devex/getChainAddresses.d.ts +20 -0
  305. package/dist/types/lib/devex/getChainAddresses.d.ts.map +1 -0
  306. package/dist/types/lib/devex/getSupportedEngineChains.d.ts +37 -0
  307. package/dist/types/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  308. package/dist/types/lib/devex/index.d.ts +5 -0
  309. package/dist/types/lib/devex/index.d.ts.map +1 -0
  310. package/dist/types/lib/devex/types.d.ts +20 -0
  311. package/dist/types/lib/devex/types.d.ts.map +1 -0
  312. package/dist/types/lib/lynxSystem/hashes.d.ts +6 -0
  313. package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -1
  314. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  315. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  316. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  317. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  318. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  319. package/dist/types/lib/typechain/common.d.ts.map +1 -1
  320. package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
  321. package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
  322. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  323. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  324. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  325. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  326. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  327. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  328. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  329. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  330. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +607 -0
  331. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  332. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  333. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  334. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1251 -0
  335. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  336. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  337. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  338. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +10 -65
  339. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
  340. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -114
  341. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  342. package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
  343. package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
  344. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
  345. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
  346. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  347. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  348. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  349. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  350. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  351. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  352. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  353. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  354. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +800 -0
  355. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  356. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  357. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  358. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1536 -0
  359. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  360. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  361. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  362. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +10 -85
  363. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
  364. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  365. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
  366. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  367. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  368. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
  369. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
  370. package/dist/types/lib/utils/ethersTypes.d.ts +2 -2
  371. package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -1
  372. package/package.json +7 -7
@@ -0,0 +1,3 @@
1
+ export * from "./ILexLensService";
2
+ export * from "./LexLensService";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexLensService/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ILexLensService"), exports);
18
+ __exportStar(require("./LexLensService"), exports);
@@ -0,0 +1,40 @@
1
+ import { BytesLike, BigNumberish, AddressLike, ContractTransactionResponse } from "ethers";
2
+ import { OrderBookStructsV1 } from "../../typechain/contracts/Lynx/OrderBook/OrderBookV1";
3
+ import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
4
+ type UpdatePositionFieldOrderStruct = OrderBookStructsV1.UpdatePositionFieldOrderStruct;
5
+ export type TUpdatePositionFieldOrderStruct = TSafeBigNumberStruct<UpdatePositionFieldOrderStruct>;
6
+ export interface IOrderBookFunctionsGroup_OrderManagement {
7
+ getAllPendingUpdateOrderIds(): Promise<string[]>;
8
+ allPendingUpdateOrderIds(index: BigNumberish): Promise<string>;
9
+ pendingUpdateTradeFieldOrdersById(positionId: BytesLike): Promise<TUpdatePositionFieldOrderStruct>;
10
+ readAndDeleteUpdatePositionOrder(positionId: BytesLike): Promise<ContractTransactionResponse>;
11
+ storeUpdatePositionDoubleFieldOrder(positionId: BytesLike, orderType: BigNumberish, fieldValueA: BigNumberish, fieldValueB: BigNumberish): Promise<ContractTransactionResponse>;
12
+ storeUpdatePositionSingleFieldOrder(positionId: BytesLike, orderType: BigNumberish, fieldValue: BigNumberish): Promise<ContractTransactionResponse>;
13
+ updateOrderIdPositionInList(positionId: BytesLike): Promise<bigint>;
14
+ }
15
+ export interface IOrderBookFunctionsGroup_ContractInfo {
16
+ registry(): Promise<string>;
17
+ tradingFloor(): Promise<string>;
18
+ admin(): Promise<string>;
19
+ pendingAdmin(): Promise<string>;
20
+ implementation(): Promise<string>;
21
+ pendingImplementation(): Promise<string>;
22
+ }
23
+ export interface IOrderBookFunctionsGroup_Administration {
24
+ setTradingFloor(tradingFloor: AddressLike): Promise<ContractTransactionResponse>;
25
+ _become(orderBookProxy: AddressLike): Promise<ContractTransactionResponse>;
26
+ }
27
+ export interface IOrderBookFunctionsGroup_Constants {
28
+ ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
29
+ FRACTION_SCALE(): Promise<bigint>;
30
+ LEVERAGE_SCALE(): Promise<bigint>;
31
+ PRECISION(): Promise<bigint>;
32
+ }
33
+ export interface IOrderBookService {
34
+ orderManagement: IOrderBookFunctionsGroup_OrderManagement;
35
+ contractInfo: IOrderBookFunctionsGroup_ContractInfo;
36
+ administration: IOrderBookFunctionsGroup_Administration;
37
+ constants: IOrderBookFunctionsGroup_Constants;
38
+ }
39
+ export {};
40
+ //# sourceMappingURL=IOrderBookService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IOrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/IOrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,KAAK,8BAA8B,GAAG,kBAAkB,CAAC,8BAA8B,CAAC;AAExF,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;AAEnG,MAAM,WAAW,wCAAwC;IACvD,2BAA2B,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,wBAAwB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D,iCAAiC,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CA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AAE,wCAAwC,CAAC;IAC1D,YAAY,EAAE,qCAAqC,CAAC;IACpD,cAAc,EAAE,uCAAuC,CAAC;IACxD,SAAS,EAAE,kCAAkC,CAAC;CAC/C"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { Signer, Provider } from "ethers";
2
+ import { IOrderBookService, IOrderBookFunctionsGroup_OrderManagement, IOrderBookFunctionsGroup_ContractInfo, IOrderBookFunctionsGroup_Administration, IOrderBookFunctionsGroup_Constants } from "./IOrderBookService";
3
+ export declare class OrderBookService implements IOrderBookService {
4
+ private signerOrProvider;
5
+ private orderBookContract;
6
+ readonly orderManagement: IOrderBookFunctionsGroup_OrderManagement;
7
+ readonly contractInfo: IOrderBookFunctionsGroup_ContractInfo;
8
+ readonly administration: IOrderBookFunctionsGroup_Administration;
9
+ readonly constants: IOrderBookFunctionsGroup_Constants;
10
+ constructor(address: string, signerOrProvider: Signer | Provider);
11
+ }
12
+ //# sourceMappingURL=OrderBookService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderBookService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/OrderBookService/OrderBookService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EAKT,MAAM,QAAQ,CAAC;AAIhB,OAAO,EACL,iBAAiB,EACjB,wCAAwC,EACxC,qCAAqC,EACrC,uCAAuC,EACvC,kCAAkC,EAEnC,MAAM,qBAAqB,CAAC;AAwH7B,qBAAa,gBAAiB,YAAW,iBAAiB;IAStD,OAAO,CAAC,gBAAgB;IAR1B,OAAO,CAAC,iBAAiB,CAAc;IACvC,SAAgB,eAAe,EAAE,wCAAwC,CAAC;IAC1E,SAAgB,YAAY,EAAE,qCAAqC,CAAC;IACpE,SAAgB,cAAc,EAAE,uCAAuC,CAAC;IACxE,SAAgB,SAAS,EAAE,kCAAkC,CAAC;gBAG5D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;CAY9C"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderBookService = void 0;
4
+ const OrderBookV1__factory_1 = require("../../typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory");
5
+ class OrderManagement {
6
+ constructor(orderBookContract) {
7
+ this.orderBookContract = orderBookContract;
8
+ }
9
+ async getAllPendingUpdateOrderIds() {
10
+ return this.orderBookContract.getAllPendingUpdateOrderIds();
11
+ }
12
+ async allPendingUpdateOrderIds(index) {
13
+ return this.orderBookContract.allPendingUpdateOrderIds(index);
14
+ }
15
+ async pendingUpdateTradeFieldOrdersById(positionId) {
16
+ return this.orderBookContract.pendingUpdateTradeFieldOrdersById(positionId);
17
+ }
18
+ async readAndDeleteUpdatePositionOrder(positionId) {
19
+ return this.orderBookContract.readAndDeleteUpdatePositionOrder(positionId);
20
+ }
21
+ async storeUpdatePositionDoubleFieldOrder(positionId, orderType, fieldValueA, fieldValueB) {
22
+ return this.orderBookContract.storeUpdatePositionDoubleFieldOrder(positionId, orderType, fieldValueA, fieldValueB);
23
+ }
24
+ async storeUpdatePositionSingleFieldOrder(positionId, orderType, fieldValue) {
25
+ return this.orderBookContract.storeUpdatePositionSingleFieldOrder(positionId, orderType, fieldValue);
26
+ }
27
+ async updateOrderIdPositionInList(positionId) {
28
+ return this.orderBookContract.updateOrderIdPositionInList(positionId);
29
+ }
30
+ }
31
+ class ContractInfo {
32
+ constructor(orderBookContract) {
33
+ this.orderBookContract = orderBookContract;
34
+ }
35
+ async registry() {
36
+ return this.orderBookContract.registry();
37
+ }
38
+ async tradingFloor() {
39
+ return this.orderBookContract.tradingFloor();
40
+ }
41
+ async admin() {
42
+ return this.orderBookContract.admin();
43
+ }
44
+ async pendingAdmin() {
45
+ return this.orderBookContract.pendingAdmin();
46
+ }
47
+ async implementation() {
48
+ return this.orderBookContract.implementation();
49
+ }
50
+ async pendingImplementation() {
51
+ return this.orderBookContract.pendingImplementation();
52
+ }
53
+ }
54
+ class Administration {
55
+ constructor(orderBookContract) {
56
+ this.orderBookContract = orderBookContract;
57
+ }
58
+ async setTradingFloor(tradingFloor) {
59
+ return this.orderBookContract.setTradingFloor(tradingFloor);
60
+ }
61
+ async _become(orderBookProxy) {
62
+ return this.orderBookContract._become(orderBookProxy);
63
+ }
64
+ }
65
+ class Constants {
66
+ constructor(orderBookContract) {
67
+ this.orderBookContract = orderBookContract;
68
+ }
69
+ async ACCURACY_IMPROVEMENT_SCALE() {
70
+ return this.orderBookContract.ACCURACY_IMPROVEMENT_SCALE();
71
+ }
72
+ async FRACTION_SCALE() {
73
+ return this.orderBookContract.FRACTION_SCALE();
74
+ }
75
+ async LEVERAGE_SCALE() {
76
+ return this.orderBookContract.LEVERAGE_SCALE();
77
+ }
78
+ async PRECISION() {
79
+ return this.orderBookContract.PRECISION();
80
+ }
81
+ }
82
+ class OrderBookService {
83
+ constructor(address, signerOrProvider) {
84
+ this.signerOrProvider = signerOrProvider;
85
+ this.orderBookContract = OrderBookV1__factory_1.OrderBookV1__factory.connect(address, signerOrProvider);
86
+ this.orderManagement = new OrderManagement(this.orderBookContract);
87
+ this.contractInfo = new ContractInfo(this.orderBookContract);
88
+ this.administration = new Administration(this.orderBookContract);
89
+ this.constants = new Constants(this.orderBookContract);
90
+ }
91
+ }
92
+ exports.OrderBookService = OrderBookService;
@@ -0,0 +1,61 @@
1
+ import { BytesLike, ContractTransactionResponse } from "ethers";
2
+ import { TOpenOrderType, TUpdatePositionFieldOrderType } from "../../constants/contractEnums";
3
+ import { TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
4
+ import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
5
+ type PositionRequestIdentifierStruct = TradingFloorStructsV1.PositionRequestIdentifiersStruct;
6
+ type PositionRequestParamsStruct = TradingFloorStructsV1.PositionRequestParamsStruct;
7
+ export type TPositionRequestIdentifierStruct = TSafeBigNumberStruct<PositionRequestIdentifierStruct>;
8
+ export type TPositionRequestParamsStruct = TSafeBigNumberStruct<PositionRequestParamsStruct>;
9
+ export interface ITradersPortalFunctionsGroup_TraderRequests {
10
+ openNewPosition(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, staticCall?: boolean): Promise<ContractTransactionResponse>;
11
+ setExistingPositionToMarketClose(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, nativeFee: bigint): Promise<ContractTransactionResponse>;
12
+ updatePositionSingleField(positionId: BytesLike, orderType: TUpdatePositionFieldOrderType, fieldValue: bigint, nativeFee: bigint): Promise<ContractTransactionResponse>;
13
+ updatePositionDoubleFieldTpAndSl(positionId: BytesLike, tpValue: bigint, slValue: bigint, nativeFee: bigint): Promise<ContractTransactionResponse>;
14
+ }
15
+ export interface ITradersPortalFunctionsGroup_DirectActions {
16
+ timeoutOpenMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
17
+ timeoutCloseMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
18
+ cancelPendingPositionLimit(positionId: BytesLike): Promise<ContractTransactionResponse>;
19
+ cancelPendingUpdatePositionField(positionId: BytesLike): Promise<ContractTransactionResponse>;
20
+ updatePendingPositionLimit(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, tp: bigint, sl: bigint): Promise<ContractTransactionResponse>;
21
+ }
22
+ export interface ITradersPortalFunctionsGroup_ContractInfo {
23
+ getContractName(): Promise<string>;
24
+ getContractVersion(): Promise<string>;
25
+ getOrderBook(): Promise<string>;
26
+ getTradeIntentsVerifier(): Promise<string>;
27
+ registry(): Promise<string>;
28
+ tradingFloor(): Promise<string>;
29
+ admin(): Promise<string>;
30
+ pendingAdmin(): Promise<string>;
31
+ }
32
+ export interface ITradersPortalFunctionsGroup_Status {
33
+ isDone(): Promise<boolean>;
34
+ isLimitingMarketClosePriceRange(): Promise<boolean>;
35
+ isPaused(): Promise<boolean>;
36
+ }
37
+ export interface ITradersPortalFunctionsGroup_Settings {
38
+ limitOrdersTimelock(): Promise<bigint>;
39
+ marketOrdersTimeout(): Promise<bigint>;
40
+ minLiveTimeForMarketClose(): Promise<bigint>;
41
+ actionFees(actionType: bigint): Promise<bigint>;
42
+ }
43
+ export interface ITradersPortalFunctionsGroup_Constants {
44
+ ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
45
+ CONTRACT_NAME(): Promise<string>;
46
+ CONTRACT_VERSION(): Promise<string>;
47
+ FRACTION_SCALE(): Promise<bigint>;
48
+ LEVERAGE_SCALE(): Promise<bigint>;
49
+ NATIVE_UNDERLYING_ADDRESS(): Promise<string>;
50
+ PRECISION(): Promise<bigint>;
51
+ }
52
+ export interface ITradersPortalService {
53
+ traderRequests: ITradersPortalFunctionsGroup_TraderRequests;
54
+ directActions: ITradersPortalFunctionsGroup_DirectActions;
55
+ contractInfo: ITradersPortalFunctionsGroup_ContractInfo;
56
+ status: ITradersPortalFunctionsGroup_Status;
57
+ settings: ITradersPortalFunctionsGroup_Settings;
58
+ constants: ITradersPortalFunctionsGroup_Constants;
59
+ }
60
+ export {};
61
+ //# sourceMappingURL=ITradersPortalService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/ITradersPortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAEhE,OAAO,EACL,cAAc,EAEd,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,KAAK,+BAA+B,GAClC,qBAAqB,CAAC,gCAAgC,CAAC;AACz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AC,MAAM,CAAC,CAAC;IACpC,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,yBAAyB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7C,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,2CAA2C,CAAC;IAC5D,aAAa,EAAE,0CAA0C,CAAC;IAC1D,YAAY,EAAE,yCAAyC,CAAC;IACxD,MAAM,EAAE,mCAAmC,CAAC;IAC5C,QAAQ,EAAE,qCAAqC,CAAC;IAChD,SAAS,EAAE,sCAAsC,CAAC;CACnD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { Signer, Provider } from "ethers";
2
+ import { ITradersPortalService, ITradersPortalFunctionsGroup_TraderRequests, ITradersPortalFunctionsGroup_DirectActions, ITradersPortalFunctionsGroup_ContractInfo, ITradersPortalFunctionsGroup_Status, ITradersPortalFunctionsGroup_Settings, ITradersPortalFunctionsGroup_Constants } from "./ITradersPortalService";
3
+ export declare class TradersPortalServiceService implements ITradersPortalService {
4
+ private signerOrProvider;
5
+ private tradingContract;
6
+ readonly traderRequests: ITradersPortalFunctionsGroup_TraderRequests;
7
+ readonly directActions: ITradersPortalFunctionsGroup_DirectActions;
8
+ readonly contractInfo: ITradersPortalFunctionsGroup_ContractInfo;
9
+ readonly status: ITradersPortalFunctionsGroup_Status;
10
+ readonly settings: ITradersPortalFunctionsGroup_Settings;
11
+ readonly constants: ITradersPortalFunctionsGroup_Constants;
12
+ constructor(address: string, signerOrProvider: Signer | Provider);
13
+ }
14
+ //# sourceMappingURL=TradersPortalServiceService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradersPortalServiceService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,yCAAyC,EACzC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EAGvC,MAAM,yBAAyB,CAAC;AA4PjC,qBAAa,2BAA4B,YAAW,qBAAqB;IAWrE,OAAO,CAAC,gBAAgB;IAV1B,OAAO,CAAC,eAAe,CAAkB;IACzC,SAAgB,cAAc,EAAE,2CAA2C,CAAC;IAC5E,SAAgB,aAAa,EAAE,0CAA0C,CAAC;IAC1E,SAAgB,YAAY,EAAE,yCAAyC,CAAC;IACxE,SAAgB,MAAM,EAAE,mCAAmC,CAAC;IAC5D,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;IAChE,SAAgB,SAAS,EAAE,sCAAsC,CAAC;gBAGhE,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;CAc9C"}
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradersPortalServiceService = void 0;
4
+ const contractEnums_1 = require("../../constants/contractEnums");
5
+ const TradersPortalV1__factory_1 = require("../../typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory");
6
+ class TraderRequests {
7
+ constructor(tradingContract) {
8
+ this.tradingContract = tradingContract;
9
+ }
10
+ async openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee, staticCall = false) {
11
+ if (staticCall) {
12
+ // @ts-ignore
13
+ return this.tradingContract.traderRequest_openNewPosition.staticCall(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
14
+ value: nativeFee,
15
+ });
16
+ }
17
+ else {
18
+ return this.tradingContract.traderRequest_openNewPosition(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
19
+ value: nativeFee,
20
+ });
21
+ }
22
+ }
23
+ async setExistingPositionToMarketClose(positionId, minPrice, maxPrice, nativeFee) {
24
+ return this.tradingContract.traderRequest_marketClosePosition(positionId, minPrice, maxPrice, {
25
+ value: nativeFee,
26
+ });
27
+ }
28
+ async updatePositionSingleField(positionId, orderType, fieldValue, nativeFee) {
29
+ return this.tradingContract.traderRequest_updatePositionSingleField(positionId, orderType, fieldValue, {
30
+ value: nativeFee,
31
+ });
32
+ }
33
+ async updatePositionDoubleFieldTpAndSl(positionId, tpValue, slValue, nativeFee) {
34
+ return this.tradingContract.traderRequest_updatePositionDoubleField(positionId, contractEnums_1.UpdatePositionFieldOrderTypeEnums.UPDATE_TP_AND_SL, tpValue, slValue, {
35
+ value: nativeFee,
36
+ });
37
+ }
38
+ }
39
+ class DirectActions {
40
+ constructor(tradingContract) {
41
+ this.tradingContract = tradingContract;
42
+ }
43
+ async timeoutOpenMarket(positionId) {
44
+ return this.tradingContract.directAction_timeout_openMarket(positionId);
45
+ }
46
+ async timeoutCloseMarket(positionId) {
47
+ return this.tradingContract.directAction_timeout_closeMarket(positionId);
48
+ }
49
+ async cancelPendingPositionLimit(positionId) {
50
+ return this.tradingContract.directAction_cancelPendingPosition_limit(positionId);
51
+ }
52
+ async cancelPendingUpdatePositionField(positionId) {
53
+ return this.tradingContract.directAction_timeout_updateTradeField(positionId);
54
+ }
55
+ async updatePendingPositionLimit(positionId, minPrice, maxPrice, tp, sl) {
56
+ return this.tradingContract.directAction_updatePendingPosition_limit(positionId, minPrice, maxPrice, tp, sl);
57
+ }
58
+ }
59
+ class ContractInfo {
60
+ constructor(tradingContract) {
61
+ this.tradingContract = tradingContract;
62
+ }
63
+ async getContractName() {
64
+ return this.tradingContract.getContractName();
65
+ }
66
+ async getContractVersion() {
67
+ return this.tradingContract.getContractVersion();
68
+ }
69
+ async getOrderBook() {
70
+ return this.tradingContract.getOrderBook();
71
+ }
72
+ async getTradeIntentsVerifier() {
73
+ return this.tradingContract.getTradeIntentsVerifier();
74
+ }
75
+ async registry() {
76
+ return this.tradingContract.registry();
77
+ }
78
+ async tradingFloor() {
79
+ return this.tradingContract.tradingFloor();
80
+ }
81
+ async admin() {
82
+ return this.tradingContract.admin();
83
+ }
84
+ async pendingAdmin() {
85
+ return this.tradingContract.pendingAdmin();
86
+ }
87
+ }
88
+ class Status {
89
+ constructor(tradingContract) {
90
+ this.tradingContract = tradingContract;
91
+ }
92
+ async isDone() {
93
+ return this.tradingContract.isDone();
94
+ }
95
+ async isLimitingMarketClosePriceRange() {
96
+ return this.tradingContract.isLimitingMarketClosePriceRange();
97
+ }
98
+ async isPaused() {
99
+ return this.tradingContract.isPaused();
100
+ }
101
+ }
102
+ class Settings {
103
+ constructor(tradingContract) {
104
+ this.tradingContract = tradingContract;
105
+ }
106
+ async limitOrdersTimelock() {
107
+ return this.tradingContract.limitOrdersTimelock();
108
+ }
109
+ async marketOrdersTimeout() {
110
+ return this.tradingContract.marketOrdersTimeout();
111
+ }
112
+ async minLiveTimeForMarketClose() {
113
+ return this.tradingContract.minLiveTimeForMarketClose();
114
+ }
115
+ async actionFees(actionType) {
116
+ return this.tradingContract.actionFees(actionType);
117
+ }
118
+ }
119
+ class Constants {
120
+ constructor(tradingContract) {
121
+ this.tradingContract = tradingContract;
122
+ }
123
+ async ACCURACY_IMPROVEMENT_SCALE() {
124
+ return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE();
125
+ }
126
+ async CONTRACT_NAME() {
127
+ return this.tradingContract.CONTRACT_NAME();
128
+ }
129
+ async CONTRACT_VERSION() {
130
+ return this.tradingContract.CONTRACT_VERSION();
131
+ }
132
+ async FRACTION_SCALE() {
133
+ return this.tradingContract.FRACTION_SCALE();
134
+ }
135
+ async LEVERAGE_SCALE() {
136
+ return this.tradingContract.LEVERAGE_SCALE();
137
+ }
138
+ async NATIVE_UNDERLYING_ADDRESS() {
139
+ return this.tradingContract.NATIVE_UNDERLYING_ADDRESS();
140
+ }
141
+ async PRECISION() {
142
+ return this.tradingContract.PRECISION();
143
+ }
144
+ }
145
+ class TradersPortalServiceService {
146
+ constructor(address, signerOrProvider) {
147
+ this.signerOrProvider = signerOrProvider;
148
+ this.tradingContract = TradersPortalV1__factory_1.TradersPortalV1__factory.connect(address, signerOrProvider);
149
+ this.traderRequests = new TraderRequests(this.tradingContract);
150
+ this.directActions = new DirectActions(this.tradingContract);
151
+ this.contractInfo = new ContractInfo(this.tradingContract);
152
+ this.status = new Status(this.tradingContract);
153
+ this.settings = new Settings(this.tradingContract);
154
+ this.constants = new Constants(this.tradingContract);
155
+ }
156
+ }
157
+ exports.TradersPortalServiceService = TradersPortalServiceService;
@@ -0,0 +1,31 @@
1
+ import { TPositionRequestIdentifierStruct, TPositionRequestParamsStruct } from "./ITradersPortalService";
2
+ export interface HumanReadablePositionRequestIdentifier {
3
+ trader: string;
4
+ pairId: number;
5
+ settlementAsset: string;
6
+ }
7
+ export interface HumanReadablePositionRequestParams {
8
+ isLong: boolean;
9
+ collateral: number;
10
+ leverage: number;
11
+ minPrice: number;
12
+ maxPrice: number;
13
+ takeProfit?: number;
14
+ stopLoss?: number;
15
+ takeProfitByFraction?: number;
16
+ stopLossByFraction?: number;
17
+ }
18
+ /**
19
+ * Builds a position request identifier struct from human-readable values
20
+ * @param params Human-readable position request identifier parameters
21
+ * @returns TPositionRequestIdentifierStruct ready for contract interaction
22
+ */
23
+ export declare function buildPositionRequestIdentifier(params: HumanReadablePositionRequestIdentifier): TPositionRequestIdentifierStruct;
24
+ /**
25
+ * Builds a position request params struct from human-readable values
26
+ * @param params Human-readable position request parameters
27
+ * @returns TPositionRequestParamsStruct ready for contract interaction
28
+ * @throws Error if both price-based and fraction-based TP/SL are provided
29
+ */
30
+ export declare function buildPositionRequestParams(params: HumanReadablePositionRequestParams): TPositionRequestParamsStruct;
31
+ //# sourceMappingURL=TradersPortalUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradersPortalUtils.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC7B,MAAM,yBAAyB,CAAC;AAQjC,MAAM,WAAW,sCAAsC;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,sCAAsC,GAC7C,gCAAgC,CAMlC;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,kCAAkC,GACzC,4BAA4B,CA+C9B"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildPositionRequestIdentifier = buildPositionRequestIdentifier;
4
+ exports.buildPositionRequestParams = buildPositionRequestParams;
5
+ const leverageCalculationsUtils_1 = require("../../lynxSystem/leverageCalculationsUtils");
6
+ const chipsCalculationsUtils_1 = require("../../lynxSystem/chipsCalculationsUtils");
7
+ const lynxScalesUtils_1 = require("../../lynxSystem/lynxScalesUtils");
8
+ /**
9
+ * Builds a position request identifier struct from human-readable values
10
+ * @param params Human-readable position request identifier parameters
11
+ * @returns TPositionRequestIdentifierStruct ready for contract interaction
12
+ */
13
+ function buildPositionRequestIdentifier(params) {
14
+ return {
15
+ trader: params.trader,
16
+ pairId: BigInt(params.pairId),
17
+ settlementAsset: params.settlementAsset,
18
+ };
19
+ }
20
+ /**
21
+ * Builds a position request params struct from human-readable values
22
+ * @param params Human-readable position request parameters
23
+ * @returns TPositionRequestParamsStruct ready for contract interaction
24
+ * @throws Error if both price-based and fraction-based TP/SL are provided
25
+ */
26
+ function buildPositionRequestParams(params) {
27
+ // Validate that only one type of TP is provided
28
+ if (params.takeProfit && params.takeProfitByFraction) {
29
+ throw new Error("Cannot specify both takeProfit and takeProfitByFraction. Please use only one.");
30
+ }
31
+ // Validate that only one type of SL is provided
32
+ if (params.stopLoss && params.stopLossByFraction) {
33
+ throw new Error("Cannot specify both stopLoss and stopLossByFraction. Please use only one.");
34
+ }
35
+ // Convert collateral from human-readable to chips (18 decimals)
36
+ const collateralBn = (0, chipsCalculationsUtils_1.floatToChipsBn)(params.collateral);
37
+ // Convert leverage from human-readable (e.g., 65) to scaled (65 * 100 = 6500)
38
+ const leverageBn = BigInt((0, leverageCalculationsUtils_1.floatUnitsToScaledLeverage)(params.leverage));
39
+ // Convert prices from human-readable to scaled (8 decimals)
40
+ const minPriceBn = (0, lynxScalesUtils_1.floatToPriceBn)(params.minPrice);
41
+ const maxPriceBn = (0, lynxScalesUtils_1.floatToPriceBn)(params.maxPrice);
42
+ // Convert optional take profit and stop loss prices
43
+ const tpBn = params.takeProfit ? (0, lynxScalesUtils_1.floatToPriceBn)(params.takeProfit) : 0n;
44
+ const slBn = params.stopLoss ? (0, lynxScalesUtils_1.floatToPriceBn)(params.stopLoss) : 0n;
45
+ // Convert optional fractions (e.g., 0.05 for 5%) to scaled (5 decimals: 0.05 * 100000 = 5000)
46
+ const tpByFractionBn = params.takeProfitByFraction
47
+ ? (0, lynxScalesUtils_1.floatToFractionBn)(params.takeProfitByFraction)
48
+ : 0n;
49
+ const slByFractionBn = params.stopLossByFraction
50
+ ? (0, lynxScalesUtils_1.floatToFractionBn)(params.stopLossByFraction)
51
+ : 0n;
52
+ return {
53
+ long: params.isLong,
54
+ collateral: collateralBn,
55
+ leverage: leverageBn,
56
+ minPrice: minPriceBn,
57
+ maxPrice: maxPriceBn,
58
+ tp: tpBn,
59
+ sl: slBn,
60
+ tpByFraction: tpByFractionBn,
61
+ slByFraction: slByFractionBn,
62
+ };
63
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./ITradersPortalService";
2
+ export * from "./TradersPortalServiceService";
3
+ export * from "./TradersPortalUtils";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ITradersPortalService"), exports);
18
+ __exportStar(require("./TradersPortalServiceService"), exports);
19
+ __exportStar(require("./TradersPortalUtils"), exports);
@@ -0,0 +1,65 @@
1
+ import { BytesLike } from "ethers";
2
+ import { TradingFloorLensStructs } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
3
+ import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
4
+ export type TCompletePositionDataFromLensStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.CompletePositionDataFromLensStruct>, "pairId" | "positionIndex" | "phase" | "inPhaseSince" | "leverage" | "openPrice" | "spreadReductionF" | "minPrice" | "maxPrice" | "tpLastUpdated" | "slLastUpdated" | "tp" | "sl" | "pendingUpdateOrderType" | "pendingUpdateOrderTimestamp" | "liquidationPrice"> & {
5
+ pairId: number;
6
+ positionIndex: number;
7
+ phase: number;
8
+ inPhaseSince: number;
9
+ leverage: number;
10
+ openPrice: number;
11
+ spreadReductionF: number;
12
+ minPrice: number;
13
+ maxPrice: number;
14
+ tpLastUpdated: number;
15
+ slLastUpdated: number;
16
+ tp: number;
17
+ sl: number;
18
+ pendingUpdateOrderType: number;
19
+ pendingUpdateOrderTimestamp: number;
20
+ liquidationPrice: number;
21
+ };
22
+ export type TGetAllPositionsDataForAllTradersResultStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.GetAllPositionsDataForAllTradersResultStruct>, "positions" | "positionsCount" | "traderLastIndex"> & {
23
+ positions: TCompletePositionDataFromLensStruct[];
24
+ positionsCount: number;
25
+ traderLastIndex: number;
26
+ };
27
+ export type TPositionLiquidationInfoStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.PositionLiquidationInfoStruct>, "phase" | "liquidationPrice"> & {
28
+ phase: number;
29
+ liquidationPrice: number;
30
+ };
31
+ export type TGetAllPositionsLiquidationInfoResultStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.GetAllPositionsLiquidationInfoResultStruct>, "positionsLiquidationInfo" | "positionsCount" | "traderLastIndex" | "positionLastIndex"> & {
32
+ positionsLiquidationInfo: TPositionLiquidationInfoStruct[];
33
+ positionsCount: number;
34
+ traderLastIndex: number;
35
+ positionLastIndex: number;
36
+ };
37
+ export type TGetAllPositionsDataForAllTradersParamsStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.GetAllPositionsDataForAllTradersParamsStruct>, "traderStartIndex" | "positionsLimit"> & {
38
+ traderStartIndex: number;
39
+ positionsLimit: number;
40
+ };
41
+ export type TGetAllPositionsLiquidationInfoParamsStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.GetAllPositionsLiquidationInfoParamsStruct>, "traderStartIndex" | "positionStartIndex" | "positionsLimit"> & {
42
+ traderStartIndex: number;
43
+ positionStartIndex: number;
44
+ positionsLimit: number;
45
+ };
46
+ export type TTradingFloorLensTradeParamsStruct = {
47
+ tradingFloor: string;
48
+ maxTradesPerTrader: number;
49
+ maxSlF: number;
50
+ maxSanityProfitF: number;
51
+ };
52
+ export declare const EMPTY_COMPLETE_POSITION_DATA: TCompletePositionDataFromLensStruct;
53
+ export declare const EMPTY_POSITIONS_RESULT: TGetAllPositionsDataForAllTradersResultStruct;
54
+ export declare const EMPTY_POSITION_LIQUIDATION_INFO: TPositionLiquidationInfoStruct;
55
+ export declare const EMPTY_LIQUIDATION_RESULT: TGetAllPositionsLiquidationInfoResultStruct;
56
+ export declare const EMPTY_TRADE_PARAMS: TTradingFloorLensTradeParamsStruct;
57
+ export interface ITradingFloorLensService {
58
+ generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
59
+ getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
60
+ getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
61
+ getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
62
+ getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
63
+ getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
64
+ }
65
+ //# sourceMappingURL=ITradingFloorLensService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,MAAM,MAAM,mCAAmC,GAAG,IAAI,CACpD,oBAAoB,CAAC,uBAAuB,CAAC,kCAAkC,CAAC,EAC9E,QAAQ,GACR,eAAe,GACf,OAAO,GACP,cAAc,GACd,UAAU,GACV,WAAW,GACX,kBAAkB,GAClB,UAAU,GACV,UAAU,GACV,eAAe,GACf,eAAe,GACf,IAAI,GACJ,IAAI,GACJ,wBAAwB,GACxB,6BAA6B,GAC7B,kBAAkB,CACrB,GAAG;IACF,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAAE,MAAM,CAAC;IAC/B,2BAA2B,EAAE,MAAM,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,6CAA6C,GAAG,IAAI,CAC9D,oBAAoB,CAAC,uBAAuB,CAAC,4CAA4C,CAAC,EACxF,WAAW,GACX,gBAAgB,GAChB,iBAAiB,CACpB,GAAG;IACF,SAAS,EAAE,mCAAmC,EAAE,CAAC;IACjD,cAAc,EAAE,MAAM,CAAC;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