lynx-client 0.0.3 → 0.0.4

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 (113) hide show
  1. package/dist/cjs/index.js +11 -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/esm/index.d.ts +9 -0
  21. package/dist/esm/index.d.ts.map +1 -1
  22. package/dist/esm/index.js +11 -0
  23. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +29 -0
  24. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -0
  25. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.js +91 -0
  26. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +24 -0
  27. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -0
  28. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.js +2 -0
  29. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts +4 -0
  30. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts.map +1 -0
  31. package/dist/esm/lib/contractsIntegration/ChipsIntentsVerifierService/index.js +5 -0
  32. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +17 -0
  33. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -0
  34. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.js +2 -0
  35. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +22 -0
  36. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -0
  37. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.js +70 -0
  38. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts +4 -0
  39. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts.map +1 -0
  40. package/dist/esm/lib/contractsIntegration/LiquidityIntentsVerifierService/index.js +5 -0
  41. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +24 -0
  42. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -0
  43. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.js +2 -0
  44. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +29 -0
  45. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -0
  46. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.js +99 -0
  47. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts +4 -0
  48. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts.map +1 -0
  49. package/dist/esm/lib/contractsIntegration/TradeIntentsVerifierService/index.js +5 -0
  50. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +15 -0
  51. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  52. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +45 -0
  53. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts +643 -0
  54. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts.map +1 -0
  55. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.js +2 -0
  56. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts +508 -0
  57. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts.map +1 -0
  58. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.js +2 -0
  59. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts +832 -0
  60. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts.map +1 -0
  61. package/dist/esm/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.js +2 -0
  62. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +866 -0
  63. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts.map +1 -0
  64. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.js +1129 -0
  65. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +670 -0
  66. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts.map +1 -0
  67. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.js +870 -0
  68. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1201 -0
  69. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts.map +1 -0
  70. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1561 -0
  71. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  72. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  73. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  74. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  75. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  76. package/dist/types/index.d.ts +9 -0
  77. package/dist/types/index.d.ts.map +1 -1
  78. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts +29 -0
  79. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/ChipsIntentsVerifierService.d.ts.map +1 -0
  80. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts +24 -0
  81. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/IChipsIntentsVerifierService.d.ts.map +1 -0
  82. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts +4 -0
  83. package/dist/types/lib/contractsIntegration/ChipsIntentsVerifierService/index.d.ts.map +1 -0
  84. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts +17 -0
  85. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/ILiquidityIntentsVerifierService.d.ts.map +1 -0
  86. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts +22 -0
  87. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/LiquidityIntentsVerifierService.d.ts.map +1 -0
  88. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts +4 -0
  89. package/dist/types/lib/contractsIntegration/LiquidityIntentsVerifierService/index.d.ts.map +1 -0
  90. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts +24 -0
  91. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/ITradeIntentsVerifierService.d.ts.map +1 -0
  92. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts +29 -0
  93. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/TradeIntentsVerifierService.d.ts.map +1 -0
  94. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts +4 -0
  95. package/dist/types/lib/contractsIntegration/TradeIntentsVerifierService/index.d.ts.map +1 -0
  96. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +15 -0
  97. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  98. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts +643 -0
  99. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1.d.ts.map +1 -0
  100. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts +508 -0
  101. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1.d.ts.map +1 -0
  102. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts +832 -0
  103. package/dist/types/lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1.d.ts.map +1 -0
  104. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts +866 -0
  105. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory.d.ts.map +1 -0
  106. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts +670 -0
  107. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory.d.ts.map +1 -0
  108. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1201 -0
  109. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts.map +1 -0
  110. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  111. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  112. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  113. package/package.json +1 -1
@@ -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,MAAM,CAAC;IAItD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/E,6BAA6B,CACjC,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;IAgBV,4BAA4B,CAChC,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;IAcV,yBAAyB,CAC7B,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;IAgBV,wBAAwB,CAC5B,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;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;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;IAE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AAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,oDAAoD,CAClD,OAAO,EAAE,sBAAsB,CAAC,kDAAkD,EAClF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChE,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACvD,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChE,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACrD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,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,OAAO,CAAC,MAAM,CAAC;IAIzD,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/E,0CAA0C,CAC9C,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;IAiBV,8CAA8C,CAClD,OAAO,EAAE,sBAAsB,CAAC,oCAAoC,EACpE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,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,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
@@ -1 +1 @@
1
- {"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,aAAa,CAEf;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,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AE,MAAM,GACd,UAAU,CAEZ;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,gBAAgB,CAElB;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7E;AAOD,wBAAgB,gCAAgC,CAC9C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,0BAA0B,CAE5B;AAED,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,4BAA4B,CAE9B;AAED,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,uBAAuB,CAEzB;AAED,wBAAgB,oBAAoB,CAClC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,cAAc,CAEhB"}
1
+ {"version":3,"file":"deployedContractsConnector.d.ts","sourceRoot":"","sources":["../../../../lib/contractsIntegration/deployedContractsConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAI/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAItF,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE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AAED,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,0BAA0B,CAE5B;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,sBAAsB,CAExB;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,sBAAsB,CAExB;AAMD,wBAAgB,gCAAgC,CAC9C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,0BAA0B,CAE5B;AAED,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,4BAA4B,CAE9B;AAED,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,uBAAuB,CAEzB;AAED,wBAAgB,oBAAoB,CAClC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,cAAc,CAEhB;AAED,wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,2BAA2B,CAE7B;AAED,wBAAgB,qCAAqC,CACnD,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,+BAA+B,CAEjC;AAED,wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,OAAO,EAAE,MAAM,GACd,2BAA2B,CAE7B"}
@@ -17,10 +17,19 @@ exports.connectToLatestTriggersForSigner = connectToLatestTriggersForSigner;
17
17
  exports.connectToLatestTriggers = connectToLatestTriggers;
18
18
  exports.connectToTradingFloorLens = connectToTradingFloorLens;
19
19
  exports.connectToLeXLens = connectToLeXLens;
20
+ exports.connectToChipsIntentsVerifierForSigner = connectToChipsIntentsVerifierForSigner;
21
+ exports.connectToChipsIntentsVerifier = connectToChipsIntentsVerifier;
22
+ exports.connectToLiquidityIntentsVerifierForSigner = connectToLiquidityIntentsVerifierForSigner;
23
+ exports.connectToLiquidityIntentsVerifier = connectToLiquidityIntentsVerifier;
24
+ exports.connectToTradeIntentsVerifierForSigner = connectToTradeIntentsVerifierForSigner;
25
+ exports.connectToTradeIntentsVerifier = connectToTradeIntentsVerifier;
20
26
  exports.createIntentsVerifierLensService = createIntentsVerifierLensService;
21
27
  exports.createTriggersAndPortalLensService = createTriggersAndPortalLensService;
22
28
  exports.createTradingFloorLensService = createTradingFloorLensService;
23
29
  exports.createLexLensService = createLexLensService;
30
+ exports.createChipsIntentsVerifierService = createChipsIntentsVerifierService;
31
+ exports.createLiquidityIntentsVerifierService = createLiquidityIntentsVerifierService;
32
+ exports.createTradeIntentsVerifierService = createTradeIntentsVerifierService;
24
33
  const TradingFloorLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory");
25
34
  const LexLens__factory_1 = require("../typechain/factories/contracts/Peripheral/Lens/LexLens__factory");
26
35
  const RegistryProxy__factory_1 = require("../typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory");
@@ -35,6 +44,12 @@ const IntentsVerifierLensService_1 = require("./IntentsVerifierLensService");
35
44
  const TriggersAndPortalLensService_1 = require("./TriggersAndPortalLensService");
36
45
  const TradingFloorLensService_1 = require("./TradingFloorLensService");
37
46
  const LexLensService_1 = require("./LexLensService");
47
+ const ChipsIntentsVerifierV1__factory_1 = require("../typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory");
48
+ const LiquidityIntentsVerifierV1__factory_1 = require("../typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory");
49
+ const TradeIntentsVerifierV1__factory_1 = require("../typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory");
50
+ const ChipsIntentsVerifierService_1 = require("./ChipsIntentsVerifierService");
51
+ const LiquidityIntentsVerifierService_1 = require("./LiquidityIntentsVerifierService");
52
+ const TradeIntentsVerifierService_1 = require("./TradeIntentsVerifierService");
38
53
  //
39
54
  // ***** Registry & Proxy *****
40
55
  //
@@ -117,6 +132,27 @@ function connectToLeXLens(provider, address) {
117
132
  return LexLens__factory_1.LexLens__factory.connect(address, provider);
118
133
  }
119
134
  //
135
+ // ***** Intents Verifiers *****
136
+ //
137
+ function connectToChipsIntentsVerifierForSigner(signer, address) {
138
+ return ChipsIntentsVerifierV1__factory_1.ChipsIntentsVerifierV1__factory.connect(address, signer);
139
+ }
140
+ function connectToChipsIntentsVerifier(provider, address) {
141
+ return ChipsIntentsVerifierV1__factory_1.ChipsIntentsVerifierV1__factory.connect(address, provider);
142
+ }
143
+ function connectToLiquidityIntentsVerifierForSigner(signer, address) {
144
+ return LiquidityIntentsVerifierV1__factory_1.LiquidityIntentsVerifierV1__factory.connect(address, signer);
145
+ }
146
+ function connectToLiquidityIntentsVerifier(provider, address) {
147
+ return LiquidityIntentsVerifierV1__factory_1.LiquidityIntentsVerifierV1__factory.connect(address, provider);
148
+ }
149
+ function connectToTradeIntentsVerifierForSigner(signer, address) {
150
+ return TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, signer);
151
+ }
152
+ function connectToTradeIntentsVerifier(provider, address) {
153
+ return TradeIntentsVerifierV1__factory_1.TradeIntentsVerifierV1__factory.connect(address, provider);
154
+ }
155
+ //
120
156
  // ***** Lens Services *****
121
157
  //
122
158
  function createIntentsVerifierLensService(signerOrProvider, address) {
@@ -131,3 +167,12 @@ function createTradingFloorLensService(signerOrProvider, address) {
131
167
  function createLexLensService(signerOrProvider, address) {
132
168
  return new LexLensService_1.LexLensService(signerOrProvider, address);
133
169
  }
170
+ function createChipsIntentsVerifierService(signerOrProvider, address) {
171
+ return new ChipsIntentsVerifierService_1.ChipsIntentsVerifierService(signerOrProvider, address);
172
+ }
173
+ function createLiquidityIntentsVerifierService(signerOrProvider, address) {
174
+ return new LiquidityIntentsVerifierService_1.LiquidityIntentsVerifierService(signerOrProvider, address);
175
+ }
176
+ function createTradeIntentsVerifierService(signerOrProvider, address) {
177
+ return new TradeIntentsVerifierService_1.TradeIntentsVerifierService(signerOrProvider, address);
178
+ }