lynx-client 0.0.4 → 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 (25) hide show
  1. package/dist/cjs/index.js +10 -2
  2. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  3. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  4. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  5. package/dist/esm/index.d.ts +14 -0
  6. package/dist/esm/index.d.ts.map +1 -1
  7. package/dist/esm/index.js +10 -2
  8. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  9. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  10. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  11. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  12. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  13. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  14. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  15. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  16. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  17. package/dist/types/index.d.ts +14 -0
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  20. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  21. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  22. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  23. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  24. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  25. package/package.json +1 -1
package/dist/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
17
+ exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
18
18
  __exportStar(require("./lib/chains/chainConstants"), exports);
19
19
  __exportStar(require("./lib/chains/chainTypes"), exports);
20
20
  __exportStar(require("./lib/utils/addresses"), exports);
@@ -55,11 +55,19 @@ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierL
55
55
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
56
56
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
57
57
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
58
- // Intents Verifier types are exported through their respective services to avoid conflicts
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
59
66
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
60
67
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
61
68
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
62
69
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
70
+ // Contract factory exports for Intents Verifiers
63
71
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory"), exports);
64
72
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory"), exports);
65
73
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chipsIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, chipIntentsVerifierAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Chips Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: chipIntentsVerifierAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ = {
14
+ HolderRequestPayload_ChipOutLZ: [
15
+ { name: "timestamp", type: "uint256" },
16
+ { name: "validUntil", type: "uint256" },
17
+ { name: "chip", type: "address" },
18
+ { name: "holder", type: "address" },
19
+ { name: "receiver", type: "address" },
20
+ { name: "amount", type: "uint256" },
21
+ ],
22
+ };
23
+ const HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP = {
24
+ HolderRequestPayload_ChipOutLZ_Unwrap: [
25
+ { name: "timestamp", type: "uint256" },
26
+ { name: "validUntil", type: "uint256" },
27
+ { name: "chip", type: "address" },
28
+ { name: "holder", type: "address" },
29
+ { name: "receiver", type: "address" },
30
+ { name: "amount", type: "uint256" },
31
+ ],
32
+ };
33
+ exports.chipsIntentsVerifierPayloadTypes = {
34
+ buildDomainSeparator: generateVerificationDomain,
35
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ,
36
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP,
37
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.liquidityIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, liquidityIntentsVerifierAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Liquidity Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: liquidityIntentsVerifierAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT = {
14
+ LiquidityProviderRequestPayload_EpochDeposit: [
15
+ { name: "timestamp", type: "uint256" },
16
+ { name: "validUntil", type: "uint256" },
17
+ { name: "pool", type: "address" },
18
+ { name: "liquidityProvider", type: "address" },
19
+ { name: "epoch", type: "uint256" },
20
+ { name: "amount", type: "uint256" },
21
+ { name: "minAmountOut", type: "uint256" },
22
+ ],
23
+ };
24
+ const LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM = {
25
+ LiquidityProviderRequestPayload_EpochRedeem: [
26
+ { name: "timestamp", type: "uint256" },
27
+ { name: "validUntil", type: "uint256" },
28
+ { name: "pool", type: "address" },
29
+ { name: "liquidityProvider", type: "address" },
30
+ { name: "epoch", type: "uint256" },
31
+ { name: "amount", type: "uint256" },
32
+ { name: "minAmountOut", type: "uint256" },
33
+ ],
34
+ };
35
+ exports.liquidityIntentsVerifierPayloadTypes = {
36
+ buildDomainSeparator: generateVerificationDomain,
37
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT,
38
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM,
39
+ };
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tradeIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, tradersPortalAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Trade Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: tradersPortalAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const TRADER_REQUEST_PAYLOAD_CLOSE_MARKET = {
14
+ UserRequestPayload_CloseMarket: [
15
+ {
16
+ name: "timestamp",
17
+ type: "uint256",
18
+ },
19
+ { name: "validUntil", type: "uint256" },
20
+ {
21
+ name: "positionId",
22
+ type: "bytes32",
23
+ },
24
+ {
25
+ name: "minPrice",
26
+ type: "uint64",
27
+ },
28
+ {
29
+ name: "maxPrice",
30
+ type: "uint64",
31
+ },
32
+ ],
33
+ };
34
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION = {
35
+ UserRequestPayload_OpenPosition: [
36
+ {
37
+ name: "timestamp",
38
+ type: "uint256",
39
+ },
40
+ { name: "validUntil", type: "uint256" },
41
+ {
42
+ name: "positionRequestIdentifiers",
43
+ type: "PositionRequestIdentifiers",
44
+ },
45
+ {
46
+ name: "positionRequestParams",
47
+ type: "PositionRequestParams",
48
+ },
49
+ {
50
+ name: "orderType",
51
+ type: "uint8",
52
+ },
53
+ ],
54
+ PositionRequestIdentifiers: [
55
+ {
56
+ name: "trader",
57
+ type: "address",
58
+ },
59
+ {
60
+ name: "pairId",
61
+ type: "uint16",
62
+ },
63
+ {
64
+ name: "settlementAsset",
65
+ type: "address",
66
+ },
67
+ ],
68
+ PositionRequestParams: [
69
+ {
70
+ name: "long",
71
+ type: "bool",
72
+ },
73
+ {
74
+ name: "collateral",
75
+ type: "uint256",
76
+ },
77
+ {
78
+ name: "leverage",
79
+ type: "uint32",
80
+ },
81
+ {
82
+ name: "minPrice",
83
+ type: "uint64",
84
+ },
85
+ {
86
+ name: "maxPrice",
87
+ type: "uint64",
88
+ },
89
+ {
90
+ name: "tp",
91
+ type: "uint64",
92
+ },
93
+ {
94
+ name: "sl",
95
+ type: "uint64",
96
+ },
97
+ {
98
+ name: "tpByFraction",
99
+ type: "uint64",
100
+ },
101
+ {
102
+ name: "slByFraction",
103
+ type: "uint64",
104
+ },
105
+ ],
106
+ };
107
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD = {
108
+ UserRequestPayload_UpdatePositionSingleField: [
109
+ { name: "timestamp", type: "uint256" },
110
+ { name: "validUntil", type: "uint256" },
111
+ { name: "positionId", type: "bytes32" },
112
+ { name: "orderType", type: "uint8" },
113
+ { name: "fieldValue", type: "uint64" },
114
+ ],
115
+ };
116
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD = {
117
+ UserRequestPayload_UpdatePositionDoubleField: [
118
+ { name: "timestamp", type: "uint256" },
119
+ { name: "validUntil", type: "uint256" },
120
+ { name: "positionId", type: "bytes32" },
121
+ { name: "orderType", type: "uint8" },
122
+ { name: "fieldValueA", type: "uint64" },
123
+ { name: "fieldValueB", type: "uint64" },
124
+ ],
125
+ };
126
+ const TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION = {
127
+ UserDirectPayload_UpdatePendingLimitPosition: [
128
+ { name: "timestamp", type: "uint256" },
129
+ { name: "validUntil", type: "uint256" },
130
+ { name: "positionId", type: "bytes32" },
131
+ { name: "minPrice", type: "uint64" },
132
+ { name: "maxPrice", type: "uint64" },
133
+ { name: "tp", type: "uint64" },
134
+ { name: "sl", type: "uint64" },
135
+ ],
136
+ };
137
+ const TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION = {
138
+ UserDirectPayload_CancelPendingLimitPosition: [
139
+ { name: "timestamp", type: "uint256" },
140
+ { name: "validUntil", type: "uint256" },
141
+ { name: "positionId", type: "bytes32" },
142
+ ],
143
+ };
144
+ exports.tradeIntentsVerifierPayloadTypes = {
145
+ buildDomainSeparator: generateVerificationDomain,
146
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION,
147
+ TRADER_REQUEST_PAYLOAD_CLOSE_MARKET,
148
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD,
149
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD,
150
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION,
151
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION,
152
+ };
@@ -38,6 +38,20 @@ export * from "./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
38
38
  export * from "./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
39
39
  export * from "./lib/typechain/contracts/Peripheral/Lens/LexLens";
40
40
  export * from "./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens";
41
+ export type { RegistryProxy } from "./lib/typechain/contracts/Lynx/Registry/RegistryProxy";
42
+ export type { RegistryV1 } from "./lib/typechain/contracts/Lynx/Registry/RegistryV1";
43
+ export type { TradingFloorProxy } from "./lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy";
44
+ export type { TradingFloorV1 } from "./lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
45
+ export type { OrderBookProxy } from "./lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy";
46
+ export type { OrderBookV1 } from "./lib/typechain/contracts/Lynx/OrderBook/OrderBookV1";
47
+ export type { TradersPortalV1 } from "./lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1";
48
+ export type { TriggersV1 } from "./lib/typechain/contracts/Lynx/Triggers/TriggersV1";
49
+ export type { ChipsIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
50
+ export type { LiquidityIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
51
+ export type { TradeIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
52
+ export { chipsIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes";
53
+ export { liquidityIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes";
54
+ export { tradeIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes";
41
55
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory";
42
56
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory";
43
57
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAExC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2CAA2C,CAAC;AAE1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AAExD,cAAc,+BAA+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sDAAsD,CAAC;AACxF,YAAY,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AACpG,YAAY,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAGrF,YAAY,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AACpH,YAAY,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAC;AAC5H,YAAY,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AAGpH,OAAO,EAAE,gCAAgC,EAAE,MAAM,mGAAmG,CAAC;AACrJ,OAAO,EAAE,oCAAoC,EAAE,MAAM,2GAA2G,CAAC;AACjK,OAAO,EAAE,gCAAgC,EAAE,MAAM,mGAAmG,CAAC;AAGrJ,cAAc,kFAAkF,CAAC;AACjG,cAAc,oFAAoF,CAAC;AACnG,cAAc,sEAAsE,CAAC;AACrF,cAAc,+EAA+E,CAAC;AAG9F,cAAc,0FAA0F,CAAC;AACzG,cAAc,8FAA8F,CAAC;AAC7G,cAAc,0FAA0F,CAAC;AAGzG,cAAc,aAAa,CAAC"}
package/dist/esm/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
17
+ exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
18
18
  __exportStar(require("./lib/chains/chainConstants"), exports);
19
19
  __exportStar(require("./lib/chains/chainTypes"), exports);
20
20
  __exportStar(require("./lib/utils/addresses"), exports);
@@ -55,11 +55,19 @@ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierL
55
55
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
56
56
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
57
57
  __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
58
- // Intents Verifier types are exported through their respective services to avoid conflicts
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
59
66
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
60
67
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
61
68
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
62
69
  __exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
70
+ // Contract factory exports for Intents Verifiers
63
71
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory"), exports);
64
72
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory"), exports);
65
73
  __exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
@@ -0,0 +1,9 @@
1
+ import { ethers } from "ethers";
2
+ declare function generateVerificationDomain(chainId: string, chipIntentsVerifierAddress: string): ethers.TypedDataDomain;
3
+ export declare const chipsIntentsVerifierPayloadTypes: {
4
+ buildDomainSeparator: typeof generateVerificationDomain;
5
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ: Record<string, ethers.TypedDataField[]>;
6
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP: Record<string, ethers.TypedDataField[]>;
7
+ };
8
+ export {};
9
+ //# sourceMappingURL=chipsIntentsVerifierPayloadTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chipsIntentsVerifierPayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../../../lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,MAAM,EACf,0BAA0B,EAAE,MAAM,GACjC,MAAM,CAAC,eAAe,CASxB;AA8BD,eAAO,MAAM,gCAAgC;;;;CAI5C,CAAC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chipsIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, chipIntentsVerifierAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Chips Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: chipIntentsVerifierAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ = {
14
+ HolderRequestPayload_ChipOutLZ: [
15
+ { name: "timestamp", type: "uint256" },
16
+ { name: "validUntil", type: "uint256" },
17
+ { name: "chip", type: "address" },
18
+ { name: "holder", type: "address" },
19
+ { name: "receiver", type: "address" },
20
+ { name: "amount", type: "uint256" },
21
+ ],
22
+ };
23
+ const HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP = {
24
+ HolderRequestPayload_ChipOutLZ_Unwrap: [
25
+ { name: "timestamp", type: "uint256" },
26
+ { name: "validUntil", type: "uint256" },
27
+ { name: "chip", type: "address" },
28
+ { name: "holder", type: "address" },
29
+ { name: "receiver", type: "address" },
30
+ { name: "amount", type: "uint256" },
31
+ ],
32
+ };
33
+ exports.chipsIntentsVerifierPayloadTypes = {
34
+ buildDomainSeparator: generateVerificationDomain,
35
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ,
36
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP,
37
+ };
@@ -0,0 +1,9 @@
1
+ import { ethers } from "ethers";
2
+ declare function generateVerificationDomain(chainId: string, liquidityIntentsVerifierAddress: string): ethers.TypedDataDomain;
3
+ export declare const liquidityIntentsVerifierPayloadTypes: {
4
+ buildDomainSeparator: typeof generateVerificationDomain;
5
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT: Record<string, ethers.TypedDataField[]>;
6
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM: Record<string, ethers.TypedDataField[]>;
7
+ };
8
+ export {};
9
+ //# sourceMappingURL=liquidityIntentsVerifierPayloadTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liquidityIntentsVerifierPayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../../../lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,MAAM,EACf,+BAA+B,EAAE,MAAM,GACtC,MAAM,CAAC,eAAe,CASxB;AAgCD,eAAO,MAAM,oCAAoC;;;;CAIhD,CAAC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.liquidityIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, liquidityIntentsVerifierAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Liquidity Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: liquidityIntentsVerifierAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT = {
14
+ LiquidityProviderRequestPayload_EpochDeposit: [
15
+ { name: "timestamp", type: "uint256" },
16
+ { name: "validUntil", type: "uint256" },
17
+ { name: "pool", type: "address" },
18
+ { name: "liquidityProvider", type: "address" },
19
+ { name: "epoch", type: "uint256" },
20
+ { name: "amount", type: "uint256" },
21
+ { name: "minAmountOut", type: "uint256" },
22
+ ],
23
+ };
24
+ const LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM = {
25
+ LiquidityProviderRequestPayload_EpochRedeem: [
26
+ { name: "timestamp", type: "uint256" },
27
+ { name: "validUntil", type: "uint256" },
28
+ { name: "pool", type: "address" },
29
+ { name: "liquidityProvider", type: "address" },
30
+ { name: "epoch", type: "uint256" },
31
+ { name: "amount", type: "uint256" },
32
+ { name: "minAmountOut", type: "uint256" },
33
+ ],
34
+ };
35
+ exports.liquidityIntentsVerifierPayloadTypes = {
36
+ buildDomainSeparator: generateVerificationDomain,
37
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT,
38
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM,
39
+ };
@@ -0,0 +1,13 @@
1
+ import { ethers } from "ethers";
2
+ declare function generateVerificationDomain(chainId: string, tradersPortalAddress: string): ethers.TypedDataDomain;
3
+ export declare const tradeIntentsVerifierPayloadTypes: {
4
+ buildDomainSeparator: typeof generateVerificationDomain;
5
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION: Record<string, ethers.TypedDataField[]>;
6
+ TRADER_REQUEST_PAYLOAD_CLOSE_MARKET: Record<string, ethers.TypedDataField[]>;
7
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD: Record<string, ethers.TypedDataField[]>;
8
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD: Record<string, ethers.TypedDataField[]>;
9
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION: Record<string, ethers.TypedDataField[]>;
10
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION: Record<string, ethers.TypedDataField[]>;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=tradeIntentsVerifierPayloadTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tradeIntentsVerifierPayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../../../lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,MAAM,EACf,oBAAoB,EAAE,MAAM,GAC3B,MAAM,CAAC,eAAe,CASxB;AA6JD,eAAO,MAAM,gCAAgC;;;;;;;;CAS5C,CAAC"}
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tradeIntentsVerifierPayloadTypes = void 0;
4
+ function generateVerificationDomain(chainId, tradersPortalAddress) {
5
+ const verificationDomain = {
6
+ chainId: chainId,
7
+ name: "Trade Intents Verifier",
8
+ version: "1",
9
+ verifyingContract: tradersPortalAddress,
10
+ };
11
+ return verificationDomain;
12
+ }
13
+ const TRADER_REQUEST_PAYLOAD_CLOSE_MARKET = {
14
+ UserRequestPayload_CloseMarket: [
15
+ {
16
+ name: "timestamp",
17
+ type: "uint256",
18
+ },
19
+ { name: "validUntil", type: "uint256" },
20
+ {
21
+ name: "positionId",
22
+ type: "bytes32",
23
+ },
24
+ {
25
+ name: "minPrice",
26
+ type: "uint64",
27
+ },
28
+ {
29
+ name: "maxPrice",
30
+ type: "uint64",
31
+ },
32
+ ],
33
+ };
34
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION = {
35
+ UserRequestPayload_OpenPosition: [
36
+ {
37
+ name: "timestamp",
38
+ type: "uint256",
39
+ },
40
+ { name: "validUntil", type: "uint256" },
41
+ {
42
+ name: "positionRequestIdentifiers",
43
+ type: "PositionRequestIdentifiers",
44
+ },
45
+ {
46
+ name: "positionRequestParams",
47
+ type: "PositionRequestParams",
48
+ },
49
+ {
50
+ name: "orderType",
51
+ type: "uint8",
52
+ },
53
+ ],
54
+ PositionRequestIdentifiers: [
55
+ {
56
+ name: "trader",
57
+ type: "address",
58
+ },
59
+ {
60
+ name: "pairId",
61
+ type: "uint16",
62
+ },
63
+ {
64
+ name: "settlementAsset",
65
+ type: "address",
66
+ },
67
+ ],
68
+ PositionRequestParams: [
69
+ {
70
+ name: "long",
71
+ type: "bool",
72
+ },
73
+ {
74
+ name: "collateral",
75
+ type: "uint256",
76
+ },
77
+ {
78
+ name: "leverage",
79
+ type: "uint32",
80
+ },
81
+ {
82
+ name: "minPrice",
83
+ type: "uint64",
84
+ },
85
+ {
86
+ name: "maxPrice",
87
+ type: "uint64",
88
+ },
89
+ {
90
+ name: "tp",
91
+ type: "uint64",
92
+ },
93
+ {
94
+ name: "sl",
95
+ type: "uint64",
96
+ },
97
+ {
98
+ name: "tpByFraction",
99
+ type: "uint64",
100
+ },
101
+ {
102
+ name: "slByFraction",
103
+ type: "uint64",
104
+ },
105
+ ],
106
+ };
107
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD = {
108
+ UserRequestPayload_UpdatePositionSingleField: [
109
+ { name: "timestamp", type: "uint256" },
110
+ { name: "validUntil", type: "uint256" },
111
+ { name: "positionId", type: "bytes32" },
112
+ { name: "orderType", type: "uint8" },
113
+ { name: "fieldValue", type: "uint64" },
114
+ ],
115
+ };
116
+ const TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD = {
117
+ UserRequestPayload_UpdatePositionDoubleField: [
118
+ { name: "timestamp", type: "uint256" },
119
+ { name: "validUntil", type: "uint256" },
120
+ { name: "positionId", type: "bytes32" },
121
+ { name: "orderType", type: "uint8" },
122
+ { name: "fieldValueA", type: "uint64" },
123
+ { name: "fieldValueB", type: "uint64" },
124
+ ],
125
+ };
126
+ const TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION = {
127
+ UserDirectPayload_UpdatePendingLimitPosition: [
128
+ { name: "timestamp", type: "uint256" },
129
+ { name: "validUntil", type: "uint256" },
130
+ { name: "positionId", type: "bytes32" },
131
+ { name: "minPrice", type: "uint64" },
132
+ { name: "maxPrice", type: "uint64" },
133
+ { name: "tp", type: "uint64" },
134
+ { name: "sl", type: "uint64" },
135
+ ],
136
+ };
137
+ const TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION = {
138
+ UserDirectPayload_CancelPendingLimitPosition: [
139
+ { name: "timestamp", type: "uint256" },
140
+ { name: "validUntil", type: "uint256" },
141
+ { name: "positionId", type: "bytes32" },
142
+ ],
143
+ };
144
+ exports.tradeIntentsVerifierPayloadTypes = {
145
+ buildDomainSeparator: generateVerificationDomain,
146
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION,
147
+ TRADER_REQUEST_PAYLOAD_CLOSE_MARKET,
148
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD,
149
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD,
150
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION,
151
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION,
152
+ };
@@ -38,6 +38,20 @@ export * from "./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
38
38
  export * from "./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
39
39
  export * from "./lib/typechain/contracts/Peripheral/Lens/LexLens";
40
40
  export * from "./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens";
41
+ export type { RegistryProxy } from "./lib/typechain/contracts/Lynx/Registry/RegistryProxy";
42
+ export type { RegistryV1 } from "./lib/typechain/contracts/Lynx/Registry/RegistryV1";
43
+ export type { TradingFloorProxy } from "./lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy";
44
+ export type { TradingFloorV1 } from "./lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1";
45
+ export type { OrderBookProxy } from "./lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy";
46
+ export type { OrderBookV1 } from "./lib/typechain/contracts/Lynx/OrderBook/OrderBookV1";
47
+ export type { TradersPortalV1 } from "./lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1";
48
+ export type { TriggersV1 } from "./lib/typechain/contracts/Lynx/Triggers/TriggersV1";
49
+ export type { ChipsIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1";
50
+ export type { LiquidityIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1";
51
+ export type { TradeIntentsVerifierV1 } from "./lib/typechain/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1";
52
+ export { chipsIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes";
53
+ export { liquidityIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes";
54
+ export { tradeIntentsVerifierPayloadTypes } from "./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes";
41
55
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory";
42
56
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory";
43
57
  export * from "./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAExC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2CAA2C,CAAC;AAE1D,cAAc,+BAA+B,CAAC;AA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AAoD,CAAC;AACrF,YAAY,EAAE,iBAAiB,EAAE,MAAM,+DAA+D,CAAC;AACvG,YAAY,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;AACjG,YAAY,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AAC9F,YAAY,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACxF,YAAY,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AACpG,YAAY,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAGrF,YAAY,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AACpH,YAAY,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAC;AAC5H,YAAY,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AAGpH,OAAO,EAAE,gCAAgC,EAAE,MAAM,mGAAmG,CAAC;AACrJ,OAAO,EAAE,oCAAoC,EAAE,MAAM,2GAA2G,CAAC;AACjK,OAAO,EAAE,gCAAgC,EAAE,MAAM,mGAAmG,CAAC;AAGrJ,cAAc,kFAAkF,CAAC;AACjG,cAAc,oFAAoF,CAAC;AACnG,cAAc,sEAAsE,CAAC;AACrF,cAAc,+EAA+E,CAAC;AAG9F,cAAc,0FAA0F,CAAC;AACzG,cAAc,8FAA8F,CAAC;AAC7G,cAAc,0FAA0F,CAAC;AAGzG,cAAc,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ethers } from "ethers";
2
+ declare function generateVerificationDomain(chainId: string, chipIntentsVerifierAddress: string): ethers.TypedDataDomain;
3
+ export declare const chipsIntentsVerifierPayloadTypes: {
4
+ buildDomainSeparator: typeof generateVerificationDomain;
5
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ: Record<string, ethers.TypedDataField[]>;
6
+ HOLDER_REQUEST_PAYLOAD_TYPE_DEFINITION_CHIP_OUT_LZ_UNWRAP: Record<string, ethers.TypedDataField[]>;
7
+ };
8
+ export {};
9
+ //# sourceMappingURL=chipsIntentsVerifierPayloadTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chipsIntentsVerifierPayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../../../lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,MAAM,EACf,0BAA0B,EAAE,MAAM,GACjC,MAAM,CAAC,eAAe,CASxB;AA8BD,eAAO,MAAM,gCAAgC;;;;CAI5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ethers } from "ethers";
2
+ declare function generateVerificationDomain(chainId: string, liquidityIntentsVerifierAddress: string): ethers.TypedDataDomain;
3
+ export declare const liquidityIntentsVerifierPayloadTypes: {
4
+ buildDomainSeparator: typeof generateVerificationDomain;
5
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_DEPOSIT: Record<string, ethers.TypedDataField[]>;
6
+ LIQUIDITY_PROVIDER_REQUEST_PAYLOAD_TYPE_DEFINITION_EPOCH_REDEEM: Record<string, ethers.TypedDataField[]>;
7
+ };
8
+ export {};
9
+ //# sourceMappingURL=liquidityIntentsVerifierPayloadTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liquidityIntentsVerifierPayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../../../lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,MAAM,EACf,+BAA+B,EAAE,MAAM,GACtC,MAAM,CAAC,eAAe,CASxB;AAgCD,eAAO,MAAM,oCAAoC;;;;CAIhD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ethers } from "ethers";
2
+ declare function generateVerificationDomain(chainId: string, tradersPortalAddress: string): ethers.TypedDataDomain;
3
+ export declare const tradeIntentsVerifierPayloadTypes: {
4
+ buildDomainSeparator: typeof generateVerificationDomain;
5
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_OPEN_POSITION: Record<string, ethers.TypedDataField[]>;
6
+ TRADER_REQUEST_PAYLOAD_CLOSE_MARKET: Record<string, ethers.TypedDataField[]>;
7
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_SINGLE_FIELD: Record<string, ethers.TypedDataField[]>;
8
+ TRADER_REQUEST_PAYLOAD_TYPE_DEFINITION_UPDATE_POSITION_DOUBLE_FIELD: Record<string, ethers.TypedDataField[]>;
9
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_UPDATE_PENDING_LIMIT_POSITION: Record<string, ethers.TypedDataField[]>;
10
+ TRADER_DIRECT_PAYLOAD_TYPE_DEFINITION_CANCEL_PENDING_LIMIT_POSITION: Record<string, ethers.TypedDataField[]>;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=tradeIntentsVerifierPayloadTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tradeIntentsVerifierPayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../../../lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,MAAM,EACf,oBAAoB,EAAE,MAAM,GAC3B,MAAM,CAAC,eAAe,CASxB;AA6JD,eAAO,MAAM,gCAAgC;;;;;;;;CAS5C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lynx-client",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Client library for interacting with Lynx publicly available services",
5
5
 
6
6
  "main": "./dist/cjs/index.js",