lynx-client 0.0.32 → 0.0.34

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 (299) hide show
  1. package/dist/cjs/lib/addresses/lensAddresses.js +6 -6
  2. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
  3. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
  4. package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
  5. package/dist/cjs/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
  6. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
  7. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -0
  8. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +52 -52
  9. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
  10. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
  11. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
  12. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
  13. package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
  14. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
  15. package/dist/cjs/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
  16. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
  17. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
  20. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +25 -1
  21. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +52 -8
  22. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
  23. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
  24. package/dist/cjs/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.js +1 -1
  25. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
  26. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  27. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  28. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
  29. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  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 +284 -9
  33. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +6 -1
  34. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +261 -1
  35. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +136 -1
  36. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.js +1 -1
  37. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  38. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +220 -1
  39. package/dist/esm/index.d.ts +1 -1
  40. package/dist/esm/index.d.ts.map +1 -1
  41. package/dist/esm/lib/addresses/lensAddresses.d.ts +6 -6
  42. package/dist/esm/lib/addresses/lensAddresses.js +6 -6
  43. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  44. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
  45. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
  46. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  47. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
  48. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
  49. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
  50. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
  51. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
  52. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
  53. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
  54. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
  55. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
  56. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
  57. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
  58. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
  59. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
  60. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
  61. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
  62. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
  63. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
  64. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
  65. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
  66. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
  67. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +7 -0
  68. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
  69. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
  70. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +52 -52
  71. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
  72. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
  73. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
  74. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
  75. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
  76. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
  77. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
  78. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
  79. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
  80. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
  81. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  82. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  83. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
  84. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
  85. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
  86. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
  87. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
  88. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
  89. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
  90. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
  91. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
  92. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
  93. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
  94. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
  95. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
  96. package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
  97. package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
  98. package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
  99. package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
  100. package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
  101. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
  102. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
  103. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
  104. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
  105. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
  106. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
  107. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  108. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  109. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
  110. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
  111. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  112. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
  113. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  114. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
  115. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
  116. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  117. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  118. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
  119. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +34 -8
  120. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
  121. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +25 -1
  122. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +10 -5
  123. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
  124. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +52 -8
  125. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
  126. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
  127. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
  128. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
  129. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
  130. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
  131. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
  132. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
  133. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
  134. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
  135. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
  136. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
  137. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
  138. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
  139. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
  140. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
  141. package/dist/esm/lib/contractsIntegration/common/index.d.ts +20 -0
  142. package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
  143. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +182 -9
  144. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  145. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +5 -3
  146. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  147. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +164 -2
  148. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  149. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +22 -1
  150. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
  151. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +126 -3
  152. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
  153. package/dist/esm/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.d.ts +1 -1
  154. package/dist/esm/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.js +1 -1
  155. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
  156. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
  157. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  158. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  159. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  160. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  161. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
  162. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
  163. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  164. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  165. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  166. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  167. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  168. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  169. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +221 -9
  170. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  171. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +284 -9
  172. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +5 -1
  173. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  174. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +6 -1
  175. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +203 -1
  176. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  177. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +261 -1
  178. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +109 -1
  179. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
  180. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +136 -1
  181. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.d.ts +1 -1
  182. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.js +1 -1
  183. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  184. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  185. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +169 -1
  186. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
  187. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +220 -1
  188. package/dist/types/index.d.ts +1 -1
  189. package/dist/types/index.d.ts.map +1 -1
  190. package/dist/types/lib/addresses/lensAddresses.d.ts +6 -6
  191. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  192. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
  193. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  194. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
  195. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
  196. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
  197. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
  198. package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
  199. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
  200. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
  201. package/dist/types/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
  202. package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
  203. package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
  204. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
  205. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
  206. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
  207. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
  208. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
  209. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
  210. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
  211. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
  212. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
  213. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
  214. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
  215. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
  216. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
  217. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
  218. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
  219. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
  220. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  221. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  222. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
  223. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
  224. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
  225. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
  226. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
  227. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
  228. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
  229. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
  230. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
  231. package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
  232. package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
  233. package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
  234. package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
  235. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
  236. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
  237. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
  238. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
  239. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
  240. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  241. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  242. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
  243. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  244. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
  245. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  246. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
  247. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  248. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  249. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +34 -8
  250. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
  251. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +10 -5
  252. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
  253. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
  254. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
  255. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
  256. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
  257. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
  258. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
  259. package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
  260. package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
  261. package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
  262. package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
  263. package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
  264. package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
  265. package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
  266. package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
  267. package/dist/types/lib/contractsIntegration/common/index.d.ts +20 -0
  268. package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
  269. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +182 -9
  270. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  271. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +5 -3
  272. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  273. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +164 -2
  274. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  275. package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts +22 -1
  276. package/dist/types/lib/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -1
  277. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +126 -3
  278. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
  279. package/dist/types/lib/typechain/factories/contracts/Lynx/FeatureFlagger/FeatureFlaggerV1__factory.d.ts +1 -1
  280. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
  281. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  282. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  283. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
  284. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  285. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  286. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  287. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +221 -9
  288. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  289. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +5 -1
  290. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  291. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +203 -1
  292. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  293. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +109 -1
  294. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -1
  295. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/RateModelLens__factory.d.ts +1 -1
  296. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  297. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +169 -1
  298. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
  299. package/package.json +3 -2
@@ -6,97 +6,97 @@ class FeatureManagement {
6
6
  constructor(contract) {
7
7
  this.contract = contract;
8
8
  }
9
- async adminRegisterFeature(featureId, name) {
10
- return this.contract.adminRegisterFeature(featureId, name);
9
+ async adminRegisterFeature(featureId, name, transactionOptions) {
10
+ return this.contract.adminRegisterFeature(featureId, name, { ...transactionOptions });
11
11
  }
12
- async adminDisableFeatureForUser(featureId, user) {
13
- return this.contract.adminDisableFeatureForUser(featureId, user);
12
+ async adminDisableFeatureForUser(featureId, user, transactionOptions) {
13
+ return this.contract.adminDisableFeatureForUser(featureId, user, { ...transactionOptions });
14
14
  }
15
- async adminBatchDisableFeatureForUsers(featureId, users) {
16
- return this.contract.adminBatchDisableFeatureForUsers(featureId, users);
15
+ async adminBatchDisableFeatureForUsers(featureId, users, transactionOptions) {
16
+ return this.contract.adminBatchDisableFeatureForUsers(featureId, users, { ...transactionOptions });
17
17
  }
18
18
  }
19
19
  class UserFeatureControl {
20
20
  constructor(contract) {
21
21
  this.contract = contract;
22
22
  }
23
- async setFeatureActivated(featureId, enabled) {
24
- return this.contract.setFeatureActivated(featureId, enabled);
23
+ async setFeatureActivated(featureId, enabled, transactionOptions) {
24
+ return this.contract.setFeatureActivated(featureId, enabled, { ...transactionOptions });
25
25
  }
26
26
  }
27
27
  class FeatureQueries {
28
28
  constructor(contract) {
29
29
  this.contract = contract;
30
30
  }
31
- async isFeatureActivated(featureId, user) {
32
- return this.contract.isFeatureActivated(featureId, user);
31
+ async isFeatureActivated(featureId, user, callOptions) {
32
+ return this.contract.isFeatureActivated(featureId, user, { ...callOptions });
33
33
  }
34
- async isFeatureRegistered(featureId) {
35
- return this.contract.isFeatureRegistered(featureId);
34
+ async isFeatureRegistered(featureId, callOptions) {
35
+ return this.contract.isFeatureRegistered(featureId, { ...callOptions });
36
36
  }
37
- async getFeatureMetadata(featureId) {
38
- const result = await this.contract.getFeatureMetadata(featureId);
37
+ async getFeatureMetadata(featureId, callOptions) {
38
+ const result = await this.contract.getFeatureMetadata(featureId, { ...callOptions });
39
39
  return {
40
40
  name: result.name,
41
41
  exists: result.exists,
42
42
  usersCount: result.usersCount,
43
43
  };
44
44
  }
45
- async getFeatureUsers(featureId, startIndex, pageSize) {
46
- const result = await this.contract.getFeatureUsers(featureId, startIndex, pageSize);
45
+ async getFeatureUsers(featureId, startIndex, pageSize, callOptions) {
46
+ const result = await this.contract.getFeatureUsers(featureId, startIndex, pageSize, { ...callOptions });
47
47
  return {
48
48
  users: result.users,
49
49
  totalCount: result.totalCount,
50
50
  hasMore: result.hasMore,
51
51
  };
52
52
  }
53
- async getFeatureUsersCount(featureId) {
54
- return this.contract.getFeatureUsersCount(featureId);
53
+ async getFeatureUsersCount(featureId, callOptions) {
54
+ return this.contract.getFeatureUsersCount(featureId, { ...callOptions });
55
55
  }
56
- async getAllFeatureIds() {
57
- return this.contract.getAllFeatureIds();
56
+ async getAllFeatureIds(callOptions) {
57
+ return this.contract.getAllFeatureIds({ ...callOptions });
58
58
  }
59
- async featureName(featureId) {
60
- return this.contract.featureName(featureId);
59
+ async featureName(featureId, callOptions) {
60
+ return this.contract.featureName(featureId, { ...callOptions });
61
61
  }
62
62
  }
63
63
  class ContractReferences {
64
64
  constructor(contract) {
65
65
  this.contract = contract;
66
66
  }
67
- async registry() {
68
- return this.contract.registry();
67
+ async registry(callOptions) {
68
+ return this.contract.registry({ ...callOptions });
69
69
  }
70
- async implementation() {
71
- return this.contract.implementation();
70
+ async implementation(callOptions) {
71
+ return this.contract.implementation({ ...callOptions });
72
72
  }
73
73
  }
74
74
  class PendableAdmin {
75
75
  constructor(contract) {
76
76
  this.contract = contract;
77
77
  }
78
- async admin() {
79
- return this.contract.admin();
78
+ async admin(callOptions) {
79
+ return this.contract.admin({ ...callOptions });
80
80
  }
81
- async pendingAdmin() {
82
- return this.contract.pendingAdmin();
81
+ async pendingAdmin(callOptions) {
82
+ return this.contract.pendingAdmin({ ...callOptions });
83
83
  }
84
84
  }
85
85
  class LynxVersionedContract {
86
86
  constructor(contract) {
87
87
  this.contract = contract;
88
88
  }
89
- async getContractName() {
90
- return this.contract.getContractName();
89
+ async getContractName(callOptions) {
90
+ return this.contract.getContractName({ ...callOptions });
91
91
  }
92
- async getContractVersion() {
93
- return this.contract.getContractVersion();
92
+ async getContractVersion(callOptions) {
93
+ return this.contract.getContractVersion({ ...callOptions });
94
94
  }
95
- async CONTRACT_NAME() {
96
- return this.contract.CONTRACT_NAME();
95
+ async CONTRACT_NAME(callOptions) {
96
+ return this.contract.CONTRACT_NAME({ ...callOptions });
97
97
  }
98
- async CONTRACT_VERSION() {
99
- return this.contract.CONTRACT_VERSION();
98
+ async CONTRACT_VERSION(callOptions) {
99
+ return this.contract.CONTRACT_VERSION({ ...callOptions });
100
100
  }
101
101
  }
102
102
  class FeatureFlaggerService {
@@ -6,17 +6,17 @@ class IntentsVerifierLensService {
6
6
  constructor(signerOrProvider, address) {
7
7
  this.contract = IntentsVerifierLens__factory_1.IntentsVerifierLens__factory.connect(address, signerOrProvider);
8
8
  }
9
- async getRequestBuildingInfoForChipsIntentsVerifier() {
10
- return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier();
9
+ async getRequestBuildingInfoForChipsIntentsVerifier(callOptions) {
10
+ return await this.contract.getRequestBuildingInfoForChipsIntentsVerifier({ ...callOptions });
11
11
  }
12
- async getRequestBuildingInfoForLiquidityIntentsVerifier() {
13
- return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier();
12
+ async getRequestBuildingInfoForLiquidityIntentsVerifier(callOptions) {
13
+ return await this.contract.getRequestBuildingInfoForLiquidityIntentsVerifier({ ...callOptions });
14
14
  }
15
- async getRequestBuildingInfoForTradeIntentsVerifier() {
16
- return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier();
15
+ async getRequestBuildingInfoForTradeIntentsVerifier(callOptions) {
16
+ return await this.contract.getRequestBuildingInfoForTradeIntentsVerifier({ ...callOptions });
17
17
  }
18
- async registry() {
19
- return await this.contract.registry();
18
+ async registry(callOptions) {
19
+ return await this.contract.registry({ ...callOptions });
20
20
  }
21
21
  getContract() {
22
22
  return this.contract;
@@ -75,6 +75,7 @@ exports.EMPTY_GROUP_CONFIGS_LENS = {
75
75
  maxLeverage: 0n,
76
76
  maxPositionSize: 0n,
77
77
  minLeverage: 0n,
78
+ minOpenFee: 0n,
78
79
  };
79
80
  exports.EMPTY_LEX_PAIR_STATE_LENS = {
80
81
  fundingRate: 0n,
@@ -114,11 +115,17 @@ exports.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS = {
114
115
  fundingRateModel: "",
115
116
  interestRateModel: "",
116
117
  interestShareFactor: 0n,
118
+ fundingShareFactor: 0n,
117
119
  matchingPool: "",
118
120
  minOpenFee: 0n,
119
121
  lexPartF: 0n,
120
122
  liquidationThresholdF: 0n,
121
123
  liquidationFeeF: 0n,
124
+ maxGainF: 0n,
125
+ fundingRateMax: 0n,
126
+ borrowRateMax: 0n,
127
+ maxTotalBorrows: 0n,
128
+ maxVirtualUtilization: 0n,
122
129
  supportedPairIds: [],
123
130
  };
124
131
  exports.EMPTY_COMPLETE_LEX_STATE = {
@@ -8,8 +8,8 @@ class LexLensService {
8
8
  constructor(signerOrProvider, contractAddress) {
9
9
  this.contract = LexLens__factory_1.LexLens__factory.connect(contractAddress, signerOrProvider);
10
10
  }
11
- async getAllFeeConfigurationsInLex(lexPool) {
12
- const result = await this.contract.getAllFeeConfigurationsInLex(lexPool);
11
+ async getAllFeeConfigurationsInLex(lexPool, callOptions) {
12
+ const result = await this.contract.getAllFeeConfigurationsInLex(lexPool, { ...callOptions });
13
13
  // First convert array, then handle special number conversions
14
14
  const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_FEE_CONFIGS_LENS);
15
15
  return baseArray.map(item => ({
@@ -20,8 +20,8 @@ class LexLensService {
20
20
  performanceFeeF: Number(item.performanceFeeF),
21
21
  }));
22
22
  }
23
- async getAllGroupConfigurationsInLex(lexPool) {
24
- const result = await this.contract.getAllGroupConfigurationsInLex(lexPool);
23
+ async getAllGroupConfigurationsInLex(lexPool, callOptions) {
24
+ const result = await this.contract.getAllGroupConfigurationsInLex(lexPool, { ...callOptions });
25
25
  const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_GROUP_CONFIGS_LENS);
26
26
  return baseArray.map(item => ({
27
27
  ...item,
@@ -29,19 +29,19 @@ class LexLensService {
29
29
  maxBorrowF: Number(item.maxBorrowF),
30
30
  }));
31
31
  }
32
- async getAllGroupStateInLex(lexPool) {
33
- const result = await this.contract.getAllGroupStateInLex(lexPool);
32
+ async getAllGroupStateInLex(lexPool, callOptions) {
33
+ const result = await this.contract.getAllGroupStateInLex(lexPool, { ...callOptions });
34
34
  const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS);
35
35
  return baseArray.map(item => ({
36
36
  ...item,
37
37
  groupId: Number(item.groupId),
38
38
  }));
39
39
  }
40
- async getAllPairAndGroupAndFeeConfigurationsInLex(lexPool) {
41
- return await this.contract.getAllPairAndGroupAndFeeConfigurationsInLex(lexPool);
40
+ async getAllPairAndGroupAndFeeConfigurationsInLex(lexPool, callOptions) {
41
+ return await this.contract.getAllPairAndGroupAndFeeConfigurationsInLex(lexPool, { ...callOptions });
42
42
  }
43
- async getAllPairConfigurationsInLex(lexPool) {
44
- const result = await this.contract.getAllPairConfigurationsInLex(lexPool);
43
+ async getAllPairConfigurationsInLex(lexPool, callOptions) {
44
+ const result = await this.contract.getAllPairConfigurationsInLex(lexPool, { ...callOptions });
45
45
  const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_PAIR_CONFIGS_LENS);
46
46
  return baseArray.map(item => ({
47
47
  ...item,
@@ -50,16 +50,16 @@ class LexLensService {
50
50
  feeId: Number(item.feeId),
51
51
  }));
52
52
  }
53
- async getAllPairStateInLex(lexPool) {
54
- const result = await this.contract.getAllPairStateInLex(lexPool);
53
+ async getAllPairStateInLex(lexPool, callOptions) {
54
+ const result = await this.contract.getAllPairStateInLex(lexPool, { ...callOptions });
55
55
  const baseArray = (0, ethersTypes_1.ethersStructResponseToArray)(result, ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS);
56
56
  return baseArray.map(item => ({
57
57
  ...item,
58
58
  pairId: Number(item.pairId),
59
59
  }));
60
60
  }
61
- async getCompleteConfigsForLex(pool) {
62
- const result = await this.contract.getCompleteConfigsForLex(pool);
61
+ async getCompleteConfigsForLex(pool, callOptions) {
62
+ const result = await this.contract.getCompleteConfigsForLex(pool, { ...callOptions });
63
63
  const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_CONFIGS, {
64
64
  groupsConfigs: ILexLensService_1.EMPTY_GROUP_CONFIGS_LENS,
65
65
  pairsConfigs: ILexLensService_1.EMPTY_PAIR_CONFIGS_LENS,
@@ -92,12 +92,12 @@ class LexLensService {
92
92
  })),
93
93
  };
94
94
  }
95
- async getCompleteConfigsForLexes(pools) {
96
- const results = await this.contract.getCompleteConfigsForLexes(pools);
95
+ async getCompleteConfigsForLexes(pools, callOptions) {
96
+ const results = await this.contract.getCompleteConfigsForLexes(pools, { ...callOptions });
97
97
  return results.map(result => this.convertCompleteConfigsResult(result));
98
98
  }
99
- async getCompleteStateForLex(pool) {
100
- const result = await this.contract.getCompleteStateForLex(pool);
99
+ async getCompleteStateForLex(pool, callOptions) {
100
+ const result = await this.contract.getCompleteStateForLex(pool, { ...callOptions });
101
101
  const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
102
102
  pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
103
103
  groupsStates: ILexLensService_1.EMPTY_LEX_GROUP_STATE_LENS,
@@ -122,8 +122,8 @@ class LexLensService {
122
122
  })),
123
123
  };
124
124
  }
125
- async getCompleteStateForLexes(pools) {
126
- const results = await this.contract.getCompleteStateForLexes(pools);
125
+ async getCompleteStateForLexes(pools, callOptions) {
126
+ const results = await this.contract.getCompleteStateForLexes(pools, { ...callOptions });
127
127
  return results.map(result => {
128
128
  const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_COMPLETE_LEX_STATE, {
129
129
  pairsStates: ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS,
@@ -150,80 +150,80 @@ class LexLensService {
150
150
  };
151
151
  });
152
152
  }
153
- async getLExPoolForPoolAccountant(accountant) {
154
- return await this.contract.getLExPoolForPoolAccountant(accountant);
153
+ async getLExPoolForPoolAccountant(accountant, callOptions) {
154
+ return await this.contract.getLExPoolForPoolAccountant(accountant, { ...callOptions });
155
155
  }
156
- async getLexPairState(lexPool, pairId) {
157
- const result = await this.contract.getLexPairState(lexPool, BigInt(pairId));
156
+ async getLexPairState(lexPool, pairId, callOptions) {
157
+ const result = await this.contract.getLexPairState(lexPool, BigInt(pairId), { ...callOptions });
158
158
  const baseObj = (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_PAIR_STATE_LENS);
159
159
  return {
160
160
  ...baseObj,
161
161
  pairId: Number(baseObj.pairId),
162
162
  };
163
163
  }
164
- async getLexPoolConfigs(lexPool) {
165
- const result = await this.contract.getLexPoolConfigs(lexPool);
164
+ async getLexPoolConfigs(lexPool, callOptions) {
165
+ const result = await this.contract.getLexPoolConfigs(lexPool, { ...callOptions });
166
166
  return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_CONFIGS);
167
167
  }
168
- async getLexPoolParams(lexPool) {
169
- const result = await this.contract.getLexPoolParams(lexPool);
168
+ async getLexPoolParams(lexPool, callOptions) {
169
+ const result = await this.contract.getLexPoolParams(lexPool, { ...callOptions });
170
170
  return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_PARAMS);
171
171
  }
172
- async getLexPoolState(lexPool) {
173
- const result = await this.contract.getLexPoolState(lexPool);
172
+ async getLexPoolState(lexPool, callOptions) {
173
+ const result = await this.contract.getLexPoolState(lexPool, { ...callOptions });
174
174
  return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE, {
175
175
  collateralLimitsNonCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
176
176
  collateralLimitsCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
177
177
  });
178
178
  }
179
- async getLexPoolSupplierState(lexPool, supplier) {
180
- const result = await this.contract.getLexPoolSupplierState(lexPool, supplier);
179
+ async getLexPoolSupplierState(lexPool, supplier, callOptions) {
180
+ const result = await this.contract.getLexPoolSupplierState(lexPool, supplier, { ...callOptions });
181
181
  return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE, {
182
182
  pendingEpochDeposits: ILexLensService_1.EMPTY_PENDING_EPOCH_DEPOSIT,
183
183
  pendingEpochRedeems: ILexLensService_1.EMPTY_PENDING_EPOCH_REDEEM,
184
184
  });
185
185
  }
186
- async getLexPoolsStateAll(lexPools) {
187
- const results = await this.contract.getLexPoolsStateAll(lexPools);
186
+ async getLexPoolsStateAll(lexPools, callOptions) {
187
+ const results = await this.contract.getLexPoolsStateAll(lexPools, { ...callOptions });
188
188
  return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_LEX_POOL_LENS_STATE, {
189
189
  collateralLimitsNonCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
190
190
  collateralLimitsCat: ILexLensService_1.EMPTY_COLLATERAL_LIMITS_FOR_ASSET,
191
191
  });
192
192
  }
193
- async getPoolAccountantConfigurationsByPool(lexPool) {
194
- const result = await this.contract.getPoolAccountantConfigurationsByPool(lexPool);
195
- return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS);
193
+ async getPoolAccountantConfigurationsByPool(lexPool, callOptions) {
194
+ const result = await this.contract.getPoolAccountantConfigurationsByPool(lexPool, { ...callOptions });
195
+ return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS, {}, {}, ["supportedPairIds"]);
196
196
  }
197
- async getPoolAccountantConfigurationsByPoolAll(lexPools) {
198
- const results = await this.contract.getPoolAccountantConfigurationsByPoolAll(lexPools);
199
- return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS);
197
+ async getPoolAccountantConfigurationsByPoolAll(lexPools, callOptions) {
198
+ const results = await this.contract.getPoolAccountantConfigurationsByPoolAll(lexPools, { ...callOptions });
199
+ return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_CONFIGURATIONS_LENS, {}, {}, ["supportedPairIds"]);
200
200
  }
201
- async getPoolAccountantForLexPool(lexPool) {
202
- return await this.contract.getPoolAccountantForLexPool(lexPool);
201
+ async getPoolAccountantForLexPool(lexPool, callOptions) {
202
+ return await this.contract.getPoolAccountantForLexPool(lexPool, { ...callOptions });
203
203
  }
204
- async getPoolAccountantStateByPool(lexPool) {
205
- const result = await this.contract.getPoolAccountantStateByPool(lexPool);
204
+ async getPoolAccountantStateByPool(lexPool, callOptions) {
205
+ const result = await this.contract.getPoolAccountantStateByPool(lexPool, { ...callOptions });
206
206
  return (0, ethersTypes_1.ethersStructResponseToObject)(result, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS);
207
207
  }
208
- async getPoolAccountantStateByPoolAll(lexPools) {
209
- const results = await this.contract.getPoolAccountantStateByPoolAll(lexPools);
208
+ async getPoolAccountantStateByPoolAll(lexPools, callOptions) {
209
+ const results = await this.contract.getPoolAccountantStateByPoolAll(lexPools, { ...callOptions });
210
210
  return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_POOL_ACCOUNTANT_STATE_LENS);
211
211
  }
212
- async getSupplierCurrentStateAll(lexPools, supplier) {
213
- const results = await this.contract.getSupplierCurrentStateAll(lexPools, supplier);
212
+ async getSupplierCurrentStateAll(lexPools, supplier, callOptions) {
213
+ const results = await this.contract.getSupplierCurrentStateAll(lexPools, supplier, { ...callOptions });
214
214
  return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_LEX_POOL_SUPPLIER_LENS_STATE, {
215
215
  pendingEpochDeposits: ILexLensService_1.EMPTY_PENDING_EPOCH_DEPOSIT,
216
216
  pendingEpochRedeems: ILexLensService_1.EMPTY_PENDING_EPOCH_REDEEM,
217
217
  });
218
218
  }
219
- async tradesValuesMultiplePairs(accountant, pairsTrades) {
219
+ async tradesValuesMultiplePairs(accountant, pairsTrades, callOptions) {
220
220
  // @ts-ignore
221
- const results = await this.contract.tradesValuesMultiplePairs.staticCall(accountant, pairsTrades);
221
+ const results = await this.contract.tradesValuesMultiplePairs.staticCall(accountant, pairsTrades, { ...callOptions });
222
222
  return results.map(pairResults => (0, ethersTypes_1.ethersStructResponseToArray)(pairResults, ILexLensService_1.EMPTY_SINGLE_POSITION_OUTPUT));
223
223
  }
224
- async tradesValuesSinglePair(accountant, pairParams) {
224
+ async tradesValuesSinglePair(accountant, pairParams, callOptions) {
225
225
  // @ts-ignore
226
- const results = await this.contract.tradesValuesSinglePair.staticCall(accountant, pairParams);
226
+ const results = await this.contract.tradesValuesSinglePair.staticCall(accountant, pairParams, { ...callOptions });
227
227
  return (0, ethersTypes_1.ethersStructResponseToArray)(results, ILexLensService_1.EMPTY_SINGLE_POSITION_OUTPUT);
228
228
  }
229
229
  // Helper methods