lynx-client 0.0.13 → 0.0.14

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 (157) hide show
  1. package/dist/cjs/index.js +10 -1
  2. package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
  3. package/dist/cjs/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
  4. package/dist/cjs/lib/contractsIntegration/EngineChipService/index.js +5 -0
  5. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
  6. package/dist/cjs/lib/contractsIntegration/OrderBookService/index.js +5 -0
  7. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
  8. package/dist/cjs/lib/contractsIntegration/TriggersService/index.js +5 -0
  9. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
  10. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
  11. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
  12. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +34 -0
  13. package/dist/cjs/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
  14. package/dist/cjs/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
  15. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
  16. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  17. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  18. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +195 -1
  19. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  20. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
  23. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
  24. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  25. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  26. package/dist/esm/index.d.ts +10 -0
  27. package/dist/esm/index.d.ts.map +1 -1
  28. package/dist/esm/index.js +10 -1
  29. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
  30. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
  31. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
  32. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
  33. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
  34. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
  35. package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
  36. package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
  37. package/dist/esm/lib/contractsIntegration/EngineChipService/index.js +5 -0
  38. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
  39. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  40. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  41. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
  42. package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
  43. package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
  44. package/dist/esm/lib/contractsIntegration/OrderBookService/index.js +5 -0
  45. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
  46. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  47. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  48. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
  49. package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
  50. package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
  51. package/dist/esm/lib/contractsIntegration/TriggersService/index.js +5 -0
  52. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
  53. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
  54. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
  55. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
  56. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
  57. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
  58. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
  59. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
  60. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
  61. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
  62. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  63. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +34 -0
  64. package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
  65. package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
  66. package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
  67. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
  68. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
  69. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
  70. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  71. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
  72. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  73. package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
  74. package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
  75. package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
  76. package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
  77. package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
  78. package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
  79. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  80. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  81. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  82. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  83. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -1
  84. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
  85. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +195 -1
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  88. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
  89. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  90. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
  91. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  92. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  93. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  94. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
  95. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  96. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
  97. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
  98. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
  99. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
  100. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  101. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  102. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  103. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  104. package/dist/types/index.d.ts +10 -0
  105. package/dist/types/index.d.ts.map +1 -1
  106. package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
  107. package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
  109. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
  110. package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
  111. package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
  112. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
  113. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  114. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  115. package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
  116. package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
  117. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
  118. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  119. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  120. package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
  121. package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
  122. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
  123. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
  124. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
  125. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
  126. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
  127. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
  128. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
  129. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  130. package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
  131. package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
  132. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
  133. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
  134. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
  135. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  136. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
  137. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  138. package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
  139. package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
  140. package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
  141. package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
  142. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  143. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  144. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -1
  145. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
  146. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  147. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
  148. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  149. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  150. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  151. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
  152. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  153. package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
  154. package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
  155. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  156. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  157. package/package.json +1 -1
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.PoolAccountantV1Service = exports.PNLRService = exports.AcceptableImplementationClaimableAdminService = exports.LexPoolV1Service = exports.OnBehalfTradingService = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
17
+ exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.PoolAccountantV1Service = exports.PNLRService = exports.AcceptableImplementationClaimableAdminService = exports.LexPoolV1Service = exports.WrappedNativeEngineChipHelperService = exports.EngineChipService = 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);
@@ -41,6 +41,8 @@ __exportStar(require("./lib/addresses/systemAddresses"), exports);
41
41
  __exportStar(require("./lib/contractsIntegration/deployedContractsConnector"), exports);
42
42
  __exportStar(require("./lib/contractsIntegration/TradersPortalService"), exports);
43
43
  __exportStar(require("./lib/contractsIntegration/TradingFloorService"), exports);
44
+ __exportStar(require("./lib/contractsIntegration/TriggersService"), exports);
45
+ __exportStar(require("./lib/contractsIntegration/OrderBookService"), exports);
44
46
  var ChipsIntentsVerifierService_1 = require("./lib/contractsIntegration/ChipsIntentsVerifierService");
45
47
  Object.defineProperty(exports, "ChipsIntentsVerifierService", { enumerable: true, get: function () { return ChipsIntentsVerifierService_1.ChipsIntentsVerifierService; } });
46
48
  var LiquidityIntentsVerifierService_1 = require("./lib/contractsIntegration/LiquidityIntentsVerifierService");
@@ -49,6 +51,10 @@ var TradeIntentsVerifierService_1 = require("./lib/contractsIntegration/TradeInt
49
51
  Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
50
52
  var OnBehalfTradingService_1 = require("./lib/contractsIntegration/OnBehalfTradingService");
51
53
  Object.defineProperty(exports, "OnBehalfTradingService", { enumerable: true, get: function () { return OnBehalfTradingService_1.OnBehalfTradingService; } });
54
+ var EngineChipService_1 = require("./lib/contractsIntegration/EngineChipService");
55
+ Object.defineProperty(exports, "EngineChipService", { enumerable: true, get: function () { return EngineChipService_1.EngineChipService; } });
56
+ var WrappedNativeEngineChipHelperService_1 = require("./lib/contractsIntegration/WrappedNativeEngineChipHelperService");
57
+ Object.defineProperty(exports, "WrappedNativeEngineChipHelperService", { enumerable: true, get: function () { return WrappedNativeEngineChipHelperService_1.WrappedNativeEngineChipHelperService; } });
52
58
  var LexPoolV1Service_1 = require("./lib/contractsIntegration/LexPoolV1Service");
53
59
  Object.defineProperty(exports, "LexPoolV1Service", { enumerable: true, get: function () { return LexPoolV1Service_1.LexPoolV1Service; } });
54
60
  var AcceptableImplementationClaimableAdminService_1 = require("./lib/contractsIntegration/AcceptableImplementationClaimableAdminService");
@@ -83,5 +89,8 @@ __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/L
83
89
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
84
90
  // Contract factory export for OnBehalfTrading
85
91
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory"), exports);
92
+ // Contract factory exports for Chips
93
+ __exportStar(require("./lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory"), exports);
94
+ __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory"), exports);
86
95
  // Developer Experience utilities
87
96
  __exportStar(require("./lib/devex"), exports);
@@ -0,0 +1,289 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EngineChipService = void 0;
4
+ const EngineChip__factory_1 = require("../../typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory");
5
+ // ============ ERC20 Operations Implementation ============
6
+ class ERC20Operations {
7
+ constructor(contract, isSigner) {
8
+ this.contract = contract;
9
+ this.isSigner = isSigner;
10
+ }
11
+ async name() {
12
+ return await this.contract.name();
13
+ }
14
+ async symbol() {
15
+ return await this.contract.symbol();
16
+ }
17
+ async decimals() {
18
+ return await this.contract.decimals();
19
+ }
20
+ async totalSupply() {
21
+ return await this.contract.totalSupply();
22
+ }
23
+ async balanceOf(account) {
24
+ return await this.contract.balanceOf(account);
25
+ }
26
+ async allowance(owner, spender) {
27
+ return await this.contract.allowance(owner, spender);
28
+ }
29
+ async approve(spender, value) {
30
+ if (!this.isSigner) {
31
+ throw new Error("EngineChipService: Write operations require a signer");
32
+ }
33
+ return await this.contract.approve(spender, value);
34
+ }
35
+ async transfer(to, value) {
36
+ if (!this.isSigner) {
37
+ throw new Error("EngineChipService: Write operations require a signer");
38
+ }
39
+ return await this.contract.transfer(to, value);
40
+ }
41
+ async transferFrom(from, to, value) {
42
+ if (!this.isSigner) {
43
+ throw new Error("EngineChipService: Write operations require a signer");
44
+ }
45
+ return await this.contract.transferFrom(from, to, value);
46
+ }
47
+ }
48
+ // ============ Minting Operations Implementation ============
49
+ class MintingOperations {
50
+ constructor(contract, isSigner) {
51
+ this.contract = contract;
52
+ this.isSigner = isSigner;
53
+ }
54
+ async mintChip(toAddress, amount) {
55
+ if (!this.isSigner) {
56
+ throw new Error("EngineChipService: Write operations require a signer");
57
+ }
58
+ return await this.contract.mintChip(toAddress, amount);
59
+ }
60
+ async isMintingPaused() {
61
+ return await this.contract.isMintingPaused();
62
+ }
63
+ async setIsMintingPaused(value) {
64
+ if (!this.isSigner) {
65
+ throw new Error("EngineChipService: Write operations require a signer");
66
+ }
67
+ return await this.contract.setIsMintingPaused(value);
68
+ }
69
+ async setMintController(mintController) {
70
+ if (!this.isSigner) {
71
+ throw new Error("EngineChipService: Write operations require a signer");
72
+ }
73
+ return await this.contract.setMintController(mintController);
74
+ }
75
+ async mintController() {
76
+ return await this.contract.mintController();
77
+ }
78
+ }
79
+ // ============ Burning Operations Implementation ============
80
+ class BurningOperations {
81
+ constructor(contract, isSigner) {
82
+ this.contract = contract;
83
+ this.isSigner = isSigner;
84
+ }
85
+ async burnChip(receiver, amount) {
86
+ if (!this.isSigner) {
87
+ throw new Error("EngineChipService: Write operations require a signer");
88
+ }
89
+ return await this.contract.burnChip(receiver, amount);
90
+ }
91
+ async burnChipAndCall(amount, payload) {
92
+ if (!this.isSigner) {
93
+ throw new Error("EngineChipService: Write operations require a signer");
94
+ }
95
+ return await this.contract.burnChipAndCall(amount, payload);
96
+ }
97
+ async setBurnController(burnController) {
98
+ if (!this.isSigner) {
99
+ throw new Error("EngineChipService: Write operations require a signer");
100
+ }
101
+ return await this.contract.setBurnController(burnController);
102
+ }
103
+ async setBurnHandler(handler) {
104
+ if (!this.isSigner) {
105
+ throw new Error("EngineChipService: Write operations require a signer");
106
+ }
107
+ return await this.contract.setBurnHandler(handler);
108
+ }
109
+ async burnController() {
110
+ return await this.contract.burnController();
111
+ }
112
+ async burnHandler() {
113
+ return await this.contract.burnHandler();
114
+ }
115
+ }
116
+ // ============ Admin Functions Implementation ============
117
+ class AdminFunctions {
118
+ constructor(contract, isSigner) {
119
+ this.contract = contract;
120
+ this.isSigner = isSigner;
121
+ }
122
+ async setPendingAdmin(newPendingAdmin) {
123
+ if (!this.isSigner) {
124
+ throw new Error("EngineChipService: Write operations require a signer");
125
+ }
126
+ return await this.contract._setPendingAdmin(newPendingAdmin);
127
+ }
128
+ async acceptAdmin() {
129
+ if (!this.isSigner) {
130
+ throw new Error("EngineChipService: Write operations require a signer");
131
+ }
132
+ return await this.contract._acceptAdmin();
133
+ }
134
+ async sweepTokens(token, amount) {
135
+ if (!this.isSigner) {
136
+ throw new Error("EngineChipService: Write operations require a signer");
137
+ }
138
+ return await this.contract.sweepTokens(token, amount);
139
+ }
140
+ async sweepNative(amount) {
141
+ if (!this.isSigner) {
142
+ throw new Error("EngineChipService: Write operations require a signer");
143
+ }
144
+ return await this.contract.sweepNative(amount);
145
+ }
146
+ }
147
+ // ============ Auto Approval Management Implementation ============
148
+ class AutoApprovalManagement {
149
+ constructor(contract, isSigner) {
150
+ this.contract = contract;
151
+ this.isSigner = isSigner;
152
+ }
153
+ async setAutoApprovedSpenderForRole(role, spender) {
154
+ if (!this.isSigner) {
155
+ throw new Error("EngineChipService: Write operations require a signer");
156
+ }
157
+ return await this.contract.setAutoApprovedSpenderForRole(role, spender);
158
+ }
159
+ async getAutoApprovedSpenderAddressByRole(role) {
160
+ return await this.contract.getAutoApprovedSpenderAddressByRole(role);
161
+ }
162
+ async autoApproved(address) {
163
+ return await this.contract.autoApproved(address);
164
+ }
165
+ async autoApprovedSpendersByRoles(roleHash) {
166
+ return await this.contract.autoApprovedSpendersByRoles(roleHash);
167
+ }
168
+ }
169
+ // ============ View Functions Implementation ============
170
+ class ViewFunctions {
171
+ constructor(contract) {
172
+ this.contract = contract;
173
+ }
174
+ async exchangeRate() {
175
+ return await this.contract.exchangeRate();
176
+ }
177
+ async underlyingToken() {
178
+ return await this.contract.underlyingToken();
179
+ }
180
+ async chipMode() {
181
+ return await this.contract.chipMode();
182
+ }
183
+ async registry() {
184
+ return await this.contract.registry();
185
+ }
186
+ async SELF_UNIT_SCALE() {
187
+ return await this.contract.SELF_UNIT_SCALE();
188
+ }
189
+ async getChipConfiguration() {
190
+ const [name, symbol, decimals, totalSupply, underlyingToken, exchangeRate, chipMode, selfUnitScale,] = await Promise.all([
191
+ this.contract.name(),
192
+ this.contract.symbol(),
193
+ this.contract.decimals(),
194
+ this.contract.totalSupply(),
195
+ this.contract.underlyingToken(),
196
+ this.contract.exchangeRate(),
197
+ this.contract.chipMode(),
198
+ this.contract.SELF_UNIT_SCALE(),
199
+ ]);
200
+ return {
201
+ name,
202
+ symbol,
203
+ decimals,
204
+ totalSupply,
205
+ underlyingToken,
206
+ exchangeRate,
207
+ chipMode,
208
+ selfUnitScale,
209
+ };
210
+ }
211
+ async getChipControllers() {
212
+ const [mintController, burnController, burnHandler] = await Promise.all([
213
+ this.contract.mintController(),
214
+ this.contract.burnController(),
215
+ this.contract.burnHandler(),
216
+ ]);
217
+ return {
218
+ mintController,
219
+ burnController,
220
+ burnHandler,
221
+ };
222
+ }
223
+ async getChipMintingState() {
224
+ const isMintingPaused = await this.contract.isMintingPaused();
225
+ return {
226
+ isMintingPaused,
227
+ };
228
+ }
229
+ }
230
+ // ============ Pendable Admin Implementation ============
231
+ class PendableAdmin {
232
+ constructor(contract) {
233
+ this.contract = contract;
234
+ }
235
+ async admin() {
236
+ return await this.contract.admin();
237
+ }
238
+ async pendingAdmin() {
239
+ return await this.contract.pendingAdmin();
240
+ }
241
+ }
242
+ // ============ Lynx Versioned Contract Implementation ============
243
+ class LynxVersionedContract {
244
+ constructor(contract) {
245
+ this.contract = contract;
246
+ }
247
+ async getContractName() {
248
+ // EngineChip may not have versioning methods, return the contract name
249
+ return "EngineChip";
250
+ }
251
+ async getContractVersion() {
252
+ // EngineChip may not have versioning methods, return a default version
253
+ return "1.0.0";
254
+ }
255
+ async CONTRACT_NAME() {
256
+ return "EngineChip";
257
+ }
258
+ async CONTRACT_VERSION() {
259
+ return "1.0.0";
260
+ }
261
+ }
262
+ // ============ Main Service Class ============
263
+ /**
264
+ * Service for interacting with the EngineChip contract
265
+ * Manages ERC20 chip token operations including minting, burning, and administration
266
+ */
267
+ class EngineChipService {
268
+ constructor(signerOrProvider, address) {
269
+ this.contract = EngineChip__factory_1.EngineChip__factory.connect(address, signerOrProvider);
270
+ this.isSigner = "sendTransaction" in signerOrProvider;
271
+ // Initialize all function groups using separate classes
272
+ this.erc20Operations = new ERC20Operations(this.contract, this.isSigner);
273
+ this.mintingOperations = new MintingOperations(this.contract, this.isSigner);
274
+ this.burningOperations = new BurningOperations(this.contract, this.isSigner);
275
+ this.adminFunctions = new AdminFunctions(this.contract, this.isSigner);
276
+ this.autoApprovalManagement = new AutoApprovalManagement(this.contract, this.isSigner);
277
+ this.viewFunctions = new ViewFunctions(this.contract);
278
+ this.pendableAdmin = new PendableAdmin(this.contract);
279
+ this.lynxVersionedContract = new LynxVersionedContract(this.contract);
280
+ }
281
+ /**
282
+ * Get the underlying contract instance
283
+ * Useful for accessing contract methods directly when needed
284
+ */
285
+ getContract() {
286
+ return this.contract;
287
+ }
288
+ }
289
+ exports.EngineChipService = EngineChipService;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EngineChipService = void 0;
4
+ var EngineChipService_1 = require("./EngineChipService");
5
+ Object.defineProperty(exports, "EngineChipService", { enumerable: true, get: function () { return EngineChipService_1.EngineChipService; } });
@@ -92,8 +92,7 @@ class PermissionManagement {
92
92
  if (!this.isSigner) {
93
93
  throw new Error("OnBehalfTradingService: Write operations require a signer");
94
94
  }
95
- const tx = await this.contract.setPermissions(payloads);
96
- await tx.wait();
95
+ return await this.contract.setPermissions(payloads);
97
96
  }
98
97
  }
99
98
  // ============ Configuration Implementation ============
@@ -169,6 +168,30 @@ class AdminFunctions {
169
168
  const tx = await this.contract.setDynamicRoleCallers(callers, roleNames);
170
169
  await tx.wait();
171
170
  }
171
+ async adminRevokeSpecificPermission(owner, spender, token) {
172
+ if (!this.isSigner) {
173
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
174
+ }
175
+ return await this.contract.adminRevokeSpecificPermission(owner, spender, token);
176
+ }
177
+ async adminBatchRevokeSpecificPermissions(owners, spenders, tokens) {
178
+ if (!this.isSigner) {
179
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
180
+ }
181
+ return await this.contract.adminBatchRevokeSpecificPermissions(owners, spenders, tokens);
182
+ }
183
+ async adminRevokeAllPermissionsFromOwner(owner, spender) {
184
+ if (!this.isSigner) {
185
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
186
+ }
187
+ return await this.contract.adminRevokeAllPermissionsFromOwner(owner, spender);
188
+ }
189
+ async adminPermanentlyRevokeSpender(owner, spender) {
190
+ if (!this.isSigner) {
191
+ throw new Error("OnBehalfTradingService: Write operations require a signer");
192
+ }
193
+ return await this.contract.adminPermanentlyRevokeSpender(owner, spender);
194
+ }
172
195
  async setPendingAdmin(newPendingAdmin) {
173
196
  if (!this.isSigner) {
174
197
  throw new Error("OnBehalfTradingService: Write operations require a signer");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderBookService = void 0;
4
+ var OrderBookService_1 = require("./OrderBookService");
5
+ Object.defineProperty(exports, "OrderBookService", { enumerable: true, get: function () { return OrderBookService_1.OrderBookService; } });
@@ -131,6 +131,12 @@ class Settings {
131
131
  async actionFees(actionType) {
132
132
  return this.tradingContract.actionFees(actionType);
133
133
  }
134
+ async limitsMarginFraction() {
135
+ return this.tradingContract.limitsMarginFraction();
136
+ }
137
+ async setLimitsMarginFraction(limitsMarginFraction) {
138
+ return this.tradingContract.setLimitsMarginFraction(limitsMarginFraction);
139
+ }
134
140
  }
135
141
  class Constants {
136
142
  constructor(tradingContract) {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TriggersService = void 0;
4
+ var TriggersService_1 = require("./TriggersService");
5
+ Object.defineProperty(exports, "TriggersService", { enumerable: true, get: function () { return TriggersService_1.TriggersService; } });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WrappedNativeEngineChipHelperService = void 0;
4
+ const WrappedNativeEngineChipHelper__factory_1 = require("../../typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory");
5
+ // ============ Wrap And Mint Implementation ============
6
+ class WrapAndMint {
7
+ constructor(contract, isSigner) {
8
+ this.contract = contract;
9
+ this.isSigner = isSigner;
10
+ }
11
+ async wrapNativeAndMintEngineChip() {
12
+ if (!this.isSigner) {
13
+ throw new Error("WrappedNativeEngineChipHelperService: Write operations require a signer");
14
+ }
15
+ return await this.contract.wrapNativeAndMintEngineChip();
16
+ }
17
+ }
18
+ // ============ Burn Handling Implementation ============
19
+ class BurnHandling {
20
+ constructor(contract, isSigner) {
21
+ this.contract = contract;
22
+ this.isSigner = isSigner;
23
+ }
24
+ async handleBurn(burner, arg1, underlyingAmount, arg3) {
25
+ if (!this.isSigner) {
26
+ throw new Error("WrappedNativeEngineChipHelperService: Write operations require a signer");
27
+ }
28
+ return await this.contract.handleBurn(burner, arg1, underlyingAmount, arg3);
29
+ }
30
+ }
31
+ // ============ View Functions Implementation ============
32
+ class ViewFunctions {
33
+ constructor(contract) {
34
+ this.contract = contract;
35
+ }
36
+ async wrappedNativeEngineChip() {
37
+ return await this.contract.wrappedNativeEngineChip();
38
+ }
39
+ async wrappedNativeToken() {
40
+ return await this.contract.wrappedNativeToken();
41
+ }
42
+ async wrappedNativeReturnsUint256() {
43
+ return await this.contract.wrappedNativeReturnsUint256();
44
+ }
45
+ }
46
+ // ============ Main Service Class ============
47
+ /**
48
+ * Service for interacting with the WrappedNativeEngineChipHelper contract
49
+ * Facilitates wrapping native tokens (like ETH) into wrapped native tokens (like WETH)
50
+ * and then minting the corresponding engine chips
51
+ */
52
+ class WrappedNativeEngineChipHelperService {
53
+ constructor(signerOrProvider, address) {
54
+ this.contract = WrappedNativeEngineChipHelper__factory_1.WrappedNativeEngineChipHelper__factory.connect(address, signerOrProvider);
55
+ this.isSigner = "sendTransaction" in signerOrProvider;
56
+ // Initialize all function groups using separate classes
57
+ this.wrapAndMint = new WrapAndMint(this.contract, this.isSigner);
58
+ this.burnHandling = new BurnHandling(this.contract, this.isSigner);
59
+ this.viewFunctions = new ViewFunctions(this.contract);
60
+ }
61
+ /**
62
+ * Get the underlying contract instance
63
+ * Useful for accessing contract methods directly when needed
64
+ */
65
+ getContract() {
66
+ return this.contract;
67
+ }
68
+ }
69
+ exports.WrappedNativeEngineChipHelperService = WrappedNativeEngineChipHelperService;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WrappedNativeEngineChipHelperService = void 0;
4
+ var WrappedNativeEngineChipHelperService_1 = require("./WrappedNativeEngineChipHelperService");
5
+ Object.defineProperty(exports, "WrappedNativeEngineChipHelperService", { enumerable: true, get: function () { return WrappedNativeEngineChipHelperService_1.WrappedNativeEngineChipHelperService; } });
@@ -33,6 +33,12 @@ exports.createChipsIntentsVerifierService = createChipsIntentsVerifierService;
33
33
  exports.createLiquidityIntentsVerifierService = createLiquidityIntentsVerifierService;
34
34
  exports.createTradeIntentsVerifierService = createTradeIntentsVerifierService;
35
35
  exports.createOnBehalfTradingService = createOnBehalfTradingService;
36
+ exports.connectToEngineChipForSigner = connectToEngineChipForSigner;
37
+ exports.connectToEngineChip = connectToEngineChip;
38
+ exports.createEngineChipService = createEngineChipService;
39
+ exports.connectToWrappedNativeEngineChipHelperForSigner = connectToWrappedNativeEngineChipHelperForSigner;
40
+ exports.connectToWrappedNativeEngineChipHelper = connectToWrappedNativeEngineChipHelper;
41
+ exports.createWrappedNativeEngineChipHelperService = createWrappedNativeEngineChipHelperService;
36
42
  const TradingFloorLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
37
43
  const LexLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
38
44
  const RegistryProxy__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory");
@@ -55,6 +61,10 @@ const LiquidityIntentsVerifierService_1 = require("./LiquidityIntentsVerifierSer
55
61
  const TradeIntentsVerifierService_1 = require("./TradeIntentsVerifierService");
56
62
  const OnBehalfTradingV1__factory_1 = require("../typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory");
57
63
  const OnBehalfTradingService_1 = require("./OnBehalfTradingService");
64
+ const EngineChip__factory_1 = require("../typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory");
65
+ const EngineChipService_1 = require("./EngineChipService");
66
+ const WrappedNativeEngineChipHelper__factory_1 = require("../typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory");
67
+ const WrappedNativeEngineChipHelperService_1 = require("./WrappedNativeEngineChipHelperService");
58
68
  //
59
69
  // ***** Registry & Proxy *****
60
70
  //
@@ -193,3 +203,27 @@ function createTradeIntentsVerifierService(signerOrProvider, address) {
193
203
  function createOnBehalfTradingService(signerOrProvider, address) {
194
204
  return new OnBehalfTradingService_1.OnBehalfTradingService(signerOrProvider, address);
195
205
  }
206
+ //
207
+ // ***** EngineChip *****
208
+ //
209
+ function connectToEngineChipForSigner(signer, address) {
210
+ return EngineChip__factory_1.EngineChip__factory.connect(address, signer);
211
+ }
212
+ function connectToEngineChip(provider, address) {
213
+ return EngineChip__factory_1.EngineChip__factory.connect(address, provider);
214
+ }
215
+ function createEngineChipService(signerOrProvider, address) {
216
+ return new EngineChipService_1.EngineChipService(signerOrProvider, address);
217
+ }
218
+ //
219
+ // ***** WrappedNativeEngineChipHelper *****
220
+ //
221
+ function connectToWrappedNativeEngineChipHelperForSigner(signer, address) {
222
+ return WrappedNativeEngineChipHelper__factory_1.WrappedNativeEngineChipHelper__factory.connect(address, signer);
223
+ }
224
+ function connectToWrappedNativeEngineChipHelper(provider, address) {
225
+ return WrappedNativeEngineChipHelper__factory_1.WrappedNativeEngineChipHelper__factory.connect(address, provider);
226
+ }
227
+ function createWrappedNativeEngineChipHelperService(signerOrProvider, address) {
228
+ return new WrappedNativeEngineChipHelperService_1.WrappedNativeEngineChipHelperService(signerOrProvider, address);
229
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });