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
@@ -8,38 +8,38 @@ class PoolAccountantV1FunctionsGroup_TradeUtilities {
8
8
  constructor(contract) {
9
9
  this.contract = contract;
10
10
  }
11
- async adjustClosePrice(closePrice, tp, long) {
12
- return this.contract.adjustClosePrice(closePrice, tp, long);
11
+ async adjustClosePrice(closePrice, tp, long, callOptions) {
12
+ return this.contract.adjustClosePrice(closePrice, tp, long, { ...callOptions });
13
13
  }
14
- async generatePositionHashId(settlementAsset, trader, pairId, index) {
15
- return this.contract.generatePositionHashId(settlementAsset, trader, pairId, index);
14
+ async generatePositionHashId(settlementAsset, trader, pairId, index, callOptions) {
15
+ return this.contract.generatePositionHashId(settlementAsset, trader, pairId, index, { ...callOptions });
16
16
  }
17
17
  }
18
18
  class PoolAccountantV1FunctionsGroup_FeeCalculations {
19
19
  constructor(contract) {
20
20
  this.contract = contract;
21
21
  }
22
- async calcClosingFee(pairId, collateral, leverage) {
23
- return this.contract.calcClosingFee(pairId, collateral, leverage);
22
+ async calcClosingFee(pairId, collateral, leverage, callOptions) {
23
+ return this.contract.calcClosingFee(pairId, collateral, leverage, { ...callOptions });
24
24
  }
25
- async calcPerformanceFee(pairId, collateral, profitPrecision) {
26
- return this.contract.calcPerformanceFee(pairId, collateral, profitPrecision);
25
+ async calcPerformanceFee(pairId, collateral, profitPrecision, callOptions) {
26
+ return this.contract.calcPerformanceFee(pairId, collateral, profitPrecision, { ...callOptions });
27
27
  }
28
- async calcTradeDynamicFees(positionId, pairId, long, collateral, leverage, openPrice, tp) {
29
- const result = await this.contract.calcTradeDynamicFees.staticCall(positionId, pairId, long, collateral, leverage, openPrice, tp);
28
+ async calcTradeDynamicFees(positionId, pairId, long, collateral, leverage, openPrice, tp, callOptions) {
29
+ const result = await this.contract.calcTradeDynamicFees.staticCall(positionId, pairId, long, collateral, leverage, openPrice, tp, { ...callOptions });
30
30
  return {
31
31
  interest: result.interest,
32
32
  funding: result.funding,
33
33
  };
34
34
  }
35
- async calcBorrowAmount(collateral, leverage, long, openPrice, tp) {
36
- return this.contract.calcBorrowAmount(collateral, leverage, long, openPrice, tp);
35
+ async calcBorrowAmount(collateral, leverage, long, openPrice, tp, callOptions) {
36
+ return this.contract.calcBorrowAmount(collateral, leverage, long, openPrice, tp, { ...callOptions });
37
37
  }
38
- async calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest) {
39
- return this.contract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest);
38
+ async calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, callOptions) {
39
+ return this.contract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, { ...callOptions });
40
40
  }
41
- async calcAccrueFundingValues(pairId) {
42
- const result = await this.contract.calcAccrueFundingValues(pairId);
41
+ async calcAccrueFundingValues(pairId, callOptions) {
42
+ const result = await this.contract.calcAccrueFundingValues(pairId, { ...callOptions });
43
43
  return {
44
44
  freshened: result.freshened,
45
45
  valueLong: result.valueLong,
@@ -73,73 +73,73 @@ class PoolAccountantV1Service {
73
73
  }
74
74
  createVerificationGroup() {
75
75
  return {
76
- verifyLeveragedPosition: async (pairIndex, collateral, leverage) => {
77
- const result = await this.poolAccountantContract.verifyLeveragedPosition(pairIndex, collateral, leverage);
76
+ verifyLeveragedPosition: async (pairIndex, collateral, leverage, callOptions) => {
77
+ const result = await this.poolAccountantContract.verifyLeveragedPosition(pairIndex, collateral, leverage, { ...callOptions });
78
78
  return result;
79
79
  },
80
- verifyOpenFee: async (pairIndex, leveragedPosition) => {
81
- const result = await this.poolAccountantContract.verifyOpenFee(pairIndex, leveragedPosition);
80
+ verifyOpenFee: async (pairIndex, leveragedPosition, callOptions) => {
81
+ const result = await this.poolAccountantContract.verifyOpenFee(pairIndex, leveragedPosition, { ...callOptions });
82
82
  return {
83
83
  openFee: result[0],
84
84
  lexPartFee: result[1],
85
85
  };
86
86
  },
87
- verifyPerformanceFee: (pairIndex, collateral) => this.poolAccountantContract.verifyPerformanceFee(pairIndex, collateral),
88
- verifyMaxPercentProfit: (openPrice, targetPrice, leverage, long) => this.poolAccountantContract.verifyMaxPercentProfit(openPrice, targetPrice, leverage, long),
89
- verifyUtilizationForTraders: (totalBorrows, totalReserves, unrealizedFunding) => this.poolAccountantContract.verifyUtilizationForTraders(totalBorrows, totalReserves, unrealizedFunding),
87
+ verifyPerformanceFee: (pairIndex, collateral, callOptions) => this.poolAccountantContract.verifyPerformanceFee(pairIndex, collateral, { ...callOptions }),
88
+ verifyMaxPercentProfit: (openPrice, targetPrice, leverage, long, callOptions) => this.poolAccountantContract.verifyMaxPercentProfit(openPrice, targetPrice, leverage, long, { ...callOptions }),
89
+ verifyUtilizationForTraders: (totalBorrows, totalReserves, unrealizedFunding, callOptions) => this.poolAccountantContract.verifyUtilizationForTraders(totalBorrows, totalReserves, unrealizedFunding, { ...callOptions }),
90
90
  };
91
91
  }
92
92
  createFundingGroup() {
93
93
  return {
94
- accrueFunding: async (pairId) => {
95
- const tx = await this.poolAccountantContract.accrueFunding(pairId);
94
+ accrueFunding: async (pairId, transactionOptions) => {
95
+ const tx = await this.poolAccountantContract.accrueFunding(pairId, { ...transactionOptions });
96
96
  const receipt = await tx.wait();
97
97
  // Return transaction receipt - developers can parse events if needed
98
98
  return receipt;
99
99
  },
100
- accrueFunding_static: async (pairId) => {
101
- const result = await this.poolAccountantContract.accrueFunding.staticCall(pairId);
100
+ accrueFunding_static: async (pairId, callOptions) => {
101
+ const result = await this.poolAccountantContract.accrueFunding.staticCall(pairId, { ...callOptions });
102
102
  return {
103
103
  valueLong: result[0],
104
104
  valueShort: result[1],
105
105
  protocolFundingShare: result[2],
106
106
  };
107
107
  },
108
- calcAccrueFundingValues: (pairId) => this.poolAccountantContract
109
- .calcAccrueFundingValues(pairId)
108
+ calcAccrueFundingValues: (pairId, callOptions) => this.poolAccountantContract
109
+ .calcAccrueFundingValues(pairId, { ...callOptions })
110
110
  .then((r) => ({
111
111
  freshened: r.freshened,
112
112
  valueLong: r.valueLong,
113
113
  valueShort: r.valueShort,
114
114
  protocolFundingShare: r.protocolFundingShare,
115
115
  })),
116
- fundingIndicesCalculation: (oiLong, oiShort, fundingRate, timeDiff) => this.poolAccountantContract
117
- .fundingIndicesCalculation(oiLong, oiShort, fundingRate, timeDiff)
116
+ fundingIndicesCalculation: (oiLong, oiShort, fundingRate, timeDiff, callOptions) => this.poolAccountantContract
117
+ .fundingIndicesCalculation(oiLong, oiShort, fundingRate, timeDiff, { ...callOptions })
118
118
  .then((r) => ({
119
119
  indexLongChange: r.indexLongChange,
120
120
  indexShortChange: r.indexShortChange,
121
121
  protocolFundingShare: r.protocolFundingShare,
122
122
  })),
123
- getTradeFunding: async (positionId, pairId, long, collateral, leverage) => {
124
- const tx = await this.poolAccountantContract.getTradeFunding(positionId, pairId, long, collateral, leverage);
123
+ getTradeFunding: async (positionId, pairId, long, collateral, leverage, transactionOptions) => {
124
+ const tx = await this.poolAccountantContract.getTradeFunding(positionId, pairId, long, collateral, leverage, { ...transactionOptions });
125
125
  const receipt = await tx.wait();
126
126
  return receipt;
127
127
  },
128
- getTradeFunding_static: (positionId, pairId, long, collateral, leverage) => this.poolAccountantContract.getTradeFunding.staticCall(positionId, pairId, long, collateral, leverage),
129
- getTradeFundingPure: (accFundingPerOi, endAccFundingPerOi, collateral, leverage) => this.poolAccountantContract.getTradeFundingPure(accFundingPerOi, endAccFundingPerOi, collateral, leverage),
130
- getTradeInitialAccFundingPerOi: (positionId) => this.poolAccountantContract.getTradeInitialAccFundingPerOi(positionId),
131
- getAccFundingLong: (pairIndex) => this.poolAccountantContract.getAccFundingLong(pairIndex),
132
- getAccFundingShort: (pairIndex) => this.poolAccountantContract.getAccFundingShort(pairIndex),
133
- getAccFundingUpdateBlock: (pairIndex) => this.poolAccountantContract.getAccFundingUpdateBlock(pairIndex),
128
+ getTradeFunding_static: (positionId, pairId, long, collateral, leverage, callOptions) => this.poolAccountantContract.getTradeFunding.staticCall(positionId, pairId, long, collateral, leverage, { ...callOptions }),
129
+ getTradeFundingPure: (accFundingPerOi, endAccFundingPerOi, collateral, leverage, callOptions) => this.poolAccountantContract.getTradeFundingPure(accFundingPerOi, endAccFundingPerOi, collateral, leverage, { ...callOptions }),
130
+ getTradeInitialAccFundingPerOi: (positionId, callOptions) => this.poolAccountantContract.getTradeInitialAccFundingPerOi(positionId, { ...callOptions }),
131
+ getAccFundingLong: (pairIndex, callOptions) => this.poolAccountantContract.getAccFundingLong(pairIndex, { ...callOptions }),
132
+ getAccFundingShort: (pairIndex, callOptions) => this.poolAccountantContract.getAccFundingShort(pairIndex, { ...callOptions }),
133
+ getAccFundingUpdateBlock: (pairIndex, callOptions) => this.poolAccountantContract.getAccFundingUpdateBlock(pairIndex, { ...callOptions }),
134
134
  };
135
135
  }
136
136
  createInterestGroup() {
137
137
  return {
138
- getTradeInterest: (positionId, borrowAmount) => this.poolAccountantContract.getTradeInterest.staticCall(positionId, borrowAmount),
139
- getTradeInterestPure: (tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex) => this.poolAccountantContract.getTradeInterestPure(tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex),
140
- getTradeInitialAccBorrowIndex: (positionId) => this.poolAccountantContract.getTradeInitialAccBorrowIndex(positionId),
141
- accrueInterest: async (availableCash) => {
142
- const result = await this.poolAccountantContract["accrueInterest(uint256)"].staticCall(availableCash);
138
+ getTradeInterest: (positionId, borrowAmount, callOptions) => this.poolAccountantContract.getTradeInterest.staticCall(positionId, borrowAmount, { ...callOptions }),
139
+ getTradeInterestPure: (tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex, callOptions) => this.poolAccountantContract.getTradeInterestPure(tradeAccInterest, borrowsAndInterestShare, borrowIndex, accBorrowIndex, { ...callOptions }),
140
+ getTradeInitialAccBorrowIndex: (positionId, callOptions) => this.poolAccountantContract.getTradeInitialAccBorrowIndex(positionId, { ...callOptions }),
141
+ accrueInterest: async (availableCash, callOptions) => {
142
+ const result = await this.poolAccountantContract["accrueInterest(uint256)"].staticCall(availableCash, { ...callOptions });
143
143
  return {
144
144
  totalInterestNew: result[0],
145
145
  interestShareNew: result[1],
@@ -150,14 +150,14 @@ class PoolAccountantV1Service {
150
150
  }
151
151
  createLiquidationGroup() {
152
152
  return {
153
- getTradeLiquidationPrice: (positionId, pairId, openPrice, tp, long, collateral, leverage) => this.poolAccountantContract.getTradeLiquidationPrice.staticCall(positionId, pairId, openPrice, tp, long, collateral, leverage),
154
- getTradeLiquidationPriceView: (openPrice, long, collateral, leverage, interest, funding, closingFee) => this.poolAccountantContract.getTradeLiquidationPriceView(openPrice, long, collateral, leverage, interest, funding, closingFee),
153
+ getTradeLiquidationPrice: (positionId, pairId, openPrice, tp, long, collateral, leverage, callOptions) => this.poolAccountantContract.getTradeLiquidationPrice.staticCall(positionId, pairId, openPrice, tp, long, collateral, leverage, { ...callOptions }),
154
+ getTradeLiquidationPriceView: (openPrice, long, collateral, leverage, interest, funding, closingFee, callOptions) => this.poolAccountantContract.getTradeLiquidationPriceView(openPrice, long, collateral, leverage, interest, funding, closingFee, { ...callOptions }),
155
155
  };
156
156
  }
157
157
  createTradeValuesGroup() {
158
158
  return {
159
- getTradeValueView: (collateral, profitPrecision, interest, funding, closingFee, liquidation) => this.poolAccountantContract.getTradeValueView(collateral, profitPrecision, interest, funding, closingFee, liquidation),
160
- getTradeClosingValues: async (positionId, pairId, collateral, leverage, long, openPrice, tp, closePrice, isLiquidation) => {
159
+ getTradeValueView: (collateral, profitPrecision, interest, funding, closingFee, liquidation, callOptions) => this.poolAccountantContract.getTradeValueView(collateral, profitPrecision, interest, funding, closingFee, liquidation, { ...callOptions }),
160
+ getTradeClosingValues: async (positionId, pairId, collateral, leverage, long, openPrice, tp, closePrice, isLiquidation, callOptions) => {
161
161
  const params = {
162
162
  collateral,
163
163
  leverage,
@@ -165,7 +165,7 @@ class PoolAccountantV1Service {
165
165
  openPrice,
166
166
  tp,
167
167
  };
168
- const result = await this.poolAccountantContract.getTradeClosingValues.staticCall(positionId, pairId, params, closePrice, isLiquidation);
168
+ const result = await this.poolAccountantContract.getTradeClosingValues.staticCall(positionId, pairId, params, closePrice, isLiquidation, { ...callOptions });
169
169
  return {
170
170
  tradeValue: result[0],
171
171
  safeClosingFee: result[1],
@@ -178,43 +178,43 @@ class PoolAccountantV1Service {
178
178
  }
179
179
  createPairManagementGroup() {
180
180
  return {
181
- pairTotalOpenInterest: (pairIndex) => this.poolAccountantContract.pairTotalOpenInterest(pairIndex),
182
- calcAbsoluteSkew: (openInterestLong, openInterestShort, additionIsLong, additionOpenInterest) => this.poolAccountantContract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest),
183
- pricePnL: (pairId, price) => this.poolAccountantContract.pricePnL(pairId, price),
184
- pairBorrows: (pairIndex) => this.poolAccountantContract.pairBorrows(pairIndex),
185
- pairMaxBorrow: (pairIndex) => this.poolAccountantContract.pairMaxBorrow(pairIndex),
186
- pairMinOpenFee: (pairIndex) => this.poolAccountantContract.pairMinOpenFee(pairIndex),
187
- pairOpenFeeF: (pairIndex) => this.poolAccountantContract.pairOpenFeeF(pairIndex),
188
- pairCloseFeeF: (pairIndex) => this.poolAccountantContract.pairCloseFeeF(pairIndex),
189
- pairPerformanceFeeF: (pairIndex) => this.poolAccountantContract.pairPerformanceFeeF(pairIndex),
190
- pairTotalRatioOiToP: (pairIndex) => this.poolAccountantContract.pairTotalRatioOiToP(pairIndex),
191
- groupBorrows: (groupIndex) => this.poolAccountantContract.groupBorrows(groupIndex),
192
- groupMaxBorrow: (groupIndex) => this.poolAccountantContract.groupMaxBorrow(groupIndex),
181
+ pairTotalOpenInterest: (pairIndex, callOptions) => this.poolAccountantContract.pairTotalOpenInterest(pairIndex, { ...callOptions }),
182
+ calcAbsoluteSkew: (openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, callOptions) => this.poolAccountantContract.calcAbsoluteSkew(openInterestLong, openInterestShort, additionIsLong, additionOpenInterest, { ...callOptions }),
183
+ pricePnL: (pairId, price, callOptions) => this.poolAccountantContract.pricePnL(pairId, price, { ...callOptions }),
184
+ pairBorrows: (pairIndex, callOptions) => this.poolAccountantContract.pairBorrows(pairIndex, { ...callOptions }),
185
+ pairMaxBorrow: (pairIndex, callOptions) => this.poolAccountantContract.pairMaxBorrow(pairIndex, { ...callOptions }),
186
+ pairMinOpenFee: (pairIndex, callOptions) => this.poolAccountantContract.pairMinOpenFee(pairIndex, { ...callOptions }),
187
+ pairOpenFeeF: (pairIndex, callOptions) => this.poolAccountantContract.pairOpenFeeF(pairIndex, { ...callOptions }),
188
+ pairCloseFeeF: (pairIndex, callOptions) => this.poolAccountantContract.pairCloseFeeF(pairIndex, { ...callOptions }),
189
+ pairPerformanceFeeF: (pairIndex, callOptions) => this.poolAccountantContract.pairPerformanceFeeF(pairIndex, { ...callOptions }),
190
+ pairTotalRatioOiToP: (pairIndex, callOptions) => this.poolAccountantContract.pairTotalRatioOiToP(pairIndex, { ...callOptions }),
191
+ groupBorrows: (groupIndex, callOptions) => this.poolAccountantContract.groupBorrows(groupIndex, { ...callOptions }),
192
+ groupMaxBorrow: (groupIndex, callOptions) => this.poolAccountantContract.groupMaxBorrow(groupIndex, { ...callOptions }),
193
193
  };
194
194
  }
195
195
  createAdminConfigurationGroup() {
196
196
  return {
197
- setTradeIncentivizer: (incentivizer) => this.poolAccountantContract.setTradeIncentivizer(incentivizer),
198
- setMaxGainF: (maxGainF) => this.poolAccountantContract.setMaxGainF(maxGainF),
199
- setFrm: (frm) => this.poolAccountantContract.setFrm(frm),
200
- setMinOpenFee: (min) => this.poolAccountantContract.setMinOpenFee(min),
201
- setLexPartF: (partF) => this.poolAccountantContract.setLexPartF(partF),
202
- setFundingRateMax: (maxValue) => this.poolAccountantContract.setFundingRateMax(maxValue),
203
- setLiquidationThresholdF: (threshold) => this.poolAccountantContract.setLiquidationThresholdF(threshold),
204
- setLiquidationFeeF: (fee) => this.poolAccountantContract.setLiquidationFeeF(fee),
205
- setIrm: (irm) => this.poolAccountantContract.setIrm(irm),
206
- setIrmHard: (irm) => this.poolAccountantContract.setIrmHard(irm),
207
- setInterestShareFactor: (factor) => this.poolAccountantContract.setInterestShareFactor(factor),
208
- setFundingShareFactor: (factor) => this.poolAccountantContract.setFundingShareFactor(factor),
209
- setBorrowRateMax: (rate) => this.poolAccountantContract.setBorrowRateMax(rate),
210
- setMaxTotalBorrows: (maxBorrows) => this.poolAccountantContract.setMaxTotalBorrows(maxBorrows),
211
- setMaxVirtualUtilization: (maxUtilization) => this.poolAccountantContract.setMaxVirtualUtilization(maxUtilization),
197
+ setTradeIncentivizer: (incentivizer, transactionOptions) => this.poolAccountantContract.setTradeIncentivizer(incentivizer, { ...transactionOptions }),
198
+ setMaxGainF: (maxGainF, transactionOptions) => this.poolAccountantContract.setMaxGainF(maxGainF, { ...transactionOptions }),
199
+ setFrm: (frm, transactionOptions) => this.poolAccountantContract.setFrm(frm, { ...transactionOptions }),
200
+ setMinOpenFee: (min, transactionOptions) => this.poolAccountantContract.setMinOpenFee(min, { ...transactionOptions }),
201
+ setLexPartF: (partF, transactionOptions) => this.poolAccountantContract.setLexPartF(partF, { ...transactionOptions }),
202
+ setFundingRateMax: (maxValue, transactionOptions) => this.poolAccountantContract.setFundingRateMax(maxValue, { ...transactionOptions }),
203
+ setLiquidationThresholdF: (threshold, transactionOptions) => this.poolAccountantContract.setLiquidationThresholdF(threshold, { ...transactionOptions }),
204
+ setLiquidationFeeF: (fee, transactionOptions) => this.poolAccountantContract.setLiquidationFeeF(fee, { ...transactionOptions }),
205
+ setIrm: (irm, transactionOptions) => this.poolAccountantContract.setIrm(irm, { ...transactionOptions }),
206
+ setIrmHard: (irm, transactionOptions) => this.poolAccountantContract.setIrmHard(irm, { ...transactionOptions }),
207
+ setInterestShareFactor: (factor, transactionOptions) => this.poolAccountantContract.setInterestShareFactor(factor, { ...transactionOptions }),
208
+ setFundingShareFactor: (factor, transactionOptions) => this.poolAccountantContract.setFundingShareFactor(factor, { ...transactionOptions }),
209
+ setBorrowRateMax: (rate, transactionOptions) => this.poolAccountantContract.setBorrowRateMax(rate, { ...transactionOptions }),
210
+ setMaxTotalBorrows: (maxBorrows, transactionOptions) => this.poolAccountantContract.setMaxTotalBorrows(maxBorrows, { ...transactionOptions }),
211
+ setMaxVirtualUtilization: (maxUtilization, transactionOptions) => this.poolAccountantContract.setMaxVirtualUtilization(maxUtilization, { ...transactionOptions }),
212
212
  };
213
213
  }
214
214
  createPoolInteractionGroup() {
215
215
  return {
216
- readAndZeroReserves: async () => {
217
- const result = await this.poolAccountantContract.readAndZeroReserves.staticCall();
216
+ readAndZeroReserves: async (callOptions) => {
217
+ const result = await this.poolAccountantContract.readAndZeroReserves.staticCall({ ...callOptions });
218
218
  return {
219
219
  accumulatedInterestShare: result[0],
220
220
  accFundingShare: result[1],
@@ -225,52 +225,52 @@ class PoolAccountantV1Service {
225
225
  createStateVariablesGroup() {
226
226
  return {
227
227
  // Interest and borrowing state
228
- borrowIndex: () => this.poolAccountantContract.borrowIndex(),
229
- borrowRateMax: () => this.poolAccountantContract.borrowRateMax(),
230
- totalBorrows: () => this.poolAccountantContract.totalBorrows(),
231
- totalInterest: () => this.poolAccountantContract.totalInterest(),
232
- interestShare: () => this.poolAccountantContract.interestShare(),
233
- interestShareFactor: () => this.poolAccountantContract.interestShareFactor(),
228
+ borrowIndex: (callOptions) => this.poolAccountantContract.borrowIndex({ ...callOptions }),
229
+ borrowRateMax: (callOptions) => this.poolAccountantContract.borrowRateMax({ ...callOptions }),
230
+ totalBorrows: (callOptions) => this.poolAccountantContract.totalBorrows({ ...callOptions }),
231
+ totalInterest: (callOptions) => this.poolAccountantContract.totalInterest({ ...callOptions }),
232
+ interestShare: (callOptions) => this.poolAccountantContract.interestShare({ ...callOptions }),
233
+ interestShareFactor: (callOptions) => this.poolAccountantContract.interestShareFactor({ ...callOptions }),
234
234
  // Funding state
235
- fundingRateMax: () => this.poolAccountantContract.fundingRateMax(),
236
- fundingShare: () => this.poolAccountantContract.fundingShare(),
237
- fundingShareFactor: () => this.poolAccountantContract.fundingShareFactor(),
238
- unrealizedFunding: () => this.poolAccountantContract.unrealizedFunding(),
239
- realizedFundingSurplusDeficit: () => this.poolAccountantContract.realizedFundingSurplusDeficit(),
235
+ fundingRateMax: (callOptions) => this.poolAccountantContract.fundingRateMax({ ...callOptions }),
236
+ fundingShare: (callOptions) => this.poolAccountantContract.fundingShare({ ...callOptions }),
237
+ fundingShareFactor: (callOptions) => this.poolAccountantContract.fundingShareFactor({ ...callOptions }),
238
+ unrealizedFunding: (callOptions) => this.poolAccountantContract.unrealizedFunding({ ...callOptions }),
239
+ realizedFundingSurplusDeficit: (callOptions) => this.poolAccountantContract.realizedFundingSurplusDeficit({ ...callOptions }),
240
240
  // Configuration
241
- maxGainF: () => this.poolAccountantContract.maxGainF(),
242
- liquidationFeeF: () => this.poolAccountantContract.liquidationFeeF(),
243
- liquidationThresholdF: () => this.poolAccountantContract.liquidationThresholdF(),
244
- maxTotalBorrows: () => this.poolAccountantContract.maxTotalBorrows(),
245
- maxVirtualUtilization: () => this.poolAccountantContract.maxVirtualUtilization(),
246
- minOpenFee: () => this.poolAccountantContract.minOpenFee(),
247
- lexPartF: () => this.poolAccountantContract.lexPartF(),
241
+ maxGainF: (callOptions) => this.poolAccountantContract.maxGainF({ ...callOptions }),
242
+ liquidationFeeF: (callOptions) => this.poolAccountantContract.liquidationFeeF({ ...callOptions }),
243
+ liquidationThresholdF: (callOptions) => this.poolAccountantContract.liquidationThresholdF({ ...callOptions }),
244
+ maxTotalBorrows: (callOptions) => this.poolAccountantContract.maxTotalBorrows({ ...callOptions }),
245
+ maxVirtualUtilization: (callOptions) => this.poolAccountantContract.maxVirtualUtilization({ ...callOptions }),
246
+ minOpenFee: (callOptions) => this.poolAccountantContract.minOpenFee({ ...callOptions }),
247
+ lexPartF: (callOptions) => this.poolAccountantContract.lexPartF({ ...callOptions }),
248
248
  // Contract references
249
- lexPool: () => this.poolAccountantContract.lexPool(),
250
- tradingFloor: () => this.poolAccountantContract.tradingFloor(),
251
- tradeIncentivizer: () => this.poolAccountantContract.tradeIncentivizer(),
252
- frm: () => this.poolAccountantContract.frm(),
253
- irm: () => this.poolAccountantContract.irm(),
254
- underlying: () => this.poolAccountantContract.underlying(),
249
+ lexPool: (callOptions) => this.poolAccountantContract.lexPool({ ...callOptions }),
250
+ tradingFloor: (callOptions) => this.poolAccountantContract.tradingFloor({ ...callOptions }),
251
+ tradeIncentivizer: (callOptions) => this.poolAccountantContract.tradeIncentivizer({ ...callOptions }),
252
+ frm: (callOptions) => this.poolAccountantContract.frm({ ...callOptions }),
253
+ irm: (callOptions) => this.poolAccountantContract.irm({ ...callOptions }),
254
+ underlying: (callOptions) => this.poolAccountantContract.underlying({ ...callOptions }),
255
255
  // Timestamps
256
- accrualBlockTimestamp: () => this.poolAccountantContract.accrualBlockTimestamp(),
256
+ accrualBlockTimestamp: (callOptions) => this.poolAccountantContract.accrualBlockTimestamp({ ...callOptions }),
257
257
  };
258
258
  }
259
259
  createContractInfoGroup() {
260
260
  return {
261
- admin: () => this.poolAccountantContract.admin(),
262
- pendingAdmin: () => this.poolAccountantContract.pendingAdmin(),
263
- implementation: () => this.poolAccountantContract.implementation(),
264
- pendingImplementation: () => this.poolAccountantContract.pendingImplementation(),
265
- registry: () => this.poolAccountantContract.registry(),
261
+ admin: (callOptions) => this.poolAccountantContract.admin({ ...callOptions }),
262
+ pendingAdmin: (callOptions) => this.poolAccountantContract.pendingAdmin({ ...callOptions }),
263
+ implementation: (callOptions) => this.poolAccountantContract.implementation({ ...callOptions }),
264
+ pendingImplementation: (callOptions) => this.poolAccountantContract.pendingImplementation({ ...callOptions }),
265
+ registry: (callOptions) => this.poolAccountantContract.registry({ ...callOptions }),
266
266
  };
267
267
  }
268
268
  createConstantsGroup() {
269
269
  return {
270
- ACCURACY_IMPROVEMENT_SCALE: () => this.poolAccountantContract.ACCURACY_IMPROVEMENT_SCALE(),
271
- FRACTION_SCALE: () => this.poolAccountantContract.FRACTION_SCALE(),
272
- LEVERAGE_SCALE: () => this.poolAccountantContract.LEVERAGE_SCALE(),
273
- PRECISION: () => this.poolAccountantContract.PRECISION(),
270
+ ACCURACY_IMPROVEMENT_SCALE: (callOptions) => this.poolAccountantContract.ACCURACY_IMPROVEMENT_SCALE({ ...callOptions }),
271
+ FRACTION_SCALE: (callOptions) => this.poolAccountantContract.FRACTION_SCALE({ ...callOptions }),
272
+ LEVERAGE_SCALE: (callOptions) => this.poolAccountantContract.LEVERAGE_SCALE({ ...callOptions }),
273
+ PRECISION: (callOptions) => this.poolAccountantContract.PRECISION({ ...callOptions }),
274
274
  };
275
275
  }
276
276
  }
@@ -56,14 +56,14 @@ class RateModelLensService {
56
56
  constructor(signerOrProvider, contractAddress) {
57
57
  this.contract = RateModelLens__factory_1.RateModelLens__factory.connect(contractAddress, signerOrProvider);
58
58
  }
59
- async getAccountantForLexPool(lexPool) {
60
- return await this.contract.getAccountantForLexPool(lexPool);
59
+ async getAccountantForLexPool(lexPool, callOptions) {
60
+ return await this.contract.getAccountantForLexPool(lexPool, { ...callOptions });
61
61
  }
62
- async getLexPoolForAccountant(accountant) {
63
- return await this.contract.getLexPoolForAccountant(accountant);
62
+ async getLexPoolForAccountant(accountant, callOptions) {
63
+ return await this.contract.getLexPoolForAccountant(accountant, { ...callOptions });
64
64
  }
65
- async getCompleteRateModelsInfo(lexPools) {
66
- const result = await this.contract.getCompleteRateModelsInfo(lexPools);
65
+ async getCompleteRateModelsInfo(lexPools, callOptions) {
66
+ const result = await this.contract.getCompleteRateModelsInfo(lexPools, { ...callOptions });
67
67
  // Convert funding rate model groups (raw)
68
68
  const fundingRateModelGroupsRaw = (0, ethersTypes_1.ethersStructResponseToArray)(result.fundingRateModelGroups, IRateModelLensService_1.EMPTY_FUNDING_RATE_MODEL_GROUP_RAW, {
69
69
  accountantConfigs: IRateModelLensService_1.EMPTY_FRM_ACCOUNTANT_CONFIG_RAW,
@@ -100,8 +100,8 @@ class RateModelLensService {
100
100
  interestRateModelGroups,
101
101
  };
102
102
  }
103
- async getFundingRateModelGroups(lexPools) {
104
- const result = await this.contract.getFundingRateModelGroups(lexPools);
103
+ async getFundingRateModelGroups(lexPools, callOptions) {
104
+ const result = await this.contract.getFundingRateModelGroups(lexPools, { ...callOptions });
105
105
  // Convert array of groups with nested arrays (raw)
106
106
  const rawGroups = (0, ethersTypes_1.ethersStructResponseToArray)(result, IRateModelLensService_1.EMPTY_FUNDING_RATE_MODEL_GROUP_RAW, {
107
107
  accountantConfigs: IRateModelLensService_1.EMPTY_FRM_ACCOUNTANT_CONFIG_RAW,
@@ -121,8 +121,8 @@ class RateModelLensService {
121
121
  pairSpecificParams: group.pairSpecificParams.map(convertPairSpecificParams),
122
122
  }));
123
123
  }
124
- async getInterestRateModelGroups(lexPools) {
125
- const result = await this.contract.getInterestRateModelGroups(lexPools);
124
+ async getInterestRateModelGroups(lexPools, callOptions) {
125
+ const result = await this.contract.getInterestRateModelGroups(lexPools, { ...callOptions });
126
126
  // Convert to raw first
127
127
  const rawGroups = (0, ethersTypes_1.ethersStructResponseToArray)(result, IRateModelLensService_1.EMPTY_INTEREST_RATE_MODEL_GROUP_RAW, {}, {
128
128
  baseRateParams: IRateModelLensService_1.EMPTY_IRM_BASE_RATE_PARAMS_RAW,
@@ -7,93 +7,93 @@ class TradeIntentsVerifierService {
7
7
  this.contract = TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
8
  this.isSigner = 'sendTransaction' in signerOrProvider;
9
9
  }
10
- async domainSeparatorForAsset(settlementAsset) {
11
- return await this.contract.domainSeparatorForAsset(settlementAsset);
10
+ async domainSeparatorForAsset(settlementAsset, callOptions) {
11
+ return await this.contract.domainSeparatorForAsset(settlementAsset, { ...callOptions });
12
12
  }
13
- async domainSeparatorForChain(chainId) {
14
- return await this.contract.domainSeparatorForChain(chainId);
13
+ async domainSeparatorForChain(chainId, callOptions) {
14
+ return await this.contract.domainSeparatorForChain(chainId, { ...callOptions });
15
15
  }
16
- async intentsPermissions(user) {
17
- return await this.contract.intentsPermissions(user);
16
+ async intentsPermissions(user, callOptions) {
17
+ return await this.contract.intentsPermissions(user, { ...callOptions });
18
18
  }
19
- async setIntentsPermissions(oftChip, dynAddressSuffix) {
19
+ async setIntentsPermissions(oftChip, dynAddressSuffix, transactionOptions) {
20
20
  if (!this.isSigner) {
21
21
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
22
22
  }
23
- const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
23
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix, { ...transactionOptions });
24
24
  await tx.wait();
25
25
  }
26
- async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value) {
26
+ async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value, transactionOptions) {
27
27
  if (!this.isSigner) {
28
28
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
29
29
  }
30
- const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n });
30
+ const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n, ...transactionOptions });
31
31
  await tx.wait();
32
32
  }
33
- async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value) {
33
+ async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value, transactionOptions) {
34
34
  if (!this.isSigner) {
35
35
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
36
36
  }
37
- const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n });
37
+ const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
38
38
  await tx.wait();
39
39
  }
40
- async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value) {
40
+ async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value, transactionOptions) {
41
41
  if (!this.isSigner) {
42
42
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
43
43
  }
44
- const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n });
44
+ const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
45
45
  await tx.wait();
46
46
  }
47
- async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value) {
47
+ async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value, transactionOptions) {
48
48
  if (!this.isSigner) {
49
49
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
50
50
  }
51
- const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n });
51
+ const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n, ...transactionOptions });
52
52
  await tx.wait();
53
53
  }
54
- async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value) {
54
+ async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value, transactionOptions) {
55
55
  if (!this.isSigner) {
56
56
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
57
57
  }
58
- const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n });
58
+ const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n, ...transactionOptions });
59
59
  await tx.wait();
60
60
  }
61
- async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value) {
61
+ async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value, transactionOptions) {
62
62
  if (!this.isSigner) {
63
63
  throw new Error("TradeIntentsVerifierService: Write operations require a signer");
64
64
  }
65
- const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n });
65
+ const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n, ...transactionOptions });
66
66
  await tx.wait();
67
67
  }
68
- async admin() {
69
- return await this.contract.admin();
68
+ async admin(callOptions) {
69
+ return await this.contract.admin({ ...callOptions });
70
70
  }
71
- async pendingAdmin() {
72
- return await this.contract.pendingAdmin();
71
+ async pendingAdmin(callOptions) {
72
+ return await this.contract.pendingAdmin({ ...callOptions });
73
73
  }
74
- async registry() {
75
- return await this.contract.registry();
74
+ async registry(callOptions) {
75
+ return await this.contract.registry({ ...callOptions });
76
76
  }
77
- async sourceChainIdForAsset(asset) {
78
- return await this.contract.sourceChainIdForAsset(asset);
77
+ async sourceChainIdForAsset(asset, callOptions) {
78
+ return await this.contract.sourceChainIdForAsset(asset, { ...callOptions });
79
79
  }
80
- async processedSignatures(signature) {
81
- return await this.contract.processedSignatures(signature);
80
+ async processedSignatures(signature, callOptions) {
81
+ return await this.contract.processedSignatures(signature, { ...callOptions });
82
82
  }
83
- async domainSeparatorsForPosition(positionId) {
84
- return await this.contract.domainSeparatorsForPosition(positionId);
83
+ async domainSeparatorsForPosition(positionId, callOptions) {
84
+ return await this.contract.domainSeparatorsForPosition(positionId, { ...callOptions });
85
85
  }
86
- async tradersForPosition(positionId) {
87
- return await this.contract.tradersForPosition(positionId);
86
+ async tradersForPosition(positionId, callOptions) {
87
+ return await this.contract.tradersForPosition(positionId, { ...callOptions });
88
88
  }
89
- async settlementAssetsForPosition(positionId) {
90
- return await this.contract.settlementAssetsForPosition(positionId);
89
+ async settlementAssetsForPosition(positionId, callOptions) {
90
+ return await this.contract.settlementAssetsForPosition(positionId, { ...callOptions });
91
91
  }
92
- async getTradingFloor() {
93
- return await this.contract.getTradingFloor();
92
+ async getTradingFloor(callOptions) {
93
+ return await this.contract.getTradingFloor({ ...callOptions });
94
94
  }
95
- async getTradersPortal() {
96
- return await this.contract.getTradersPortal();
95
+ async getTradersPortal(callOptions) {
96
+ return await this.contract.getTradersPortal({ ...callOptions });
97
97
  }
98
98
  getContract() {
99
99
  return this.contract;