lynx-client 0.0.1-beta.1 → 0.0.1-beta.11

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 (503) hide show
  1. package/dist/cjs/index.js +37 -30
  2. package/dist/cjs/{addresses → lib/addresses}/lensAddresses.js +2 -2
  3. package/dist/cjs/lib/addresses/systemAddresses.js +25 -0
  4. package/dist/cjs/lib/chains/chainConstants.js +20 -0
  5. package/dist/cjs/lib/chains/chainTypes.js +23 -0
  6. package/dist/{esm/common → cjs/lib}/constants/contractEnums.js +37 -35
  7. package/dist/{esm/common → cjs/lib}/constants/scales.js +1 -6
  8. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
  9. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +27 -0
  10. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  11. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  12. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +270 -0
  13. package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
  14. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +47 -0
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  16. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
  17. package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +49 -0
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  20. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
  21. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  22. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +28 -0
  23. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  24. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  25. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +135 -0
  26. package/dist/cjs/{utils → lib/lynxSystem}/chipsCalculationsUtils.js +2 -2
  27. package/dist/cjs/lib/lynxSystem/hashes.js +17 -0
  28. package/dist/cjs/{utils → lib/lynxSystem}/leverageCalculationsUtils.js +1 -1
  29. package/dist/{esm/utils → cjs/lib/lynxSystem}/lynxScalesUtils.js +10 -2
  30. package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
  31. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  32. package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  33. package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
  34. package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
  35. package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
  36. package/dist/cjs/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
  37. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  38. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  39. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  40. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  41. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
  42. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  43. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
  44. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  45. package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  46. package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  47. package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  48. package/dist/cjs/lib/utils/enumTypes.js +2 -0
  49. package/dist/{esm → cjs/lib}/utils/ethersTypes.js +29 -6
  50. package/dist/esm/index.d.ts +37 -29
  51. package/dist/esm/index.d.ts.map +1 -1
  52. package/dist/esm/index.js +37 -30
  53. package/dist/{types → esm/lib}/addresses/lensAddresses.d.ts +2 -2
  54. package/dist/esm/lib/addresses/lensAddresses.d.ts.map +1 -0
  55. package/dist/esm/{addresses → lib/addresses}/lensAddresses.js +2 -2
  56. package/dist/esm/lib/addresses/systemAddresses.d.ts +23 -0
  57. package/dist/esm/lib/addresses/systemAddresses.d.ts.map +1 -0
  58. package/dist/esm/lib/addresses/systemAddresses.js +25 -0
  59. package/dist/esm/lib/chains/chainConstants.d.ts +18 -0
  60. package/dist/esm/lib/chains/chainConstants.d.ts.map +1 -0
  61. package/dist/esm/lib/chains/chainConstants.js +20 -0
  62. package/dist/esm/lib/chains/chainTypes.d.ts +10 -0
  63. package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -0
  64. package/dist/esm/lib/chains/chainTypes.js +23 -0
  65. package/dist/{types/common → esm/lib}/constants/contractEnums.d.ts +37 -36
  66. package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -0
  67. package/dist/{cjs/common → esm/lib}/constants/contractEnums.js +37 -35
  68. package/dist/esm/lib/constants/feeIds.d.ts.map +1 -0
  69. package/dist/esm/lib/constants/generalConstants.d.ts.map +1 -0
  70. package/dist/esm/{common → lib}/constants/groupIds.d.ts +1 -1
  71. package/dist/esm/lib/constants/groupIds.d.ts.map +1 -0
  72. package/dist/{types/common → esm/lib}/constants/pairIds.d.ts +1 -1
  73. package/dist/esm/lib/constants/pairIds.d.ts.map +1 -0
  74. package/dist/esm/{common → lib}/constants/scales.d.ts +0 -1
  75. package/dist/esm/lib/constants/scales.d.ts.map +1 -0
  76. package/dist/{cjs/common → esm/lib}/constants/scales.js +1 -6
  77. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +14 -0
  78. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  79. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
  80. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  81. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  82. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +27 -0
  83. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  84. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  85. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  86. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  87. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  88. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  89. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +35 -0
  90. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  91. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +270 -0
  92. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  93. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  94. package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
  95. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +14 -0
  96. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  97. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  98. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +19 -0
  99. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  100. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +47 -0
  101. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  102. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  103. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  104. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  105. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  106. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  107. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
  108. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  109. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
  110. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  111. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  112. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  113. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +15 -0
  114. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  115. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +2 -0
  116. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +19 -0
  117. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  118. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +49 -0
  119. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  120. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  121. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  122. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
  123. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  124. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  125. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
  126. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  127. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
  128. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +15 -0
  129. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  130. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  131. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  132. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  133. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +28 -0
  134. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  135. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  136. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  137. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  138. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  139. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  140. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  141. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  142. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  143. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +49 -0
  144. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
  145. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +135 -0
  146. package/dist/esm/lib/lynxSystem/chipsCalculationsUtils.d.ts.map +1 -0
  147. package/dist/esm/{utils → lib/lynxSystem}/chipsCalculationsUtils.js +2 -2
  148. package/dist/esm/lib/lynxSystem/hashes.d.ts +8 -0
  149. package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -0
  150. package/dist/esm/lib/lynxSystem/hashes.js +17 -0
  151. package/dist/esm/lib/lynxSystem/leverageCalculationsUtils.d.ts.map +1 -0
  152. package/dist/esm/{utils → lib/lynxSystem}/leverageCalculationsUtils.js +1 -1
  153. package/dist/esm/{utils → lib/lynxSystem}/lynxScalesUtils.d.ts +2 -0
  154. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -0
  155. package/dist/{cjs/utils → esm/lib/lynxSystem}/lynxScalesUtils.js +10 -2
  156. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  157. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  158. package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
  159. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
  160. package/dist/esm/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
  161. package/dist/esm/lib/typechain/common.d.ts.map +1 -0
  162. package/dist/esm/lib/typechain/common.js +2 -0
  163. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  164. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  165. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  166. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  167. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  168. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  169. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  170. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  171. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  172. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  173. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  174. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  175. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
  176. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  177. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  178. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  179. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  180. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  181. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
  182. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  183. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  184. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  185. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  186. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  187. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
  188. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
  189. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
  190. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
  191. package/dist/{types/common → esm/lib}/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
  192. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
  193. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
  194. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
  195. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
  196. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  197. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  198. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  199. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  200. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  201. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  202. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  203. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  204. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  205. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  206. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  207. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  208. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
  209. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  210. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
  211. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  212. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  213. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  214. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
  215. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  216. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
  217. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  218. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  219. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  220. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
  221. package/dist/{types/common → esm/lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  222. package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
  223. package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  224. package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  225. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
  226. package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  227. package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  228. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
  229. package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  230. package/dist/esm/lib/utils/addresses.d.ts.map +1 -0
  231. package/dist/esm/lib/utils/bignumbers.d.ts.map +1 -0
  232. package/dist/esm/lib/utils/cloning.d.ts.map +1 -0
  233. package/dist/esm/lib/utils/enumTypes.d.ts.map +1 -0
  234. package/dist/esm/lib/utils/enumTypes.js +2 -0
  235. package/dist/esm/{utils → lib/utils}/ethersTypes.d.ts +2 -2
  236. package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -0
  237. package/dist/{cjs → esm/lib}/utils/ethersTypes.js +29 -6
  238. package/dist/esm/lib/utils/types.d.ts.map +1 -0
  239. package/dist/types/index.d.ts +37 -29
  240. package/dist/types/index.d.ts.map +1 -1
  241. package/dist/{esm → types/lib}/addresses/lensAddresses.d.ts +2 -2
  242. package/dist/types/lib/addresses/lensAddresses.d.ts.map +1 -0
  243. package/dist/types/lib/addresses/systemAddresses.d.ts +23 -0
  244. package/dist/types/lib/addresses/systemAddresses.d.ts.map +1 -0
  245. package/dist/types/lib/chains/chainConstants.d.ts +18 -0
  246. package/dist/types/lib/chains/chainConstants.d.ts.map +1 -0
  247. package/dist/types/lib/chains/chainTypes.d.ts +10 -0
  248. package/dist/types/lib/chains/chainTypes.d.ts.map +1 -0
  249. package/dist/{esm/common → types/lib}/constants/contractEnums.d.ts +37 -36
  250. package/dist/types/lib/constants/contractEnums.d.ts.map +1 -0
  251. package/dist/types/lib/constants/feeIds.d.ts.map +1 -0
  252. package/dist/types/lib/constants/generalConstants.d.ts.map +1 -0
  253. package/dist/types/{common → lib}/constants/groupIds.d.ts +1 -1
  254. package/dist/types/lib/constants/groupIds.d.ts.map +1 -0
  255. package/dist/{esm/common → types/lib}/constants/pairIds.d.ts +1 -1
  256. package/dist/types/lib/constants/pairIds.d.ts.map +1 -0
  257. package/dist/types/{common → lib}/constants/scales.d.ts +0 -1
  258. package/dist/types/lib/constants/scales.d.ts.map +1 -0
  259. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +14 -0
  260. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  261. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  262. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  263. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  264. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  265. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  266. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  267. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +35 -0
  268. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  269. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  270. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  271. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +14 -0
  272. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  273. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +19 -0
  274. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  275. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  276. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  277. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  278. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  279. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
  280. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  281. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  282. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  283. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +15 -0
  284. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  285. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +19 -0
  286. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  287. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  288. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  289. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
  290. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  291. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
  292. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  293. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +15 -0
  294. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  295. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  296. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  297. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  298. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  299. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  300. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  301. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  302. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  303. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +49 -0
  304. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
  305. package/dist/types/lib/lynxSystem/chipsCalculationsUtils.d.ts.map +1 -0
  306. package/dist/types/lib/lynxSystem/hashes.d.ts +8 -0
  307. package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -0
  308. package/dist/types/lib/lynxSystem/leverageCalculationsUtils.d.ts.map +1 -0
  309. package/dist/types/{utils → lib/lynxSystem}/lynxScalesUtils.d.ts +2 -0
  310. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -0
  311. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  312. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  313. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
  314. package/dist/types/lib/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
  315. package/dist/types/lib/typechain/common.d.ts.map +1 -0
  316. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  317. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  318. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  319. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  320. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  321. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  322. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  323. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  324. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
  325. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  326. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  327. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  328. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
  329. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  330. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  331. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  332. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
  333. package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
  334. package/dist/{esm/common → types/lib}/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
  335. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
  336. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
  337. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  338. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  339. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  340. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  341. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  342. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  343. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  344. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  345. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
  346. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  347. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  348. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  349. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
  350. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  351. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  352. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  353. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
  354. package/dist/{esm/common → types/lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  355. package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
  356. package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  357. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
  358. package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  359. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
  360. package/dist/types/lib/utils/addresses.d.ts.map +1 -0
  361. package/dist/types/lib/utils/bignumbers.d.ts.map +1 -0
  362. package/dist/types/lib/utils/cloning.d.ts.map +1 -0
  363. package/dist/types/lib/utils/enumTypes.d.ts.map +1 -0
  364. package/dist/types/{utils → lib/utils}/ethersTypes.d.ts +2 -2
  365. package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -0
  366. package/dist/types/lib/utils/types.d.ts.map +1 -0
  367. package/package.json +2 -1
  368. package/dist/cjs/common/contractsIntegration/deployedContractsConnector.js +0 -16
  369. package/dist/cjs/utils/chainTypes.js +0 -20
  370. package/dist/cjs/utils/hashes.js +0 -8
  371. package/dist/esm/addresses/lensAddresses.d.ts.map +0 -1
  372. package/dist/esm/common/constants/contractEnums.d.ts.map +0 -1
  373. package/dist/esm/common/constants/feeIds.d.ts.map +0 -1
  374. package/dist/esm/common/constants/generalConstants.d.ts.map +0 -1
  375. package/dist/esm/common/constants/groupIds.d.ts.map +0 -1
  376. package/dist/esm/common/constants/pairIds.d.ts.map +0 -1
  377. package/dist/esm/common/constants/scales.d.ts.map +0 -1
  378. package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts +0 -7
  379. package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts.map +0 -1
  380. package/dist/esm/common/contractsIntegration/deployedContractsConnector.js +0 -16
  381. package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +0 -1
  382. package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +0 -1
  383. package/dist/esm/common/typechain/common.d.ts.map +0 -1
  384. package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +0 -1
  385. package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +0 -1
  386. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +0 -1
  387. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +0 -1
  388. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +0 -1
  389. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +0 -1
  390. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +0 -1
  391. package/dist/esm/utils/addresses.d.ts.map +0 -1
  392. package/dist/esm/utils/bignumbers.d.ts.map +0 -1
  393. package/dist/esm/utils/chainTypes.d.ts +0 -137
  394. package/dist/esm/utils/chainTypes.d.ts.map +0 -1
  395. package/dist/esm/utils/chainTypes.js +0 -20
  396. package/dist/esm/utils/chipsCalculationsUtils.d.ts.map +0 -1
  397. package/dist/esm/utils/cloning.d.ts.map +0 -1
  398. package/dist/esm/utils/enumTypes.d.ts.map +0 -1
  399. package/dist/esm/utils/ethersTypes.d.ts.map +0 -1
  400. package/dist/esm/utils/hashes.d.ts +0 -2
  401. package/dist/esm/utils/hashes.d.ts.map +0 -1
  402. package/dist/esm/utils/hashes.js +0 -8
  403. package/dist/esm/utils/leverageCalculationsUtils.d.ts.map +0 -1
  404. package/dist/esm/utils/lynxScalesUtils.d.ts.map +0 -1
  405. package/dist/esm/utils/types.d.ts.map +0 -1
  406. package/dist/types/addresses/lensAddresses.d.ts.map +0 -1
  407. package/dist/types/common/constants/contractEnums.d.ts.map +0 -1
  408. package/dist/types/common/constants/feeIds.d.ts.map +0 -1
  409. package/dist/types/common/constants/generalConstants.d.ts.map +0 -1
  410. package/dist/types/common/constants/groupIds.d.ts.map +0 -1
  411. package/dist/types/common/constants/pairIds.d.ts.map +0 -1
  412. package/dist/types/common/constants/scales.d.ts.map +0 -1
  413. package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts +0 -7
  414. package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts.map +0 -1
  415. package/dist/types/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +0 -1
  416. package/dist/types/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +0 -1
  417. package/dist/types/common/typechain/common.d.ts.map +0 -1
  418. package/dist/types/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +0 -1
  419. package/dist/types/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +0 -1
  420. package/dist/types/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +0 -1
  421. package/dist/types/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +0 -1
  422. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +0 -1
  423. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +0 -1
  424. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +0 -1
  425. package/dist/types/utils/addresses.d.ts.map +0 -1
  426. package/dist/types/utils/bignumbers.d.ts.map +0 -1
  427. package/dist/types/utils/chainTypes.d.ts +0 -137
  428. package/dist/types/utils/chainTypes.d.ts.map +0 -1
  429. package/dist/types/utils/chipsCalculationsUtils.d.ts.map +0 -1
  430. package/dist/types/utils/cloning.d.ts.map +0 -1
  431. package/dist/types/utils/enumTypes.d.ts.map +0 -1
  432. package/dist/types/utils/ethersTypes.d.ts.map +0 -1
  433. package/dist/types/utils/hashes.d.ts +0 -2
  434. package/dist/types/utils/hashes.d.ts.map +0 -1
  435. package/dist/types/utils/leverageCalculationsUtils.d.ts.map +0 -1
  436. package/dist/types/utils/lynxScalesUtils.d.ts.map +0 -1
  437. package/dist/types/utils/types.d.ts.map +0 -1
  438. /package/dist/cjs/{common → lib}/constants/feeIds.js +0 -0
  439. /package/dist/cjs/{common → lib}/constants/generalConstants.js +0 -0
  440. /package/dist/cjs/{common → lib}/constants/groupIds.js +0 -0
  441. /package/dist/cjs/{common → lib}/constants/pairIds.js +0 -0
  442. /package/dist/cjs/{common/typechain/common.js → lib/contractsIntegration/OrderBookService/IOrderBookService.js} +0 -0
  443. /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js → lib/contractsIntegration/TradersPortalService/ITradersPortalService.js} +0 -0
  444. /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/LexLens.js → lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js} +0 -0
  445. /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js → lib/contractsIntegration/TradingFloorService/ITradingFloorService.js} +0 -0
  446. /package/dist/cjs/{common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js → lib/contractsIntegration/TriggersService/ITriggersService.js} +0 -0
  447. /package/dist/cjs/{common → lib}/priceFeeds/pyth/pythFeedConstants.js +0 -0
  448. /package/dist/cjs/{common → lib}/priceFeeds/pyth/pythFeedFunctions.js +0 -0
  449. /package/dist/{esm/common → cjs/lib}/typechain/common.js +0 -0
  450. /package/dist/cjs/{utils/enumTypes.js → lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js} +0 -0
  451. /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js → cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js} +0 -0
  452. /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/LexLens.js → cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js} +0 -0
  453. /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js → cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js} +0 -0
  454. /package/dist/{esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js → cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js} +0 -0
  455. /package/dist/{esm/utils/enumTypes.js → cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js} +0 -0
  456. /package/dist/cjs/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +0 -0
  457. /package/dist/cjs/{utils → lib/utils}/addresses.js +0 -0
  458. /package/dist/cjs/{utils → lib/utils}/bignumbers.js +0 -0
  459. /package/dist/cjs/{utils → lib/utils}/cloning.js +0 -0
  460. /package/dist/cjs/{utils → lib/utils}/types.js +0 -0
  461. /package/dist/esm/{common → lib}/constants/feeIds.d.ts +0 -0
  462. /package/dist/esm/{common → lib}/constants/feeIds.js +0 -0
  463. /package/dist/esm/{common → lib}/constants/generalConstants.d.ts +0 -0
  464. /package/dist/esm/{common → lib}/constants/generalConstants.js +0 -0
  465. /package/dist/esm/{common → lib}/constants/groupIds.js +0 -0
  466. /package/dist/esm/{common → lib}/constants/pairIds.js +0 -0
  467. /package/dist/esm/{utils → lib/lynxSystem}/chipsCalculationsUtils.d.ts +0 -0
  468. /package/dist/esm/{utils → lib/lynxSystem}/leverageCalculationsUtils.d.ts +0 -0
  469. /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedConstants.d.ts +0 -0
  470. /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedConstants.js +0 -0
  471. /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedFunctions.d.ts +0 -0
  472. /package/dist/esm/{common → lib}/priceFeeds/pyth/pythFeedFunctions.js +0 -0
  473. /package/dist/esm/{common → lib}/typechain/common.d.ts +0 -0
  474. /package/dist/esm/{common → lib}/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +0 -0
  475. /package/dist/esm/{common → lib}/typechain/contracts/Peripheral/Lens/LexLens.d.ts +0 -0
  476. /package/dist/esm/{common → lib}/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +0 -0
  477. /package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +0 -0
  478. /package/dist/esm/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +0 -0
  479. /package/dist/esm/{utils → lib/utils}/addresses.d.ts +0 -0
  480. /package/dist/esm/{utils → lib/utils}/addresses.js +0 -0
  481. /package/dist/esm/{utils → lib/utils}/bignumbers.d.ts +0 -0
  482. /package/dist/esm/{utils → lib/utils}/bignumbers.js +0 -0
  483. /package/dist/esm/{utils → lib/utils}/cloning.d.ts +0 -0
  484. /package/dist/esm/{utils → lib/utils}/cloning.js +0 -0
  485. /package/dist/esm/{utils → lib/utils}/enumTypes.d.ts +0 -0
  486. /package/dist/esm/{utils → lib/utils}/types.d.ts +0 -0
  487. /package/dist/esm/{utils → lib/utils}/types.js +0 -0
  488. /package/dist/types/{common → lib}/constants/feeIds.d.ts +0 -0
  489. /package/dist/types/{common → lib}/constants/generalConstants.d.ts +0 -0
  490. /package/dist/types/{utils → lib/lynxSystem}/chipsCalculationsUtils.d.ts +0 -0
  491. /package/dist/types/{utils → lib/lynxSystem}/leverageCalculationsUtils.d.ts +0 -0
  492. /package/dist/types/{common → lib}/priceFeeds/pyth/pythFeedConstants.d.ts +0 -0
  493. /package/dist/types/{common → lib}/priceFeeds/pyth/pythFeedFunctions.d.ts +0 -0
  494. /package/dist/types/{common → lib}/typechain/common.d.ts +0 -0
  495. /package/dist/types/{common → lib}/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +0 -0
  496. /package/dist/types/{common → lib}/typechain/contracts/Peripheral/Lens/LexLens.d.ts +0 -0
  497. /package/dist/types/{common → lib}/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +0 -0
  498. /package/dist/types/{common → lib}/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +0 -0
  499. /package/dist/types/{utils → lib/utils}/addresses.d.ts +0 -0
  500. /package/dist/types/{utils → lib/utils}/bignumbers.d.ts +0 -0
  501. /package/dist/types/{utils → lib/utils}/cloning.d.ts +0 -0
  502. /package/dist/types/{utils → lib/utils}/enumTypes.d.ts +0 -0
  503. /package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
package/dist/cjs/index.js CHANGED
@@ -14,33 +14,40 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./utils/chainTypes"), exports);
18
- __exportStar(require("./utils/addresses"), exports);
19
- __exportStar(require("./utils/bignumbers"), exports);
20
- __exportStar(require("./utils/chipsCalculationsUtils"), exports);
21
- __exportStar(require("./utils/leverageCalculationsUtils"), exports);
22
- __exportStar(require("./utils/cloning"), exports);
23
- __exportStar(require("./utils/enumTypes"), exports);
24
- __exportStar(require("./utils/ethersTypes"), exports);
25
- __exportStar(require("./utils/hashes"), exports);
26
- __exportStar(require("./utils/lynxScalesUtils"), exports);
27
- __exportStar(require("./utils/types"), exports);
28
- __exportStar(require("./common/constants/contractEnums"), exports);
29
- __exportStar(require("./common/constants/generalConstants"), exports);
30
- __exportStar(require("./common/constants/scales"), exports);
31
- __exportStar(require("./common/constants/pairIds"), exports);
32
- __exportStar(require("./common/constants/groupIds"), exports);
33
- __exportStar(require("./common/constants/feeIds"), exports);
34
- __exportStar(require("./common/priceFeeds/pyth/pythFeedConstants"), exports);
35
- __exportStar(require("./common/priceFeeds/pyth/pythFeedFunctions"), exports);
36
- // export * from "./abis";
37
- __exportStar(require("./addresses/lensAddresses"), exports);
38
- __exportStar(require("./common/contractsIntegration/deployedContractsConnector"), exports);
39
- __exportStar(require("./common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens"), exports);
40
- __exportStar(require("./common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
41
- __exportStar(require("./common/typechain/contracts/Peripheral/Lens/LexLens"), exports);
42
- __exportStar(require("./common/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
43
- __exportStar(require("./common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
44
- __exportStar(require("./common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
45
- __exportStar(require("./common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
46
- __exportStar(require("./common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
17
+ __exportStar(require("./lib/chains/chainConstants"), exports);
18
+ __exportStar(require("./lib/chains/chainTypes"), exports);
19
+ __exportStar(require("./lib/utils/addresses"), exports);
20
+ __exportStar(require("./lib/utils/bignumbers"), exports);
21
+ __exportStar(require("./lib/lynxSystem/chipsCalculationsUtils"), exports);
22
+ __exportStar(require("./lib/lynxSystem/leverageCalculationsUtils"), exports);
23
+ __exportStar(require("./lib/utils/cloning"), exports);
24
+ __exportStar(require("./lib/utils/enumTypes"), exports);
25
+ __exportStar(require("./lib/utils/ethersTypes"), exports);
26
+ __exportStar(require("./lib/lynxSystem/hashes"), exports);
27
+ __exportStar(require("./lib/lynxSystem/lynxScalesUtils"), exports);
28
+ __exportStar(require("./lib/utils/types"), exports);
29
+ __exportStar(require("./lib/lynxSystem/registry/registryReading"), exports);
30
+ __exportStar(require("./lib/constants/contractEnums"), exports);
31
+ __exportStar(require("./lib/constants/generalConstants"), exports);
32
+ __exportStar(require("./lib/constants/scales"), exports);
33
+ __exportStar(require("./lib/constants/pairIds"), exports);
34
+ __exportStar(require("./lib/constants/groupIds"), exports);
35
+ __exportStar(require("./lib/constants/feeIds"), exports);
36
+ __exportStar(require("./lib/priceFeeds/pyth/pythFeedConstants"), exports);
37
+ __exportStar(require("./lib/priceFeeds/pyth/pythFeedFunctions"), exports);
38
+ __exportStar(require("./lib/addresses/lensAddresses"), exports);
39
+ __exportStar(require("./lib/addresses/systemAddresses"), exports);
40
+ __exportStar(require("./lib/contractsIntegration/deployedContractsConnector"), exports);
41
+ __exportStar(require("./lib/contractsIntegration/TradersPortalService"), exports);
42
+ __exportStar(require("./lib/contractsIntegration/IntentsVerifierLensService"), exports);
43
+ __exportStar(require("./lib/contractsIntegration/TriggersAndPortalLensService"), exports);
44
+ __exportStar(require("./lib/contractsIntegration/TradingFloorLensService"), exports);
45
+ __exportStar(require("./lib/contractsIntegration/LexLensService"), exports);
46
+ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens"), exports);
47
+ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
48
+ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
49
+ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
50
+ __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
51
+ __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
52
+ __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
53
+ __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
@@ -16,8 +16,8 @@ exports.LensAddresses = {
16
16
  },
17
17
  fantom: {
18
18
  lexLens: "0xB5A5041654391a720953D346367D3A3BE9c3d47B",
19
- tradingFloorLensLens: "0x30377D42736Bf4b40A67C18e5dFC7f45496e8569",
20
- intentsVerifierLens: "0xD9E77b2A3E9B1a21aC256802bB86Cba3e21627E7",
19
+ tradingFloorLensLens: "0x2B913d10452c93Bb7184B5B4fb7e3724452fE0fB",
20
+ intentsVerifierLens: "0x5cf3613de36106C10674778C5748FAf9630c3D94",
21
21
  triggersAndPortalLens: "0x9544C73C97BD292a1F09ef671A5f8CcDf9Ff5429",
22
22
  },
23
23
  flare: {
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LynxSystemAddresses = void 0;
4
+ exports.LynxSystemAddresses = {
5
+ sonic: {
6
+ registryProxyAddress: "0x4CF3d61165a6Be8FF741320ad27Cab57faE5c207",
7
+ tradingFloorProxyAddress: "0x37792EecFA985D0b00a51864c970e7df406AA868",
8
+ orderBookProxyAddress: "0x08422B1cA26c4B6e28bd8635cABB03bC1DBe5D62",
9
+ },
10
+ boba: {
11
+ registryProxyAddress: "0xC5E782E2A4E2cFCb7eD454CF5a7b6aa2bB424B90",
12
+ tradingFloorProxyAddress: "0x87525b5542DbF7302cd95D82388d28e44ec9289D",
13
+ orderBookProxyAddress: "0xD22c72aB0f4967edB876d84773BfF0b60A92e51a",
14
+ },
15
+ flare: {
16
+ registryProxyAddress: "0x4CF3d61165a6Be8FF741320ad27Cab57faE5c207",
17
+ tradingFloorProxyAddress: "0x37792EecFA985D0b00a51864c970e7df406AA868",
18
+ orderBookProxyAddress: "0x08422B1cA26c4B6e28bd8635cABB03bC1DBe5D62",
19
+ },
20
+ fantom: {
21
+ registryProxyAddress: "0x3b7ED1cDF0Fc64d95c0D0428b9Cc99b6A9a5CB94",
22
+ tradingFloorProxyAddress: "0x0420D838a2227727F2555aa54F0164A73c05C16b",
23
+ orderBookProxyAddress: "0x3552fE61af3F6d3235Dd1CB75402d4281d1FbaC6",
24
+ },
25
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CHAIN_ID_ZIRCUIT = exports.CHAIN_ID_LINEA = exports.CHAIN_ID_CELO = exports.CHAIN_ID_ARBITRUM = exports.CHAIN_ID_MODE = exports.CHAIN_ID_BASE = exports.CHAIN_ID_MANTLE = exports.CHAIN_ID_GOAT = exports.CHAIN_ID_BOBA = exports.CHAIN_ID_FUSE = exports.CHAIN_ID_FANTOM = exports.CHAIN_ID_SONIC = exports.CHAIN_ID_POLYGON = exports.CHAIN_ID_BSC = exports.CHAIN_ID_FLARE = exports.CHAIN_ID_OPTIMISM = exports.CHAIN_ID_ETHEREUM = void 0;
4
+ exports.CHAIN_ID_ETHEREUM = 1;
5
+ exports.CHAIN_ID_OPTIMISM = 10;
6
+ exports.CHAIN_ID_FLARE = 14;
7
+ exports.CHAIN_ID_BSC = 56;
8
+ exports.CHAIN_ID_POLYGON = 137;
9
+ exports.CHAIN_ID_SONIC = 146;
10
+ exports.CHAIN_ID_FANTOM = 250;
11
+ exports.CHAIN_ID_FUSE = 122;
12
+ exports.CHAIN_ID_BOBA = 288;
13
+ exports.CHAIN_ID_GOAT = 2345;
14
+ exports.CHAIN_ID_MANTLE = 5000;
15
+ exports.CHAIN_ID_BASE = 8453;
16
+ exports.CHAIN_ID_MODE = 34443;
17
+ exports.CHAIN_ID_ARBITRUM = 42161;
18
+ exports.CHAIN_ID_CELO = 42220;
19
+ exports.CHAIN_ID_LINEA = 59144;
20
+ exports.CHAIN_ID_ZIRCUIT = 48900;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CHAIN_ID_TO_NAME = void 0;
4
+ const chainConstants_1 = require("./chainConstants");
5
+ exports.CHAIN_ID_TO_NAME = {
6
+ [chainConstants_1.CHAIN_ID_ETHEREUM]: "ethereum",
7
+ [chainConstants_1.CHAIN_ID_OPTIMISM]: "optimism",
8
+ [chainConstants_1.CHAIN_ID_BSC]: "bsc",
9
+ [chainConstants_1.CHAIN_ID_FANTOM]: "fantom",
10
+ [chainConstants_1.CHAIN_ID_POLYGON]: "polygon",
11
+ [chainConstants_1.CHAIN_ID_BOBA]: "boba",
12
+ [chainConstants_1.CHAIN_ID_MANTLE]: "mantle",
13
+ [chainConstants_1.CHAIN_ID_LINEA]: "linea",
14
+ [chainConstants_1.CHAIN_ID_FUSE]: "fuse",
15
+ [chainConstants_1.CHAIN_ID_ARBITRUM]: "arbitrum",
16
+ [chainConstants_1.CHAIN_ID_CELO]: "celo",
17
+ [chainConstants_1.CHAIN_ID_MODE]: "mode",
18
+ [chainConstants_1.CHAIN_ID_ZIRCUIT]: "zircuit",
19
+ [chainConstants_1.CHAIN_ID_BASE]: "base",
20
+ [chainConstants_1.CHAIN_ID_GOAT]: "goat",
21
+ [chainConstants_1.CHAIN_ID_SONIC]: "sonic",
22
+ [chainConstants_1.CHAIN_ID_FLARE]: "flare",
23
+ };
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GeneralTokenDispenserPusherLevelEnums = exports.ChipsIntentsVerifierActionsEnums = exports.LiquidityIntentsVerifierActionsEnums = exports.TradeIntentsVerifierActionsEnums = exports.ChipSpenderRolesEnums = exports.ChipModeEnums = exports.TradersPortalActionEnums = exports.UpdatePositionFieldOrderTypeEnums = exports.LexPoolNumberEnums = exports.LexPoolAddressesEnums = exports.PoolAccountantNumberEnums = exports.PoolAccountantAddressesEnums = exports.AdminNumericParam = exports.PositionCloseTypeEnums = exports.PositionFieldEnums = exports.FeeTypeEnums = exports.LimitTriggerEnums = exports.CloseOrderTypeEnums = exports.OpenOrderTypeEnums = exports.PositionPhaseEnums = void 0;
4
4
  // ****** Trading Floor ******
5
5
  exports.PositionPhaseEnums = {
6
- NONE: 0n,
7
- OPEN_MARKET: 1n,
8
- OPEN_LIMIT: 2n,
9
- OPENED: 3n,
10
- CLOSE_MARKET: 4n,
11
- CLOSED: 5n,
6
+ NONE: 0,
7
+ OPEN_MARKET: 1,
8
+ OPEN_LIMIT: 2,
9
+ OPENED: 3,
10
+ CLOSE_MARKET: 4,
11
+ CLOSED: 5,
12
12
  };
13
13
  exports.OpenOrderTypeEnums = {
14
14
  NONE: 0,
@@ -31,23 +31,24 @@ exports.FeeTypeEnums = {
31
31
  CLOSE_FEE: 2,
32
32
  TRIGGER_FEE: 3,
33
33
  };
34
+ // TODO : Can probably delete this type and const (as we have TUpdatePositionFieldOrderType)
34
35
  exports.PositionFieldEnums = {
35
36
  NONE: 0n,
36
37
  TP: 1n,
37
38
  SL: 2n,
38
39
  };
39
40
  exports.PositionCloseTypeEnums = {
40
- NONE: 0n,
41
- TP: 1n,
42
- SL: 2n,
43
- LIQ: 3n,
44
- MARKET: 4n,
41
+ NONE: 0,
42
+ TP: 1,
43
+ SL: 2,
44
+ LIQ: 3,
45
+ MARKET: 4,
45
46
  };
46
47
  exports.AdminNumericParam = {
47
- NONE: 0n,
48
- MAX_TRADES_PER_PAIR: 1n,
49
- MAX_SL_F: 2n,
50
- MAX_SANITY_PROFIT_F: 3n,
48
+ NONE: 0,
49
+ MAX_TRADES_PER_PAIR: 1,
50
+ MAX_SL_F: 2,
51
+ MAX_SANITY_PROFIT_F: 3,
51
52
  };
52
53
  // ****** Lex ******
53
54
  exports.PoolAccountantAddressesEnums = {
@@ -84,10 +85,10 @@ exports.LexPoolNumberEnums = {
84
85
  };
85
86
  // ****** Order Book ******
86
87
  exports.UpdatePositionFieldOrderTypeEnums = {
87
- NONE: 0n,
88
- UPDATE_TP: 1n,
89
- UPDATE_SL: 2n,
90
- UPDATE_TP_AND_SL: 3n,
88
+ NONE: 0,
89
+ UPDATE_TP: 1,
90
+ UPDATE_SL: 2,
91
+ UPDATE_TP_AND_SL: 3,
91
92
  };
92
93
  // ****** Traders Portal ******
93
94
  exports.TradersPortalActionEnums = {
@@ -99,10 +100,10 @@ exports.TradersPortalActionEnums = {
99
100
  };
100
101
  // ****** Base Chip ******
101
102
  exports.ChipModeEnums = {
102
- NONE: 0n,
103
- LOCAL: 1n,
104
- REMOTE: 2n,
105
- HYBRID: 3n,
103
+ NONE: 0,
104
+ LOCAL: 1,
105
+ REMOTE: 2,
106
+ HYBRID: 3,
106
107
  };
107
108
  exports.ChipSpenderRolesEnums = {
108
109
  TradingFloor: "TradingFloor",
@@ -112,24 +113,25 @@ exports.ChipSpenderRolesEnums = {
112
113
  };
113
114
  // ****** Trade Intents Verifier ******
114
115
  exports.TradeIntentsVerifierActionsEnums = {
115
- NONE: 0n,
116
- REQUEST_POSITION_OPEN: 1n,
117
- REQUEST_POSITION_MARKET_CLOSE: 2n,
118
- REQUEST_POSITION_SINGLE_FIELD_UPDATE: 3n,
119
- REQUEST_POSITION_DOUBLE_FIELD_UPDATE: 4n,
120
- DIRECT_UPDATE_PENDING_LIMIT_POSITION: 5n,
121
- DIRECT_CANCEL_PENDING_LIMIT_POSITION: 6n,
116
+ NONE: 0,
117
+ REQUEST_POSITION_OPEN: 1,
118
+ REQUEST_POSITION_MARKET_CLOSE: 2,
119
+ REQUEST_POSITION_SINGLE_FIELD_UPDATE: 3,
120
+ REQUEST_POSITION_DOUBLE_FIELD_UPDATE: 4,
121
+ DIRECT_UPDATE_PENDING_LIMIT_POSITION: 5,
122
+ DIRECT_CANCEL_PENDING_LIMIT_POSITION: 6,
122
123
  };
123
124
  // ****** Liquidity Intents Verifier ******
124
125
  exports.LiquidityIntentsVerifierActionsEnums = {
125
- NONE: 0n,
126
- REQUEST_EPOCH_DEPOSIT: 1n,
127
- REQUEST_EPOCH_REDEEM: 2n,
126
+ NONE: 0,
127
+ REQUEST_EPOCH_DEPOSIT: 1,
128
+ REQUEST_EPOCH_REDEEM: 2,
128
129
  };
129
130
  // ****** Chips Intents Verifier ******
130
131
  exports.ChipsIntentsVerifierActionsEnums = {
131
- NONE: 0n,
132
- CHIP_OUT_LZ: 1n,
132
+ NONE: 0,
133
+ CHIP_OUT_LZ: 1,
134
+ CHIP_OUT_LZ_UNWRAP: 2n,
133
135
  };
134
136
  // ****** General Token Dispenser ******
135
137
  exports.GeneralTokenDispenserPusherLevelEnums = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTRACT_VERSION_SCALE = exports.PROXY_VERSION_SCALE = exports.LEX_TOKEN_INITIAL_EXCHANGE_RATE_UNITS = exports.LEX_TOKEN_UNIT = exports.LEX_TOKEN_SCALE = exports.ACCURACY_IMPROVEMENT_UNIT = exports.ACCURACY_IMPROVEMENT_SCALE = exports.FRACTION_UNIT = exports.FRACTION_MULTIPLIER_SCALE = exports.LEVERAGE_UNIT = exports.LEVERAGE_MULTIPLIER_SCALE = exports.PRICES_SCALE = exports.PRECISION_UNIT = exports.PRECISION_SCALE = exports.CHIP_DECIMALS = void 0;
3
+ exports.CONTRACT_VERSION_SCALE = exports.PROXY_VERSION_SCALE = exports.LEX_TOKEN_UNIT = exports.LEX_TOKEN_SCALE = exports.ACCURACY_IMPROVEMENT_UNIT = exports.ACCURACY_IMPROVEMENT_SCALE = exports.FRACTION_UNIT = exports.FRACTION_MULTIPLIER_SCALE = exports.LEVERAGE_UNIT = exports.LEVERAGE_MULTIPLIER_SCALE = exports.PRICES_SCALE = exports.PRECISION_UNIT = exports.PRECISION_SCALE = exports.CHIP_DECIMALS = void 0;
4
4
  exports.CHIP_DECIMALS = 18;
5
5
  exports.PRECISION_SCALE = 18n;
6
6
  exports.PRECISION_UNIT = 10n ** exports.PRECISION_SCALE;
@@ -15,10 +15,5 @@ exports.ACCURACY_IMPROVEMENT_SCALE = 9n;
15
15
  exports.ACCURACY_IMPROVEMENT_UNIT = 10n ** exports.ACCURACY_IMPROVEMENT_SCALE;
16
16
  exports.LEX_TOKEN_SCALE = 18n;
17
17
  exports.LEX_TOKEN_UNIT = 10n ** exports.LEX_TOKEN_SCALE;
18
- exports.LEX_TOKEN_INITIAL_EXCHANGE_RATE_UNITS = 1;
19
- // export const LEX_TOKEN_INITIAL_EXCHANGE_RATE = floatToUnitsBn(
20
- // 0.02,
21
- // LEX_TOKEN_SCALE
22
- // );
23
18
  exports.PROXY_VERSION_SCALE = 1000; // 1,000 = 1.00, 1,120 = 1.12
24
19
  exports.CONTRACT_VERSION_SCALE = 1000; // 1,000 = 1.00, 1,120 = 1.12
@@ -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: 0n,
8
+ currentNonce: 0n,
9
+ };
10
+ exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
11
+ verifier: "",
12
+ hash: "",
13
+ actionType: 0n,
14
+ currentNonce: 0n,
15
+ };
@@ -0,0 +1,27 @@
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(provider, address) {
9
+ this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, provider);
10
+ }
11
+ async getRequestBuildingInfoForChipsIntentsVerifier(account, actionType) {
12
+ const result = await this.contract.getRequestBuildingInfoForChipsIntentsVerifier(account, BigInt(actionType));
13
+ return (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
14
+ }
15
+ async getRequestBuildingInfoForLiquidityIntentsVerifier(account, actionType) {
16
+ const result = await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier(account, BigInt(actionType));
17
+ return (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
18
+ }
19
+ async getRequestBuildingInfoForTradeIntentsVerifier(positionId, actionType) {
20
+ const result = await this.contract.getRequestBuildingInfoForTradeIntentsVerifier(positionId, BigInt(actionType));
21
+ return (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
22
+ }
23
+ async registry() {
24
+ return await this.contract.registry();
25
+ }
26
+ }
27
+ exports.IntentsVerifierLensService = IntentsVerifierLensService;
@@ -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,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
+ };