lynx-client 0.0.32 → 0.0.33

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 (201) hide show
  1. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
  2. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
  3. package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
  4. package/dist/cjs/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
  5. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
  6. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +50 -50
  7. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
  8. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
  9. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
  10. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
  11. package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
  12. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
  13. package/dist/cjs/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
  14. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
  16. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
  17. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
  18. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +8 -8
  19. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
  20. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
  21. package/dist/esm/index.d.ts +1 -1
  22. package/dist/esm/index.d.ts.map +1 -1
  23. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  24. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +16 -16
  25. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
  26. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  27. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
  28. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
  29. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +40 -40
  30. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
  31. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
  32. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
  33. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +89 -89
  34. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
  35. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
  36. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
  37. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.js +38 -38
  38. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
  39. package/dist/esm/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
  40. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
  41. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
  42. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
  43. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
  44. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +8 -8
  45. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
  46. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
  47. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
  48. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
  49. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +50 -50
  50. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
  51. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
  52. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
  53. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +103 -103
  54. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
  55. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
  56. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
  57. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
  58. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +26 -26
  59. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
  60. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  61. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  62. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +78 -78
  63. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
  64. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
  65. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
  66. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +38 -38
  67. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
  68. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
  69. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
  70. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +44 -44
  71. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
  72. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
  73. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
  74. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +112 -112
  75. package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
  76. package/dist/esm/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
  77. package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
  78. package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
  79. package/dist/esm/lib/contractsIntegration/RateModelLensService/RateModelLensService.js +10 -10
  80. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
  81. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
  82. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
  83. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
  84. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +40 -40
  85. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
  86. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  87. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  88. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +66 -65
  89. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
  90. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  91. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
  92. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  93. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +13 -13
  94. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
  95. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  96. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  97. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +86 -86
  98. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +5 -4
  99. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
  100. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +5 -4
  101. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
  102. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +8 -8
  103. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
  104. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
  105. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
  106. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +80 -80
  107. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
  108. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
  109. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
  110. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +10 -9
  111. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
  112. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
  113. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
  114. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
  115. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
  116. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
  117. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
  118. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
  119. package/dist/esm/lib/contractsIntegration/common/index.d.ts +20 -0
  120. package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -1
  121. package/dist/types/index.d.ts +1 -1
  122. package/dist/types/index.d.ts.map +1 -1
  123. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  124. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +9 -8
  125. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -1
  126. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +21 -20
  127. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -1
  128. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +21 -20
  129. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -1
  130. package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -1
  131. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +37 -37
  132. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -1
  133. package/dist/types/lib/contractsIntegration/FeatureFlaggerService/FeatureFlaggerService.d.ts.map +1 -1
  134. package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts +14 -14
  135. package/dist/types/lib/contractsIntegration/FeatureFlaggerService/IFeatureFlaggerService.d.ts.map +1 -1
  136. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +5 -4
  137. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -1
  138. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +5 -4
  139. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -1
  140. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +26 -25
  141. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -1
  142. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +26 -25
  143. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -1
  144. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +73 -73
  145. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
  146. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
  147. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +14 -13
  148. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -1
  149. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +14 -13
  150. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -1
  151. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +34 -34
  152. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  153. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  154. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +13 -13
  155. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
  156. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
  157. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +17 -17
  158. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
  159. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
  160. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +90 -90
  161. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
  162. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -1
  163. package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts +11 -5
  164. package/dist/types/lib/contractsIntegration/RateModelLensService/IRateModelLensService.d.ts.map +1 -1
  165. package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts +6 -5
  166. package/dist/types/lib/contractsIntegration/RateModelLensService/RateModelLensService.d.ts.map +1 -1
  167. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +21 -20
  168. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -1
  169. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +21 -20
  170. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -1
  171. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +25 -25
  172. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  173. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  174. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +7 -6
  175. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  176. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +7 -6
  177. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  178. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +33 -33
  179. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  180. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  181. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +5 -4
  182. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
  183. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +5 -4
  184. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
  185. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +36 -36
  186. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
  187. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
  188. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +6 -5
  189. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -1
  190. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -1
  191. package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +5 -4
  192. package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -1
  193. package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +3 -2
  194. package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -1
  195. package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +3 -2
  196. package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -1
  197. package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +6 -5
  198. package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -1
  199. package/dist/types/lib/contractsIntegration/common/index.d.ts +20 -0
  200. package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -1
  201. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { TPairIds } from '../../constants/pairIds';
2
+ import { CallOptions } from '../common';
2
3
  export type TFRMBaseRateParamsStruct = {
3
4
  baseRateInUnits: number;
4
5
  multiplierInUnits: number;
@@ -63,16 +64,18 @@ export interface IRateModelLensService {
63
64
  * Get the accountant address for a given LEX pool
64
65
  *
65
66
  * @param lexPool - The LEX pool address
67
+ * @param callOptions - Optional call options for state override
66
68
  * @returns The accountant address
67
69
  */
68
- getAccountantForLexPool(lexPool: string): Promise<string>;
70
+ getAccountantForLexPool(lexPool: string, callOptions?: CallOptions): Promise<string>;
69
71
  /**
70
72
  * Get the LEX pool address for a given accountant
71
73
  *
72
74
  * @param accountant - The accountant address
75
+ * @param callOptions - Optional call options for state override
73
76
  * @returns The LEX pool address
74
77
  */
75
- getLexPoolForAccountant(accountant: string): Promise<string>;
78
+ getLexPoolForAccountant(accountant: string, callOptions?: CallOptions): Promise<string>;
76
79
  /**
77
80
  * Get complete rate model information for multiple LEX pools
78
81
  *
@@ -81,6 +84,7 @@ export interface IRateModelLensService {
81
84
  * - Interest Rate Models (IRM): Controls interest rates for borrowed liquidity
82
85
  *
83
86
  * @param lexPools - Array of LEX pool addresses to query
87
+ * @param callOptions - Optional call options for state override
84
88
  * @returns Complete rate models info including FRM and IRM groups
85
89
  *
86
90
  * @example
@@ -95,7 +99,7 @@ export interface IRateModelLensService {
95
99
  * console.log(`Base Rate: ${frmGroup.baseRateParams.baseRate}`)
96
100
  * }
97
101
  */
98
- getCompleteRateModelsInfo(lexPools: string[]): Promise<TCompleteLexRateModelsInfoStruct>;
102
+ getCompleteRateModelsInfo(lexPools: string[], callOptions?: CallOptions): Promise<TCompleteLexRateModelsInfoStruct>;
99
103
  /**
100
104
  * Get funding rate model groups for multiple LEX pools
101
105
  *
@@ -105,9 +109,10 @@ export interface IRateModelLensService {
105
109
  * - Pair-specific parameter overrides
106
110
  *
107
111
  * @param lexPools - Array of LEX pool addresses to query
112
+ * @param callOptions - Optional call options for state override
108
113
  * @returns Array of funding rate model groups
109
114
  */
110
- getFundingRateModelGroups(lexPools: string[]): Promise<TFundingRateModelGroupStruct[]>;
115
+ getFundingRateModelGroups(lexPools: string[], callOptions?: CallOptions): Promise<TFundingRateModelGroupStruct[]>;
111
116
  /**
112
117
  * Get interest rate model groups for multiple LEX pools
113
118
  *
@@ -115,9 +120,10 @@ export interface IRateModelLensService {
115
120
  * - Base rate parameters (baseRate, multiplier, kink, etc.)
116
121
  *
117
122
  * @param lexPools - Array of LEX pool addresses to query
123
+ * @param callOptions - Optional call options for state override
118
124
  * @returns Array of interest rate model groups
119
125
  */
120
- getInterestRateModelGroups(lexPools: string[]): Promise<TInterestRateModelGroupStruct[]>;
126
+ getInterestRateModelGroups(lexPools: string[], callOptions?: CallOptions): Promise<TInterestRateModelGroupStruct[]>;
121
127
  }
122
128
  export declare const EMPTY_FRM_BASE_RATE_PARAMS_RAW: {
123
129
  baseRate: bigint;
@@ -1 +1 @@
1
- {"version":3,"file":"IRateModelLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/RateModelLensService/IRateModelLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAGlD,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IAC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CAAA"}
1
+ {"version":3,"file":"IRateModelLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/RateModelLensService/IRateModelLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGvC,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB,EAAE,MAAM,CAAA;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,GAAG,EAAE;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,CAAA;QAClB,IAAI,EAAE,MAAM,CAAA;QACZ,kBAAkB,EAAE,MAAM,CAAA;QAC1B,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,2BAA2B,EAAE,MAAM,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,QAAQ,CAAA;IAChB,UAAU,EAAE,wBAAwB,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,cAAc,EAAE,wBAAwB,CAAA;IACxC,iBAAiB,EAAE,0BAA0B,EAAE,CAAA;IAC/C,kBAAkB,EAAE,4BAA4B,EAAE,CAAA;CACnD,CAAA;AAGD,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,MAAM,CAAA;I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,4BAA4B,EAAE,CAAC,CAAA;IAE1C;;;;;;;;;OASG;IACH,0BAA0B,CACxB,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,6BAA6B,EAAE,CAAC,CAAA;CAC5C;AAGD,eAAO,MAAM,8BAA8B;;;;;;CAM1C,CAAA;AAED,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;CAG9C,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;CAS9C,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;CAM1C,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;CAO/C,CAAA;AAED,eAAO,MAAM,uCAAuC;;;CAGnD,CAAA"}
@@ -1,14 +1,15 @@
1
1
  import { Provider, Signer } from 'ethers';
2
2
  import { RateModelLens } from '../../typechain/contracts/Peripheral/Lens/RateModelLens';
3
3
  import { IRateModelLensService, TCompleteLexRateModelsInfoStruct, TFundingRateModelGroupStruct, TInterestRateModelGroupStruct } from './IRateModelLensService';
4
+ import { CallOptions } from '../common';
4
5
  export declare class RateModelLensService implements IRateModelLensService {
5
6
  private readonly contract;
6
7
  constructor(signerOrProvider: Signer | Provider, contractAddress: string);
7
- getAccountantForLexPool(lexPool: string): Promise<string>;
8
- getLexPoolForAccountant(accountant: string): Promise<string>;
9
- getCompleteRateModelsInfo(lexPools: string[]): Promise<TCompleteLexRateModelsInfoStruct>;
10
- getFundingRateModelGroups(lexPools: string[]): Promise<TFundingRateModelGroupStruct[]>;
11
- getInterestRateModelGroups(lexPools: string[]): Promise<TInterestRateModelGroupStruct[]>;
8
+ getAccountantForLexPool(lexPool: string, callOptions?: CallOptions): Promise<string>;
9
+ getLexPoolForAccountant(accountant: string, callOptions?: CallOptions): Promise<string>;
10
+ getCompleteRateModelsInfo(lexPools: string[], callOptions?: CallOptions): Promise<TCompleteLexRateModelsInfoStruct>;
11
+ getFundingRateModelGroups(lexPools: string[], callOptions?: CallOptions): Promise<TFundingRateModelGroupStruct[]>;
12
+ getInterestRateModelGroups(lexPools: string[], callOptions?: CallOptions): Promise<TInterestRateModelGroupStruct[]>;
12
13
  getContract(): RateModelLens;
13
14
  }
14
15
  //# sourceMappingURL=RateModelLensService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RateModelLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/RateModelLensService/RateModelLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAA;AAMvF,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,4BAA4B,EAC5B,6BAA6B,EAY9B,MAAM,yBAAyB,CAAA;AAuDhC,qBAAa,oBAAqB,YAAW,qBAAqB;IAChE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;gBAE5B,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAOlE,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzD,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5D,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,gCAAgC,CAAC;IA4DtC,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAgCpC,0BAA0B,CAC9B,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,6BAA6B,EAAE,CAAC;IAyB3C,WAAW,IAAI,aAAa;CAG7B"}
1
+ {"version":3,"file":"RateModelLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/RateModelLensService/RateModelLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAA;AAMvF,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,4BAA4B,EAC5B,6BAA6B,EAY9B,MAAM,yBAAyB,CAAA;AAIhC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAoDvC,qBAAa,oBAAqB,YAAW,qBAAqB;IAChE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;gBAE5B,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAOlE,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpF,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvF,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,gCAAgC,CAAC;IA4DtC,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAgCpC,0BAA0B,CAC9B,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,6BAA6B,EAAE,CAAC;IAyB3C,WAAW,IAAI,aAAa;CAG7B"}
@@ -1,24 +1,25 @@
1
1
  import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
2
+ import { CallOptions, TransactionOptions } from "../common";
2
3
  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>;
4
+ domainSeparatorForAsset(settlementAsset: string, callOptions?: CallOptions): Promise<string>;
5
+ domainSeparatorForChain(chainId: bigint, callOptions?: CallOptions): Promise<string>;
6
+ intentsPermissions(user: string, callOptions?: CallOptions): Promise<string>;
7
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string, transactionOptions?: TransactionOptions): Promise<void>;
8
+ verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
9
+ verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
10
+ verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
11
+ verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
12
+ verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
13
+ verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
14
+ domainSeparatorsForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
15
+ tradersForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
16
+ settlementAssetsForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
17
+ sourceChainIdForAsset(asset: string, callOptions?: CallOptions): Promise<bigint>;
18
+ processedSignatures(signature: string, callOptions?: CallOptions): Promise<boolean>;
19
+ getTradingFloor(callOptions?: CallOptions): Promise<string>;
20
+ getTradersPortal(callOptions?: CallOptions): Promise<string>;
21
+ admin(callOptions?: CallOptions): Promise<string>;
22
+ pendingAdmin(callOptions?: CallOptions): Promise<string>;
23
+ registry(callOptions?: CallOptions): Promise<string>;
23
24
  }
24
25
  //# sourceMappingURL=ITradeIntentsVerifierService.d.ts.map
@@ -1 +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,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,oDAAoD,CAClD,OAAO,EAAE,sBAAsB,CAAC,kDAAkD,EAClF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAA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,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5B"}
1
+ {"version":3,"file":"ITradeIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyB,MAAM,uEAAuE,CAAA;AACrI,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE3D,MAAM,WAAW,4BAA4B;IAE3C,uBAAuB,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC5F,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGpF,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC5E,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAGxH,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,EACd,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,8CAA8C,CAC5C,OAAO,EAAE,sBAAsB,CAAC,oCAAoC,EACpE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,EACd,kB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AAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC3F,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChF,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAGnF,eAAe,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC3D,gBAAgB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAG5D,KAAK,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjD,YAAY,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACxD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACrD"}
@@ -1,30 +1,31 @@
1
1
  import { Provider, Signer } from "ethers";
2
2
  import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
3
+ import { TransactionOptions, CallOptions } from "../common";
3
4
  import { ITradeIntentsVerifierService } from "./ITradeIntentsVerifierService";
4
5
  export declare class TradeIntentsVerifierService implements ITradeIntentsVerifierService {
5
6
  private readonly contract;
6
7
  private readonly isSigner;
7
8
  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>;
9
+ domainSeparatorForAsset(settlementAsset: string, callOptions?: CallOptions): Promise<string>;
10
+ domainSeparatorForChain(chainId: bigint, callOptions?: CallOptions): Promise<string>;
11
+ intentsPermissions(user: string, callOptions?: CallOptions): Promise<string>;
12
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string, transactionOptions?: TransactionOptions): Promise<void>;
13
+ verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
14
+ verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
15
+ verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
16
+ verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
17
+ verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
18
+ verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint, transactionOptions?: TransactionOptions): Promise<void>;
19
+ admin(callOptions?: CallOptions): Promise<string>;
20
+ pendingAdmin(callOptions?: CallOptions): Promise<string>;
21
+ registry(callOptions?: CallOptions): Promise<string>;
22
+ sourceChainIdForAsset(asset: string, callOptions?: CallOptions): Promise<bigint>;
23
+ processedSignatures(signature: string, callOptions?: CallOptions): Promise<boolean>;
24
+ domainSeparatorsForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
25
+ tradersForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
26
+ settlementAssetsForPosition(positionId: string, callOptions?: CallOptions): Promise<string>;
27
+ getTradingFloor(callOptions?: CallOptions): Promise<string>;
28
+ getTradersPortal(callOptions?: CallOptions): Promise<string>;
28
29
  getContract(): TradeIntentsVerifierV1;
29
30
  }
30
31
  //# sourceMappingURL=TradeIntentsVerifierService.d.ts.map
@@ -1 +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,MAAM,CAAC;IAIzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/E,0CAA0C,CAC9C,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;IAiBV,8CAA8C,CAClD,OAAO,EAAE,sBAAsB,CAAC,oCAAoC,EACpE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,C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I,OAAO,CAAC,MAAM,CAAC;IAIlC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC,WAAW,IAAI,sBAAsB;CAGtC"}
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,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC3D,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,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5F,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpF,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5E,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQxH,0CAA0C,CAC9C,OAAO,EAAE,sBAAsB,CAAC,qCAAqC,EACrE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EA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I,CAAC;IAcV,KAAK,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,YAAY,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIxD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpD,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhF,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAInF,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3F,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlF,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3F,eAAe,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3D,gBAAgB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlE,WAAW,IAAI,sBAAsB;CAGtC"}
@@ -2,54 +2,54 @@ import { BytesLike, ContractTransactionResponse } from "ethers";
2
2
  import { TOpenOrderType, TUpdatePositionFieldOrderType } from "../../constants/contractEnums";
3
3
  import { TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
4
4
  import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
5
- import { ILynxVersionedContract, IPendableAdmin, IProtocolConstants, TransactionOptions } from "../common";
5
+ import { ILynxVersionedContract, IPendableAdmin, IProtocolConstants, TransactionOptions, CallOptions } from "../common";
6
6
  type PositionRequestIdentifierStruct = TradingFloorStructsV1.PositionRequestIdentifiersStruct;
7
7
  type PositionRequestParamsStruct = TradingFloorStructsV1.PositionRequestParamsStruct;
8
8
  export type TPositionRequestIdentifierStruct = TSafeBigNumberStruct<PositionRequestIdentifierStruct>;
9
9
  export type TPositionRequestParamsStruct = TSafeBigNumberStruct<PositionRequestParamsStruct>;
10
10
  export interface ITradersPortalFunctionsGroup_TraderRequests {
11
11
  openNewPosition(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
12
- openNewPosition_static(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint): Promise<any>;
12
+ openNewPosition_static(tradeRequestIdentifier: TPositionRequestIdentifierStruct, tradeRequestParams: TPositionRequestParamsStruct, orderType: TOpenOrderType, referrerDomain: BytesLike, referrerCode: BytesLike, runCapTests: boolean, nativeFee: bigint, callOptions?: CallOptions): Promise<any>;
13
13
  setExistingPositionToMarketClose(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
14
14
  updatePositionSingleField(positionId: BytesLike, orderType: TUpdatePositionFieldOrderType, fieldValue: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
15
15
  updatePositionDoubleFieldTpAndSl(positionId: BytesLike, tpValue: bigint, slValue: bigint, nativeFee: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
16
16
  }
17
17
  export interface ITradersPortalFunctionsGroup_DirectActions {
18
- timeoutOpenMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
19
- timeoutCloseMarket(positionId: BytesLike): Promise<ContractTransactionResponse>;
20
- cancelPendingPositionLimit(positionId: BytesLike): Promise<ContractTransactionResponse>;
21
- cancelPendingUpdatePositionField(positionId: BytesLike): Promise<ContractTransactionResponse>;
18
+ timeoutOpenMarket(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
19
+ timeoutCloseMarket(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
20
+ cancelPendingPositionLimit(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
21
+ cancelPendingUpdatePositionField(positionId: BytesLike, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
22
22
  updatePendingPositionLimit(positionId: BytesLike, minPrice: bigint, maxPrice: bigint, tp: bigint, sl: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
23
23
  }
24
24
  export interface ITradersPortalFunctionsGroup_ContractReferences {
25
- getOrderBook(): Promise<string>;
26
- getTradeIntentsVerifier(): Promise<string>;
27
- registry(): Promise<string>;
28
- tradingFloor(): Promise<string>;
29
- getOnBehalfTrading(): Promise<string>;
30
- getFeatureFlagger(): Promise<string>;
25
+ getOrderBook(callOptions?: CallOptions): Promise<string>;
26
+ getTradeIntentsVerifier(callOptions?: CallOptions): Promise<string>;
27
+ registry(callOptions?: CallOptions): Promise<string>;
28
+ tradingFloor(callOptions?: CallOptions): Promise<string>;
29
+ getOnBehalfTrading(callOptions?: CallOptions): Promise<string>;
30
+ getFeatureFlagger(callOptions?: CallOptions): Promise<string>;
31
31
  }
32
32
  export type ITradersPortalFunctionsGroup_LynxVersionedContract = ILynxVersionedContract;
33
33
  export interface ITradersPortalFunctionsGroup_Status {
34
- isDone(): Promise<boolean>;
35
- isLimitingMarketClosePriceRange(): Promise<boolean>;
36
- isPaused(): Promise<boolean>;
34
+ isDone(callOptions?: CallOptions): Promise<boolean>;
35
+ isLimitingMarketClosePriceRange(callOptions?: CallOptions): Promise<boolean>;
36
+ isPaused(callOptions?: CallOptions): Promise<boolean>;
37
37
  }
38
38
  export interface ITradersPortalFunctionsGroup_Settings {
39
- limitOrdersTimelock(): Promise<bigint>;
40
- marketOrdersTimeout(): Promise<bigint>;
41
- minLiveTimeForMarketClose(): Promise<bigint>;
42
- actionFees(actionType: bigint): Promise<bigint>;
43
- limitsMarginFraction(): Promise<bigint>;
44
- setLimitsMarginFraction(limitsMarginFraction: bigint): Promise<ContractTransactionResponse>;
39
+ limitOrdersTimelock(callOptions?: CallOptions): Promise<bigint>;
40
+ marketOrdersTimeout(callOptions?: CallOptions): Promise<bigint>;
41
+ minLiveTimeForMarketClose(callOptions?: CallOptions): Promise<bigint>;
42
+ actionFees(actionType: bigint, callOptions?: CallOptions): Promise<bigint>;
43
+ limitsMarginFraction(callOptions?: CallOptions): Promise<bigint>;
44
+ setLimitsMarginFraction(limitsMarginFraction: bigint, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
45
45
  }
46
46
  export interface ITradersPortalFunctionsGroup_Constants extends IProtocolConstants {
47
- NATIVE_UNDERLYING_ADDRESS(): Promise<string>;
48
- ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
47
+ NATIVE_UNDERLYING_ADDRESS(callOptions?: CallOptions): Promise<string>;
48
+ ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
49
49
  }
50
50
  export interface ITradersPortalFunctionsGroup_OnBehalf {
51
- onBehalfEnabled(): Promise<boolean>;
52
- setOnBehalfEnabled(enabled: boolean): Promise<ContractTransactionResponse>;
51
+ onBehalfEnabled(callOptions?: CallOptions): Promise<boolean>;
52
+ setOnBehalfEnabled(enabled: boolean, transactionOptions?: TransactionOptions): Promise<ContractTransactionResponse>;
53
53
  }
54
54
  export interface ITradersPortalService {
55
55
  traderRequests: ITradersPortalFunctionsGroup_TraderRequests;
@@ -1 +1 @@
1
- {"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","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qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,MAAM,EAAE,mCAAmC,CAAC;IAC5C,QAAQ,EAAE,qCAAqC,CAAC;IAChD,SAAS,EAAE,sCAAsC,CAAC;IAClD,QAAQ,EAAE,qCAAqC,CAAC;CACjD"}
1
+ {"version":3,"file":"ITradersPortalService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/ITradersPortalService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,EACL,cAAc,EAEd,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExH,KAAK,+BAA+B,GAClC,qBAAqB,CAAC,gCAAgC,CAAC;AACzD,KAAK,2BAA2B,GAC9B,qBAAqB,CAAC,2BAA2B,CAAC;AAEpD,MAAM,MAAM,gCAAgC,GAC1C,oBAAoB,CAAC,+BAA+B,CAAC,CAAC;AACxD,MAAM,MAAM,4BAA4B,GACtC,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEpD,MAAM,WAAW,2CAA2C;IAC1D,eAAe,CACb,sBAAsB,EAAE,gCAAgC,EACxD,kBAAkB,EAAE,4BAA4B,EAChD,SAAS,EAAE,cAAc,EACzB,cAAc,EAAE,SAAS,EACzB,YAAY,EAAE,SAAS,EACvB,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,kBAAkB,GACtC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC,sBAAsB,CACpB,sBAAsB,EAAE,gCAAgC,EACxD,kBAAkB,EAAE,4BAA4B,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radersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,+CAA+C,EAC/C,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EAGtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAsB,MAAM,WAAW,CAAC;AAmTvF,qBAAa,2BAA4B,YAAW,qBAAqB;IAcrE,OAAO,CAAC,gBAAgB;IAb1B,OAAO,CAAC,eAAe,CAAkB;IACzC,SAAgB,cAAc,EAAE,2CAA2C,CAAC;IAC5E,SAAgB,aAAa,EAAE,0CAA0C,CAAC;IAC1E,SAAgB,kBAAkB,EAAE,+CAA+C,CAAC;IACpF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;IAC9D,SAAgB,MAAM,EAAE,mCAAmC,CAAC;IAC5D,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;IAChE,SAAgB,SAAS,EAAE,sCAAsC,CAAC;IAClE,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;gBAG9D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAkB7C,WAAW,IAAI,eAAe;CAG/B"}
1
+ {"version":3,"file":"TradersPortalServiceService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EACN,QAAQ,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAC/F,OAAO,EACL,qBAAqB,EACrB,2CAA2C,EAC3C,0CAA0C,EAC1C,+CAA+C,EAC/C,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EAGtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAmC,MAAM,WAAW,CAAC;AA2TpG,qBAAa,2BAA4B,YAAW,qBAAqB;IAcrE,OAAO,CAAC,gBAAgB;IAb1B,OAAO,CAAC,eAAe,CAAkB;IACzC,SAAgB,cAAc,EAAE,2CAA2C,CAAC;IAC5E,SAAgB,aAAa,EAAE,0CAA0C,CAAC;IAC1E,SAAgB,kBAAkB,EAAE,+CAA+C,CAAC;IACpF,SAAgB,aAAa,EAAE,cAAc,CAAC;IAC9C,SAAgB,qBAAqB,EAAE,sBAAsB,CAAC;IAC9D,SAAgB,MAAM,EAAE,mCAAmC,CAAC;IAC5D,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;IAChE,SAAgB,SAAS,EAAE,sCAAsC,CAAC;IAClE,SAAgB,QAAQ,EAAE,qCAAqC,CAAC;gBAG9D,OAAO,EAAE,MAAM,EACP,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAkB7C,WAAW,IAAI,eAAe;CAG/B"}
@@ -1,6 +1,7 @@
1
1
  import { BytesLike } from "ethers";
2
2
  import { TradingFloorLensStructs } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
3
3
  import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
4
+ import { CallOptions } from "../common";
4
5
  export type TCompletePositionDataFromLensStruct = Omit<TSafeBigNumberStruct<TradingFloorLensStructs.CompletePositionDataFromLensStruct>, "pairId" | "positionIndex" | "phase" | "inPhaseSince" | "tpLastUpdated" | "slLastUpdated" | "pendingUpdateOrderType" | "pendingUpdateOrderTimestamp"> & {
5
6
  pairId: number;
6
7
  positionIndex: number;
@@ -48,11 +49,11 @@ export declare const EMPTY_POSITION_LIQUIDATION_INFO: TPositionLiquidationInfoSt
48
49
  export declare const EMPTY_LIQUIDATION_RESULT: TGetAllPositionsLiquidationInfoResultStruct;
49
50
  export declare const EMPTY_TRADE_PARAMS: TTradingFloorLensTradeParamsStruct;
50
51
  export interface ITradingFloorLensService {
51
- generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
52
- getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
53
- getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
54
- getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
55
- getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
56
- getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
52
+ generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number, callOptions?: CallOptions): Promise<string>;
53
+ getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct, callOptions?: CallOptions): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
54
+ getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[], callOptions?: CallOptions): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
55
+ getCompletePositionData(tradingFloor: string, positionId: BytesLike, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct>;
56
+ getPositionsDataForTrader(tradingFloor: string, trader: string, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct[]>;
57
+ getTradingFloorTradeParams(tradingFloor: string, callOptions?: CallOptions): Promise<TTradingFloorLensTradeParamsStruct>;
57
58
  }
58
59
  //# sourceMappingURL=ITradingFloorLensService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OA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gCAAgC,CAC9B,MAAM,EAAE,6CAA6C,GACpD,OAAO,CAAC,6CAA6C,CAAC,CAAC;IAE1D,8BAA8B,CAC5B,MAAM,EAAE,2CAA2C,EACnD,MAAM,CAAC,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAExD,uBAAuB,CACrB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,GACpB,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAEhD,yBAAyB,CACvB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,mCAAmC,EAAE,CAAC,CAAC;IAElD,0BAA0B,CACxB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,kCAAkC,CAAC,CAAC;CAChD"}
1
+ {"version":3,"file":"ITradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,MAAM,mCAAmC,GAAG,IAAI,CACpD,oBAAoB,CAAC,uBAAuB,CAAC,kCAAkC,CAAC,EAC9E,QAAQ,GACR,eAAe,GACf,OAAO,GACP,cAAc,GAMd,eAAe,GACf,eAAe,GAGf,wBAAwB,GACxB,6BAA6B,CAIhC,GAAG;IACF,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IAMrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IAGtB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,2BAA2B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Y,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kCAAkC,CAAC,CAAC;CAChD"}
@@ -1,15 +1,16 @@
1
1
  import { BytesLike, Provider, Signer } from "ethers";
2
2
  import { TradingFloorLens } from "../../typechain/contracts/Peripheral/Lens/TradingFloorLens";
3
3
  import { ITradingFloorLensService, TCompletePositionDataFromLensStruct, TGetAllPositionsDataForAllTradersResultStruct, TGetAllPositionsDataForAllTradersParamsStruct, TGetAllPositionsLiquidationInfoResultStruct, TGetAllPositionsLiquidationInfoParamsStruct, TTradingFloorLensTradeParamsStruct } from "./ITradingFloorLensService";
4
+ import { CallOptions } from "../common";
4
5
  export declare class TradingFloorLensService implements ITradingFloorLensService {
5
6
  private readonly contract;
6
7
  constructor(signerOrProvider: Signer | Provider, contractAddress: string);
7
- generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number): Promise<string>;
8
- getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
9
- getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[]): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
10
- getCompletePositionData(tradingFloor: string, positionId: BytesLike): Promise<TCompletePositionDataFromLensStruct>;
11
- getPositionsDataForTrader(tradingFloor: string, trader: string): Promise<TCompletePositionDataFromLensStruct[]>;
12
- getTradingFloorTradeParams(tradingFloor: string): Promise<TTradingFloorLensTradeParamsStruct>;
8
+ generatePositionHashId(settlementAsset: string, trader: string, pairId: number, index: number, callOptions?: CallOptions): Promise<string>;
9
+ getAllPositionsDataForAllTraders(params: TGetAllPositionsDataForAllTradersParamsStruct, callOptions?: CallOptions): Promise<TGetAllPositionsDataForAllTradersResultStruct>;
10
+ getAllPositionsLiquidationInfo(params: TGetAllPositionsLiquidationInfoParamsStruct, phases?: number[], callOptions?: CallOptions): Promise<TGetAllPositionsLiquidationInfoResultStruct>;
11
+ getCompletePositionData(tradingFloor: string, positionId: BytesLike, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct>;
12
+ getPositionsDataForTrader(tradingFloor: string, trader: string, callOptions?: CallOptions): Promise<TCompletePositionDataFromLensStruct[]>;
13
+ getTradingFloorTradeParams(tradingFloor: string, callOptions?: CallOptions): Promise<TTradingFloorLensTradeParamsStruct>;
13
14
  getContract(): TradingFloorLens;
14
15
  }
15
16
  //# sourceMappingURL=TradingFloorLensService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAG9F,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6CAA6C,EAC7C,6CAA6C,EAC7C,2CAA2C,EAC3C,2CAA2C,EAE3C,kCAAkC,EAKnC,MAAM,4BAA4B,CAAC;AAyCpC,qBAAa,uBAAwB,YAAW,wBAAwB;IACtE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;gBAEhC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAOlE,sBAAsB,CAC1B,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,CAAC;IASZ,gCAAgC,CACpC,MAAM,EAAE,6CAA6C,GACpD,OAAO,CAAC,6CAA6C,CAAC;IA8BnD,8BAA8B,CAClC,MAAM,EAAE,2CAA2C,EACnD,MAAM,CAAC,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,2CAA2C,CAAC;IAwCjD,uBAAuB,CAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,GACpB,OAAO,CAAC,mCAAmC,CAAC;IAQzC,yBAAyB,CAC7B,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,mCAAmC,EAAE,CAAC;IAW3C,0BAA0B,CAC9B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,kCAAkC,CAAC;IAY9C,WAAW,IAAI,gBAAgB;CAGhC"}
1
+ {"version":3,"file":"TradingFloorLensService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAG9F,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6CAA6C,EAC7C,6CAA6C,EAC7C,2CAA2C,EAC3C,2CAA2C,EAE3C,kCAAkC,EAKnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAyCxC,qBAAa,uBAAwB,YAAW,wBAAwB;IACtE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;gBAEhC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,eAAe,EAAE,MAAM;IAOlE,sBAAsB,CAC1B,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,MAAM,CAAC;IAUZ,gCAAgC,CACpC,MAAM,EAAE,6CAA6C,EACrD,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,6CAA6C,CAAC;IA+BnD,8BAA8B,CAClC,MAAM,EAAE,2CAA2C,EACnD,MAAM,CAAC,EAAE,MAAM,EAAE,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,2CAA2C,CAAC;IAyCjD,uBAAuB,CAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,SAAS,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,CAAC;IASzC,yBAAyB,CAC7B,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,mCAAmC,EAAE,CAAC;IAY3C,0BAA0B,CAC9B,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kCAAkC,CAAC;IAY9C,WAAW,IAAI,gBAAgB;CAGhC"}
@@ -1,45 +1,45 @@
1
1
  import { BytesLike } from "ethers";
2
2
  import { TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
3
3
  import { TSafeBigNumberStruct } from "../../utils/ethersTypes";
4
- import { ILynxVersionedContract, IPendableAdmin, IPendableImplementation, IProtocolConstants } from "../common";
4
+ import { ILynxVersionedContract, IPendableAdmin, IPendableImplementation, IProtocolConstants, CallOptions } from "../common";
5
5
  type PositionRequestIdentifierStruct = TradingFloorStructsV1.PositionRequestIdentifiersStruct;
6
6
  type PositionRequestParamsStruct = TradingFloorStructsV1.PositionRequestParamsStruct;
7
7
  export type TPositionRequestIdentifierStruct = TSafeBigNumberStruct<PositionRequestIdentifierStruct>;
8
8
  export type TPositionRequestParamsStruct = TSafeBigNumberStruct<PositionRequestParamsStruct>;
9
9
  export interface ITradingFloorFunctionsGroup_PositionQueries {
10
- generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint): Promise<string>;
11
- getPositionPortalInfo(positionId: BytesLike): Promise<{
10
+ generatePositionHashId(settlementAsset: string, trader: string, pairId: bigint, index: bigint, callOptions?: CallOptions): Promise<string>;
11
+ getPositionPortalInfo(positionId: BytesLike, callOptions?: CallOptions): Promise<{
12
12
  phase: bigint;
13
13
  timestamp: bigint;
14
14
  trader: string;
15
15
  }>;
16
- getPositionRegistrationParams(positionId: BytesLike): Promise<{
16
+ getPositionRegistrationParams(positionId: BytesLike, callOptions?: CallOptions): Promise<{
17
17
  collateral: bigint;
18
18
  leverage: bigint;
19
19
  long: boolean;
20
20
  openPrice: bigint;
21
21
  tp: bigint;
22
22
  }>;
23
- getPositionTriggerInfo(positionId: BytesLike): Promise<{
23
+ getPositionTriggerInfo(positionId: BytesLike, callOptions?: CallOptions): Promise<{
24
24
  phase: bigint;
25
25
  timestamp: bigint;
26
26
  pairId: bigint;
27
27
  long: boolean;
28
28
  spreadReductionF: bigint;
29
29
  }>;
30
- positionIdentifiersById(positionId: BytesLike): Promise<{
30
+ positionIdentifiersById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
31
31
  settlementAsset: string;
32
32
  pairId: bigint;
33
33
  index: bigint;
34
34
  trader: string;
35
35
  }>;
36
- positionLimitsInfoById(positionId: BytesLike): Promise<{
36
+ positionLimitsInfoById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
37
37
  tpLastUpdated: bigint;
38
38
  slLastUpdated: bigint;
39
39
  tp: bigint;
40
40
  sl: bigint;
41
41
  }>;
42
- positionsById(positionId: BytesLike): Promise<{
42
+ positionsById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
43
43
  collateral: bigint;
44
44
  phase: bigint;
45
45
  inPhaseSince: bigint;
@@ -48,54 +48,54 @@ export interface ITradingFloorFunctionsGroup_PositionQueries {
48
48
  openPrice: bigint;
49
49
  spreadReductionF: bigint;
50
50
  }>;
51
- triggerPricesById(positionId: BytesLike): Promise<{
51
+ triggerPricesById(positionId: BytesLike, callOptions?: CallOptions): Promise<{
52
52
  minPrice: bigint;
53
53
  maxPrice: bigint;
54
54
  tpByFraction: bigint;
55
55
  slByFraction: bigint;
56
56
  }>;
57
- initialCollateralByPositionId(positionId: BytesLike): Promise<bigint>;
57
+ initialCollateralByPositionId(positionId: BytesLike, callOptions?: CallOptions): Promise<bigint>;
58
58
  }
59
59
  export interface ITradingFloorFunctionsGroup_SettlementAndPool {
60
- isSettlementAssetSupported(settlementAsset: string): Promise<boolean>;
61
- lexPoolForAsset(asset: string): Promise<string>;
62
- poolAccountantForAsset(asset: string): Promise<string>;
60
+ isSettlementAssetSupported(settlementAsset: string, callOptions?: CallOptions): Promise<boolean>;
61
+ lexPoolForAsset(asset: string, callOptions?: CallOptions): Promise<string>;
62
+ poolAccountantForAsset(asset: string, callOptions?: CallOptions): Promise<string>;
63
63
  }
64
64
  export interface ITradingFloorFunctionsGroup_Deprecated {
65
- deprecated_pairTraders(asset: string, pairId: bigint, index: bigint): Promise<string>;
66
- deprecated_pairTradersArray(asset: string, pairIndex: bigint): Promise<string[]>;
67
- deprecated_pairTradersInfo(asset: string, trader: string, pairId: bigint): Promise<{
65
+ deprecated_pairTraders(asset: string, pairId: bigint, index: bigint, callOptions?: CallOptions): Promise<string>;
66
+ deprecated_pairTradersArray(asset: string, pairIndex: bigint, callOptions?: CallOptions): Promise<string[]>;
67
+ deprecated_pairTradersInfo(asset: string, trader: string, pairId: bigint, callOptions?: CallOptions): Promise<{
68
68
  positionsCounter: bigint;
69
69
  positionInArray: bigint;
70
70
  }>;
71
- pausedPairs(pairId: bigint): Promise<boolean>;
71
+ pausedPairs(pairId: bigint, callOptions?: CallOptions): Promise<boolean>;
72
72
  }
73
73
  export interface ITradingFloorFunctionsGroup_TraderTracking {
74
- traders(index: bigint): Promise<string>;
75
- tradersAmount(): Promise<bigint>;
76
- tradersIndex(trader: string): Promise<bigint>;
77
- getActivePositionsAmountForTrader(trader: string): Promise<bigint>;
78
- activePositionIdsByTrader(trader: string, index: bigint): Promise<string>;
79
- positionIdToActivePositionIndex(trader: string, positionId: string): Promise<bigint>;
80
- getActivePositionIdsForTrader(trader: string): Promise<string[]>;
81
- getNextPositionIndexForTrader(trader: string): Promise<bigint>;
82
- pairTradersLastUsedPositionIndex(trader: string): Promise<bigint>;
74
+ traders(index: bigint, callOptions?: CallOptions): Promise<string>;
75
+ tradersAmount(callOptions?: CallOptions): Promise<bigint>;
76
+ tradersIndex(trader: string, callOptions?: CallOptions): Promise<bigint>;
77
+ getActivePositionsAmountForTrader(trader: string, callOptions?: CallOptions): Promise<bigint>;
78
+ activePositionIdsByTrader(trader: string, index: bigint, callOptions?: CallOptions): Promise<string>;
79
+ positionIdToActivePositionIndex(trader: string, positionId: string, callOptions?: CallOptions): Promise<bigint>;
80
+ getActivePositionIdsForTrader(trader: string, callOptions?: CallOptions): Promise<string[]>;
81
+ getNextPositionIndexForTrader(trader: string, callOptions?: CallOptions): Promise<bigint>;
82
+ pairTradersLastUsedPositionIndex(trader: string, callOptions?: CallOptions): Promise<bigint>;
83
83
  }
84
84
  export interface ITradingFloorFunctionsGroup_TradingParameters {
85
- maxSanityProfitF(): Promise<bigint>;
86
- maxSlF(): Promise<bigint>;
87
- maxTradesPerTrader(): Promise<bigint>;
85
+ maxSanityProfitF(callOptions?: CallOptions): Promise<bigint>;
86
+ maxSlF(callOptions?: CallOptions): Promise<bigint>;
87
+ maxTradesPerTrader(callOptions?: CallOptions): Promise<bigint>;
88
88
  }
89
89
  export interface ITradingFloorFunctionsGroup_Fees {
90
- feesMap(asset: string, feeType: bigint): Promise<bigint>;
90
+ feesMap(asset: string, feeType: bigint, callOptions?: CallOptions): Promise<bigint>;
91
91
  }
92
92
  export interface ITradingFloorFunctionsGroup_ContractReferences {
93
- registry(): Promise<string>;
93
+ registry(callOptions?: CallOptions): Promise<string>;
94
94
  }
95
95
  export type ITradingFloorFunctionsGroup_LynxVersionedContract = ILynxVersionedContract;
96
96
  export interface ITradingFloorFunctionsGroup_Constants extends IProtocolConstants {
97
- MAX_FEE_FRACTION_FOR_CANCEL(): Promise<bigint>;
98
- ACCURACY_IMPROVEMENT_SCALE(): Promise<bigint>;
97
+ MAX_FEE_FRACTION_FOR_CANCEL(callOptions?: CallOptions): Promise<bigint>;
98
+ ACCURACY_IMPROVEMENT_SCALE(callOptions?: CallOptions): Promise<bigint>;
99
99
  }
100
100
  export interface ITradingFloorService {
101
101
  positionQueries: ITradingFloorFunctionsGroup_PositionQueries;