lynx-client 0.0.1-beta.9 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +391 -3
  2. package/dist/cjs/index.js +9 -0
  3. package/dist/cjs/lib/addresses/lensAddresses.js +16 -16
  4. package/dist/cjs/lib/chains/chainMappings.js +17 -0
  5. package/dist/cjs/lib/constants/contractEnums.js +1 -0
  6. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +2 -0
  7. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +22 -0
  8. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  9. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  10. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  11. package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
  12. package/dist/cjs/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  13. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  14. package/dist/cjs/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  16. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +63 -0
  17. package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +57 -0
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +111 -0
  20. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  21. package/dist/cjs/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  22. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +177 -0
  23. package/dist/cjs/lib/contractsIntegration/TradingFloorService/index.js +5 -0
  24. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  25. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  26. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  27. package/dist/cjs/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  28. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  29. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  30. package/dist/cjs/lib/devex/getChainAddresses.js +65 -0
  31. package/dist/cjs/lib/devex/getSupportedEngineChains.js +45 -0
  32. package/dist/cjs/lib/devex/index.js +9 -0
  33. package/dist/cjs/lib/devex/types.js +2 -0
  34. package/dist/cjs/lib/lynxSystem/hashes.js +9 -0
  35. package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +8 -0
  36. package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
  37. package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  38. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
  39. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  40. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  41. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  42. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  43. package/dist/cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  44. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  45. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  46. package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  47. package/dist/cjs/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
  48. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -0
  49. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  50. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  51. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  52. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  53. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1038 -0
  54. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  55. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1991 -0
  56. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  57. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
  58. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  59. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
  60. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  61. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
  62. package/dist/cjs/lib/utils/ethersTypes.js +29 -6
  63. package/dist/esm/index.d.ts +8 -0
  64. package/dist/esm/index.d.ts.map +1 -1
  65. package/dist/esm/index.js +9 -0
  66. package/dist/esm/lib/addresses/lensAddresses.d.ts +16 -16
  67. package/dist/esm/lib/addresses/lensAddresses.js +16 -16
  68. package/dist/esm/lib/chains/chainMappings.d.ts +13 -0
  69. package/dist/esm/lib/chains/chainMappings.d.ts.map +1 -0
  70. package/dist/esm/lib/chains/chainMappings.js +17 -0
  71. package/dist/esm/lib/chains/chainTypes.d.ts +3 -0
  72. package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -1
  73. package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -1
  74. package/dist/esm/lib/constants/contractEnums.js +1 -0
  75. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +7 -0
  76. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  77. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +2 -0
  78. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  79. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  80. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +22 -0
  81. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  82. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  83. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  84. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  85. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  86. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  87. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  88. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  89. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  90. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  91. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  92. package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
  93. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  94. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  95. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  96. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  97. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  98. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  99. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  100. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  101. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  102. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  103. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  104. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  105. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +31 -0
  106. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  107. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +63 -0
  108. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  109. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  110. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  111. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +65 -0
  112. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  113. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +57 -0
  114. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +13 -0
  115. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  116. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +111 -0
  117. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  118. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  119. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  120. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +89 -0
  121. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  122. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  123. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +86 -0
  124. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  125. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +177 -0
  126. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
  127. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
  128. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.js +5 -0
  129. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  130. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  131. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  132. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  133. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  134. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  135. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  136. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  137. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  138. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  139. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  140. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  141. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  142. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  143. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  144. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  145. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  146. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  147. package/dist/esm/lib/devex/getChainAddresses.d.ts +20 -0
  148. package/dist/esm/lib/devex/getChainAddresses.d.ts.map +1 -0
  149. package/dist/esm/lib/devex/getChainAddresses.js +65 -0
  150. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts +37 -0
  151. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  152. package/dist/esm/lib/devex/getSupportedEngineChains.js +45 -0
  153. package/dist/esm/lib/devex/index.d.ts +5 -0
  154. package/dist/esm/lib/devex/index.d.ts.map +1 -0
  155. package/dist/esm/lib/devex/index.js +9 -0
  156. package/dist/esm/lib/devex/types.d.ts +20 -0
  157. package/dist/esm/lib/devex/types.d.ts.map +1 -0
  158. package/dist/esm/lib/devex/types.js +2 -0
  159. package/dist/esm/lib/lynxSystem/hashes.d.ts +6 -0
  160. package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -1
  161. package/dist/esm/lib/lynxSystem/hashes.js +9 -0
  162. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  163. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  164. package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +8 -0
  165. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  166. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  167. package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
  168. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  169. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  170. package/dist/esm/lib/typechain/common.d.ts.map +1 -1
  171. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
  172. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
  173. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
  174. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  175. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  176. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  177. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  178. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  179. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  180. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  181. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  182. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  183. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  184. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  185. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  186. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +607 -0
  187. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  188. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  189. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  190. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  191. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  192. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1251 -0
  193. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  194. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  195. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  196. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  197. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  198. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +10 -65
  199. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
  200. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -114
  201. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  202. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
  203. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
  204. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
  205. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
  206. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
  207. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -0
  208. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  209. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  210. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  211. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  212. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  213. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  214. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  215. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  216. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  217. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  218. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  219. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  220. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +800 -0
  221. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  222. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1038 -0
  223. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  224. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  225. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  226. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1536 -0
  227. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  228. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1991 -0
  229. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  230. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  231. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  232. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +10 -85
  233. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
  234. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
  235. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  236. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  237. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
  238. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  239. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
  240. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  241. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  242. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
  243. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
  244. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
  245. package/dist/esm/lib/utils/ethersTypes.d.ts +2 -2
  246. package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -1
  247. package/dist/esm/lib/utils/ethersTypes.js +29 -6
  248. package/dist/types/index.d.ts +8 -0
  249. package/dist/types/index.d.ts.map +1 -1
  250. package/dist/types/lib/addresses/lensAddresses.d.ts +16 -16
  251. package/dist/types/lib/chains/chainMappings.d.ts +13 -0
  252. package/dist/types/lib/chains/chainMappings.d.ts.map +1 -0
  253. package/dist/types/lib/chains/chainTypes.d.ts +3 -0
  254. package/dist/types/lib/chains/chainTypes.d.ts.map +1 -1
  255. package/dist/types/lib/constants/contractEnums.d.ts.map +1 -1
  256. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +7 -0
  257. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  258. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  259. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  260. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  261. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  262. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  263. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  264. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  265. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  266. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  267. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  268. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  269. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  270. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  271. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  272. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  273. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  274. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  275. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  276. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +31 -0
  277. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  278. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  279. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  280. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +65 -0
  281. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  282. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +13 -0
  283. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  284. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  285. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  286. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +89 -0
  287. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  288. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +86 -0
  289. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  290. package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
  291. package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
  292. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  293. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  294. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  295. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  296. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  297. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  298. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  299. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  300. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  301. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  302. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  303. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  304. package/dist/types/lib/devex/getChainAddresses.d.ts +20 -0
  305. package/dist/types/lib/devex/getChainAddresses.d.ts.map +1 -0
  306. package/dist/types/lib/devex/getSupportedEngineChains.d.ts +37 -0
  307. package/dist/types/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  308. package/dist/types/lib/devex/index.d.ts +5 -0
  309. package/dist/types/lib/devex/index.d.ts.map +1 -0
  310. package/dist/types/lib/devex/types.d.ts +20 -0
  311. package/dist/types/lib/devex/types.d.ts.map +1 -0
  312. package/dist/types/lib/lynxSystem/hashes.d.ts +6 -0
  313. package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -1
  314. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  315. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  316. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  317. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  318. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  319. package/dist/types/lib/typechain/common.d.ts.map +1 -1
  320. package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
  321. package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
  322. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  323. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  324. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  325. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  326. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  327. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  328. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  329. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  330. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +607 -0
  331. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  332. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  333. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  334. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1251 -0
  335. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  336. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  337. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  338. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +10 -65
  339. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
  340. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -114
  341. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  342. package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
  343. package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
  344. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
  345. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
  346. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  347. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  348. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  349. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  350. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  351. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  352. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  353. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  354. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +800 -0
  355. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  356. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  357. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  358. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1536 -0
  359. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  360. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  361. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  362. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +10 -85
  363. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
  364. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  365. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
  366. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  367. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  368. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
  369. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
  370. package/dist/types/lib/utils/ethersTypes.d.ts +2 -2
  371. package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -1
  372. package/package.json +7 -7
@@ -1,22 +1,133 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.connectToRegistryProxyForSigner = connectToRegistryProxyForSigner;
4
+ exports.connectToLatestRegistryForSigner = connectToLatestRegistryForSigner;
5
+ exports.connectToLatestRegistry = connectToLatestRegistry;
6
+ exports.connectToTradingFloorProxyForSigner = connectToTradingFloorProxyForSigner;
7
+ exports.connectToTradingFloorProxy = connectToTradingFloorProxy;
8
+ exports.connectToLatestTradingFloorForSigner = connectToLatestTradingFloorForSigner;
9
+ exports.connectToLatestTradingFloor = connectToLatestTradingFloor;
10
+ exports.connectToOrderBookProxyForSigner = connectToOrderBookProxyForSigner;
11
+ exports.connectToOrderBookProxy = connectToOrderBookProxy;
12
+ exports.connectToLatestOrderBookForSigner = connectToLatestOrderBookForSigner;
13
+ exports.connectToLatestOrderBook = connectToLatestOrderBook;
14
+ exports.connectToLatestTradersPortalForSigner = connectToLatestTradersPortalForSigner;
15
+ exports.connectToLatestTradersPortal = connectToLatestTradersPortal;
16
+ exports.connectToLatestTriggersForSigner = connectToLatestTriggersForSigner;
17
+ exports.connectToLatestTriggers = connectToLatestTriggers;
3
18
  exports.connectToTradingFloorLens = connectToTradingFloorLens;
4
19
  exports.connectToLeXLens = connectToLeXLens;
5
- exports.connectToIntentsVerifierLens = connectToIntentsVerifierLens;
6
- exports.connectToTriggersAndPortalLens = connectToTriggersAndPortalLens;
20
+ exports.createIntentsVerifierLensService = createIntentsVerifierLensService;
21
+ exports.createTriggersAndPortalLensService = createTriggersAndPortalLensService;
22
+ exports.createTradingFloorLensService = createTradingFloorLensService;
23
+ exports.createLexLensService = createLexLensService;
7
24
  const TradingFloorLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
8
25
  const LexLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
9
- const IntentsVerifierLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory");
10
- const TriggersAndPortalLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory");
26
+ const RegistryProxy__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory");
27
+ const RegistryV1__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryV1__factory");
28
+ const TradingFloorProxy__factory_1 = require("../typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory");
29
+ const TradingFloorV1__factory_1 = require("../typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory");
30
+ const OrderBookProxy__factory_1 = require("../typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory");
31
+ const OrderBookV1__factory_1 = require("../typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory");
32
+ const TradersPortalV1__factory_1 = require("../typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory");
33
+ const TriggersV1__factory_1 = require("../typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory");
34
+ const IntentsVerifierLensService_1 = require("./IntentsVerifierLensService");
35
+ const TriggersAndPortalLensService_1 = require("./TriggersAndPortalLensService");
36
+ const TradingFloorLensService_1 = require("./TradingFloorLensService");
37
+ const LexLensService_1 = require("./LexLensService");
38
+ //
39
+ // ***** Registry & Proxy *****
40
+ //
41
+ function connectToRegistryProxyForSigner(signer, address) {
42
+ return RegistryProxy__factory_1.RegistryProxy__factory.connect(address, signer);
43
+ }
44
+ /**
45
+ * To be used with the proxy address and the implementation ABI
46
+ */
47
+ function connectToLatestRegistryForSigner(signer, address) {
48
+ return RegistryV1__factory_1.RegistryV1__factory.connect(address, signer);
49
+ }
50
+ /**
51
+ * To be used with the proxy address and the implementation ABI
52
+ */
53
+ function connectToLatestRegistry(provider, address) {
54
+ return RegistryV1__factory_1.RegistryV1__factory.connect(address, provider);
55
+ }
56
+ //
57
+ // ***** Trading Floor & Proxy *****
58
+ //
59
+ function connectToTradingFloorProxyForSigner(signer, address) {
60
+ return TradingFloorProxy__factory_1.TradingFloorProxy__factory.connect(address, signer);
61
+ }
62
+ function connectToTradingFloorProxy(provider, address) {
63
+ return TradingFloorProxy__factory_1.TradingFloorProxy__factory.connect(address, provider);
64
+ }
65
+ /**
66
+ * To be used with the proxy address and the implementation ABI
67
+ */
68
+ function connectToLatestTradingFloorForSigner(signer, address) {
69
+ return TradingFloorV1__factory_1.TradingFloorV1__factory.connect(address, signer);
70
+ }
71
+ /**
72
+ * To be used with the proxy address and the implementation ABI
73
+ */
74
+ function connectToLatestTradingFloor(provider, address) {
75
+ return TradingFloorV1__factory_1.TradingFloorV1__factory.connect(address, provider);
76
+ }
77
+ //
78
+ // ***** Order Book Proxy *****
79
+ //
80
+ function connectToOrderBookProxyForSigner(signer, address) {
81
+ return OrderBookProxy__factory_1.OrderBookProxy__factory.connect(address, signer);
82
+ }
83
+ function connectToOrderBookProxy(provider, address) {
84
+ return OrderBookProxy__factory_1.OrderBookProxy__factory.connect(address, provider);
85
+ }
86
+ //
87
+ // ***** Order Book *****
88
+ //
89
+ function connectToLatestOrderBookForSigner(signer, address) {
90
+ return OrderBookV1__factory_1.OrderBookV1__factory.connect(address, signer);
91
+ }
92
+ function connectToLatestOrderBook(provider, address) {
93
+ return OrderBookV1__factory_1.OrderBookV1__factory.connect(address, provider);
94
+ }
95
+ //
96
+ // Trading
97
+ //
98
+ function connectToLatestTradersPortalForSigner(signer, address) {
99
+ return TradersPortalV1__factory_1.TradersPortalV1__factory.connect(address, signer);
100
+ }
101
+ function connectToLatestTradersPortal(provider, address) {
102
+ return TradersPortalV1__factory_1.TradersPortalV1__factory.connect(address, provider);
103
+ }
104
+ //
105
+ // Triggers
106
+ //
107
+ function connectToLatestTriggersForSigner(signer, address) {
108
+ return TriggersV1__factory_1.TriggersV1__factory.connect(address, signer);
109
+ }
110
+ function connectToLatestTriggers(provider, address) {
111
+ return TriggersV1__factory_1.TriggersV1__factory.connect(address, provider);
112
+ }
11
113
  function connectToTradingFloorLens(provider, address) {
12
114
  return TradingFloorLens__factory_1.TradingFloorLens__factory.connect(address, provider);
13
115
  }
14
116
  function connectToLeXLens(provider, address) {
15
117
  return LexLens__factory_1.LexLens__factory.connect(address, provider);
16
118
  }
17
- function connectToIntentsVerifierLens(provider, address) {
18
- return IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, provider);
119
+ //
120
+ // ***** Lens Services *****
121
+ //
122
+ function createIntentsVerifierLensService(signerOrProvider, address) {
123
+ return new IntentsVerifierLensService_1.IntentsVerifierLensService(signerOrProvider, address);
124
+ }
125
+ function createTriggersAndPortalLensService(signerOrProvider, address) {
126
+ return new TriggersAndPortalLensService_1.TriggersAndPortalLensService(signerOrProvider, address);
127
+ }
128
+ function createTradingFloorLensService(signerOrProvider, address) {
129
+ return new TradingFloorLensService_1.TradingFloorLensService(signerOrProvider, address);
19
130
  }
20
- function connectToTriggersAndPortalLens(provider, address) {
21
- return TriggersAndPortalLens__factory_1.TriggersAndPortalLens__factory.connect(address, provider);
131
+ function createLexLensService(signerOrProvider, address) {
132
+ return new LexLensService_1.LexLensService(signerOrProvider, address);
22
133
  }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChainAddresses = getChainAddresses;
4
+ const systemAddresses_1 = require("../addresses/systemAddresses");
5
+ const lensAddresses_1 = require("../addresses/lensAddresses");
6
+ const deployedContractsConnector_1 = require("../contractsIntegration/deployedContractsConnector");
7
+ const chainMappings_1 = require("../chains/chainMappings");
8
+ /**
9
+ * Get all Lynx system contract addresses for a specific chain
10
+ * @param options - Chain ID and provider
11
+ * @returns Promise<ILynxChainAddresses> - All system contract addresses
12
+ * @throws Error if chain is not supported
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * import { getChainAddresses } from 'lynx-client/devex';
17
+ * import { ethers } from 'ethers';
18
+ *
19
+ * const provider = new ethers.JsonRpcProvider('https://rpc.example.com');
20
+ * const addresses = await getChainAddresses({ chainId: 146, provider });
21
+ *
22
+ * console.log(addresses.tradingFloorAddress); // Address of TradingFloor contract
23
+ * ```
24
+ */
25
+ async function getChainAddresses(options) {
26
+ const { chainId, provider } = options;
27
+ // Find the chain configuration
28
+ const chainEntry = Object.entries(chainMappings_1.ENGINE_CHAIN_ID_BY_NAME).find(([_, id]) => id === chainId);
29
+ if (!chainEntry) {
30
+ throw new Error(`Chain ID ${chainId} is not supported by Lynx protocol engine chains`);
31
+ }
32
+ const [chainKey] = chainEntry;
33
+ const addresses = systemAddresses_1.LynxSystemAddresses[chainKey];
34
+ const lensAddresses = lensAddresses_1.LensAddresses[chainKey];
35
+ const chainName = chainMappings_1.ENGINE_CHAIN_DISPLAY_NAME[chainKey];
36
+ // Connect to registry to get current implementation addresses
37
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, addresses.registryProxyAddress);
38
+ try {
39
+ // Fetch all contract addresses from registry
40
+ const [tradersPortal, orderBook, triggers,] = await Promise.all([
41
+ registry.tradersPortal(),
42
+ registry.orderBook(),
43
+ registry.triggers(),
44
+ ]);
45
+ // Get registry implementation
46
+ const registryImplementation = await registry.implementation();
47
+ return {
48
+ chainId,
49
+ chainName,
50
+ registryProxyAddress: addresses.registryProxyAddress,
51
+ registryImplementationAddress: registryImplementation,
52
+ tradersPortalAddress: tradersPortal,
53
+ tradingFloorAddress: addresses.tradingFloorProxyAddress,
54
+ orderBookAddress: orderBook,
55
+ triggersAddress: triggers,
56
+ lexLensAddress: lensAddresses.lexLens,
57
+ tradingFloorLensAddress: lensAddresses.tradingFloorLensLens,
58
+ intentsVerifierLensAddress: lensAddresses.intentsVerifierLens,
59
+ triggersAndPortalLensAddress: lensAddresses.triggersAndPortalLens,
60
+ };
61
+ }
62
+ catch (error) {
63
+ throw new Error(`Failed to fetch addresses from registry on chain ${chainId}: ${error instanceof Error ? error.message : 'Unknown error'}`);
64
+ }
65
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSupportedEngineChains = getSupportedEngineChains;
4
+ exports.isEngineChainId = isEngineChainId;
5
+ const systemAddresses_1 = require("../addresses/systemAddresses");
6
+ const chainMappings_1 = require("../chains/chainMappings");
7
+ /**
8
+ * Get all chains supported by the Lynx protocol
9
+ * @returns Array of supported chains with their details
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * import { getSupportedChains } from 'lynx-client/devex';
14
+ *
15
+ * const chains = getSupportedChains();
16
+ * chains.forEach(chain => {
17
+ * console.log(`${chain.chainName} (${chain.chainId}): ${chain.registryProxyAddress}`);
18
+ * });
19
+ * ```
20
+ */
21
+ function getSupportedEngineChains() {
22
+ return Object.entries(systemAddresses_1.LynxSystemAddresses).map(([chainKey, config]) => ({
23
+ chainId: chainMappings_1.ENGINE_CHAIN_ID_BY_NAME[chainKey],
24
+ chainName: chainMappings_1.ENGINE_CHAIN_DISPLAY_NAME[chainKey] || chainKey,
25
+ chainKey,
26
+ registryProxyAddress: config.registryProxyAddress,
27
+ }));
28
+ }
29
+ /**
30
+ * Check if a chain is supported by the Lynx protocol
31
+ * @param chainId - The chain ID to check
32
+ * @returns boolean - true if supported, false otherwise
33
+ *
34
+ * @example
35
+ * ```typescript
36
+ * import { isChainSupported } from 'lynx-client/devex';
37
+ *
38
+ * if (isChainSupported(146)) {
39
+ * console.log('Sonic chain is supported!');
40
+ * }
41
+ * ```
42
+ */
43
+ function isEngineChainId(chainId) {
44
+ return Object.values(chainMappings_1.ENGINE_CHAIN_ID_BY_NAME).includes(chainId);
45
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isEngineChainId = exports.getSupportedEngineChains = exports.getChainAddresses = void 0;
4
+ // Developer Experience utilities
5
+ var getChainAddresses_1 = require("./getChainAddresses");
6
+ Object.defineProperty(exports, "getChainAddresses", { enumerable: true, get: function () { return getChainAddresses_1.getChainAddresses; } });
7
+ var getSupportedEngineChains_1 = require("./getSupportedEngineChains");
8
+ Object.defineProperty(exports, "getSupportedEngineChains", { enumerable: true, get: function () { return getSupportedEngineChains_1.getSupportedEngineChains; } });
9
+ Object.defineProperty(exports, "isEngineChainId", { enumerable: true, get: function () { return getSupportedEngineChains_1.isEngineChainId; } });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hashContractName = hashContractName;
4
+ exports.hashRoleName = hashRoleName;
4
5
  const ethers_1 = require("ethers");
5
6
  function hashContractName(contractName) {
6
7
  const contractNameHash = ethers_1.ethers.solidityPackedKeccak256(["string"], [contractName]);
7
8
  return contractNameHash;
8
9
  }
10
+ /**
11
+ * Helper function to hash role names for use in role-based access control tests
12
+ * @param roleName The human-readable role name
13
+ * @returns The keccak256 hash of the role name as a hex string
14
+ */
15
+ function hashRoleName(roleName) {
16
+ return ethers_1.ethers.keccak256(ethers_1.ethers.toUtf8Bytes(roleName));
17
+ }
@@ -4,6 +4,8 @@ exports.precisionBnToFloat = precisionBnToFloat;
4
4
  exports.floatToPrecisionBn = floatToPrecisionBn;
5
5
  exports.priceBnToFloat = priceBnToFloat;
6
6
  exports.floatToPriceBn = floatToPriceBn;
7
+ exports.fractionBnToFloat = fractionBnToFloat;
8
+ exports.floatToFractionBn = floatToFractionBn;
7
9
  const scales_1 = require("../constants/scales");
8
10
  const bignumbers_1 = require("../utils/bignumbers");
9
11
  function precisionBnToFloat(precisionBn) {
@@ -18,3 +20,9 @@ function priceBnToFloat(pricesBn) {
18
20
  function floatToPriceBn(priceUnits) {
19
21
  return (0, bignumbers_1.floatToUnitsBn)(priceUnits, scales_1.PRICES_SCALE);
20
22
  }
23
+ function fractionBnToFloat(fractionBn) {
24
+ return Number(fractionBn) / Number(scales_1.FRACTION_MULTIPLIER_SCALE);
25
+ }
26
+ function floatToFractionBn(fractionUnits) {
27
+ return BigInt(Math.round(fractionUnits * Number(scales_1.FRACTION_MULTIPLIER_SCALE)));
28
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readTradersPortalAddress = readTradersPortalAddress;
4
+ exports.readTriggersAddress = readTriggersAddress;
5
+ exports.readChipsFactoryAddress = readChipsFactoryAddress;
6
+ exports.readLexProxiesFactoryAddress = readLexProxiesFactoryAddress;
7
+ exports.readChipsIntentsVerifierAddress = readChipsIntentsVerifierAddress;
8
+ exports.readLiquidityIntentsVerifierAddress = readLiquidityIntentsVerifierAddress;
9
+ exports.readTradeIntentsVerifierAddress = readTradeIntentsVerifierAddress;
10
+ const deployedContractsConnector_1 = require("../../contractsIntegration/deployedContractsConnector");
11
+ async function readTradersPortalAddress(provider, registryProxyAddress) {
12
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
13
+ return await registry.tradersPortal();
14
+ }
15
+ async function readTriggersAddress(provider, registryProxyAddress) {
16
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
17
+ return await registry.triggers();
18
+ }
19
+ async function readChipsFactoryAddress(provider, registryProxyAddress) {
20
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
21
+ return await registry.chipsFactory();
22
+ }
23
+ async function readLexProxiesFactoryAddress(provider, registryProxyAddress) {
24
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
25
+ return await registry.lexProxiesFactory();
26
+ }
27
+ async function readChipsIntentsVerifierAddress(provider, registryProxyAddress) {
28
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
29
+ return await registry.chipsIntentsVerifier();
30
+ }
31
+ async function readLiquidityIntentsVerifierAddress(provider, registryProxyAddress) {
32
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
33
+ return await registry.liquidityIntentsVerifier();
34
+ }
35
+ async function readTradeIntentsVerifierAddress(provider, registryProxyAddress) {
36
+ const registry = (0, deployedContractsConnector_1.connectToLatestRegistry)(provider, registryProxyAddress);
37
+ return await registry.tradeIntentsVerifier();
38
+ }
@@ -43,6 +43,7 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
43
43
  [pairIds_1.PAIR_CONFIGS_IDS.FTM_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
44
44
  [pairIds_1.PAIR_CONFIGS_IDS.SOL_USD]: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
45
45
  [pairIds_1.PAIR_CONFIGS_IDS.S_USD]: "0xf490b178d0c85683b7a0f2388b40af2e6f7c90cbe0f96b31f315f08d0e5a2d6d",
46
+ [pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "0x035aa8d0a2d74e19438f2c1440edff9f3b95f915ca65f681a25ed0bad3dc228d",
46
47
  [pairIds_1.PAIR_CONFIGS_IDS.EUR_USD]: "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
47
48
  [pairIds_1.PAIR_CONFIGS_IDS.GBP_USD]: "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1",
48
49
  [pairIds_1.PAIR_CONFIGS_IDS.AUD_USD]: "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80",
@@ -58,6 +59,4 @@ exports.PYTH_PAIRS_PRICE_FEED_IDS = {
58
59
  [pairIds_1.PAIR_CONFIGS_IDS.NZD_USD_CAT]: "",
59
60
  [pairIds_1.PAIR_CONFIGS_IDS.USD_JPY_CAT]: "",
60
61
  [pairIds_1.PAIR_CONFIGS_IDS.USD_CHF_CAT]: "",
61
- // Pairs Unsupported by pyth
62
- [pairIds_1.PAIR_CONFIGS_IDS.FLR_USD]: "",
63
62
  };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });