lynx-client 0.0.1-beta.8 → 0.0.2

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 (328) hide show
  1. package/README.md +392 -3
  2. package/dist/cjs/index.js +8 -0
  3. package/dist/cjs/lib/chains/chainMappings.js +17 -0
  4. package/dist/cjs/lib/constants/contractEnums.js +2 -0
  5. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
  6. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -0
  7. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  8. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  9. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  10. package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
  11. package/dist/cjs/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  12. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  13. package/dist/cjs/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  14. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
  16. package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  17. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -0
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  20. package/dist/cjs/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  21. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
  22. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  23. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  24. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  25. package/dist/cjs/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  26. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  27. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  28. package/dist/cjs/lib/devex/getChainAddresses.js +65 -0
  29. package/dist/cjs/lib/devex/getSupportedEngineChains.js +45 -0
  30. package/dist/cjs/lib/devex/index.js +9 -0
  31. package/dist/cjs/lib/devex/types.js +2 -0
  32. package/dist/cjs/lib/lynxSystem/hashes.js +9 -0
  33. package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +8 -0
  34. package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
  35. package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  36. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  37. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  38. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  39. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  40. package/dist/cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  41. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  42. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  43. package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  44. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  45. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  46. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  47. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  48. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
  49. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  50. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
  51. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  52. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  53. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  54. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  55. package/dist/cjs/lib/utils/ethersTypes.js +29 -6
  56. package/dist/esm/index.d.ts +7 -0
  57. package/dist/esm/index.d.ts.map +1 -1
  58. package/dist/esm/index.js +8 -0
  59. package/dist/esm/lib/chains/chainMappings.d.ts +13 -0
  60. package/dist/esm/lib/chains/chainMappings.d.ts.map +1 -0
  61. package/dist/esm/lib/chains/chainMappings.js +17 -0
  62. package/dist/esm/lib/chains/chainTypes.d.ts +3 -0
  63. package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -1
  64. package/dist/esm/lib/constants/contractEnums.d.ts +1 -0
  65. package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -1
  66. package/dist/esm/lib/constants/contractEnums.js +2 -0
  67. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +20 -0
  68. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  69. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
  70. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  71. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  72. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -0
  73. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  74. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  75. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  76. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  77. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  78. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  79. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  80. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  81. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  82. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  83. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  84. package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
  85. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  86. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  87. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  88. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  89. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  90. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  91. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  92. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  93. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  94. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  95. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  96. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  97. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
  98. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  99. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
  100. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  101. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  102. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  103. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +76 -0
  104. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  105. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
  106. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
  107. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  108. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -0
  109. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  110. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  111. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  112. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
  113. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  114. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  115. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
  116. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  117. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
  118. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  119. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  120. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  121. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  122. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  123. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  124. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  125. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  126. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  127. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  128. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  129. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  130. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  131. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  132. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  133. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  134. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  135. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  136. package/dist/esm/lib/devex/getChainAddresses.d.ts +20 -0
  137. package/dist/esm/lib/devex/getChainAddresses.d.ts.map +1 -0
  138. package/dist/esm/lib/devex/getChainAddresses.js +65 -0
  139. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts +37 -0
  140. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  141. package/dist/esm/lib/devex/getSupportedEngineChains.js +45 -0
  142. package/dist/esm/lib/devex/index.d.ts +5 -0
  143. package/dist/esm/lib/devex/index.d.ts.map +1 -0
  144. package/dist/esm/lib/devex/index.js +9 -0
  145. package/dist/esm/lib/devex/types.d.ts +20 -0
  146. package/dist/esm/lib/devex/types.d.ts.map +1 -0
  147. package/dist/esm/lib/devex/types.js +2 -0
  148. package/dist/esm/lib/lynxSystem/hashes.d.ts +6 -0
  149. package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -1
  150. package/dist/esm/lib/lynxSystem/hashes.js +9 -0
  151. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  152. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  153. package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +8 -0
  154. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  155. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  156. package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
  157. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  158. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  159. package/dist/esm/lib/typechain/common.d.ts.map +1 -1
  160. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  161. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  162. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  163. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  164. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  165. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  166. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  167. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  168. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  169. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  170. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  171. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  172. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
  173. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  174. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  175. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  176. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  177. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  178. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
  179. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  180. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  181. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  182. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  183. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  184. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
  185. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  186. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  187. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  188. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  189. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  190. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  191. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  192. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  193. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  194. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  195. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  196. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  197. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  198. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
  199. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  200. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
  201. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  202. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  203. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  204. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
  205. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  206. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
  207. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  208. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  209. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  210. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  211. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  212. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  213. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  214. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  215. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  216. package/dist/esm/lib/utils/ethersTypes.d.ts +2 -2
  217. package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -1
  218. package/dist/esm/lib/utils/ethersTypes.js +29 -6
  219. package/dist/types/index.d.ts +7 -0
  220. package/dist/types/index.d.ts.map +1 -1
  221. package/dist/types/lib/chains/chainMappings.d.ts +13 -0
  222. package/dist/types/lib/chains/chainMappings.d.ts.map +1 -0
  223. package/dist/types/lib/chains/chainTypes.d.ts +3 -0
  224. package/dist/types/lib/chains/chainTypes.d.ts.map +1 -1
  225. package/dist/types/lib/constants/contractEnums.d.ts +1 -0
  226. package/dist/types/lib/constants/contractEnums.d.ts.map +1 -1
  227. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +20 -0
  228. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  229. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  230. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  231. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  232. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  233. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  234. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  235. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  236. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  237. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  238. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  239. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  240. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  241. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  242. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  243. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  244. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  245. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  246. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  247. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
  248. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  249. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  250. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  251. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +76 -0
  252. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  253. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
  254. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  255. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  256. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  257. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
  258. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  259. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
  260. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  261. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  262. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  263. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  264. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  265. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  266. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  267. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  268. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  269. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  270. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  271. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  272. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  273. package/dist/types/lib/devex/getChainAddresses.d.ts +20 -0
  274. package/dist/types/lib/devex/getChainAddresses.d.ts.map +1 -0
  275. package/dist/types/lib/devex/getSupportedEngineChains.d.ts +37 -0
  276. package/dist/types/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  277. package/dist/types/lib/devex/index.d.ts +5 -0
  278. package/dist/types/lib/devex/index.d.ts.map +1 -0
  279. package/dist/types/lib/devex/types.d.ts +20 -0
  280. package/dist/types/lib/devex/types.d.ts.map +1 -0
  281. package/dist/types/lib/lynxSystem/hashes.d.ts +6 -0
  282. package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -1
  283. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  284. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  285. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  286. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  287. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  288. package/dist/types/lib/typechain/common.d.ts.map +1 -1
  289. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  290. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  291. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  292. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  293. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  294. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  295. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  296. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  297. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
  298. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  299. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  300. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  301. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
  302. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  303. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  304. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  305. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
  306. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  307. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  308. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  309. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  310. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  311. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  312. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  313. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  314. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  315. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
  316. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  317. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  318. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  319. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
  320. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  321. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  322. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  323. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  324. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  325. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  326. package/dist/types/lib/utils/ethersTypes.d.ts +2 -2
  327. package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -1
  328. package/package.json +7 -7
@@ -0,0 +1,20 @@
1
+ import { BytesLike } from "ethers";
2
+ import { AccountBasedIntentsVerifierRequestBuildingInfoStruct, HashBasedIntentsVerifierRequestBuildingInfoStruct } from "../../typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
3
+ import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
4
+ export type TAccountBasedIntentsVerifierRequestBuildingInfoStruct = Omit<TSafeBigNumberStruct<AccountBasedIntentsVerifierRequestBuildingInfoStruct>, "actionType" | "currentNonce"> & {
5
+ actionType: number;
6
+ currentNonce: number;
7
+ };
8
+ export type THashBasedIntentsVerifierRequestBuildingInfoStruct = Omit<TSafeBigNumberStruct<HashBasedIntentsVerifierRequestBuildingInfoStruct>, "actionType" | "currentNonce"> & {
9
+ actionType: number;
10
+ currentNonce: number;
11
+ };
12
+ export interface IIntentsVerifierLensService {
13
+ getRequestBuildingInfoForChipsIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
14
+ getRequestBuildingInfoForLiquidityIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
15
+ getRequestBuildingInfoForTradeIntentsVerifier(positionId: BytesLike, actionType: number): Promise<THashBasedIntentsVerifierRequestBuildingInfoStruct>;
16
+ registry(): Promise<string>;
17
+ }
18
+ export declare const EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO: TAccountBasedIntentsVerifierRequestBuildingInfoStruct;
19
+ export declare const EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO: THashBasedIntentsVerifierRequestBuildingInfoStruct;
20
+ //# sourceMappingURL=IIntentsVerifierLensService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EACL,oDAAoD,EACpD,iDAAiD,EAClD,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,MAAM,MAAM,qDAAqD,GAAG,IAAI,CACtE,oBAAoB,CAAC,oDAAoD,CAAC,EAC1E,YAAY,GAAG,cAAc,CAC9B,GAAG;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kDAAkD,GAAG,IAAI,CACnE,oBAAoB,CAAC,iDAAiD,CAAC,EACvE,YAAY,GAAG,cAAc,CAC9B,GAAG;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C,CAC3C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC,CAAC;IAElE,iDAAiD,CAC/C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC,CAAC;IAElE,6CAA6C,CAC3C,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAE/D,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,0DAA0D,EAAE,qDAMtE,CAAC;AAEJ,eAAO,MAAM,uDAAuD,EAAE,kDAMnE,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = exports.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = void 0;
4
+ exports.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
5
+ verifier: "",
6
+ account: "",
7
+ actionType: 0,
8
+ currentNonce: 0,
9
+ };
10
+ exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
11
+ verifier: "",
12
+ hash: "",
13
+ actionType: 0,
14
+ currentNonce: 0,
15
+ };
@@ -0,0 +1,11 @@
1
+ import { BytesLike, Provider, Signer } from "ethers";
2
+ import { IIntentsVerifierLensService, TAccountBasedIntentsVerifierRequestBuildingInfoStruct, THashBasedIntentsVerifierRequestBuildingInfoStruct } from "./IIntentsVerifierLensService";
3
+ export declare class IntentsVerifierLensService implements IIntentsVerifierLensService {
4
+ private readonly contract;
5
+ constructor(signerOrProvider: Signer | Provider, address: string);
6
+ getRequestBuildingInfoForChipsIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
7
+ getRequestBuildingInfoForLiquidityIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
8
+ getRequestBuildingInfoForTradeIntentsVerifier(positionId: BytesLike, actionType: number): Promise<THashBasedIntentsVerifierRequestBuildingInfoStruct>;
9
+ registry(): Promise<string>;
10
+ }
11
+ //# sourceMappingURL=IntentsVerifierLensService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrD,OAAO,EACL,2BAA2B,EAC3B,qDAAqD,EACrD,kDAAkD,EAGnD,MAAM,+BAA+B,CAAC;AAEvC,qBAAa,0BAA2B,YAAW,2BAA2B;IAC5E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,6CAA6C,CACjD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAgB3D,iDAAiD,CACrD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAgB3D,6CAA6C,CACjD,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kDAAkD,CAAC;IAgBxD,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntentsVerifierLensService = void 0;
4
+ const IntentsVerifierLens__factory_1 = require("../../typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory");
5
+ const ethersTypes_1 = require("../../utils/ethersTypes");
6
+ const IIntentsVerifierLensService_1 = require("./IIntentsVerifierLensService");
7
+ class IntentsVerifierLensService {
8
+ constructor(signerOrProvider, address) {
9
+ this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
10
+ }
11
+ async getRequestBuildingInfoForChipsIntentsVerifier(account, actionType) {
12
+ const result = await this.contract.getRequestBuildingInfoForChipsIntentsVerifier(account, BigInt(actionType));
13
+ const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
14
+ return {
15
+ ...baseStruct,
16
+ actionType: Number(baseStruct.actionType),
17
+ currentNonce: Number(baseStruct.currentNonce),
18
+ };
19
+ }
20
+ async getRequestBuildingInfoForLiquidityIntentsVerifier(account, actionType) {
21
+ const result = await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier(account, BigInt(actionType));
22
+ const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
23
+ return {
24
+ ...baseStruct,
25
+ actionType: Number(baseStruct.actionType),
26
+ currentNonce: Number(baseStruct.currentNonce),
27
+ };
28
+ }
29
+ async getRequestBuildingInfoForTradeIntentsVerifier(positionId, actionType) {
30
+ const result = await this.contract.getRequestBuildingInfoForTradeIntentsVerifier(positionId, BigInt(actionType));
31
+ const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
32
+ return {
33
+ ...baseStruct,
34
+ actionType: Number(baseStruct.actionType),
35
+ currentNonce: Number(baseStruct.currentNonce),
36
+ };
37
+ }
38
+ async registry() {
39
+ return await this.contract.registry();
40
+ }
41
+ }
42
+ exports.IntentsVerifierLensService = IntentsVerifierLensService;
@@ -0,0 +1,3 @@
1
+ export * from "./IIntentsVerifierLensService";
2
+ export * from "./IntentsVerifierLensService";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,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("./IIntentsVerifierLensService"), exports);
18
+ __exportStar(require("./IntentsVerifierLensService"), exports);
@@ -0,0 +1,85 @@
1
+ import { LexFeeConfigsLensStruct, LexGroupConfigsLensStruct, LexGroupStateLensStruct, LexPairConfigsLensStruct, LexPairStateLensStruct, LexPoolLensParamsStruct, LexPoolConfigurationsLensStruct, PoolAccountantConfigurationsLensStruct, LexPoolLensStateStruct, PoolAccountantStateLensStruct, CompleteLexConfigsLensStruct, CompleteLexStateLensStruct, LexPoolSupplierLensStateStruct, SinglePairTradesValuesInputStruct, PendingEpochDepositLensStruct, PendingEpochRedeemLensStruct, SinglePositionOutputStruct } from "../../typechain/contracts/Peripheral/Lens/LexLens";
2
+ import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
3
+ export type TPendingEpochDepositLensStruct = TSafeBigNumberStruct<PendingEpochDepositLensStruct>;
4
+ export type TPendingEpochRedeemLensStruct = TSafeBigNumberStruct<PendingEpochRedeemLensStruct>;
5
+ export type TLexPoolLensParamsStruct = TSafeBigNumberStruct<LexPoolLensParamsStruct>;
6
+ export type TLexPoolLensStateStruct = TSafeBigNumberStruct<LexPoolLensStateStruct>;
7
+ export type TLexPoolLensConfigsStruct = TSafeBigNumberStruct<LexPoolConfigurationsLensStruct>;
8
+ export type TLexPoolSupplierLensStateStruct = TSafeBigNumberStruct<LexPoolSupplierLensStateStruct>;
9
+ export type TPoolAccountantStateLensStruct = TSafeBigNumberStruct<PoolAccountantStateLensStruct>;
10
+ export type TPoolAccountantConfigurationsLensStruct = TSafeBigNumberStruct<PoolAccountantConfigurationsLensStruct>;
11
+ export type TLexPairConfigsLensStruct = Omit<TSafeBigNumberStruct<LexPairConfigsLensStruct>, "pairId" | "groupId" | "feeId"> & {
12
+ pairId: number;
13
+ groupId: number;
14
+ feeId: number;
15
+ };
16
+ export type TLexPairStateLensStruct = Omit<TSafeBigNumberStruct<LexPairStateLensStruct>, "pairId"> & {
17
+ pairId: number;
18
+ };
19
+ export type TLexGroupStateLensStruct = Omit<TSafeBigNumberStruct<LexGroupStateLensStruct>, "groupId"> & {
20
+ groupId: number;
21
+ };
22
+ export type TLexFeeConfigsLensStruct = Omit<LexFeeConfigsLensStruct, "feeId" | "openFeeF" | "closeFeeF" | "performanceFeeF"> & {
23
+ feeId: number;
24
+ openFeeF: number;
25
+ closeFeeF: number;
26
+ performanceFeeF: number;
27
+ };
28
+ export type TLexGroupConfigsLensStruct = Omit<LexGroupConfigsLensStruct, "groupId" | "maxBorrowF"> & {
29
+ groupId: number;
30
+ maxBorrowF: number;
31
+ };
32
+ export type TLensCompleteLexStateStruct = Omit<TSafeBigNumberStruct<CompleteLexStateLensStruct>, "pairsStates" | "groupsStates"> & {
33
+ pairsStates: TLexPairStateLensStruct[];
34
+ groupsStates: TLexGroupStateLensStruct[];
35
+ };
36
+ export type TLensCompleteLexConfigsStruct = Omit<TSafeBigNumberStruct<CompleteLexConfigsLensStruct>, "groupsConfigs" | "pairsConfigs" | "feesConfigs"> & {
37
+ groupsConfigs: TLexGroupConfigsLensStruct[];
38
+ pairsConfigs: TLexPairConfigsLensStruct[];
39
+ feesConfigs: TLexFeeConfigsLensStruct[];
40
+ };
41
+ export type TSinglePositionOutputStruct = TSafeBigNumberStruct<SinglePositionOutputStruct>;
42
+ export interface ILexLensService {
43
+ getAllFeeConfigurationsInLex(lexPool: string): Promise<TLexFeeConfigsLensStruct[]>;
44
+ getAllGroupConfigurationsInLex(lexPool: string): Promise<TLexGroupConfigsLensStruct[]>;
45
+ getAllGroupStateInLex(lexPool: string): Promise<TLexGroupStateLensStruct[]>;
46
+ getAllPairAndGroupAndFeeConfigurationsInLex(lexPool: string): Promise<boolean>;
47
+ getAllPairConfigurationsInLex(lexPool: string): Promise<TLexPairConfigsLensStruct[]>;
48
+ getAllPairStateInLex(lexPool: string): Promise<TLexPairStateLensStruct[]>;
49
+ getCompleteConfigsForLex(pool: string): Promise<TLensCompleteLexConfigsStruct>;
50
+ getCompleteConfigsForLexes(pools: string[]): Promise<TLensCompleteLexConfigsStruct[]>;
51
+ getCompleteStateForLex(pool: string): Promise<TLensCompleteLexStateStruct>;
52
+ getCompleteStateForLexes(pools: string[]): Promise<TLensCompleteLexStateStruct[]>;
53
+ getLExPoolForPoolAccountant(accountant: string): Promise<string>;
54
+ getLexPairState(lexPool: string, pairId: number): Promise<TLexPairStateLensStruct>;
55
+ getLexPoolConfigs(lexPool: string): Promise<TLexPoolLensConfigsStruct>;
56
+ getLexPoolParams(lexPool: string): Promise<TLexPoolLensParamsStruct>;
57
+ getLexPoolState(lexPool: string): Promise<TLexPoolLensStateStruct>;
58
+ getLexPoolSupplierState(lexPool: string, supplier: string): Promise<TLexPoolSupplierLensStateStruct>;
59
+ getLexPoolsStateAll(lexPools: string[]): Promise<TLexPoolLensStateStruct[]>;
60
+ getPoolAccountantConfigurationsByPool(lexPool: string): Promise<TPoolAccountantConfigurationsLensStruct>;
61
+ getPoolAccountantConfigurationsByPoolAll(lexPools: string[]): Promise<TPoolAccountantConfigurationsLensStruct[]>;
62
+ getPoolAccountantForLexPool(lexPool: string): Promise<string>;
63
+ getPoolAccountantStateByPool(lexPool: string): Promise<TPoolAccountantStateLensStruct>;
64
+ getPoolAccountantStateByPoolAll(lexPools: string[]): Promise<TPoolAccountantStateLensStruct[]>;
65
+ getSupplierCurrentStateAll(lexPools: string[], supplier: string): Promise<TLexPoolSupplierLensStateStruct[]>;
66
+ tradesValuesMultiplePairs(accountant: string, pairsTrades: SinglePairTradesValuesInputStruct[]): Promise<TSinglePositionOutputStruct[][]>;
67
+ tradesValuesSinglePair(accountant: string, pairParams: SinglePairTradesValuesInputStruct): Promise<TSinglePositionOutputStruct[]>;
68
+ }
69
+ export declare const EMPTY_PENDING_EPOCH_DEPOSIT: TPendingEpochDepositLensStruct;
70
+ export declare const EMPTY_PENDING_EPOCH_REDEEM: TPendingEpochRedeemLensStruct;
71
+ export declare const EMPTY_LEX_POOL_LENS_PARAMS: TLexPoolLensParamsStruct;
72
+ export declare const EMPTY_LEX_POOL_LENS_STATE: TLexPoolLensStateStruct;
73
+ export declare const EMPTY_LEX_POOL_LENS_CONFIGS: TLexPoolLensConfigsStruct;
74
+ export declare const EMPTY_PAIR_CONFIGS_LENS: TLexPairConfigsLensStruct;
75
+ export declare const EMPTY_FEE_CONFIGS_LENS: TLexFeeConfigsLensStruct;
76
+ export declare const EMPTY_GROUP_CONFIGS_LENS: TLexGroupConfigsLensStruct;
77
+ export declare const EMPTY_LEX_PAIR_STATE_LENS: TLexPairStateLensStruct;
78
+ export declare const EMPTY_LEX_GROUP_STATE_LENS: TLexGroupStateLensStruct;
79
+ export declare const EMPTY_LEX_POOL_SUPPLIER_LENS_STATE: TLexPoolSupplierLensStateStruct;
80
+ export declare const EMPTY_POOL_ACCOUNTANT_STATE_LENS: TPoolAccountantStateLensStruct;
81
+ export declare const EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS: TPoolAccountantConfigurationsLensStruct;
82
+ export declare const EMPTY_COMPLETE_LEX_STATE: TLensCompleteLexStateStruct;
83
+ export declare const EMPTY_COMPLETE_LEX_CONFIGS: TLensCompleteLexConfigsStruct;
84
+ export declare const EMPTY_SINGLE_POSITION_OUTPUT: TSinglePositionOutputStruct;
85
+ //# sourceMappingURL=ILexLensService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILexLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexLensService/ILexLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,sCAAsC,EACtC,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,EAEjC,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,mDAAmD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AAM,0BAA0B,EAAE,6BAOxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,2BAK1C,CAAC"}
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMPTY_SINGLE_POSITION_OUTPUT = exports.EMPTY_COMPLETE_LEX_CONFIGS = exports.EMPTY_COMPLETE_LEX_STATE = exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS = exports.EMPTY_POOL_ACCOUNTANT_STATE_LENS = exports.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE = exports.EMPTY_LEX_GROUP_STATE_LENS = exports.EMPTY_LEX_PAIR_STATE_LENS = exports.EMPTY_GROUP_CONFIGS_LENS = exports.EMPTY_FEE_CONFIGS_LENS = exports.EMPTY_PAIR_CONFIGS_LENS = exports.EMPTY_LEX_POOL_LENS_CONFIGS = exports.EMPTY_LEX_POOL_LENS_STATE = exports.EMPTY_LEX_POOL_LENS_PARAMS = exports.EMPTY_PENDING_EPOCH_REDEEM = exports.EMPTY_PENDING_EPOCH_DEPOSIT = void 0;
4
+ // Empty constants
5
+ exports.EMPTY_PENDING_EPOCH_DEPOSIT = {
6
+ account: "",
7
+ amount: 0n,
8
+ epochNumber: 0n,
9
+ minAmountOut: 0n,
10
+ };
11
+ exports.EMPTY_PENDING_EPOCH_REDEEM = {
12
+ account: "",
13
+ amount: 0n,
14
+ epochNumber: 0n,
15
+ maxAmountOut: 0n,
16
+ minAmountOut: 0n,
17
+ };
18
+ exports.EMPTY_LEX_POOL_LENS_PARAMS = {
19
+ lexToken: "",
20
+ name: "",
21
+ symbol: "",
22
+ underlying: "",
23
+ };
24
+ exports.EMPTY_LEX_POOL_LENS_STATE = {
25
+ currentVirtualUtilization: 0n,
26
+ nextEpochStartMin: 0n,
27
+ poolBalance: 0n,
28
+ totalPendingDeposits: 0n,
29
+ totalPendingWithdrawals: 0n,
30
+ totalSupply: 0n,
31
+ virtualBalanceForUtilization: 0n,
32
+ lexPool: "",
33
+ cash: 0n,
34
+ connectedToCenter: false,
35
+ currentEpochNumber: 0n,
36
+ currentExchangeRate: 0n,
37
+ };
38
+ exports.EMPTY_LEX_POOL_LENS_CONFIGS = {
39
+ lexPool: "",
40
+ epochLength: 0n,
41
+ minDepositAmount: 0n,
42
+ epochsDelayDeposit: 0n,
43
+ epochsDelayRedeem: 0n,
44
+ immediateDepositAllowed: false,
45
+ };
46
+ exports.EMPTY_PAIR_CONFIGS_LENS = {
47
+ feeId: 0,
48
+ groupId: 0,
49
+ maxBorrowF: 0n,
50
+ maxGain: 0n,
51
+ maxLeverage: 0n,
52
+ maxOpenInterest: 0n,
53
+ maxPositionSize: 0n,
54
+ maxSkew: 0n,
55
+ minLeverage: 0n,
56
+ pairId: 0,
57
+ minPerformanceFee: 0n,
58
+ minOpenFee: 0n,
59
+ };
60
+ exports.EMPTY_FEE_CONFIGS_LENS = {
61
+ feeId: 0,
62
+ openFeeF: 0,
63
+ closeFeeF: 0,
64
+ performanceFeeF: 0,
65
+ };
66
+ exports.EMPTY_GROUP_CONFIGS_LENS = {
67
+ groupId: 0,
68
+ maxBorrowF: 0,
69
+ maxLeverage: 0n,
70
+ maxPositionSize: 0n,
71
+ minLeverage: 0n,
72
+ };
73
+ exports.EMPTY_LEX_PAIR_STATE_LENS = {
74
+ fundingRate: 0n,
75
+ lexPool: "",
76
+ openInterestLong: 0n,
77
+ openInterestShort: 0n,
78
+ pairId: 0,
79
+ tradersPairGains: 0n,
80
+ pairBorrows: 0n,
81
+ };
82
+ exports.EMPTY_LEX_GROUP_STATE_LENS = {
83
+ lexPool: "",
84
+ groupId: 0,
85
+ groupBorrows: 0n,
86
+ };
87
+ exports.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE = {
88
+ allowanceForLexPool: 0n,
89
+ lexPool: "",
90
+ lxpBalance: 0n,
91
+ lxpBalanceInUnderlying: 0n,
92
+ pendingEpochDeposits: [],
93
+ pendingEpochRedeems: [],
94
+ supplier: "",
95
+ underlyingBalance: 0n,
96
+ };
97
+ exports.EMPTY_POOL_ACCOUNTANT_STATE_LENS = {
98
+ accountant: "",
99
+ borrowRatePerSecond: 0n,
100
+ interestShare: 0n,
101
+ matchingPool: "",
102
+ totalBorrows: 0n,
103
+ unrealizedFunding: 0n,
104
+ fundingShare: 0n,
105
+ };
106
+ exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS = {
107
+ accountant: "",
108
+ fundingRateModel: "",
109
+ interestRateModel: "",
110
+ interestShareFactor: 0n,
111
+ matchingPool: "",
112
+ minOpenFee: 0n,
113
+ lexPartF: 0n,
114
+ liquidationThresholdF: 0n,
115
+ liquidationFeeF: 0n,
116
+ supportedPairIds: [],
117
+ };
118
+ exports.EMPTY_COMPLETE_LEX_STATE = {
119
+ lexPoolState: exports.EMPTY_LEX_POOL_LENS_STATE,
120
+ poolAccountantState: exports.EMPTY_POOL_ACCOUNTANT_STATE_LENS,
121
+ pairsStates: [],
122
+ groupsStates: [],
123
+ };
124
+ exports.EMPTY_COMPLETE_LEX_CONFIGS = {
125
+ lexPoolParams: exports.EMPTY_LEX_POOL_LENS_PARAMS,
126
+ lexPoolConfigurations: exports.EMPTY_LEX_POOL_LENS_CONFIGS,
127
+ poolAccountantConfigurations: exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS,
128
+ groupsConfigs: [],
129
+ pairsConfigs: [],
130
+ feesConfigs: [],
131
+ };
132
+ exports.EMPTY_SINGLE_POSITION_OUTPUT = {
133
+ totalValue: 0n,
134
+ safeClosingFee: 0n,
135
+ interest: 0n,
136
+ funding: 0n,
137
+ };
@@ -0,0 +1,34 @@
1
+ import { Provider, Signer } from "ethers";
2
+ import { SinglePairTradesValuesInputStruct } from "../../typechain/contracts/Peripheral/Lens/LexLens";
3
+ import { ILexLensService, TLexFeeConfigsLensStruct, TLexGroupConfigsLensStruct, TLexGroupStateLensStruct, TLexPairConfigsLensStruct, TLexPairStateLensStruct, TLexPoolLensParamsStruct, TLexPoolLensConfigsStruct, TPoolAccountantConfigurationsLensStruct, TLexPoolLensStateStruct, TPoolAccountantStateLensStruct, TLensCompleteLexConfigsStruct, TLensCompleteLexStateStruct, TLexPoolSupplierLensStateStruct, TSinglePositionOutputStruct } from "./ILexLensService";
4
+ export declare class LexLensService implements ILexLensService {
5
+ private readonly contract;
6
+ constructor(signerOrProvider: Signer | Provider, contractAddress: string);
7
+ getAllFeeConfigurationsInLex(lexPool: string): Promise<TLexFeeConfigsLensStruct[]>;
8
+ getAllGroupConfigurationsInLex(lexPool: string): Promise<TLexGroupConfigsLensStruct[]>;
9
+ getAllGroupStateInLex(lexPool: string): Promise<TLexGroupStateLensStruct[]>;
10
+ getAllPairAndGroupAndFeeConfigurationsInLex(lexPool: string): Promise<boolean>;
11
+ getAllPairConfigurationsInLex(lexPool: string): Promise<TLexPairConfigsLensStruct[]>;
12
+ getAllPairStateInLex(lexPool: string): Promise<TLexPairStateLensStruct[]>;
13
+ getCompleteConfigsForLex(pool: string): Promise<TLensCompleteLexConfigsStruct>;
14
+ getCompleteConfigsForLexes(pools: string[]): Promise<TLensCompleteLexConfigsStruct[]>;
15
+ getCompleteStateForLex(pool: string): Promise<TLensCompleteLexStateStruct>;
16
+ getCompleteStateForLexes(pools: string[]): Promise<TLensCompleteLexStateStruct[]>;
17
+ getLExPoolForPoolAccountant(accountant: string): Promise<string>;
18
+ getLexPairState(lexPool: string, pairId: number): Promise<TLexPairStateLensStruct>;
19
+ getLexPoolConfigs(lexPool: string): Promise<TLexPoolLensConfigsStruct>;
20
+ getLexPoolParams(lexPool: string): Promise<TLexPoolLensParamsStruct>;
21
+ getLexPoolState(lexPool: string): Promise<TLexPoolLensStateStruct>;
22
+ getLexPoolSupplierState(lexPool: string, supplier: string): Promise<TLexPoolSupplierLensStateStruct>;
23
+ getLexPoolsStateAll(lexPools: string[]): Promise<TLexPoolLensStateStruct[]>;
24
+ getPoolAccountantConfigurationsByPool(lexPool: string): Promise<TPoolAccountantConfigurationsLensStruct>;
25
+ getPoolAccountantConfigurationsByPoolAll(lexPools: string[]): Promise<TPoolAccountantConfigurationsLensStruct[]>;
26
+ getPoolAccountantForLexPool(lexPool: string): Promise<string>;
27
+ getPoolAccountantStateByPool(lexPool: string): Promise<TPoolAccountantStateLensStruct>;
28
+ getPoolAccountantStateByPoolAll(lexPools: string[]): Promise<TPoolAccountantStateLensStruct[]>;
29
+ getSupplierCurrentStateAll(lexPools: string[], supplier: string): Promise<TLexPoolSupplierLensStateStruct[]>;
30
+ tradesValuesMultiplePairs(accountant: string, pairsTrades: SinglePairTradesValuesInputStruct[]): Promise<TSinglePositionOutputStruct[][]>;
31
+ tradesValuesSinglePair(accountant: string, pairParams: SinglePairTradesValuesInputStruct): Promise<TSinglePositionOutputStruct[]>;
32
+ private convertCompleteConfigsResult;
33
+ }
34
+ //# sourceMappingURL=LexLensService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LexLensService/LexLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AAEtG,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,uCAAuC,EACvC,uBAAuB,EACvB,8BAA8B,EAC9B,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAiB5B,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,cAAe,YAAW,eAAe;IACpD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;gBAEvB,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAIlE,4BAA4B,CAChC,OAAO,EAAE,MAAM,GACd,OAAO,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