lynx-client 0.0.10 → 0.0.12

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 (208) hide show
  1. package/README.md +192 -2
  2. package/dist/cjs/index.js +5 -1
  3. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +1 -0
  4. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
  5. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +255 -0
  6. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
  7. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +14 -2
  8. package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +10 -10
  9. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +26 -14
  10. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +72 -15
  11. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +14 -8
  12. package/dist/cjs/lib/contractsIntegration/common/ILynxVersionedContract.js +2 -0
  13. package/dist/cjs/lib/contractsIntegration/common/IPendableAdmin.js +2 -0
  14. package/dist/cjs/lib/contractsIntegration/common/IPendableImplementation.js +2 -0
  15. package/dist/cjs/lib/contractsIntegration/common/IProtocolConstants.js +2 -0
  16. package/dist/cjs/lib/contractsIntegration/common/index.js +2 -0
  17. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +17 -0
  18. package/dist/cjs/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
  19. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1 -1
  20. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -28
  23. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
  24. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  25. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +979 -0
  26. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  27. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  28. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  29. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +114 -29
  30. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  31. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  32. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  33. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  34. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +1 -1
  35. package/dist/esm/index.d.ts +4 -0
  36. package/dist/esm/index.d.ts.map +1 -1
  37. package/dist/esm/index.js +5 -1
  38. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +2 -3
  39. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
  40. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
  41. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +1 -0
  42. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +74 -0
  43. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
  44. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
  45. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +26 -0
  46. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
  47. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +255 -0
  48. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
  49. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
  50. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
  51. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +6 -10
  52. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
  53. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +5 -2
  54. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
  55. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +14 -2
  56. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +4 -12
  57. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
  58. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +4 -3
  59. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
  60. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +10 -10
  61. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +1 -1
  62. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -1
  63. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +2 -4
  64. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
  65. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +8 -13
  66. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  67. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +5 -2
  68. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  69. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +26 -14
  70. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +31 -13
  71. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  72. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +14 -87
  73. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  74. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +72 -15
  75. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +6 -9
  76. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
  77. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +4 -2
  78. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
  79. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +14 -8
  80. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +11 -0
  81. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -0
  82. package/dist/esm/lib/contractsIntegration/common/ILynxVersionedContract.js +2 -0
  83. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts +9 -0
  84. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -0
  85. package/dist/esm/lib/contractsIntegration/common/IPendableAdmin.js +2 -0
  86. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts +9 -0
  87. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -0
  88. package/dist/esm/lib/contractsIntegration/common/IPendableImplementation.js +2 -0
  89. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts +32 -0
  90. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -0
  91. package/dist/esm/lib/contractsIntegration/common/IProtocolConstants.js +2 -0
  92. package/dist/esm/lib/contractsIntegration/common/index.d.ts +5 -0
  93. package/dist/esm/lib/contractsIntegration/common/index.d.ts.map +1 -0
  94. package/dist/esm/lib/contractsIntegration/common/index.js +2 -0
  95. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +5 -0
  96. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  97. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +17 -0
  98. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +648 -0
  99. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
  100. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
  101. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
  102. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  103. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +1 -1
  104. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1 -1
  105. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
  106. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +1 -1
  107. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  108. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  109. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -21
  110. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -1
  111. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -28
  112. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
  113. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
  114. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  115. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  116. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +750 -0
  117. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
  118. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +979 -0
  119. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  120. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  121. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  122. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  123. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  124. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  125. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +91 -22
  126. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  127. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +114 -29
  128. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  129. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
  130. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  131. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  132. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  133. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  134. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  135. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  136. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +1 -1
  137. package/dist/esm/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.js +1 -1
  138. package/dist/types/index.d.ts +4 -0
  139. package/dist/types/index.d.ts.map +1 -1
  140. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +2 -3
  141. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -1
  142. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -1
  143. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +74 -0
  144. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
  145. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +26 -0
  146. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
  147. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
  148. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
  149. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +6 -10
  150. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -1
  151. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +5 -2
  152. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -1
  153. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +4 -12
  154. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -1
  155. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +4 -3
  156. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -1
  157. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +1 -1
  158. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -1
  159. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +2 -4
  160. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -1
  161. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +8 -13
  162. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  163. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +5 -2
  164. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  165. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +31 -13
  166. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -1
  167. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +14 -87
  168. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -1
  169. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +6 -9
  170. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -1
  171. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +4 -2
  172. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -1
  173. package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts +11 -0
  174. package/dist/types/lib/contractsIntegration/common/ILynxVersionedContract.d.ts.map +1 -0
  175. package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts +9 -0
  176. package/dist/types/lib/contractsIntegration/common/IPendableAdmin.d.ts.map +1 -0
  177. package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts +9 -0
  178. package/dist/types/lib/contractsIntegration/common/IPendableImplementation.d.ts.map +1 -0
  179. package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts +32 -0
  180. package/dist/types/lib/contractsIntegration/common/IProtocolConstants.d.ts.map +1 -0
  181. package/dist/types/lib/contractsIntegration/common/index.d.ts +5 -0
  182. package/dist/types/lib/contractsIntegration/common/index.d.ts.map +1 -0
  183. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +5 -0
  184. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  185. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +648 -0
  186. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
  187. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
  188. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  189. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +1 -1
  190. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +1 -1
  191. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  192. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -21
  193. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts.map +1 -1
  194. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
  195. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  196. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +750 -0
  197. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
  198. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  199. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  200. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  201. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +91 -22
  202. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  203. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
  204. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  205. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  206. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  207. package/dist/types/lib/typechain/factories/contracts/Peripheral/TokensDistribution/SinglePhaseSingleTokenDistributor/SinglePhaseSingleTokenDistributor__factory.d.ts +1 -1
  208. package/package.json +4 -4
package/README.md CHANGED
@@ -86,7 +86,47 @@ const arbitrumAddresses = LynxSystemAddresses.arbitrum;
86
86
 
87
87
  ### Contract Services
88
88
 
89
- The SDK provides service wrappers for all Lynx contracts:
89
+ The SDK provides service wrappers for all Lynx contracts, organized using a consistent grouped interface pattern:
90
+
91
+ #### Service Architecture
92
+
93
+ All services follow a grouped interface pattern for better organization:
94
+
95
+ ```typescript
96
+ // Example: TradingFloor Service Structure
97
+ const tradingFloor = createTradingFloorService(signer, address);
98
+
99
+ // Grouped by functionality
100
+ tradingFloor.positionQueries // Position-related queries
101
+ tradingFloor.settlementAndPool // Settlement and pool operations
102
+ tradingFloor.traderTracking // Trader tracking functions
103
+ tradingFloor.tradingParameters // Trading parameters
104
+ tradingFloor.fees // Fee information
105
+ tradingFloor.deprecated // Deprecated functions
106
+
107
+ // Standardized accessors
108
+ tradingFloor.pendableAdmin // Admin functions
109
+ tradingFloor.pendableImplementation // Implementation functions
110
+ tradingFloor.lynxVersionedContract // Version information
111
+ tradingFloor.contractReferences // Other contract addresses
112
+ tradingFloor.constants // Protocol constants
113
+ ```
114
+
115
+ ```typescript
116
+ // Example: OnBehalfTrading Service Structure
117
+ const onBehalfTrading = new OnBehalfTradingService(signer, address);
118
+
119
+ // Grouped by functionality
120
+ onBehalfTrading.permissionQueries // Permission validation and queries
121
+ onBehalfTrading.permissionManagement // Grant/revoke permissions
122
+ onBehalfTrading.configuration // Contract configuration
123
+ onBehalfTrading.adminFunctions // Admin operations
124
+
125
+ // Standardized accessors
126
+ onBehalfTrading.pendableAdmin // Admin functions
127
+ onBehalfTrading.lynxVersionedContract // Version information
128
+ onBehalfTrading.contractReferences // Other contract addresses
129
+ ```
90
130
 
91
131
  #### Trading Operations
92
132
 
@@ -228,6 +268,49 @@ const configs = await triggers.getTriggersConfigurations();
228
268
  const pairConfigs = await triggers.getPairConfigsInTriggers(1); // Pair ID 1
229
269
  ```
230
270
 
271
+ ### Delegated Trading with OnBehalfTrading
272
+
273
+ The OnBehalfTrading service enables users to grant trading permissions to other addresses with specific limits and durations:
274
+
275
+ ```typescript
276
+ import { OnBehalfTradingService } from 'lynx-client';
277
+
278
+ const onBehalfTrading = new OnBehalfTradingService(signer, onBehalfTradingAddress);
279
+
280
+ // Grant permission to a trader
281
+ await onBehalfTrading.permissionManagement.grantPermission(
282
+ traderAddress,
283
+ tokenAddress,
284
+ ethers.parseUnits("1000", 18), // 1000 token limit
285
+ 86400n // 24 hours duration
286
+ );
287
+
288
+ // Check if permission is valid
289
+ const isValid = await onBehalfTrading.permissionQueries.isPermissionValid(
290
+ ownerAddress,
291
+ traderAddress,
292
+ tokenAddress
293
+ );
294
+
295
+ // Get remaining amount
296
+ const remaining = await onBehalfTrading.permissionQueries.getRemainingAmount(
297
+ ownerAddress,
298
+ traderAddress,
299
+ tokenAddress
300
+ );
301
+
302
+ // Revoke permissions
303
+ await onBehalfTrading.permissionManagement.revokePermission(
304
+ traderAddress,
305
+ tokenAddress
306
+ );
307
+
308
+ // Get all active permissions for an owner
309
+ const allPermissions = await onBehalfTrading.permissionQueries.getAllActivePermissions(
310
+ ownerAddress
311
+ );
312
+ ```
313
+
231
314
  ### LEX Pool Operations
232
315
 
233
316
  ```typescript
@@ -244,6 +327,85 @@ const supplierState = await lexLens.getLexPoolSupplierState(
244
327
  const feeConfigs = await lexLens.getAllFeeConfigurationsInLex(lexPoolAddress);
245
328
  ```
246
329
 
330
+ ## Standardized Contract Interfaces
331
+
332
+ The SDK provides standardized interfaces for common contract patterns, ensuring consistent access across all services:
333
+
334
+ ### Common Interfaces
335
+
336
+ #### ILynxVersionedContract
337
+ All Lynx contracts implement versioning for transparency and upgradeability tracking:
338
+
339
+ ```typescript
340
+ import { createTradingFloorService } from 'lynx-client';
341
+
342
+ const tradingFloor = createTradingFloorService(signer, tradingFloorAddress);
343
+
344
+ // Access version information through standardized property
345
+ const name = await tradingFloor.lynxVersionedContract.getContractName();
346
+ const version = await tradingFloor.lynxVersionedContract.getContractVersion();
347
+ const contractName = await tradingFloor.lynxVersionedContract.CONTRACT_NAME();
348
+ const contractVersion = await tradingFloor.lynxVersionedContract.CONTRACT_VERSION();
349
+ ```
350
+
351
+ #### IPendableAdmin
352
+ Contracts with two-step admin transfer for enhanced security:
353
+
354
+ ```typescript
355
+ // All services with admin functionality use the same accessor
356
+ const currentAdmin = await tradingFloor.pendableAdmin.admin();
357
+ const pendingAdmin = await tradingFloor.pendableAdmin.pendingAdmin();
358
+
359
+ // Same pattern works across all services
360
+ const triggersAdmin = await triggers.pendableAdmin.admin();
361
+ const pnlrAdmin = await pnlr.pendableAdmin.admin();
362
+ ```
363
+
364
+ #### IPendableImplementation
365
+ Upgradeable contracts with two-step implementation updates:
366
+
367
+ ```typescript
368
+ // Access implementation details through standardized property
369
+ const implementation = await tradingFloor.pendableImplementation.implementation();
370
+ const pendingImpl = await tradingFloor.pendableImplementation.pendingImplementation();
371
+
372
+ // OrderBook also uses the same pattern
373
+ const orderBookImpl = await orderBook.pendableImplementation.implementation();
374
+ ```
375
+
376
+ ### Standardized Accessor Patterns
377
+
378
+ All services follow consistent naming conventions for common functionality:
379
+
380
+ | Property | Interface | Description |
381
+ |----------|-----------|-------------|
382
+ | `lynxVersionedContract` | `ILynxVersionedContract` | Contract version information |
383
+ | `pendableAdmin` | `IPendableAdmin` | Admin transfer functionality |
384
+ | `pendableImplementation` | `IPendableImplementation` | Implementation upgrade functionality |
385
+ | `contractReferences` | Service-specific | References to other contracts |
386
+ | `constants` | Service-specific | Protocol constants and scales |
387
+
388
+ Example with multiple services:
389
+
390
+ ```typescript
391
+ // TradingFloor Service
392
+ const tf = createTradingFloorService(signer, address);
393
+ await tf.pendableAdmin.admin(); // Admin functionality
394
+ await tf.pendableImplementation.implementation(); // Implementation info
395
+ await tf.lynxVersionedContract.getContractVersion(); // Version info
396
+ await tf.contractReferences.registry(); // Other contract addresses
397
+
398
+ // PNLR Service (no implementation pattern)
399
+ const pnlr = createPNLRService(signer, address);
400
+ await pnlr.pendableAdmin.admin(); // Admin functionality
401
+ await pnlr.lynxVersionedContract.getContractVersion(); // Version info
402
+
403
+ // Triggers Service (no implementation pattern)
404
+ const triggers = createTriggersService(signer, address);
405
+ await triggers.pendableAdmin.admin(); // Admin functionality
406
+ await triggers.contractReferences.orderBook(); // Other contract addresses
407
+ ```
408
+
247
409
  ## Type Safety
248
410
 
249
411
  The SDK provides comprehensive TypeScript types for all contract interactions:
@@ -253,7 +415,10 @@ import {
253
415
  TPositionRequestIdentifierStruct,
254
416
  TPositionRequestParamsStruct,
255
417
  TSinglePositionStruct,
256
- TPairConfigsInTriggersStruct
418
+ TPairConfigsInTriggersStruct,
419
+ ILynxVersionedContract,
420
+ IPendableAdmin,
421
+ IPendableImplementation
257
422
  } from 'lynx-client';
258
423
 
259
424
  // All contract structs are properly typed
@@ -261,6 +426,10 @@ const position = await tradingFloorLens.getCompletePositionData(tradingFloorAddr
261
426
  console.log(position.trader); // string
262
427
  console.log(position.collateral); // bigint
263
428
  console.log(position.leverage); // bigint
429
+
430
+ // Common interfaces ensure type safety
431
+ const service: { pendableAdmin: IPendableAdmin } = tradingFloor;
432
+ const admin = await service.pendableAdmin.admin(); // Type-safe access
264
433
  ```
265
434
 
266
435
  ## Error Handling
@@ -359,6 +528,27 @@ const ethUsd = TPairIds.ETH_USD;
359
528
  }
360
529
  ```
361
530
 
531
+ ## Migration Guide
532
+
533
+ ### From Previous Versions
534
+
535
+ If you're upgrading from an earlier version, note these changes to standardized accessors:
536
+
537
+ ```typescript
538
+ // Old pattern (mixed grouping)
539
+ const admin = await tradingFloor.administration.admin();
540
+ const version = await tradingFloor.contractInfo.getContractVersion();
541
+
542
+ // New pattern (standardized accessors)
543
+ const admin = await tradingFloor.pendableAdmin.admin();
544
+ const version = await tradingFloor.lynxVersionedContract.getContractVersion();
545
+ ```
546
+
547
+ Key changes:
548
+ - `administration` → Split into `pendableAdmin` and `contractReferences`
549
+ - `contractInfo` → Split into `lynxVersionedContract` and `contractReferences`
550
+ - Consistent naming across all services
551
+
362
552
  ## Development
363
553
 
364
554
  ### Building
package/dist/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
17
+ exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.OnBehalfTradingService = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
18
18
  __exportStar(require("./lib/chains/chainConstants"), exports);
19
19
  __exportStar(require("./lib/chains/chainTypes"), exports);
20
20
  __exportStar(require("./lib/utils/addresses"), exports);
@@ -47,6 +47,8 @@ var LiquidityIntentsVerifierService_1 = require("./lib/contractsIntegration/Liqu
47
47
  Object.defineProperty(exports, "LiquidityIntentsVerifierService", { enumerable: true, get: function () { return LiquidityIntentsVerifierService_1.LiquidityIntentsVerifierService; } });
48
48
  var TradeIntentsVerifierService_1 = require("./lib/contractsIntegration/TradeIntentsVerifierService");
49
49
  Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
50
+ var OnBehalfTradingService_1 = require("./lib/contractsIntegration/OnBehalfTradingService");
51
+ Object.defineProperty(exports, "OnBehalfTradingService", { enumerable: true, get: function () { return OnBehalfTradingService_1.OnBehalfTradingService; } });
50
52
  __exportStar(require("./lib/contractsIntegration/IntentsVerifierLensService"), exports);
51
53
  __exportStar(require("./lib/contractsIntegration/TriggersAndPortalLensService"), exports);
52
54
  __exportStar(require("./lib/contractsIntegration/TradingFloorLensService"), exports);
@@ -71,5 +73,7 @@ __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/Tradin
71
73
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory"), exports);
72
74
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory"), exports);
73
75
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
76
+ // Contract factory export for OnBehalfTrading
77
+ __exportStar(require("./lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory"), exports);
74
78
  // Developer Experience utilities
75
79
  __exportStar(require("./lib/devex"), exports);
@@ -196,6 +196,7 @@ class LexPoolV1Service {
196
196
  SELF_UNIT_SCALE: () => this.lexPoolContract.SELF_UNIT_SCALE(),
197
197
  PRECISION: () => this.lexPoolContract.PRECISION(),
198
198
  FRACTION_SCALE: () => this.lexPoolContract.FRACTION_SCALE(),
199
+ LEVERAGE_SCALE: () => this.lexPoolContract.LEVERAGE_SCALE(),
199
200
  };
200
201
  }
201
202
  createContractInfoGroup() {
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,255 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnBehalfTradingService = void 0;
4
+ const OnBehalfTradingV1__factory_1 = require("../../typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory");
5
+ // ============ Permission Queries Implementation ============
6
+ class PermissionQueries {
7
+ constructor(contract) {
8
+ this.contract = contract;
9
+ }
10
+ async isPermissionValid(owner, spender, token) {
11
+ return await this.contract.isPermissionValid(owner, spender, token);
12
+ }
13
+ async getRemainingAmount(owner, spender, token) {
14
+ return await this.contract.getRemainingAmount(owner, spender, token);
15
+ }
16
+ async getPermission(owner, spender, token) {
17
+ const permission = await this.contract.permissions(owner, spender, token);
18
+ return {
19
+ amountLimit: permission.amountLimit,
20
+ amountUsed: permission.amountUsed,
21
+ expiryTime: permission.expiryTime,
22
+ isActive: permission.isActive,
23
+ };
24
+ }
25
+ async permanentlyRevoked(owner, spender) {
26
+ return await this.contract.permanentlyRevoked(owner, spender);
27
+ }
28
+ async hasActivePermissions(owner) {
29
+ return await this.contract.hasActivePermissions(owner);
30
+ }
31
+ async getActivePermissionCount(owner) {
32
+ return await this.contract.getActivePermissionCount(owner);
33
+ }
34
+ async getActiveSpenders(owner) {
35
+ return await this.contract.getActiveSpenders(owner);
36
+ }
37
+ async getActiveTokensForSpender(owner, spender) {
38
+ return await this.contract.getActiveTokensForSpender(owner, spender);
39
+ }
40
+ async getAllActivePermissions(owner) {
41
+ const result = await this.contract.getAllActivePermissions(owner);
42
+ return {
43
+ spenders: result.spenders,
44
+ tokens: result.tokens,
45
+ permissionData: result.permissionData.map((p) => ({
46
+ amountLimit: p.amountLimit,
47
+ amountUsed: p.amountUsed,
48
+ expiryTime: p.expiryTime,
49
+ isActive: p.isActive,
50
+ })),
51
+ };
52
+ }
53
+ async requirePermission(owner, spender, token) {
54
+ await this.contract.requirePermission(owner, spender, token);
55
+ }
56
+ }
57
+ // ============ Permission Management Implementation ============
58
+ class PermissionManagement {
59
+ constructor(contract, isSigner) {
60
+ this.contract = contract;
61
+ this.isSigner = isSigner;
62
+ }
63
+ async grantPermission(spender, token, amountLimit, duration) {
64
+ if (!this.isSigner) {
65
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
66
+ }
67
+ const tx = await this.contract.grantPermission(spender, token, amountLimit, duration);
68
+ await tx.wait();
69
+ }
70
+ async revokePermission(spender, token) {
71
+ if (!this.isSigner) {
72
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
73
+ }
74
+ const tx = await this.contract.revokePermission(spender, token);
75
+ await tx.wait();
76
+ }
77
+ async revokeAllPermissions(spender) {
78
+ if (!this.isSigner) {
79
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
80
+ }
81
+ const tx = await this.contract.revokeAllPermissions(spender);
82
+ await tx.wait();
83
+ }
84
+ async chargePermission(owner, spender, token, amount) {
85
+ if (!this.isSigner) {
86
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
87
+ }
88
+ const tx = await this.contract.chargePermission(owner, spender, token, amount);
89
+ await tx.wait();
90
+ }
91
+ async setPermissions(payloads) {
92
+ if (!this.isSigner) {
93
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
94
+ }
95
+ const tx = await this.contract.setPermissions(payloads);
96
+ await tx.wait();
97
+ }
98
+ }
99
+ // ============ Configuration Implementation ============
100
+ class Configuration {
101
+ constructor(contract) {
102
+ this.contract = contract;
103
+ }
104
+ async isPaused() {
105
+ return await this.contract.isPaused();
106
+ }
107
+ async maxPermissionDuration() {
108
+ return await this.contract.maxPermissionDuration();
109
+ }
110
+ async maxPermissionAmountPerToken(token) {
111
+ return await this.contract.maxPermissionAmountPerToken(token);
112
+ }
113
+ async getContractConfiguration(tokensToQuery) {
114
+ const config = await this.contract.getContractConfiguration(tokensToQuery);
115
+ return {
116
+ isPausedState: config.isPausedState,
117
+ maxDuration: config.maxDuration,
118
+ tokenMaxAmounts: config.tokenMaxAmounts,
119
+ registryAddress: config.registryAddress,
120
+ tradersPortalAddress: config.tradersPortalAddress,
121
+ };
122
+ }
123
+ }
124
+ // ============ Admin Functions Implementation ============
125
+ class AdminFunctions {
126
+ constructor(contract, isSigner) {
127
+ this.contract = contract;
128
+ this.isSigner = isSigner;
129
+ }
130
+ async setMaxPermissionDuration(maxDuration) {
131
+ if (!this.isSigner) {
132
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
133
+ }
134
+ const tx = await this.contract.setMaxPermissionDuration(maxDuration);
135
+ await tx.wait();
136
+ }
137
+ async setMaxPermissionAmountForToken(token, maxAmount) {
138
+ if (!this.isSigner) {
139
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
140
+ }
141
+ const tx = await this.contract.setMaxPermissionAmountForToken(token, maxAmount);
142
+ await tx.wait();
143
+ }
144
+ async setMaxPermissionAmountsForTokens(tokens, maxAmounts) {
145
+ if (!this.isSigner) {
146
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
147
+ }
148
+ const tx = await this.contract.setMaxPermissionAmountsForTokens(tokens, maxAmounts);
149
+ await tx.wait();
150
+ }
151
+ async togglePause() {
152
+ if (!this.isSigner) {
153
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
154
+ }
155
+ const tx = await this.contract.togglePause();
156
+ await tx.wait();
157
+ }
158
+ async setDynamicRoleCaller(caller, roleName) {
159
+ if (!this.isSigner) {
160
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
161
+ }
162
+ const tx = await this.contract.setDynamicRoleCaller(caller, roleName);
163
+ await tx.wait();
164
+ }
165
+ async setDynamicRoleCallers(callers, roleNames) {
166
+ if (!this.isSigner) {
167
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
168
+ }
169
+ const tx = await this.contract.setDynamicRoleCallers(callers, roleNames);
170
+ await tx.wait();
171
+ }
172
+ async setPendingAdmin(newPendingAdmin) {
173
+ if (!this.isSigner) {
174
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
175
+ }
176
+ const tx = await this.contract._setPendingAdmin(newPendingAdmin);
177
+ await tx.wait();
178
+ }
179
+ async acceptAdmin() {
180
+ if (!this.isSigner) {
181
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
182
+ }
183
+ const tx = await this.contract._acceptAdmin();
184
+ await tx.wait();
185
+ }
186
+ }
187
+ // ============ Contract References Implementation ============
188
+ class ContractReferences {
189
+ constructor(contract) {
190
+ this.contract = contract;
191
+ }
192
+ async registry() {
193
+ return await this.contract.registry();
194
+ }
195
+ async dynamicRoleCallers(address) {
196
+ return await this.contract.dynamicRoleCallers(address);
197
+ }
198
+ }
199
+ // ============ Pendable Admin Implementation ============
200
+ class PendableAdmin {
201
+ constructor(contract) {
202
+ this.contract = contract;
203
+ }
204
+ async admin() {
205
+ return await this.contract.admin();
206
+ }
207
+ async pendingAdmin() {
208
+ return await this.contract.pendingAdmin();
209
+ }
210
+ }
211
+ // ============ Lynx Versioned Contract Implementation ============
212
+ class LynxVersionedContract {
213
+ constructor(contract) {
214
+ this.contract = contract;
215
+ }
216
+ async getContractName() {
217
+ return await this.contract.getContractName();
218
+ }
219
+ async getContractVersion() {
220
+ return await this.contract.getContractVersion();
221
+ }
222
+ async CONTRACT_NAME() {
223
+ return await this.contract.CONTRACT_NAME();
224
+ }
225
+ async CONTRACT_VERSION() {
226
+ return await this.contract.CONTRACT_VERSION();
227
+ }
228
+ }
229
+ // ============ Main Service Class ============
230
+ /**
231
+ * Service for interacting with the OnBehalfTrading contract
232
+ * Manages delegated trading permissions between users
233
+ */
234
+ class OnBehalfTradingService {
235
+ constructor(signerOrProvider, address) {
236
+ this.contract = OnBehalfTradingV1__factory_1.OnBehalfTradingV1__factory.connect(address, signerOrProvider);
237
+ this.isSigner = "sendTransaction" in signerOrProvider;
238
+ // Initialize all function groups using separate classes
239
+ this.permissionQueries = new PermissionQueries(this.contract);
240
+ this.permissionManagement = new PermissionManagement(this.contract, this.isSigner);
241
+ this.configuration = new Configuration(this.contract);
242
+ this.adminFunctions = new AdminFunctions(this.contract, this.isSigner);
243
+ this.contractReferences = new ContractReferences(this.contract);
244
+ this.pendableAdmin = new PendableAdmin(this.contract);
245
+ this.lynxVersionedContract = new LynxVersionedContract(this.contract);
246
+ }
247
+ /**
248
+ * Get the underlying contract instance
249
+ * Useful for accessing contract methods directly when needed
250
+ */
251
+ getContract() {
252
+ return this.contract;
253
+ }
254
+ }
255
+ exports.OnBehalfTradingService = OnBehalfTradingService;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnBehalfTradingService = void 0;
4
+ var OnBehalfTradingService_1 = require("./OnBehalfTradingService");
5
+ Object.defineProperty(exports, "OnBehalfTradingService", { enumerable: true, get: function () { return OnBehalfTradingService_1.OnBehalfTradingService; } });
@@ -28,7 +28,7 @@ class OrderManagement {
28
28
  return this.orderBookContract.updateOrderIdPositionInList(positionId);
29
29
  }
30
30
  }
31
- class ContractInfo {
31
+ class ContractReferences {
32
32
  constructor(orderBookContract) {
33
33
  this.orderBookContract = orderBookContract;
34
34
  }
@@ -38,12 +38,22 @@ class ContractInfo {
38
38
  async tradingFloor() {
39
39
  return this.orderBookContract.tradingFloor();
40
40
  }
41
+ }
42
+ class PendableAdmin {
43
+ constructor(orderBookContract) {
44
+ this.orderBookContract = orderBookContract;
45
+ }
41
46
  async admin() {
42
47
  return this.orderBookContract.admin();
43
48
  }
44
49
  async pendingAdmin() {
45
50
  return this.orderBookContract.pendingAdmin();
46
51
  }
52
+ }
53
+ class PendableImplementation {
54
+ constructor(orderBookContract) {
55
+ this.orderBookContract = orderBookContract;
56
+ }
47
57
  async implementation() {
48
58
  return this.orderBookContract.implementation();
49
59
  }
@@ -84,7 +94,9 @@ class OrderBookService {
84
94
  this.signerOrProvider = signerOrProvider;
85
95
  this.orderBookContract = OrderBookV1__factory_1.OrderBookV1__factory.connect(address, signerOrProvider);
86
96
  this.orderManagement = new OrderManagement(this.orderBookContract);
87
- this.contractInfo = new ContractInfo(this.orderBookContract);
97
+ this.contractReferences = new ContractReferences(this.orderBookContract);
98
+ this.pendableAdmin = new PendableAdmin(this.orderBookContract);
99
+ this.pendableImplementation = new PendableImplementation(this.orderBookContract);
88
100
  this.administration = new Administration(this.orderBookContract);
89
101
  this.constants = new Constants(this.orderBookContract);
90
102
  }
@@ -70,7 +70,7 @@ class PNLRFunctionsGroup_Configuration {
70
70
  return this.contract.priceValidatorType();
71
71
  }
72
72
  }
73
- class PNLRFunctionsGroup_ContractInfo {
73
+ class PNLRFunctionsGroup_PendableAdmin {
74
74
  constructor(contract) {
75
75
  this.contract = contract;
76
76
  }
@@ -80,12 +80,6 @@ class PNLRFunctionsGroup_ContractInfo {
80
80
  async pendingAdmin() {
81
81
  return this.contract.pendingAdmin();
82
82
  }
83
- async getContractName() {
84
- return this.contract.getContractName();
85
- }
86
- async getContractVersion() {
87
- return this.contract.getContractVersion();
88
- }
89
83
  }
90
84
  class PNLRFunctionsGroup_AdminManagement {
91
85
  constructor(contract) {
@@ -98,10 +92,16 @@ class PNLRFunctionsGroup_AdminManagement {
98
92
  return this.contract._acceptAdmin();
99
93
  }
100
94
  }
101
- class PNLRFunctionsGroup_Constants {
95
+ class PNLRFunctionsGroup_LynxVersionedContract {
102
96
  constructor(contract) {
103
97
  this.contract = contract;
104
98
  }
99
+ async getContractName() {
100
+ return this.contract.getContractName();
101
+ }
102
+ async getContractVersion() {
103
+ return this.contract.getContractVersion();
104
+ }
105
105
  async CONTRACT_NAME() {
106
106
  return this.contract.CONTRACT_NAME();
107
107
  }
@@ -117,8 +117,8 @@ class PNLRService {
117
117
  this.permissionManagement = new PNLRFunctionsGroup_PermissionManagement(this.pnlrContract);
118
118
  this.configuration = new PNLRFunctionsGroup_Configuration(this.pnlrContract);
119
119
  this.adminManagement = new PNLRFunctionsGroup_AdminManagement(this.pnlrContract);
120
- this.contractInfo = new PNLRFunctionsGroup_ContractInfo(this.pnlrContract);
121
- this.constants = new PNLRFunctionsGroup_Constants(this.pnlrContract);
120
+ this.pendableAdmin = new PNLRFunctionsGroup_PendableAdmin(this.pnlrContract);
121
+ this.lynxVersionedContract = new PNLRFunctionsGroup_LynxVersionedContract(this.pnlrContract);
122
122
  }
123
123
  }
124
124
  exports.PNLRService = PNLRService;