lynx-client 0.0.3 → 0.0.5

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 (131) hide show
  1. package/dist/cjs/index.js +19 -0
  2. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +91 -0
  3. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.js +2 -0
  4. package/dist/cjs/lib/contractsIntegration/ChipsIntentsVerifierService/index.js +5 -0
  5. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.js +2 -0
  6. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +70 -0
  7. package/dist/cjs/lib/contractsIntegration/LiquidityIntentsVerifierService/index.js +5 -0
  8. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.js +2 -0
  9. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +99 -0
  10. package/dist/cjs/lib/contractsIntegration/TradeIntentsVerifierService/index.js +5 -0
  11. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +45 -0
  12. package/dist/cjs/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.js +2 -0
  13. package/dist/cjs/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.js +2 -0
  14. package/dist/cjs/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.js +2 -0
  15. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1129 -0
  16. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +870 -0
  17. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1561 -0
  18. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  19. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  20. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  21. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  22. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  23. package/dist/esm/index.d.ts +23 -0
  24. package/dist/esm/index.d.ts.map +1 -1
  25. package/dist/esm/index.js +19 -0
  26. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +29 -0
  27. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -0
  28. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +91 -0
  29. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +24 -0
  30. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -0
  31. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.js +2 -0
  32. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts +4 -0
  33. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts.map +1 -0
  34. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.js +5 -0
  35. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +17 -0
  36. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -0
  37. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.js +2 -0
  38. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +22 -0
  39. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -0
  40. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +70 -0
  41. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts +4 -0
  42. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts.map +1 -0
  43. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.js +5 -0
  44. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +24 -0
  45. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -0
  46. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.js +2 -0
  47. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +29 -0
  48. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -0
  49. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +99 -0
  50. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts +4 -0
  51. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts.map +1 -0
  52. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.js +5 -0
  53. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +15 -0
  54. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  55. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +45 -0
  56. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts +643 -0
  57. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts.map +1 -0
  58. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.js +2 -0
  59. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts +508 -0
  60. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts.map +1 -0
  61. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.js +2 -0
  62. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts +832 -0
  63. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts.map +1 -0
  64. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.js +2 -0
  65. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +866 -0
  66. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts.map +1 -0
  67. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1129 -0
  68. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +670 -0
  69. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts.map +1 -0
  70. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +870 -0
  71. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1201 -0
  72. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts.map +1 -0
  73. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1561 -0
  74. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  75. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  76. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  77. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  78. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  79. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  80. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  81. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  82. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  83. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  84. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  85. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  86. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  87. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  88. package/dist/types/index.d.ts +23 -0
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +29 -0
  91. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -0
  92. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +24 -0
  93. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -0
  94. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts +4 -0
  95. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts.map +1 -0
  96. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +17 -0
  97. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -0
  98. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +22 -0
  99. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -0
  100. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts +4 -0
  101. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts.map +1 -0
  102. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +24 -0
  103. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -0
  104. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +29 -0
  105. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -0
  106. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts +4 -0
  107. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +15 -0
  109. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  110. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts +643 -0
  111. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts.map +1 -0
  112. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts +508 -0
  113. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts.map +1 -0
  114. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts +832 -0
  115. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts.map +1 -0
  116. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +866 -0
  117. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts.map +1 -0
  118. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +670 -0
  119. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts.map +1 -0
  120. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1201 -0
  121. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts.map +1 -0
  122. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  123. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  124. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  125. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  126. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  127. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  128. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  129. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  130. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  131. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -14,6 +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
18
  __exportStar(require("./lib/chains/chainConstants"), exports);
18
19
  __exportStar(require("./lib/chains/chainTypes"), exports);
19
20
  __exportStar(require("./lib/utils/addresses"), exports);
@@ -40,6 +41,12 @@ __exportStar(require("./lib/addresses/systemAddresses"), exports);
40
41
  __exportStar(require("./lib/contractsIntegration/deployedContractsConnector"), exports);
41
42
  __exportStar(require("./lib/contractsIntegration/TradersPortalService"), exports);
42
43
  __exportStar(require("./lib/contractsIntegration/TradingFloorService"), exports);
44
+ var ChipsIntentsVerifierService_1 = require("./lib/contractsIntegration/ChipsIntentsVerifierService");
45
+ Object.defineProperty(exports, "ChipsIntentsVerifierService", { enumerable: true, get: function () { return ChipsIntentsVerifierService_1.ChipsIntentsVerifierService; } });
46
+ var LiquidityIntentsVerifierService_1 = require("./lib/contractsIntegration/LiquidityIntentsVerifierService");
47
+ Object.defineProperty(exports, "LiquidityIntentsVerifierService", { enumerable: true, get: function () { return LiquidityIntentsVerifierService_1.LiquidityIntentsVerifierService; } });
48
+ var TradeIntentsVerifierService_1 = require("./lib/contractsIntegration/TradeIntentsVerifierService");
49
+ Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
43
50
  __exportStar(require("./lib/contractsIntegration/IntentsVerifierLensService"), exports);
44
51
  __exportStar(require("./lib/contractsIntegration/TriggersAndPortalLensService"), exports);
45
52
  __exportStar(require("./lib/contractsIntegration/TradingFloorLensService"), exports);
@@ -48,9 +55,21 @@ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierL
48
55
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
49
56
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
50
57
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
58
+ // Intents Verifier payload types for EIP-712 signature generation
59
+ var chipsIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes");
60
+ Object.defineProperty(exports, "chipsIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return chipsIntentsVerifierPayloadTypes_1.chipsIntentsVerifierPayloadTypes; } });
61
+ var liquidityIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes");
62
+ Object.defineProperty(exports, "liquidityIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return liquidityIntentsVerifierPayloadTypes_1.liquidityIntentsVerifierPayloadTypes; } });
63
+ var tradeIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes");
64
+ Object.defineProperty(exports, "tradeIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return tradeIntentsVerifierPayloadTypes_1.tradeIntentsVerifierPayloadTypes; } });
65
+ // Contract factory exports for Lens contracts
51
66
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
52
67
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
53
68
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
54
69
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
70
+ // Contract factory exports for Intents Verifiers
71
+ __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory"), exports);
72
+ __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory"), exports);
73
+ __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
55
74
  // Developer Experience utilities
56
75
  __exportStar(require("./lib/devex"), exports);
@@ -0,0 +1,29 @@
1
+ import { Provider, Signer } from "ethers";
2
+ import { ChipsIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
3
+ import { IChipsIntentsVerifierService } from "./IChipsIntentsVerifierService";
4
+ export declare class ChipsIntentsVerifierService implements IChipsIntentsVerifierService {
5
+ private readonly contract;
6
+ private readonly isSigner;
7
+ constructor(signerOrProvider: Signer | Provider, address: string);
8
+ domainSeparatorForAsset(chip: string): Promise<string>;
9
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
10
+ chipOutFeeForChip(chip: string): Promise<bigint>;
11
+ feesReceiver(): Promise<string>;
12
+ intentsPermissions(user: string): Promise<string>;
13
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
14
+ forceChipOut(chip: string, holder: string, amount: bigint, value?: bigint): Promise<void>;
15
+ interactOnBehalf_chipOut(chip: string, holder: string, amount: bigint, value?: bigint): Promise<void>;
16
+ verifyIntent_chipOut(payload: ChipsIntentsVerifierV1.HolderRequestPayload_ChipOutLZStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
17
+ verifyIntent_chipOutAndUnwrap(payload: ChipsIntentsVerifierV1.HolderRequestPayload_ChipOutLZ_UnwrapStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
18
+ getLZDstChainIdFromChip(chip: string): Promise<bigint>;
19
+ getLZDstChainIdFromEvmChainId(evmChainId: bigint): Promise<bigint>;
20
+ evmIdToLzEid(evmChainId: bigint): Promise<bigint>;
21
+ getWrapNativeChipInOutHelper(oftChip: string): Promise<string>;
22
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
23
+ processedSignatures(signature: string): Promise<boolean>;
24
+ admin(): Promise<string>;
25
+ pendingAdmin(): Promise<string>;
26
+ registry(): Promise<string>;
27
+ wrapNativeChipInOutHelpers(oftChip: string): Promise<string>;
28
+ }
29
+ //# sourceMappingURL=ChipsIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipsIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAA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AE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAcV,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAItD,6BAA6B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlE,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9D,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;IAIxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3B,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGnE"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChipsIntentsVerifierService = void 0;
4
+ const ChipsIntentsVerifierV1__factory_1 = require("../../typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory");
5
+ class ChipsIntentsVerifierService {
6
+ constructor(signerOrProvider, address) {
7
+ this.contract = ChipsIntentsVerifierV1__factory_1.ChipsIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
+ this.isSigner = 'sendTransaction' in signerOrProvider;
9
+ }
10
+ async domainSeparatorForAsset(chip) {
11
+ return await this.contract.domainSeparatorForAsset(chip);
12
+ }
13
+ async domainSeparatorForChain(chainId) {
14
+ return await this.contract.domainSeparatorForChain(chainId);
15
+ }
16
+ async chipOutFeeForChip(chip) {
17
+ return await this.contract.chipOutFeeForChip(chip);
18
+ }
19
+ async feesReceiver() {
20
+ return await this.contract.feesReceiver();
21
+ }
22
+ async intentsPermissions(user) {
23
+ return await this.contract.intentsPermissions(user);
24
+ }
25
+ async setIntentsPermissions(oftChip, dynAddressSuffix) {
26
+ if (!this.isSigner) {
27
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
28
+ }
29
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
30
+ await tx.wait();
31
+ }
32
+ async forceChipOut(chip, holder, amount, value) {
33
+ if (!this.isSigner) {
34
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
35
+ }
36
+ const tx = await this.contract.forceChipOut(chip, holder, amount, { value: value || 0n });
37
+ await tx.wait();
38
+ }
39
+ async interactOnBehalf_chipOut(chip, holder, amount, value) {
40
+ if (!this.isSigner) {
41
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
42
+ }
43
+ const tx = await this.contract.interactOnBehalf_chipOut(chip, holder, amount, { value: value || 0n });
44
+ await tx.wait();
45
+ }
46
+ async verifyIntent_chipOut(payload, v, r, s, value) {
47
+ if (!this.isSigner) {
48
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
49
+ }
50
+ const tx = await this.contract.verifyIntent_chipOut(payload, v, r, s, { value: value || 0n });
51
+ await tx.wait();
52
+ }
53
+ async verifyIntent_chipOutAndUnwrap(payload, v, r, s, value) {
54
+ if (!this.isSigner) {
55
+ throw new Error("ChipsIntentsVerifierService: Write operations require a signer");
56
+ }
57
+ const tx = await this.contract.verifyIntent_chipOutAndUnwrap(payload, v, r, s, { value: value || 0n });
58
+ await tx.wait();
59
+ }
60
+ async getLZDstChainIdFromChip(chip) {
61
+ return await this.contract.getLZDstChainIdFromChip(chip);
62
+ }
63
+ async getLZDstChainIdFromEvmChainId(evmChainId) {
64
+ return await this.contract.getLZDstChainIdFromEvmChainId(evmChainId);
65
+ }
66
+ async evmIdToLzEid(evmChainId) {
67
+ return await this.contract.evmIdToLzEid(evmChainId);
68
+ }
69
+ async getWrapNativeChipInOutHelper(oftChip) {
70
+ return await this.contract.getWrapNativeChipInOutHelper(oftChip);
71
+ }
72
+ async sourceChainIdForAsset(asset) {
73
+ return await this.contract.sourceChainIdForAsset(asset);
74
+ }
75
+ async processedSignatures(signature) {
76
+ return await this.contract.processedSignatures(signature);
77
+ }
78
+ async admin() {
79
+ return await this.contract.admin();
80
+ }
81
+ async pendingAdmin() {
82
+ return await this.contract.pendingAdmin();
83
+ }
84
+ async registry() {
85
+ return await this.contract.registry();
86
+ }
87
+ async wrapNativeChipInOutHelpers(oftChip) {
88
+ return await this.contract.wrapNativeChipInOutHelpers(oftChip);
89
+ }
90
+ }
91
+ exports.ChipsIntentsVerifierService = ChipsIntentsVerifierService;
@@ -0,0 +1,24 @@
1
+ import { ChipsIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
2
+ export interface IChipsIntentsVerifierService {
3
+ domainSeparatorForAsset(chip: string): Promise<string>;
4
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
5
+ chipOutFeeForChip(chip: string): Promise<bigint>;
6
+ feesReceiver(): Promise<string>;
7
+ intentsPermissions(user: string): Promise<string>;
8
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
9
+ forceChipOut(chip: string, holder: string, amount: bigint, value?: bigint): Promise<void>;
10
+ interactOnBehalf_chipOut(chip: string, holder: string, amount: bigint, value?: bigint): Promise<void>;
11
+ verifyIntent_chipOut(payload: ChipsIntentsVerifierV1.HolderRequestPayload_ChipOutLZStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
12
+ verifyIntent_chipOutAndUnwrap(payload: ChipsIntentsVerifierV1.HolderRequestPayload_ChipOutLZ_UnwrapStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
13
+ getLZDstChainIdFromChip(chip: string): Promise<bigint>;
14
+ getLZDstChainIdFromEvmChainId(evmChainId: bigint): Promise<bigint>;
15
+ evmIdToLzEid(evmChainId: bigint): Promise<bigint>;
16
+ getWrapNativeChipInOutHelper(oftChip: string): Promise<string>;
17
+ wrapNativeChipInOutHelpers(oftChip: string): Promise<string>;
18
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
19
+ processedSignatures(signature: string): Promise<boolean>;
20
+ admin(): Promise<string>;
21
+ pendingAdmin(): Promise<string>;
22
+ registry(): Promise<string>;
23
+ }
24
+ //# sourceMappingURL=IChipsIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IChipsIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAA;AAE9G,MAAM,WAAW,4BAA4B;IAE3C,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACtD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGzD,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChD,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAG/B,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAG/E,YAAY,CACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,wBAAwB,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK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ChipsIntentsVerifierService";
2
+ export type { IChipsIntentsVerifierService } from "./IChipsIntentsVerifierService";
3
+ export type { ChipsIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/ChipsIntentsVerifierService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,YAAY,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChipsIntentsVerifierService = void 0;
4
+ var ChipsIntentsVerifierService_1 = require("./ChipsIntentsVerifierService");
5
+ Object.defineProperty(exports, "ChipsIntentsVerifierService", { enumerable: true, get: function () { return ChipsIntentsVerifierService_1.ChipsIntentsVerifierService; } });
@@ -0,0 +1,17 @@
1
+ import { LiquidityIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
2
+ export interface ILiquidityIntentsVerifierService {
3
+ domainSeparatorForAsset(pool: string): Promise<string>;
4
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
5
+ intentsPermissions(user: string): Promise<string>;
6
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
7
+ interactOnBehalf_epochDeposit(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, domain: string, referralCode: string, value?: bigint): Promise<void>;
8
+ interactOnBehalf_epochRedeem(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, value?: bigint): Promise<void>;
9
+ verifyIntent_epochDeposit(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochDepositStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, value?: bigint): Promise<void>;
10
+ verifyIntent_epochRedeem(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochRedeemStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
11
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
12
+ processedSignatures(signature: string): Promise<boolean>;
13
+ admin(): Promise<string>;
14
+ pendingAdmin(): Promise<string>;
15
+ registry(): Promise<string>;
16
+ }
17
+ //# sourceMappingURL=ILiquidityIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILiquidityIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAA;AAEtH,MAAM,WAAW,gCAAgC;IAE/C,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACtD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAG/E,6BAA6B,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,4BAA4B,CAC1B,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,yBAAyB,CACvB,OAAO,EAAE,0BAA0B,CAAC,kDAAkD,EACtF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,wBAAwB,CACtB,OAAO,EAAE,0BAA0B,CAAC,iDAAiD,EACrF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAGxD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { Provider, Signer } from "ethers";
2
+ import { LiquidityIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
3
+ import { ILiquidityIntentsVerifierService } from "./ILiquidityIntentsVerifierService";
4
+ export declare class LiquidityIntentsVerifierService implements ILiquidityIntentsVerifierService {
5
+ private readonly contract;
6
+ private readonly isSigner;
7
+ constructor(signerOrProvider: Signer | Provider, address: string);
8
+ domainSeparatorForAsset(pool: string): Promise<string>;
9
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
10
+ intentsPermissions(user: string): Promise<string>;
11
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
12
+ interactOnBehalf_epochDeposit(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, domain: string, referralCode: string, value?: bigint): Promise<void>;
13
+ interactOnBehalf_epochRedeem(pool: string, liquidityProvider: string, amount: bigint, minAmountOut: bigint, value?: bigint): Promise<void>;
14
+ verifyIntent_epochDeposit(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochDepositStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, value?: bigint): Promise<void>;
15
+ verifyIntent_epochRedeem(payload: LiquidityIntentsVerifierV1.LiquidityProviderRequestPayload_EpochRedeemStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
16
+ admin(): Promise<string>;
17
+ pendingAdmin(): Promise<string>;
18
+ registry(): Promise<string>;
19
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
20
+ processedSignatures(signature: string): Promise<boolean>;
21
+ }
22
+ //# sourceMappingURL=LiquidityIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiquidityIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAA;AAEtH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAErF,qBAAa,+BAAgC,YAAW,gCAAgC;IACtF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4B;IACrD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAK1D,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,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AAO,CAAC,MAAM,CAAC;IAIrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAG/D"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiquidityIntentsVerifierService = void 0;
4
+ const LiquidityIntentsVerifierV1__factory_1 = require("../../typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory");
5
+ class LiquidityIntentsVerifierService {
6
+ constructor(signerOrProvider, address) {
7
+ this.contract = LiquidityIntentsVerifierV1__factory_1.LiquidityIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
+ this.isSigner = 'sendTransaction' in signerOrProvider;
9
+ }
10
+ async domainSeparatorForAsset(pool) {
11
+ return await this.contract.domainSeparatorForAsset(pool);
12
+ }
13
+ async domainSeparatorForChain(chainId) {
14
+ return await this.contract.domainSeparatorForChain(chainId);
15
+ }
16
+ async intentsPermissions(user) {
17
+ return await this.contract.intentsPermissions(user);
18
+ }
19
+ async setIntentsPermissions(oftChip, dynAddressSuffix) {
20
+ if (!this.isSigner) {
21
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
22
+ }
23
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
24
+ await tx.wait();
25
+ }
26
+ async interactOnBehalf_epochDeposit(pool, liquidityProvider, amount, minAmountOut, domain, referralCode, value) {
27
+ if (!this.isSigner) {
28
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
29
+ }
30
+ const tx = await this.contract.interactOnBehalf_epochDeposit(pool, liquidityProvider, amount, minAmountOut, domain, referralCode, { value: value || 0n });
31
+ await tx.wait();
32
+ }
33
+ async interactOnBehalf_epochRedeem(pool, liquidityProvider, amount, minAmountOut, value) {
34
+ if (!this.isSigner) {
35
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
36
+ }
37
+ const tx = await this.contract.interactOnBehalf_epochRedeem(pool, liquidityProvider, amount, minAmountOut, { value: value || 0n });
38
+ await tx.wait();
39
+ }
40
+ async verifyIntent_epochDeposit(payload, v, r, s, domain, referralCode, value) {
41
+ if (!this.isSigner) {
42
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
43
+ }
44
+ const tx = await this.contract.verifyIntent_epochDeposit(payload, v, r, s, domain, referralCode, { value: value || 0n });
45
+ await tx.wait();
46
+ }
47
+ async verifyIntent_epochRedeem(payload, v, r, s, value) {
48
+ if (!this.isSigner) {
49
+ throw new Error("LiquidityIntentsVerifierService: Write operations require a signer");
50
+ }
51
+ const tx = await this.contract.verifyIntent_epochRedeem(payload, v, r, s, { value: value || 0n });
52
+ await tx.wait();
53
+ }
54
+ async admin() {
55
+ return await this.contract.admin();
56
+ }
57
+ async pendingAdmin() {
58
+ return await this.contract.pendingAdmin();
59
+ }
60
+ async registry() {
61
+ return await this.contract.registry();
62
+ }
63
+ async sourceChainIdForAsset(asset) {
64
+ return await this.contract.sourceChainIdForAsset(asset);
65
+ }
66
+ async processedSignatures(signature) {
67
+ return await this.contract.processedSignatures(signature);
68
+ }
69
+ }
70
+ exports.LiquidityIntentsVerifierService = LiquidityIntentsVerifierService;
@@ -0,0 +1,4 @@
1
+ export { LiquidityIntentsVerifierService } from "./LiquidityIntentsVerifierService";
2
+ export type { ILiquidityIntentsVerifierService } from "./ILiquidityIntentsVerifierService";
3
+ export type { LiquidityIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/LiquidityIntentsVerifierService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AACnF,YAAY,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAC1F,YAAY,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiquidityIntentsVerifierService = void 0;
4
+ var LiquidityIntentsVerifierService_1 = require("./LiquidityIntentsVerifierService");
5
+ Object.defineProperty(exports, "LiquidityIntentsVerifierService", { enumerable: true, get: function () { return LiquidityIntentsVerifierService_1.LiquidityIntentsVerifierService; } });
@@ -0,0 +1,24 @@
1
+ import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
2
+ export interface ITradeIntentsVerifierService {
3
+ domainSeparatorForAsset(settlementAsset: string): Promise<string>;
4
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
5
+ intentsPermissions(user: string): Promise<string>;
6
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
7
+ verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint): Promise<void>;
8
+ verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
9
+ verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
10
+ verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
11
+ verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
12
+ verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
13
+ domainSeparatorsForPosition(positionId: string): Promise<string>;
14
+ tradersForPosition(positionId: string): Promise<string>;
15
+ settlementAssetsForPosition(positionId: string): Promise<string>;
16
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
17
+ processedSignatures(signature: string): Promise<boolean>;
18
+ getTradingFloor(): Promise<string>;
19
+ getTradersPortal(): Promise<string>;
20
+ admin(): Promise<string>;
21
+ pendingAdmin(): Promise<string>;
22
+ registry(): Promise<string>;
23
+ }
24
+ //# sourceMappingURL=ITradeIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITradeIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyB,MAAM,uEAAuE,CAAA;AAErI,MAAM,WAAW,4BAA4B;IAE3C,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjE,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAGzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAG/E,0CAA0C,CACxC,OAAO,EAAE,sBAAsB,CAAC,qCAAqC,EACrE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,OAAO,EACpB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,8CAA8C,CAC5C,OAAO,EAAE,sBAAsB,CAAC,oCAAoC,EACp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G,OAAO,CAAC,OAAO,CAAC,CAAA;IAGxD,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAGnC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { Provider, Signer } from "ethers";
2
+ import { TradeIntentsVerifierV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
3
+ import { ITradeIntentsVerifierService } from "./ITradeIntentsVerifierService";
4
+ export declare class TradeIntentsVerifierService implements ITradeIntentsVerifierService {
5
+ private readonly contract;
6
+ private readonly isSigner;
7
+ constructor(signerOrProvider: Signer | Provider, address: string);
8
+ domainSeparatorForAsset(settlementAsset: string): Promise<string>;
9
+ domainSeparatorForChain(chainId: bigint): Promise<string>;
10
+ intentsPermissions(user: string): Promise<string>;
11
+ setIntentsPermissions(oftChip: string, dynAddressSuffix: string): Promise<void>;
12
+ verifyIntent_traderRequest_openNewPosition(payload: TradeIntentsVerifierV1.UserRequestPayload_OpenPositionStruct, v: bigint, r: string, s: string, domain: string, referralCode: string, runCapTests: boolean, value?: bigint): Promise<void>;
13
+ verifyIntent_traderRequest_marketClosePosition(payload: TradeIntentsVerifierV1.UserRequestPayload_CloseMarketStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
14
+ verifyIntent_traderAction_updatePendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_UpdatePendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
15
+ verifyIntent_traderAction_cancelPendingLimitPosition(payload: TradeIntentsVerifierV1.UserDirectPayload_CancelPendingLimitPositionStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
16
+ verifyIntent_traderRequest_updatePositionSingleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionSingleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
17
+ verifyIntent_traderRequest_updatePositionDoubleField(payload: TradeIntentsVerifierV1.UserRequestPayload_UpdatePositionDoubleFieldStruct, v: bigint, r: string, s: string, value?: bigint): Promise<void>;
18
+ admin(): Promise<string>;
19
+ pendingAdmin(): Promise<string>;
20
+ registry(): Promise<string>;
21
+ sourceChainIdForAsset(asset: string): Promise<bigint>;
22
+ processedSignatures(signature: string): Promise<boolean>;
23
+ domainSeparatorsForPosition(positionId: string): Promise<string>;
24
+ tradersForPosition(positionId: string): Promise<string>;
25
+ settlementAssetsForPosition(positionId: string): Promise<string>;
26
+ getTradingFloor(): Promise<string>;
27
+ getTradersPortal(): Promise<string>;
28
+ }
29
+ //# sourceMappingURL=TradeIntentsVerifierService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradeIntentsVerifierService.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAyB,MAAM,uEAAuE,CAAA;AAErI,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,qBAAa,2BAA4B,YAAW,4BAA4B;IAC9E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;IACjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM;IAK1D,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjE,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG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AkD,EAClF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAcV,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;IAIxB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3B,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxD,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhE,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhE,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;CAG1C"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradeIntentsVerifierService = void 0;
4
+ const TradeIntentsVerifierV1__factory_1 = require("../../typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory");
5
+ class TradeIntentsVerifierService {
6
+ constructor(signerOrProvider, address) {
7
+ this.contract = TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, signerOrProvider);
8
+ this.isSigner = 'sendTransaction' in signerOrProvider;
9
+ }
10
+ async domainSeparatorForAsset(settlementAsset) {
11
+ return await this.contract.domainSeparatorForAsset(settlementAsset);
12
+ }
13
+ async domainSeparatorForChain(chainId) {
14
+ return await this.contract.domainSeparatorForChain(chainId);
15
+ }
16
+ async intentsPermissions(user) {
17
+ return await this.contract.intentsPermissions(user);
18
+ }
19
+ async setIntentsPermissions(oftChip, dynAddressSuffix) {
20
+ if (!this.isSigner) {
21
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
22
+ }
23
+ const tx = await this.contract.setIntentsPermissions(oftChip, dynAddressSuffix);
24
+ await tx.wait();
25
+ }
26
+ async verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, value) {
27
+ if (!this.isSigner) {
28
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
29
+ }
30
+ const tx = await this.contract.verifyIntent_traderRequest_openNewPosition(payload, v, r, s, domain, referralCode, runCapTests, { value: value || 0n });
31
+ await tx.wait();
32
+ }
33
+ async verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, value) {
34
+ if (!this.isSigner) {
35
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
36
+ }
37
+ const tx = await this.contract.verifyIntent_traderRequest_marketClosePosition(payload, v, r, s, { value: value || 0n });
38
+ await tx.wait();
39
+ }
40
+ async verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, value) {
41
+ if (!this.isSigner) {
42
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
43
+ }
44
+ const tx = await this.contract.verifyIntent_traderAction_updatePendingLimitPosition(payload, v, r, s, { value: value || 0n });
45
+ await tx.wait();
46
+ }
47
+ async verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, value) {
48
+ if (!this.isSigner) {
49
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
50
+ }
51
+ const tx = await this.contract.verifyIntent_traderAction_cancelPendingLimitPosition(payload, v, r, s, { value: value || 0n });
52
+ await tx.wait();
53
+ }
54
+ async verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, value) {
55
+ if (!this.isSigner) {
56
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
57
+ }
58
+ const tx = await this.contract.verifyIntent_traderRequest_updatePositionSingleField(payload, v, r, s, { value: value || 0n });
59
+ await tx.wait();
60
+ }
61
+ async verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, value) {
62
+ if (!this.isSigner) {
63
+ throw new Error("TradeIntentsVerifierService: Write operations require a signer");
64
+ }
65
+ const tx = await this.contract.verifyIntent_traderRequest_updatePositionDoubleField(payload, v, r, s, { value: value || 0n });
66
+ await tx.wait();
67
+ }
68
+ async admin() {
69
+ return await this.contract.admin();
70
+ }
71
+ async pendingAdmin() {
72
+ return await this.contract.pendingAdmin();
73
+ }
74
+ async registry() {
75
+ return await this.contract.registry();
76
+ }
77
+ async sourceChainIdForAsset(asset) {
78
+ return await this.contract.sourceChainIdForAsset(asset);
79
+ }
80
+ async processedSignatures(signature) {
81
+ return await this.contract.processedSignatures(signature);
82
+ }
83
+ async domainSeparatorsForPosition(positionId) {
84
+ return await this.contract.domainSeparatorsForPosition(positionId);
85
+ }
86
+ async tradersForPosition(positionId) {
87
+ return await this.contract.tradersForPosition(positionId);
88
+ }
89
+ async settlementAssetsForPosition(positionId) {
90
+ return await this.contract.settlementAssetsForPosition(positionId);
91
+ }
92
+ async getTradingFloor() {
93
+ return await this.contract.getTradingFloor();
94
+ }
95
+ async getTradersPortal() {
96
+ return await this.contract.getTradersPortal();
97
+ }
98
+ }
99
+ exports.TradeIntentsVerifierService = TradeIntentsVerifierService;
@@ -0,0 +1,4 @@
1
+ export { TradeIntentsVerifierService } from "./TradeIntentsVerifierService";
2
+ export type { ITradeIntentsVerifierService } from "./ITradeIntentsVerifierService";
3
+ export type { TradeIntentsVerifierV1, TradingFloorStructsV1 } from "../../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/contractsIntegration/TradeIntentsVerifierService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,uEAAuE,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradeIntentsVerifierService = void 0;
4
+ var TradeIntentsVerifierService_1 = require("./TradeIntentsVerifierService");
5
+ Object.defineProperty(exports, "TradeIntentsVerifierService", { enumerable: true, get: function () { return TradeIntentsVerifierService_1.TradeIntentsVerifierService; } });
@@ -13,6 +13,12 @@ import { IntentsVerifierLensService } from "./IntentsVerifierLensService";
13
13
  import { TriggersAndPortalLensService } from "./TriggersAndPortalLensService";
14
14
  import { TradingFloorLensService } from "./TradingFloorLensService";
15
15
  import { LexLensService } from "./LexLensService";
16
+ import { ChipsIntentsVerifierV1 } from "../typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
17
+ import { LiquidityIntentsVerifierV1 } from "../typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
18
+ import { TradeIntentsVerifierV1 } from "../typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
19
+ import { ChipsIntentsVerifierService } from "./ChipsIntentsVerifierService";
20
+ import { LiquidityIntentsVerifierService } from "./LiquidityIntentsVerifierService";
21
+ import { TradeIntentsVerifierService } from "./TradeIntentsVerifierService";
16
22
  export declare function connectToRegistryProxyForSigner(signer: Signer, address: string): RegistryProxy;
17
23
  /**
18
24
  * To be used with the proxy address and the implementation ABI
@@ -42,8 +48,17 @@ export declare function connectToLatestTriggersForSigner(signer: Signer, address
42
48
  export declare function connectToLatestTriggers(provider: Provider, address: string): TriggersV1;
43
49
  export declare function connectToTradingFloorLens(provider: Provider, address: string): TradingFloorLens;
44
50
  export declare function connectToLeXLens(provider: Provider, address: string): LexLens;
51
+ export declare function connectToChipsIntentsVerifierForSigner(signer: Signer, address: string): ChipsIntentsVerifierV1;
52
+ export declare function connectToChipsIntentsVerifier(provider: Provider, address: string): ChipsIntentsVerifierV1;
53
+ export declare function connectToLiquidityIntentsVerifierForSigner(signer: Signer, address: string): LiquidityIntentsVerifierV1;
54
+ export declare function connectToLiquidityIntentsVerifier(provider: Provider, address: string): LiquidityIntentsVerifierV1;
55
+ export declare function connectToTradeIntentsVerifierForSigner(signer: Signer, address: string): TradeIntentsVerifierV1;
56
+ export declare function connectToTradeIntentsVerifier(provider: Provider, address: string): TradeIntentsVerifierV1;
45
57
  export declare function createIntentsVerifierLensService(signerOrProvider: Signer | Provider, address: string): IntentsVerifierLensService;
46
58
  export declare function createTriggersAndPortalLensService(signerOrProvider: Signer | Provider, address: string): TriggersAndPortalLensService;
47
59
  export declare function createTradingFloorLensService(signerOrProvider: Signer | Provider, address: string): TradingFloorLensService;
48
60
  export declare function createLexLensService(signerOrProvider: Signer | Provider, address: string): LexLensService;
61
+ export declare function createChipsIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): ChipsIntentsVerifierService;
62
+ export declare function createLiquidityIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): LiquidityIntentsVerifierService;
63
+ export declare function createTradeIntentsVerifierService(signerOrProvider: Signer | Provider, address: string): TradeIntentsVerifierService;
49
64
  //# sourceMappingURL=deployedContractsConnector.d.ts.map