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
@@ -13,10 +13,11 @@ class TraderRequests {
13
13
  ...transactionOptions,
14
14
  });
15
15
  }
16
- async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee) {
16
+ async openNewPosition_static(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, nativeFee, callOptions) {
17
17
  // @ts-ignore
18
18
  return this.tradingContract.traderRequest_openNewPosition.staticCall(tradeRequestIdentifier, tradeRequestParams, orderType, referrerDomain, referrerCode, runCapTests, {
19
19
  value: nativeFee,
20
+ ...callOptions,
20
21
  });
21
22
  }
22
23
  async setExistingPositionToMarketClose(positionId, minPrice, maxPrice, nativeFee, transactionOptions) {
@@ -42,17 +43,17 @@ class DirectActions {
42
43
  constructor(tradingContract) {
43
44
  this.tradingContract = tradingContract;
44
45
  }
45
- async timeoutOpenMarket(positionId) {
46
- return this.tradingContract.directAction_timeout_openMarket(positionId);
46
+ async timeoutOpenMarket(positionId, transactionOptions) {
47
+ return this.tradingContract.directAction_timeout_openMarket(positionId, { ...transactionOptions });
47
48
  }
48
- async timeoutCloseMarket(positionId) {
49
- return this.tradingContract.directAction_timeout_closeMarket(positionId);
49
+ async timeoutCloseMarket(positionId, transactionOptions) {
50
+ return this.tradingContract.directAction_timeout_closeMarket(positionId, { ...transactionOptions });
50
51
  }
51
- async cancelPendingPositionLimit(positionId) {
52
- return this.tradingContract.directAction_cancelPendingPosition_limit(positionId);
52
+ async cancelPendingPositionLimit(positionId, transactionOptions) {
53
+ return this.tradingContract.directAction_cancelPendingPosition_limit(positionId, { ...transactionOptions });
53
54
  }
54
- async cancelPendingUpdatePositionField(positionId) {
55
- return this.tradingContract.directAction_timeout_updateTradeField(positionId);
55
+ async cancelPendingUpdatePositionField(positionId, transactionOptions) {
56
+ return this.tradingContract.directAction_timeout_updateTradeField(positionId, { ...transactionOptions });
56
57
  }
57
58
  async updatePendingPositionLimit(positionId, minPrice, maxPrice, tp, sl, transactionOptions) {
58
59
  return this.tradingContract.directAction_updatePendingPosition_limit(positionId, minPrice, maxPrice, tp, sl, {
@@ -64,119 +65,119 @@ class ContractReferences {
64
65
  constructor(tradingContract) {
65
66
  this.tradingContract = tradingContract;
66
67
  }
67
- async getOrderBook() {
68
- return this.tradingContract.getOrderBook();
68
+ async getOrderBook(callOptions) {
69
+ return this.tradingContract.getOrderBook({ ...callOptions });
69
70
  }
70
- async getTradeIntentsVerifier() {
71
- return this.tradingContract.getTradeIntentsVerifier();
71
+ async getTradeIntentsVerifier(callOptions) {
72
+ return this.tradingContract.getTradeIntentsVerifier({ ...callOptions });
72
73
  }
73
- async registry() {
74
- return this.tradingContract.registry();
74
+ async registry(callOptions) {
75
+ return this.tradingContract.registry({ ...callOptions });
75
76
  }
76
- async tradingFloor() {
77
- return this.tradingContract.tradingFloor();
77
+ async tradingFloor(callOptions) {
78
+ return this.tradingContract.tradingFloor({ ...callOptions });
78
79
  }
79
- async getOnBehalfTrading() {
80
- return this.tradingContract.getOnBehalfTrading();
80
+ async getOnBehalfTrading(callOptions) {
81
+ return this.tradingContract.getOnBehalfTrading({ ...callOptions });
81
82
  }
82
- async getFeatureFlagger() {
83
- return this.tradingContract.getFeatureFlagger();
83
+ async getFeatureFlagger(callOptions) {
84
+ return this.tradingContract.getFeatureFlagger({ ...callOptions });
84
85
  }
85
86
  }
86
87
  class PendableAdmin {
87
88
  constructor(tradingContract) {
88
89
  this.tradingContract = tradingContract;
89
90
  }
90
- async admin() {
91
- return this.tradingContract.admin();
91
+ async admin(callOptions) {
92
+ return this.tradingContract.admin({ ...callOptions });
92
93
  }
93
- async pendingAdmin() {
94
- return this.tradingContract.pendingAdmin();
94
+ async pendingAdmin(callOptions) {
95
+ return this.tradingContract.pendingAdmin({ ...callOptions });
95
96
  }
96
97
  }
97
98
  class LynxVersionedContract {
98
99
  constructor(tradingContract) {
99
100
  this.tradingContract = tradingContract;
100
101
  }
101
- async getContractName() {
102
- return this.tradingContract.getContractName();
102
+ async getContractName(callOptions) {
103
+ return this.tradingContract.getContractName({ ...callOptions });
103
104
  }
104
- async getContractVersion() {
105
- return this.tradingContract.getContractVersion();
105
+ async getContractVersion(callOptions) {
106
+ return this.tradingContract.getContractVersion({ ...callOptions });
106
107
  }
107
- async CONTRACT_NAME() {
108
- return this.tradingContract.CONTRACT_NAME();
108
+ async CONTRACT_NAME(callOptions) {
109
+ return this.tradingContract.CONTRACT_NAME({ ...callOptions });
109
110
  }
110
- async CONTRACT_VERSION() {
111
- return this.tradingContract.CONTRACT_VERSION();
111
+ async CONTRACT_VERSION(callOptions) {
112
+ return this.tradingContract.CONTRACT_VERSION({ ...callOptions });
112
113
  }
113
114
  }
114
115
  class Status {
115
116
  constructor(tradingContract) {
116
117
  this.tradingContract = tradingContract;
117
118
  }
118
- async isDone() {
119
- return this.tradingContract.isDone();
119
+ async isDone(callOptions) {
120
+ return this.tradingContract.isDone({ ...callOptions });
120
121
  }
121
- async isLimitingMarketClosePriceRange() {
122
- return this.tradingContract.isLimitingMarketClosePriceRange();
122
+ async isLimitingMarketClosePriceRange(callOptions) {
123
+ return this.tradingContract.isLimitingMarketClosePriceRange({ ...callOptions });
123
124
  }
124
- async isPaused() {
125
- return this.tradingContract.isPaused();
125
+ async isPaused(callOptions) {
126
+ return this.tradingContract.isPaused({ ...callOptions });
126
127
  }
127
128
  }
128
129
  class Settings {
129
130
  constructor(tradingContract) {
130
131
  this.tradingContract = tradingContract;
131
132
  }
132
- async limitOrdersTimelock() {
133
- return this.tradingContract.limitOrdersTimelock();
133
+ async limitOrdersTimelock(callOptions) {
134
+ return this.tradingContract.limitOrdersTimelock({ ...callOptions });
134
135
  }
135
- async marketOrdersTimeout() {
136
- return this.tradingContract.marketOrdersTimeout();
136
+ async marketOrdersTimeout(callOptions) {
137
+ return this.tradingContract.marketOrdersTimeout({ ...callOptions });
137
138
  }
138
- async minLiveTimeForMarketClose() {
139
- return this.tradingContract.minLiveTimeForMarketClose();
139
+ async minLiveTimeForMarketClose(callOptions) {
140
+ return this.tradingContract.minLiveTimeForMarketClose({ ...callOptions });
140
141
  }
141
- async actionFees(actionType) {
142
- return this.tradingContract.actionFees(actionType);
142
+ async actionFees(actionType, callOptions) {
143
+ return this.tradingContract.actionFees(actionType, { ...callOptions });
143
144
  }
144
- async limitsMarginFraction() {
145
- return this.tradingContract.limitsMarginFraction();
145
+ async limitsMarginFraction(callOptions) {
146
+ return this.tradingContract.limitsMarginFraction({ ...callOptions });
146
147
  }
147
- async setLimitsMarginFraction(limitsMarginFraction) {
148
- return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction);
148
+ async setLimitsMarginFraction(limitsMarginFraction, transactionOptions) {
149
+ return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction, { ...transactionOptions });
149
150
  }
150
151
  }
151
152
  class Constants {
152
153
  constructor(tradingContract) {
153
154
  this.tradingContract = tradingContract;
154
155
  }
155
- async ACCURACY_IMPROVEMENT_SCALE() {
156
- return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE();
156
+ async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
157
+ return this.tradingContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
157
158
  }
158
- async FRACTION_SCALE() {
159
- return this.tradingContract.FRACTION_SCALE();
159
+ async FRACTION_SCALE(callOptions) {
160
+ return this.tradingContract.FRACTION_SCALE({ ...callOptions });
160
161
  }
161
- async LEVERAGE_SCALE() {
162
- return this.tradingContract.LEVERAGE_SCALE();
162
+ async LEVERAGE_SCALE(callOptions) {
163
+ return this.tradingContract.LEVERAGE_SCALE({ ...callOptions });
163
164
  }
164
- async NATIVE_UNDERLYING_ADDRESS() {
165
- return this.tradingContract.NATIVE_UNDERLYING_ADDRESS();
165
+ async NATIVE_UNDERLYING_ADDRESS(callOptions) {
166
+ return this.tradingContract.NATIVE_UNDERLYING_ADDRESS({ ...callOptions });
166
167
  }
167
- async PRECISION() {
168
- return this.tradingContract.PRECISION();
168
+ async PRECISION(callOptions) {
169
+ return this.tradingContract.PRECISION({ ...callOptions });
169
170
  }
170
171
  }
171
172
  class OnBehalf {
172
173
  constructor(tradingContract) {
173
174
  this.tradingContract = tradingContract;
174
175
  }
175
- async onBehalfEnabled() {
176
- return this.tradingContract.onBehalfEnabled();
176
+ async onBehalfEnabled(callOptions) {
177
+ return this.tradingContract.onBehalfEnabled({ ...callOptions });
177
178
  }
178
- async setOnBehalfEnabled(enabled) {
179
- return this.tradingContract.setOnBehalfEnabled(enabled);
179
+ async setOnBehalfEnabled(enabled, transactionOptions) {
180
+ return this.tradingContract.setOnBehalfEnabled(enabled, { ...transactionOptions });
180
181
  }
181
182
  }
182
183
  class TradersPortalServiceService {
@@ -39,17 +39,17 @@ class TradingFloorLensService {
39
39
  constructor(signerOrProvider, contractAddress) {
40
40
  this.contract = TradingFloorLens__factory_1.TradingFloorLens__factory.connect(contractAddress, signerOrProvider);
41
41
  }
42
- async generatePositionHashId(settlementAsset, trader, pairId, index) {
43
- return await this.contract.generatePositionHashId(settlementAsset, trader, BigInt(pairId), BigInt(index));
42
+ async generatePositionHashId(settlementAsset, trader, pairId, index, callOptions) {
43
+ return await this.contract.generatePositionHashId(settlementAsset, trader, BigInt(pairId), BigInt(index), { ...callOptions });
44
44
  }
45
- async getAllPositionsDataForAllTraders(params) {
45
+ async getAllPositionsDataForAllTraders(params, callOptions) {
46
46
  const contractParams = {
47
47
  tradingFloor: params.tradingFloor,
48
48
  traderStartIndex: BigInt(params.traderStartIndex),
49
49
  positionStartIndex: BigInt(params.positionStartIndex),
50
50
  positionsLimit: BigInt(params.positionsLimit),
51
51
  };
52
- const result = await this.contract.getAllPositionsDataForAllTraders.staticCall(contractParams);
52
+ const result = await this.contract.getAllPositionsDataForAllTraders.staticCall(contractParams, { ...callOptions });
53
53
  const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITradingFloorLensService_1.EMPTY_POSITIONS_RESULT);
54
54
  // Convert positions and filter out empty ones
55
55
  const convertedPositions = result.positions
@@ -63,7 +63,7 @@ class TradingFloorLensService {
63
63
  positionLastIndex: Number(baseResult.positionLastIndex),
64
64
  };
65
65
  }
66
- async getAllPositionsLiquidationInfo(params, phases) {
66
+ async getAllPositionsLiquidationInfo(params, phases, callOptions) {
67
67
  const contractParams = {
68
68
  tradingFloor: params.tradingFloor,
69
69
  traderStartIndex: BigInt(params.traderStartIndex),
@@ -72,11 +72,11 @@ class TradingFloorLensService {
72
72
  };
73
73
  let result;
74
74
  if (phases !== undefined) {
75
- result = await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256),uint8[])"].staticCall(contractParams, phases.map((p) => BigInt(p)));
75
+ result = await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256),uint8[])"].staticCall(contractParams, phases.map((p) => BigInt(p)), { ...callOptions });
76
76
  }
77
77
  else {
78
78
  result =
79
- await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256))"].staticCall(contractParams);
79
+ await this.contract["getAllPositionsLiquidationInfo((address,uint256,uint16,uint256))"].staticCall(contractParams, { ...callOptions });
80
80
  }
81
81
  const baseResult = (0, ethersTypes_1.ethersStructResponseToObject)(result, ITradingFloorLensService_1.EMPTY_LIQUIDATION_RESULT);
82
82
  const convertedPositions = result.positionsLiquidationInfo.map((pos) => convertLiquidationInfo(pos));
@@ -88,19 +88,19 @@ class TradingFloorLensService {
88
88
  positionLastIndex: Number(baseResult.positionLastIndex),
89
89
  };
90
90
  }
91
- async getCompletePositionData(tradingFloor, positionId) {
92
- const result = await this.contract.getCompletePositionData.staticCall(tradingFloor, positionId);
91
+ async getCompletePositionData(tradingFloor, positionId, callOptions) {
92
+ const result = await this.contract.getCompletePositionData.staticCall(tradingFloor, positionId, { ...callOptions });
93
93
  return convertPositionData(result);
94
94
  }
95
- async getPositionsDataForTrader(tradingFloor, trader) {
96
- const result = await this.contract.getPositionsDataForTrader.staticCall(tradingFloor, trader);
95
+ async getPositionsDataForTrader(tradingFloor, trader, callOptions) {
96
+ const result = await this.contract.getPositionsDataForTrader.staticCall(tradingFloor, trader, { ...callOptions });
97
97
  // Convert and filter out empty positions (collateral = 0)
98
98
  return result
99
99
  .filter((pos) => pos.collateral > 0n)
100
100
  .map((pos) => convertPositionData(pos));
101
101
  }
102
- async getTradingFloorTradeParams(tradingFloor) {
103
- const result = await this.contract.getTradingFloorTradeParams.staticCall(tradingFloor);
102
+ async getTradingFloorTradeParams(tradingFloor, callOptions) {
103
+ const result = await this.contract.getTradingFloorTradeParams.staticCall(tradingFloor, { ...callOptions });
104
104
  // Result is a tuple/array-like object, extract the named properties
105
105
  return {
106
106
  tradingFloor: result.tradingFloor,
@@ -6,19 +6,19 @@ class PositionQueries {
6
6
  constructor(tradingFloorContract) {
7
7
  this.tradingFloorContract = tradingFloorContract;
8
8
  }
9
- async generatePositionHashId(settlementAsset, trader, pairId, index) {
10
- return this.tradingFloorContract.generatePositionHashId(settlementAsset, trader, pairId, index);
9
+ async generatePositionHashId(settlementAsset, trader, pairId, index, callOptions) {
10
+ return this.tradingFloorContract.generatePositionHashId(settlementAsset, trader, pairId, index, { ...callOptions });
11
11
  }
12
- async getPositionPortalInfo(positionId) {
13
- const result = await this.tradingFloorContract.getPositionPortalInfo(positionId);
12
+ async getPositionPortalInfo(positionId, callOptions) {
13
+ const result = await this.tradingFloorContract.getPositionPortalInfo(positionId, { ...callOptions });
14
14
  return {
15
15
  phase: result[0],
16
16
  timestamp: result[1],
17
17
  trader: result[2],
18
18
  };
19
19
  }
20
- async getPositionRegistrationParams(positionId) {
21
- const result = await this.tradingFloorContract.getPositionRegistrationParams(positionId);
20
+ async getPositionRegistrationParams(positionId, callOptions) {
21
+ const result = await this.tradingFloorContract.getPositionRegistrationParams(positionId, { ...callOptions });
22
22
  return {
23
23
  collateral: result.collateral,
24
24
  leverage: result.leverage,
@@ -27,8 +27,8 @@ class PositionQueries {
27
27
  tp: result.tp,
28
28
  };
29
29
  }
30
- async getPositionTriggerInfo(positionId) {
31
- const result = await this.tradingFloorContract.getPositionTriggerInfo(positionId);
30
+ async getPositionTriggerInfo(positionId, callOptions) {
31
+ const result = await this.tradingFloorContract.getPositionTriggerInfo(positionId, { ...callOptions });
32
32
  return {
33
33
  phase: result.positionPhase,
34
34
  timestamp: result.timestamp,
@@ -37,8 +37,8 @@ class PositionQueries {
37
37
  spreadReductionF: result.spreadReductionF,
38
38
  };
39
39
  }
40
- async positionIdentifiersById(positionId) {
41
- const result = await this.tradingFloorContract.positionIdentifiersById(positionId);
40
+ async positionIdentifiersById(positionId, callOptions) {
41
+ const result = await this.tradingFloorContract.positionIdentifiersById(positionId, { ...callOptions });
42
42
  return {
43
43
  settlementAsset: result.settlementAsset,
44
44
  pairId: result.pairId,
@@ -46,8 +46,8 @@ class PositionQueries {
46
46
  trader: result.trader,
47
47
  };
48
48
  }
49
- async positionLimitsInfoById(positionId) {
50
- const result = await this.tradingFloorContract.positionLimitsInfoById(positionId);
49
+ async positionLimitsInfoById(positionId, callOptions) {
50
+ const result = await this.tradingFloorContract.positionLimitsInfoById(positionId, { ...callOptions });
51
51
  return {
52
52
  tpLastUpdated: result.tpLastUpdated,
53
53
  slLastUpdated: result.slLastUpdated,
@@ -55,8 +55,8 @@ class PositionQueries {
55
55
  sl: result.sl,
56
56
  };
57
57
  }
58
- async positionsById(positionId) {
59
- const result = await this.tradingFloorContract.positionsById(positionId);
58
+ async positionsById(positionId, callOptions) {
59
+ const result = await this.tradingFloorContract.positionsById(positionId, { ...callOptions });
60
60
  return {
61
61
  collateral: result.collateral,
62
62
  phase: result.phase,
@@ -67,8 +67,8 @@ class PositionQueries {
67
67
  spreadReductionF: result.spreadReductionF,
68
68
  };
69
69
  }
70
- async triggerPricesById(positionId) {
71
- const result = await this.tradingFloorContract.triggerPricesById(positionId);
70
+ async triggerPricesById(positionId, callOptions) {
71
+ const result = await this.tradingFloorContract.triggerPricesById(positionId, { ...callOptions });
72
72
  return {
73
73
  minPrice: result.minPrice,
74
74
  maxPrice: result.maxPrice,
@@ -76,164 +76,164 @@ class PositionQueries {
76
76
  slByFraction: result.slByFraction,
77
77
  };
78
78
  }
79
- async initialCollateralByPositionId(positionId) {
80
- return this.tradingFloorContract.initialCollateralByPositionId(positionId);
79
+ async initialCollateralByPositionId(positionId, callOptions) {
80
+ return this.tradingFloorContract.initialCollateralByPositionId(positionId, { ...callOptions });
81
81
  }
82
82
  }
83
83
  class SettlementAndPool {
84
84
  constructor(tradingFloorContract) {
85
85
  this.tradingFloorContract = tradingFloorContract;
86
86
  }
87
- async isSettlementAssetSupported(settlementAsset) {
88
- return this.tradingFloorContract.isSettlementAssetSupported(settlementAsset);
87
+ async isSettlementAssetSupported(settlementAsset, callOptions) {
88
+ return this.tradingFloorContract.isSettlementAssetSupported(settlementAsset, { ...callOptions });
89
89
  }
90
- async lexPoolForAsset(asset) {
91
- return this.tradingFloorContract.lexPoolForAsset(asset);
90
+ async lexPoolForAsset(asset, callOptions) {
91
+ return this.tradingFloorContract.lexPoolForAsset(asset, { ...callOptions });
92
92
  }
93
- async poolAccountantForAsset(asset) {
94
- return this.tradingFloorContract.poolAccountantForAsset(asset);
93
+ async poolAccountantForAsset(asset, callOptions) {
94
+ return this.tradingFloorContract.poolAccountantForAsset(asset, { ...callOptions });
95
95
  }
96
96
  }
97
97
  class Deprecated {
98
98
  constructor(tradingFloorContract) {
99
99
  this.tradingFloorContract = tradingFloorContract;
100
100
  }
101
- async deprecated_pairTraders(asset, pairId, index) {
102
- return this.tradingFloorContract.deprecated_pairTraders(asset, pairId, index);
101
+ async deprecated_pairTraders(asset, pairId, index, callOptions) {
102
+ return this.tradingFloorContract.deprecated_pairTraders(asset, pairId, index, { ...callOptions });
103
103
  }
104
- async deprecated_pairTradersArray(asset, pairIndex) {
105
- return this.tradingFloorContract.deprecated_pairTradersArray(asset, pairIndex);
104
+ async deprecated_pairTradersArray(asset, pairIndex, callOptions) {
105
+ return this.tradingFloorContract.deprecated_pairTradersArray(asset, pairIndex, { ...callOptions });
106
106
  }
107
- async deprecated_pairTradersInfo(asset, trader, pairId) {
108
- const result = await this.tradingFloorContract.deprecated_pairTradersInfo(asset, trader, pairId);
107
+ async deprecated_pairTradersInfo(asset, trader, pairId, callOptions) {
108
+ const result = await this.tradingFloorContract.deprecated_pairTradersInfo(asset, trader, pairId, { ...callOptions });
109
109
  return {
110
110
  positionsCounter: result.deprecated_positionsCounter,
111
111
  positionInArray: result.positionInArray,
112
112
  };
113
113
  }
114
- async pausedPairs(pairId) {
115
- return this.tradingFloorContract.pausedPairs(pairId);
114
+ async pausedPairs(pairId, callOptions) {
115
+ return this.tradingFloorContract.pausedPairs(pairId, { ...callOptions });
116
116
  }
117
117
  }
118
118
  class TraderTracking {
119
119
  constructor(tradingFloorContract) {
120
120
  this.tradingFloorContract = tradingFloorContract;
121
121
  }
122
- async traders(index) {
123
- return this.tradingFloorContract.traders(index);
122
+ async traders(index, callOptions) {
123
+ return this.tradingFloorContract.traders(index, { ...callOptions });
124
124
  }
125
- async tradersAmount() {
126
- return this.tradingFloorContract.tradersAmount();
125
+ async tradersAmount(callOptions) {
126
+ return this.tradingFloorContract.tradersAmount({ ...callOptions });
127
127
  }
128
- async tradersIndex(trader) {
129
- return this.tradingFloorContract.tradersIndex(trader);
128
+ async tradersIndex(trader, callOptions) {
129
+ return this.tradingFloorContract.tradersIndex(trader, { ...callOptions });
130
130
  }
131
- async getActivePositionsAmountForTrader(trader) {
132
- return this.tradingFloorContract.getActivePositionsAmountForTrader(trader);
131
+ async getActivePositionsAmountForTrader(trader, callOptions) {
132
+ return this.tradingFloorContract.getActivePositionsAmountForTrader(trader, { ...callOptions });
133
133
  }
134
- async activePositionIdsByTrader(trader, index) {
135
- return this.tradingFloorContract.activePositionIdsByTrader(trader, index);
134
+ async activePositionIdsByTrader(trader, index, callOptions) {
135
+ return this.tradingFloorContract.activePositionIdsByTrader(trader, index, { ...callOptions });
136
136
  }
137
- async positionIdToActivePositionIndex(trader, positionId) {
138
- return this.tradingFloorContract.positionIdToActivePositionIndex(trader, positionId);
137
+ async positionIdToActivePositionIndex(trader, positionId, callOptions) {
138
+ return this.tradingFloorContract.positionIdToActivePositionIndex(trader, positionId, { ...callOptions });
139
139
  }
140
- async getActivePositionIdsForTrader(trader) {
141
- return this.tradingFloorContract.getActivePositionIdsForTrader(trader);
140
+ async getActivePositionIdsForTrader(trader, callOptions) {
141
+ return this.tradingFloorContract.getActivePositionIdsForTrader(trader, { ...callOptions });
142
142
  }
143
- async getNextPositionIndexForTrader(trader) {
144
- return this.tradingFloorContract.getNextPositionIndexForTrader(trader);
143
+ async getNextPositionIndexForTrader(trader, callOptions) {
144
+ return this.tradingFloorContract.getNextPositionIndexForTrader(trader, { ...callOptions });
145
145
  }
146
- async pairTradersLastUsedPositionIndex(trader) {
147
- return this.tradingFloorContract.pairTradersLastUsedPositionIndex(trader);
146
+ async pairTradersLastUsedPositionIndex(trader, callOptions) {
147
+ return this.tradingFloorContract.pairTradersLastUsedPositionIndex(trader, { ...callOptions });
148
148
  }
149
149
  }
150
150
  class TradingParameters {
151
151
  constructor(tradingFloorContract) {
152
152
  this.tradingFloorContract = tradingFloorContract;
153
153
  }
154
- async maxSanityProfitF() {
155
- return this.tradingFloorContract.maxSanityProfitF();
154
+ async maxSanityProfitF(callOptions) {
155
+ return this.tradingFloorContract.maxSanityProfitF({ ...callOptions });
156
156
  }
157
- async maxSlF() {
158
- return this.tradingFloorContract.maxSlF();
157
+ async maxSlF(callOptions) {
158
+ return this.tradingFloorContract.maxSlF({ ...callOptions });
159
159
  }
160
- async maxTradesPerTrader() {
161
- return this.tradingFloorContract.maxTradesPerTrader();
160
+ async maxTradesPerTrader(callOptions) {
161
+ return this.tradingFloorContract.maxTradesPerTrader({ ...callOptions });
162
162
  }
163
163
  }
164
164
  class Fees {
165
165
  constructor(tradingFloorContract) {
166
166
  this.tradingFloorContract = tradingFloorContract;
167
167
  }
168
- async feesMap(asset, feeType) {
169
- return this.tradingFloorContract.feesMap(asset, feeType);
168
+ async feesMap(asset, feeType, callOptions) {
169
+ return this.tradingFloorContract.feesMap(asset, feeType, { ...callOptions });
170
170
  }
171
171
  }
172
172
  class ContractReferences {
173
173
  constructor(tradingFloorContract) {
174
174
  this.tradingFloorContract = tradingFloorContract;
175
175
  }
176
- async registry() {
177
- return this.tradingFloorContract.registry();
176
+ async registry(callOptions) {
177
+ return this.tradingFloorContract.registry({ ...callOptions });
178
178
  }
179
179
  }
180
180
  class PendableAdmin {
181
181
  constructor(tradingFloorContract) {
182
182
  this.tradingFloorContract = tradingFloorContract;
183
183
  }
184
- async admin() {
185
- return this.tradingFloorContract.admin();
184
+ async admin(callOptions) {
185
+ return this.tradingFloorContract.admin({ ...callOptions });
186
186
  }
187
- async pendingAdmin() {
188
- return this.tradingFloorContract.pendingAdmin();
187
+ async pendingAdmin(callOptions) {
188
+ return this.tradingFloorContract.pendingAdmin({ ...callOptions });
189
189
  }
190
190
  }
191
191
  class PendableImplementation {
192
192
  constructor(tradingFloorContract) {
193
193
  this.tradingFloorContract = tradingFloorContract;
194
194
  }
195
- async implementation() {
196
- return this.tradingFloorContract.implementation();
195
+ async implementation(callOptions) {
196
+ return this.tradingFloorContract.implementation({ ...callOptions });
197
197
  }
198
- async pendingImplementation() {
199
- return this.tradingFloorContract.pendingImplementation();
198
+ async pendingImplementation(callOptions) {
199
+ return this.tradingFloorContract.pendingImplementation({ ...callOptions });
200
200
  }
201
201
  }
202
202
  class LynxVersionedContract {
203
203
  constructor(tradingFloorContract) {
204
204
  this.tradingFloorContract = tradingFloorContract;
205
205
  }
206
- async getContractName() {
207
- return this.tradingFloorContract.getContractName();
206
+ async getContractName(callOptions) {
207
+ return this.tradingFloorContract.getContractName({ ...callOptions });
208
208
  }
209
- async getContractVersion() {
210
- return this.tradingFloorContract.getContractVersion();
209
+ async getContractVersion(callOptions) {
210
+ return this.tradingFloorContract.getContractVersion({ ...callOptions });
211
211
  }
212
- async CONTRACT_NAME() {
213
- return this.tradingFloorContract.CONTRACT_NAME();
212
+ async CONTRACT_NAME(callOptions) {
213
+ return this.tradingFloorContract.CONTRACT_NAME({ ...callOptions });
214
214
  }
215
- async CONTRACT_VERSION() {
216
- return this.tradingFloorContract.CONTRACT_VERSION();
215
+ async CONTRACT_VERSION(callOptions) {
216
+ return this.tradingFloorContract.CONTRACT_VERSION({ ...callOptions });
217
217
  }
218
218
  }
219
219
  class Constants {
220
220
  constructor(tradingFloorContract) {
221
221
  this.tradingFloorContract = tradingFloorContract;
222
222
  }
223
- async ACCURACY_IMPROVEMENT_SCALE() {
224
- return this.tradingFloorContract.ACCURACY_IMPROVEMENT_SCALE();
223
+ async ACCURACY_IMPROVEMENT_SCALE(callOptions) {
224
+ return this.tradingFloorContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions });
225
225
  }
226
- async FRACTION_SCALE() {
227
- return this.tradingFloorContract.FRACTION_SCALE();
226
+ async FRACTION_SCALE(callOptions) {
227
+ return this.tradingFloorContract.FRACTION_SCALE({ ...callOptions });
228
228
  }
229
- async LEVERAGE_SCALE() {
230
- return this.tradingFloorContract.LEVERAGE_SCALE();
229
+ async LEVERAGE_SCALE(callOptions) {
230
+ return this.tradingFloorContract.LEVERAGE_SCALE({ ...callOptions });
231
231
  }
232
- async MAX_FEE_FRACTION_FOR_CANCEL() {
233
- return this.tradingFloorContract.MAX_FEE_FRACTION_FOR_CANCEL();
232
+ async MAX_FEE_FRACTION_FOR_CANCEL(callOptions) {
233
+ return this.tradingFloorContract.MAX_FEE_FRACTION_FOR_CANCEL({ ...callOptions });
234
234
  }
235
- async PRECISION() {
236
- return this.tradingFloorContract.PRECISION();
235
+ async PRECISION(callOptions) {
236
+ return this.tradingFloorContract.PRECISION({ ...callOptions });
237
237
  }
238
238
  }
239
239
  class TradingFloorService {
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMPTY_COMPLETE_TRIGGER_CONFIGURATIONS = exports.EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS = exports.EMPTY_PAIR_CONFIGS_IN_TRIGGERS = void 0;
3
+ exports.EMPTY_TRADERS_PORTAL_PER_PAIR_PARAMETERS = exports.EMPTY_ON_BEHALF_TRADING_CONFIGURATIONS = exports.EMPTY_ON_BEHALF_TRADING_TOKEN_CONFIG = exports.EMPTY_COMPLETE_TRIGGER_CONFIGURATIONS = exports.EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS = exports.EMPTY_PAIR_CONFIGS_IN_TRIGGERS = void 0;
4
4
  exports.EMPTY_PAIR_CONFIGS_IN_TRIGGERS = {
5
5
  pairId: 0,
6
6
  maxConfidenceFraction: 0,
7
7
  spreadFraction: 0,
8
+ slBufferFraction: 0,
8
9
  };
9
10
  exports.EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS = {
10
11
  contractAddress: "",
@@ -16,11 +17,17 @@ exports.EMPTY_COMPLETE_TRADERS_PORTAL_CONFIGURATIONS = {
16
17
  nativeFeeForSingleFieldUpdateRequest: 0n,
17
18
  nativeFeeForDoubleFieldUpdateRequest: 0n,
18
19
  minLiveTimeForMarketClose: 0,
20
+ minTimeBeforeFirstLimitUpdate: 0,
21
+ minTimeBetweenLimitUpdates: 0,
22
+ limitsMarginFraction: 0,
23
+ onBehalfEnabled: false,
19
24
  };
20
25
  exports.EMPTY_COMPLETE_TRIGGER_CONFIGURATIONS = {
21
26
  contractAddress: "",
22
27
  minTriggerPeriodForMarketOrders: 0,
23
28
  maxTriggerPeriodForMarketOrders: 0,
29
+ minTriggerPeriodForMarketOrdersCat: 0,
30
+ maxTriggerPeriodForMarketOrdersCat: 0,
24
31
  marketOrdersTimeout: 0,
25
32
  marketOrderTightTimeRange: 0,
26
33
  minTriggerPeriodForLimitOrders: 0,
@@ -28,5 +35,22 @@ exports.EMPTY_COMPLETE_TRIGGER_CONFIGURATIONS = {
28
35
  marketOrderCancelFeeFraction: 0,
29
36
  openPositionCancellationFeeFraction: 0,
30
37
  maxTriggersPerBlock: 0,
38
+ defaultSlBufferFraction: 0,
31
39
  permissionedTriggerAccounts: [],
32
40
  };
41
+ exports.EMPTY_ON_BEHALF_TRADING_TOKEN_CONFIG = {
42
+ token: "",
43
+ maxPermissionAmount: 0n,
44
+ };
45
+ exports.EMPTY_ON_BEHALF_TRADING_CONFIGURATIONS = {
46
+ contractAddress: "",
47
+ isPaused: false,
48
+ maxPermissionDuration: 0,
49
+ };
50
+ exports.EMPTY_TRADERS_PORTAL_PER_PAIR_PARAMETERS = {
51
+ pairId: 0,
52
+ minTimeBeforeFirstLimitUpdate: 0,
53
+ minTimeBetweenLimitUpdates: 0,
54
+ minLiveTimeForMarketClose: 0,
55
+ limitsMarginFraction: 0,
56
+ };