lynx-client 0.0.2 → 0.0.4

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 (238) hide show
  1. package/README.md +0 -1
  2. package/dist/cjs/index.js +12 -0
  3. package/dist/cjs/lib/addresses/lensAddresses.js +16 -16
  4. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +91 -0
  5. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.js +2 -0
  6. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/index.js +5 -0
  7. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +0 -13
  8. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +6 -26
  9. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.js +2 -0
  10. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +70 -0
  11. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/index.js +5 -0
  12. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.js +2 -0
  13. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +99 -0
  14. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/index.js +5 -0
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +0 -1
  16. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +3 -7
  17. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +11 -47
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +28 -9
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorService/index.js +5 -0
  20. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +45 -0
  21. package/dist/cjs/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.js +2 -0
  22. package/dist/cjs/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.js +2 -0
  23. package/dist/cjs/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.js +2 -0
  24. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
  25. package/dist/cjs/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
  26. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1129 -0
  27. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +870 -0
  28. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1561 -0
  29. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -0
  30. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  31. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  32. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +78 -6
  33. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +297 -80
  34. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  35. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
  36. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  37. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
  38. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  39. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
  40. package/dist/esm/index.d.ts +10 -0
  41. package/dist/esm/index.d.ts.map +1 -1
  42. package/dist/esm/index.js +12 -0
  43. package/dist/esm/lib/addresses/lensAddresses.d.ts +16 -16
  44. package/dist/esm/lib/addresses/lensAddresses.js +16 -16
  45. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +29 -0
  46. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -0
  47. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +91 -0
  48. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +24 -0
  49. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -0
  50. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.js +2 -0
  51. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts +4 -0
  52. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts.map +1 -0
  53. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.js +5 -0
  54. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +3 -16
  55. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
  56. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +0 -13
  57. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -5
  58. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
  59. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +6 -26
  60. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +17 -0
  61. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -0
  62. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.js +2 -0
  63. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +22 -0
  64. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -0
  65. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +70 -0
  66. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts +4 -0
  67. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts.map +1 -0
  68. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.js +5 -0
  69. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +24 -0
  70. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -0
  71. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.js +2 -0
  72. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +29 -0
  73. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -0
  74. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +99 -0
  75. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts +4 -0
  76. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts.map +1 -0
  77. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.js +5 -0
  78. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +0 -1
  79. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -1
  80. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +0 -1
  81. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +10 -21
  82. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  83. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +3 -7
  84. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +1 -4
  85. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  86. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +11 -47
  87. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +10 -4
  88. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  89. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +10 -4
  90. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  91. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +28 -9
  92. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
  93. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
  94. package/dist/esm/lib/contractsIntegration/TradingFloorService/index.js +5 -0
  95. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +15 -0
  96. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  97. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +45 -0
  98. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts +643 -0
  99. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts.map +1 -0
  100. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.js +2 -0
  101. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts +508 -0
  102. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts.map +1 -0
  103. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.js +2 -0
  104. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts +832 -0
  105. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts.map +1 -0
  106. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.js +2 -0
  107. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
  108. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
  109. package/dist/esm/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.js +2 -0
  110. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +42 -6
  111. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  112. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +150 -59
  113. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  114. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +10 -65
  115. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
  116. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -112
  117. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  118. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
  119. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
  120. package/dist/esm/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.js +2 -0
  121. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +866 -0
  122. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts.map +1 -0
  123. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1129 -0
  124. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +670 -0
  125. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts.map +1 -0
  126. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +870 -0
  127. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1201 -0
  128. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts.map +1 -0
  129. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1561 -0
  130. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
  131. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
  132. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1854 -0
  133. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  134. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  135. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  136. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  137. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +60 -5
  138. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  139. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +78 -6
  140. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +226 -64
  141. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  142. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +297 -80
  143. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  144. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  145. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +10 -85
  146. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
  147. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +10 -109
  148. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  149. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  150. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
  151. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  152. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +51 -594
  153. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  154. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  155. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
  156. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
  157. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +334 -0
  158. package/dist/types/index.d.ts +10 -0
  159. package/dist/types/index.d.ts.map +1 -1
  160. package/dist/types/lib/addresses/lensAddresses.d.ts +16 -16
  161. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +29 -0
  162. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -0
  163. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +24 -0
  164. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -0
  165. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts +4 -0
  166. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts.map +1 -0
  167. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +3 -16
  168. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
  169. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -5
  170. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
  171. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +17 -0
  172. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -0
  173. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +22 -0
  174. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -0
  175. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts +4 -0
  176. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts.map +1 -0
  177. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +24 -0
  178. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -0
  179. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +29 -0
  180. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -0
  181. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts +4 -0
  182. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts.map +1 -0
  183. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +0 -1
  184. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -1
  185. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +10 -21
  186. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  187. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +1 -4
  188. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  189. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +10 -4
  190. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  191. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +10 -4
  192. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  193. package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts +3 -0
  194. package/dist/types/lib/contractsIntegration/TradingFloorService/index.d.ts.map +1 -0
  195. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +15 -0
  196. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  197. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts +643 -0
  198. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts.map +1 -0
  199. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts +508 -0
  200. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts.map +1 -0
  201. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts +832 -0
  202. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts.map +1 -0
  203. package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts +1084 -0
  204. package/dist/types/lib/typechain/contracts/Lynx/Lex/LexPool/LexPoolV1.d.ts.map +1 -0
  205. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +42 -6
  206. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  207. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +150 -59
  208. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  209. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +10 -65
  210. package/dist/types/lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -1
  211. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +34 -112
  212. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  213. package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts +158 -0
  214. package/dist/types/lib/typechain/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor.d.ts.map +1 -0
  215. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +866 -0
  216. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts.map +1 -0
  217. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +670 -0
  218. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts.map +1 -0
  219. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1201 -0
  220. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts.map +1 -0
  221. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1425 -0
  222. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -0
  223. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  224. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  225. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +60 -5
  226. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  227. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +226 -64
  228. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  229. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  230. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +10 -85
  231. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -1
  232. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  233. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +13 -442
  234. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  235. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  236. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +251 -0
  237. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts.map +1 -0
  238. package/package.json +1 -1
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChipsIntentsVerifierService = void 0;
4
+ const ChipsIntentsVerifierV1__factory_1 = require("../../typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory");
5
+ class ChipsIntentsVerifierService {
6
+ constructor(signerOrProvider, address) {
7
+ this.contract = ChipsIntentsVerifierV1__factory_1.ChipsIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
+ this.isSigner = 'sendTransaction' in signerOrProvider;
9
+ }
10
+ async domainSeparatorForAsset(chip) {
11
+ return await this.contract.domainSeparatorForAsset(chip);
12
+ }
13
+ async domainSeparatorForChain(chainId) {
14
+ return await this.contract.domainSeparatorForChain(chainId);
15
+ }
16
+ async chipOutFeeForChip(chip) {
17
+ return await this.contract.chipOutFeeForChip(chip);
18
+ }
19
+ async feesReceiver() {
20
+ return await this.contract.feesReceiver();
21
+ }
22
+ async intentsPermissions(user) {
23
+ return await this.contract.intentsPermissions(user);
24
+ }
25
+ async setIntentsPermissions(oftChip, dynAddressSuffix) {
26
+ if (!this.isSigner) {
27
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
28
+ }
29
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
30
+ await tx.wait();
31
+ }
32
+ async forceChipOut(chip, holder, amount, value) {
33
+ if (!this.isSigner) {
34
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
35
+ }
36
+ const tx = await this.contract.forceChipOut(chip, holder, amount, { value: value || 0n });
37
+ await tx.wait();
38
+ }
39
+ async interactOnBehalf_chipOut(chip, holder, amount, value) {
40
+ if (!this.isSigner) {
41
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
42
+ }
43
+ const tx = await this.contract.interactOnBehalf_chipOut(chip, holder, amount, { value: value || 0n });
44
+ await tx.wait();
45
+ }
46
+ async verifyIntent_chipOut(payload, v, r, s, value) {
47
+ if (!this.isSigner) {
48
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
49
+ }
50
+ const tx = await this.contract.verifyIntent_chipOut(payload, v, r, s, { value: value || 0n });
51
+ await tx.wait();
52
+ }
53
+ async verifyIntent_chipOutAndUnwrap(payload, v, r, s, value) {
54
+ if (!this.isSigner) {
55
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
56
+ }
57
+ const tx = await this.contract.verifyIntent_chipOutAndUnwrap(payload, v, r, s, { value: value || 0n });
58
+ await tx.wait();
59
+ }
60
+ async getLZDstChainIdFromChip(chip) {
61
+ return await this.contract.getLZDstChainIdFromChip(chip);
62
+ }
63
+ async getLZDstChainIdFromEvmChainId(evmChainId) {
64
+ return await this.contract.getLZDstChainIdFromEvmChainId(evmChainId);
65
+ }
66
+ async evmIdToLzEid(evmChainId) {
67
+ return await this.contract.evmIdToLzEid(evmChainId);
68
+ }
69
+ async getWrapNativeChipInOutHelper(oftChip) {
70
+ return await this.contract.getWrapNativeChipInOutHelper(oftChip);
71
+ }
72
+ async sourceChainIdForAsset(asset) {
73
+ return await this.contract.sourceChainIdForAsset(asset);
74
+ }
75
+ async processedSignatures(signature) {
76
+ return await this.contract.processedSignatures(signature);
77
+ }
78
+ async admin() {
79
+ return await this.contract.admin();
80
+ }
81
+ async pendingAdmin() {
82
+ return await this.contract.pendingAdmin();
83
+ }
84
+ async registry() {
85
+ return await this.contract.registry();
86
+ }
87
+ async wrapNativeChipInOutHelpers(oftChip) {
88
+ return await this.contract.wrapNativeChipInOutHelpers(oftChip);
89
+ }
90
+ }
91
+ exports.ChipsIntentsVerifierService = ChipsIntentsVerifierService;
@@ -0,0 +1,24 @@
1
+ import { ChipsIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
2
+ export interface IChipsIntentsVerifierService {
3
+ domainSeparatorForAsset(chip: string): Promise<string>;
4
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
5
+ chipOutFeeForChip(chip: string): Promise<bigint>;
6
+ feesReceiver(): Promise<string>;
7
+ intentsPermissions(user: string): Promise<string>;
8
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
9
+ forceChipOut(chip: string, holder: string, amount: bigint, value?: bigint): Promise<void>;
10
+ interactOnBehalf_chipOut(chip: string, holder: string, amount: bigint, value?: bigint): Promise<void>;
11
+ verifyIntent_chipOut(payload: ChipsIntentsVerifierV1.HolderRequestPayload_ChipOutLZStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
12
+ verifyIntent_chipOutAndUnwrap(payload: ChipsIntentsVerifierV1.HolderRequestPayload_ChipOutLZ_UnwrapStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
13
+ getLZDstChainIdFromChip(chip: string): Promise<bigint>;
14
+ getLZDstChainIdFromEvmChainId(evmChainId: bigint): Promise<bigint>;
15
+ evmIdToLzEid(evmChainId: bigint): Promise<bigint>;
16
+ getWrapNativeChipInOutHelper(oftChip: string): Promise<string>;
17
+ wrapNativeChipInOutHelpers(oftChip: string): Promise<string>;
18
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
19
+ processedSignatures(signature: string): Promise<boolean>;
20
+ admin(): Promise<string>;
21
+ pendingAdmin(): Promise<string>;
22
+ registry(): Promise<string>;
23
+ }
24
+ //# sourceMappingURL=IChipsIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IChipsIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAA;AAE9G,MAAM,WAAW,4BAA4B;IAE3C,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACtD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGzD,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,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;IAC9D,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAG5D,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAGxD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export { ChipsIntentsVerifierService } from "./ChipsIntentsVerifierService";
2
+ export type { IChipsIntentsVerifierService } from "./IChipsIntentsVerifierService";
3
+ export type { ChipsIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/ChipsIntentsVerifierService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,YAAY,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChipsIntentsVerifierService = void 0;
4
+ var ChipsIntentsVerifierService_1 = require("./ChipsIntentsVerifierService");
5
+ Object.defineProperty(exports, "ChipsIntentsVerifierService", { enumerable: true, get: function () { return ChipsIntentsVerifierService_1.ChipsIntentsVerifierService; } });
@@ -1,20 +1,7 @@
1
- import { BytesLike } from "ethers";
2
- import { AccountBasedIntentsVerifierRequestBuildingInfoStruct, HashBasedIntentsVerifierRequestBuildingInfoStruct } from "../../typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
3
- import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
4
- export type TAccountBasedIntentsVerifierRequestBuildingInfoStruct = Omit<TSafeBigNumberStruct<AccountBasedIntentsVerifierRequestBuildingInfoStruct>, "actionType" | "currentNonce"> & {
5
- actionType: number;
6
- currentNonce: number;
7
- };
8
- export type THashBasedIntentsVerifierRequestBuildingInfoStruct = Omit<TSafeBigNumberStruct<HashBasedIntentsVerifierRequestBuildingInfoStruct>, "actionType" | "currentNonce"> & {
9
- actionType: number;
10
- currentNonce: number;
11
- };
12
1
  export interface IIntentsVerifierLensService {
13
- getRequestBuildingInfoForChipsIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
14
- getRequestBuildingInfoForLiquidityIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
15
- getRequestBuildingInfoForTradeIntentsVerifier(positionId: BytesLike, actionType: number): Promise<THashBasedIntentsVerifierRequestBuildingInfoStruct>;
2
+ getRequestBuildingInfoForChipsIntentsVerifier(): Promise<string>;
3
+ getRequestBuildingInfoForLiquidityIntentsVerifier(): Promise<string>;
4
+ getRequestBuildingInfoForTradeIntentsVerifier(): Promise<string>;
16
5
  registry(): Promise<string>;
17
6
  }
18
- export declare const EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO: TAccountBasedIntentsVerifierRequestBuildingInfoStruct;
19
- export declare const EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO: THashBasedIntentsVerifierRequestBuildingInfoStruct;
20
7
  //# sourceMappingURL=IIntentsVerifierLensService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IIntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EACL,oDAAoD,EACpD,iDAAiD,EAClD,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,MAAM,MAAM,qDAAqD,GAAG,IAAI,CACtE,oBAAoB,CAAC,oDAAoD,CAAC,EAC1E,YAAY,GAAG,cAAc,CAC9B,GAAG;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kDAAkD,GAAG,IAAI,CACnE,oBAAoB,CAAC,iDAAiD,CAAC,EACvE,YAAY,GAAG,cAAc,CAC9B,GAAG;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C,CAC3C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC,CAAC;IAElE,iDAAiD,CAC/C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC,CAAC;IAElE,6CAA6C,CAC3C,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAE/D,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,0DAA0D,EAAE,qDAMtE,CAAC;AAEJ,eAAO,MAAM,uDAAuD,EAAE,kDAMnE,CAAC"}
1
+ {"version":3,"file":"IIntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjE,iDAAiD,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAErE,6CAA6C,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B"}
@@ -1,15 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = exports.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = void 0;
4
- exports.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
5
- verifier: "",
6
- account: "",
7
- actionType: 0,
8
- currentNonce: 0,
9
- };
10
- exports.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO = {
11
- verifier: "",
12
- hash: "",
13
- actionType: 0,
14
- currentNonce: 0,
15
- };
@@ -1,11 +1,11 @@
1
- import { BytesLike, Provider, Signer } from "ethers";
2
- import { IIntentsVerifierLensService, TAccountBasedIntentsVerifierRequestBuildingInfoStruct, THashBasedIntentsVerifierRequestBuildingInfoStruct } from "./IIntentsVerifierLensService";
1
+ import { Provider, Signer } from "ethers";
2
+ import { IIntentsVerifierLensService } from "./IIntentsVerifierLensService";
3
3
  export declare class IntentsVerifierLensService implements IIntentsVerifierLensService {
4
4
  private readonly contract;
5
5
  constructor(signerOrProvider: Signer | Provider, address: string);
6
- getRequestBuildingInfoForChipsIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
7
- getRequestBuildingInfoForLiquidityIntentsVerifier(account: string, actionType: number): Promise<TAccountBasedIntentsVerifierRequestBuildingInfoStruct>;
8
- getRequestBuildingInfoForTradeIntentsVerifier(positionId: BytesLike, actionType: number): Promise<THashBasedIntentsVerifierRequestBuildingInfoStruct>;
6
+ getRequestBuildingInfoForChipsIntentsVerifier(): Promise<string>;
7
+ getRequestBuildingInfoForLiquidityIntentsVerifier(): Promise<string>;
8
+ getRequestBuildingInfoForTradeIntentsVerifier(): Promise<string>;
9
9
  registry(): Promise<string>;
10
10
  }
11
11
  //# sourceMappingURL=IntentsVerifierLensService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrD,OAAO,EACL,2BAA2B,EAC3B,qDAAqD,EACrD,kDAAkD,EAGnD,MAAM,+BAA+B,CAAC;AAEvC,qBAAa,0BAA2B,YAAW,2BAA2B;IAC5E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,6CAA6C,CACjD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAgB3D,iDAAiD,CACrD,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,qDAAqD,CAAC;IAgB3D,6CAA6C,CACjD,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kDAAkD,CAAC;IAgBxD,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC"}
1
+ {"version":3,"file":"IntentsVerifierLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,qBAAa,0BAA2B,YAAW,2BAA2B;IAC5E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAI1D,6CAA6C,IAAI,OAAO,CAAC,MAAM,CAAC;IAIhE,iDAAiD,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpE,6CAA6C,IAAI,OAAO,CAAC,MAAM,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC"}
@@ -2,38 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IntentsVerifierLensService = void 0;
4
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
5
  class IntentsVerifierLensService {
8
6
  constructor(signerOrProvider, address) {
9
7
  this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
10
8
  }
11
- async getRequestBuildingInfoForChipsIntentsVerifier(account, actionType) {
12
- const result = await this.contract.getRequestBuildingInfoForChipsIntentsVerifier(account, BigInt(actionType));
13
- const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
14
- return {
15
- ...baseStruct,
16
- actionType: Number(baseStruct.actionType),
17
- currentNonce: Number(baseStruct.currentNonce),
18
- };
9
+ async getRequestBuildingInfoForChipsIntentsVerifier() {
10
+ return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier();
19
11
  }
20
- async getRequestBuildingInfoForLiquidityIntentsVerifier(account, actionType) {
21
- const result = await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier(account, BigInt(actionType));
22
- const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_ACCOUNT_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
23
- return {
24
- ...baseStruct,
25
- actionType: Number(baseStruct.actionType),
26
- currentNonce: Number(baseStruct.currentNonce),
27
- };
12
+ async getRequestBuildingInfoForLiquidityIntentsVerifier() {
13
+ return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier();
28
14
  }
29
- async getRequestBuildingInfoForTradeIntentsVerifier(positionId, actionType) {
30
- const result = await this.contract.getRequestBuildingInfoForTradeIntentsVerifier(positionId, BigInt(actionType));
31
- const baseStruct = (0, ethersTypes_1.ethersStructResponseToObject)(result, IIntentsVerifierLensService_1.EMPTY_HASH_BASED_INTENTS_VERIFIER_REQUEST_BUILDING_INFO);
32
- return {
33
- ...baseStruct,
34
- actionType: Number(baseStruct.actionType),
35
- currentNonce: Number(baseStruct.currentNonce),
36
- };
15
+ async getRequestBuildingInfoForTradeIntentsVerifier() {
16
+ return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier();
37
17
  }
38
18
  async registry() {
39
19
  return await this.contract.registry();
@@ -0,0 +1,17 @@
1
+ import { LiquidityIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
2
+ export interface ILiquidityIntentsVerifierService {
3
+ domainSeparatorForAsset(pool: string): Promise<string>;
4
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
5
+ intentsPermissions(user: string): Promise<string>;
6
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
7
+ interactOnBehalf_epochDeposit(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, domain: string, referralCode: string, value?: bigint): Promise<void>;
8
+ interactOnBehalf_epochRedeem(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, value?: bigint): Promise<void>;
9
+ verifyIntent_epochDeposit(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochDepositStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, value?: bigint): Promise<void>;
10
+ verifyIntent_epochRedeem(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochRedeemStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
11
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
12
+ processedSignatures(signature: string): Promise<boolean>;
13
+ admin(): Promise<string>;
14
+ pendingAdmin(): Promise<string>;
15
+ registry(): Promise<string>;
16
+ }
17
+ //# sourceMappingURL=ILiquidityIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILiquidityIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAA;AAEtH,MAAM,WAAW,gCAAgC;IAE/C,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACtD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAG/E,6BAA6B,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,4BAA4B,CAC1B,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,yBAAyB,CACvB,OAAO,EAAE,0BAA0B,CAAC,kDAAkD,EACtF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,wBAAwB,CACtB,OAAO,EAAE,0BAA0B,CAAC,iDAAiD,EACrF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAGxD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { Provider, Signer } from "ethers";
2
+ import { LiquidityIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
3
+ import { ILiquidityIntentsVerifierService } from "./ILiquidityIntentsVerifierService";
4
+ export declare class LiquidityIntentsVerifierService implements ILiquidityIntentsVerifierService {
5
+ private readonly contract;
6
+ private readonly isSigner;
7
+ constructor(signerOrProvider: Signer | Provider, address: string);
8
+ domainSeparatorForAsset(pool: string): Promise<string>;
9
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
10
+ intentsPermissions(user: string): Promise<string>;
11
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
12
+ interactOnBehalf_epochDeposit(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, domain: string, referralCode: string, value?: bigint): Promise<void>;
13
+ interactOnBehalf_epochRedeem(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, value?: bigint): Promise<void>;
14
+ verifyIntent_epochDeposit(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochDepositStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, value?: bigint): Promise<void>;
15
+ verifyIntent_epochRedeem(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochRedeemStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
16
+ admin(): Promise<string>;
17
+ pendingAdmin(): Promise<string>;
18
+ registry(): Promise<string>;
19
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
20
+ processedSignatures(signature: string): Promise<boolean>;
21
+ }
22
+ //# sourceMappingURL=LiquidityIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiquidityIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAA;AAEtH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAErF,qBAAa,+BAAgC,YAAW,gCAAgC;IACtF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4B;IACrD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAK1D,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;I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AM,CAAC;IAIrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiquidityIntentsVerifierService = void 0;
4
+ const LiquidityIntentsVerifierV1__factory_1 = require("../../typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory");
5
+ class LiquidityIntentsVerifierService {
6
+ constructor(signerOrProvider, address) {
7
+ this.contract = LiquidityIntentsVerifierV1__factory_1.LiquidityIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
+ this.isSigner = 'sendTransaction' in signerOrProvider;
9
+ }
10
+ async domainSeparatorForAsset(pool) {
11
+ return await this.contract.domainSeparatorForAsset(pool);
12
+ }
13
+ async domainSeparatorForChain(chainId) {
14
+ return await this.contract.domainSeparatorForChain(chainId);
15
+ }
16
+ async intentsPermissions(user) {
17
+ return await this.contract.intentsPermissions(user);
18
+ }
19
+ async setIntentsPermissions(oftChip, dynAddressSuffix) {
20
+ if (!this.isSigner) {
21
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
22
+ }
23
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
24
+ await tx.wait();
25
+ }
26
+ async interactOnBehalf_epochDeposit(pool, liquidityProvider, amount, minAmountOut, domain, referralCode, value) {
27
+ if (!this.isSigner) {
28
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
29
+ }
30
+ const tx = await this.contract.interactOnBehalf_epochDeposit(pool, liquidityProvider, amount, minAmountOut, domain, referralCode, { value: value || 0n });
31
+ await tx.wait();
32
+ }
33
+ async interactOnBehalf_epochRedeem(pool, liquidityProvider, amount, minAmountOut, value) {
34
+ if (!this.isSigner) {
35
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
36
+ }
37
+ const tx = await this.contract.interactOnBehalf_epochRedeem(pool, liquidityProvider, amount, minAmountOut, { value: value || 0n });
38
+ await tx.wait();
39
+ }
40
+ async verifyIntent_epochDeposit(payload, v, r, s, domain, referralCode, value) {
41
+ if (!this.isSigner) {
42
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
43
+ }
44
+ const tx = await this.contract.verifyIntent_epochDeposit(payload, v, r, s, domain, referralCode, { value: value || 0n });
45
+ await tx.wait();
46
+ }
47
+ async verifyIntent_epochRedeem(payload, v, r, s, value) {
48
+ if (!this.isSigner) {
49
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
50
+ }
51
+ const tx = await this.contract.verifyIntent_epochRedeem(payload, v, r, s, { value: value || 0n });
52
+ await tx.wait();
53
+ }
54
+ async admin() {
55
+ return await this.contract.admin();
56
+ }
57
+ async pendingAdmin() {
58
+ return await this.contract.pendingAdmin();
59
+ }
60
+ async registry() {
61
+ return await this.contract.registry();
62
+ }
63
+ async sourceChainIdForAsset(asset) {
64
+ return await this.contract.sourceChainIdForAsset(asset);
65
+ }
66
+ async processedSignatures(signature) {
67
+ return await this.contract.processedSignatures(signature);
68
+ }
69
+ }
70
+ exports.LiquidityIntentsVerifierService = LiquidityIntentsVerifierService;
@@ -0,0 +1,4 @@
1
+ export { LiquidityIntentsVerifierService } from "./LiquidityIntentsVerifierService";
2
+ export type { ILiquidityIntentsVerifierService } from "./ILiquidityIntentsVerifierService";
3
+ export type { LiquidityIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LiquidityIntentsVerifierService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AACnF,YAAY,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAC1F,YAAY,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiquidityIntentsVerifierService = void 0;
4
+ var LiquidityIntentsVerifierService_1 = require("./LiquidityIntentsVerifierService");
5
+ Object.defineProperty(exports, "LiquidityIntentsVerifierService", { enumerable: true, get: function () { return LiquidityIntentsVerifierService_1.LiquidityIntentsVerifierService; } });
@@ -0,0 +1,24 @@
1
+ import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
2
+ export interface ITradeIntentsVerifierService {
3
+ domainSeparatorForAsset(settlementAsset: string): Promise<string>;
4
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
5
+ intentsPermissions(user: string): Promise<string>;
6
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
7
+ verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint): Promise<void>;
8
+ verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
9
+ verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
10
+ verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
11
+ verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
12
+ verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
13
+ domainSeparatorsForPosition(positionId: string): Promise<string>;
14
+ tradersForPosition(positionId: string): Promise<string>;
15
+ settlementAssetsForPosition(positionId: string): Promise<string>;
16
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
17
+ processedSignatures(signature: string): Promise<boolean>;
18
+ getTradingFloor(): Promise<string>;
19
+ getTradersPortal(): Promise<string>;
20
+ admin(): Promise<string>;
21
+ pendingAdmin(): Promise<string>;
22
+ registry(): Promise<string>;
23
+ }
24
+ //# sourceMappingURL=ITradeIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITradeIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyB,MAAM,uEAAuE,CAAA;AAErI,MAAM,WAAW,4BAA4B;IAE3C,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjE,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAG/E,0CAA0C,CACxC,OAAO,EAAE,sBAAsB,CAAC,qCAAqC,EACrE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,OAAO,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,8CAA8C,CAC5C,OAAO,EAAE,sBAAsB,CAAC,oCAAoC,EACpE,CAAC,EAAE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,OAAO,CAAC,CAAA;IAGxD,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAGnC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { Provider, Signer } from "ethers";
2
+ import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
3
+ import { ITradeIntentsVerifierService } from "./ITradeIntentsVerifierService";
4
+ export declare class TradeIntentsVerifierService implements ITradeIntentsVerifierService {
5
+ private readonly contract;
6
+ private readonly isSigner;
7
+ constructor(signerOrProvider: Signer | Provider, address: string);
8
+ domainSeparatorForAsset(settlementAsset: string): Promise<string>;
9
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
10
+ intentsPermissions(user: string): Promise<string>;
11
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
12
+ verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint): Promise<void>;
13
+ verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
14
+ verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
15
+ verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
16
+ verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
17
+ verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
18
+ admin(): Promise<string>;
19
+ pendingAdmin(): Promise<string>;
20
+ registry(): Promise<string>;
21
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
22
+ processedSignatures(signature: string): Promise<boolean>;
23
+ domainSeparatorsForPosition(positionId: string): Promise<string>;
24
+ tradersForPosition(positionId: string): Promise<string>;
25
+ settlementAssetsForPosition(positionId: string): Promise<string>;
26
+ getTradingFloor(): Promise<string>;
27
+ getTradersPortal(): Promise<string>;
28
+ }
29
+ //# sourceMappingURL=TradeIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradeIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAyB,MAAM,uEAAuE,CAAA;AAErI,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,qBAAa,2BAA4B,YAAW,4BAA4B;IAC9E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;IACjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAK1D,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjE,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,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AC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAcV,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;IAIxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3B,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxD,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhE,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhE,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;CAG1C"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradeIntentsVerifierService = void 0;
4
+ const TradeIntentsVerifierV1__factory_1 = require("../../typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory");
5
+ class TradeIntentsVerifierService {
6
+ constructor(signerOrProvider, address) {
7
+ this.contract = TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
+ this.isSigner = 'sendTransaction' in signerOrProvider;
9
+ }
10
+ async domainSeparatorForAsset(settlementAsset) {
11
+ return await this.contract.domainSeparatorForAsset(settlementAsset);
12
+ }
13
+ async domainSeparatorForChain(chainId) {
14
+ return await this.contract.domainSeparatorForChain(chainId);
15
+ }
16
+ async intentsPermissions(user) {
17
+ return await this.contract.intentsPermissions(user);
18
+ }
19
+ async setIntentsPermissions(oftChip, dynAddressSuffix) {
20
+ if (!this.isSigner) {
21
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
22
+ }
23
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
24
+ await tx.wait();
25
+ }
26
+ async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value) {
27
+ if (!this.isSigner) {
28
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
29
+ }
30
+ const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n });
31
+ await tx.wait();
32
+ }
33
+ async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value) {
34
+ if (!this.isSigner) {
35
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
36
+ }
37
+ const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n });
38
+ await tx.wait();
39
+ }
40
+ async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value) {
41
+ if (!this.isSigner) {
42
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
43
+ }
44
+ const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n });
45
+ await tx.wait();
46
+ }
47
+ async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value) {
48
+ if (!this.isSigner) {
49
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
50
+ }
51
+ const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n });
52
+ await tx.wait();
53
+ }
54
+ async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value) {
55
+ if (!this.isSigner) {
56
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
57
+ }
58
+ const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n });
59
+ await tx.wait();
60
+ }
61
+ async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value) {
62
+ if (!this.isSigner) {
63
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
64
+ }
65
+ const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n });
66
+ await tx.wait();
67
+ }
68
+ async admin() {
69
+ return await this.contract.admin();
70
+ }
71
+ async pendingAdmin() {
72
+ return await this.contract.pendingAdmin();
73
+ }
74
+ async registry() {
75
+ return await this.contract.registry();
76
+ }
77
+ async sourceChainIdForAsset(asset) {
78
+ return await this.contract.sourceChainIdForAsset(asset);
79
+ }
80
+ async processedSignatures(signature) {
81
+ return await this.contract.processedSignatures(signature);
82
+ }
83
+ async domainSeparatorsForPosition(positionId) {
84
+ return await this.contract.domainSeparatorsForPosition(positionId);
85
+ }
86
+ async tradersForPosition(positionId) {
87
+ return await this.contract.tradersForPosition(positionId);
88
+ }
89
+ async settlementAssetsForPosition(positionId) {
90
+ return await this.contract.settlementAssetsForPosition(positionId);
91
+ }
92
+ async getTradingFloor() {
93
+ return await this.contract.getTradingFloor();
94
+ }
95
+ async getTradersPortal() {
96
+ return await this.contract.getTradersPortal();
97
+ }
98
+ }
99
+ exports.TradeIntentsVerifierService = TradeIntentsVerifierService;
@@ -0,0 +1,4 @@
1
+ export { TradeIntentsVerifierService } from "./TradeIntentsVerifierService";
2
+ export type { ITradeIntentsVerifierService } from "./ITradeIntentsVerifierService";
3
+ export type { TradeIntentsVerifierV1, TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,uEAAuE,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradeIntentsVerifierService = void 0;
4
+ var TradeIntentsVerifierService_1 = require("./TradeIntentsVerifierService");
5
+ Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
@@ -3,7 +3,6 @@ export interface HumanReadablePositionRequestIdentifier {
3
3
  trader: string;
4
4
  pairId: number;
5
5
  settlementAsset: string;
6
- positionIndex: number;
7
6
  }
8
7
  export interface HumanReadablePositionRequestParams {
9
8
  isLong: boolean;