@seal-protocol/backendjs 0.0.8 → 0.0.13
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.
- package/lib/api/seal-client.d.ts +30 -5
- package/lib/api/seal-client.js +27 -7
- package/lib/model/index.d.ts +3 -0
- package/lib/model/index.js +3 -0
- package/lib/model/seal-config.d.ts +7 -0
- package/lib/model/seal-create-order-intent-request.d.ts +6 -0
- package/lib/model/seal-eip712-domain-config.d.ts +42 -0
- package/lib/model/seal-eip712-domain-config.js +15 -0
- package/lib/model/seal-order.d.ts +7 -0
- package/lib/model/seal-orders-order-by-property.d.ts +3 -2
- package/lib/model/seal-orders-order-by-property.js +2 -1
- package/lib/model/seal-signature-verification-config.d.ts +25 -0
- package/lib/model/seal-signature-verification-config.js +15 -0
- package/lib/model/types-order-status.d.ts +20 -0
- package/lib/model/types-order-status.js +26 -0
- package/lib/model/types-transfer-permission-type.d.ts +1 -1
- package/lib/model/types-transfer-permission-type.js +1 -1
- package/package.json +1 -1
package/lib/api/seal-client.d.ts
CHANGED
|
@@ -36,11 +36,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
36
36
|
createOrderIntent: (body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
+
* @param {string} [chainId] uint256
|
|
39
40
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
40
41
|
* @param {string} [tokenOut]
|
|
41
42
|
* @param {string} [owner]
|
|
42
43
|
* @param {string} [fromPrice] uint256
|
|
43
44
|
* @param {string} [toPrice] uint256
|
|
45
|
+
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
44
46
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
45
47
|
* @param {boolean} [orderByDescending]
|
|
46
48
|
* @param {string} [paginationKey]
|
|
@@ -49,7 +51,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
49
51
|
* @param {*} [options] Override http request option.
|
|
50
52
|
* @throws {RequiredError}
|
|
51
53
|
*/
|
|
52
|
-
getOrders: (tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, statuses?: Array<GetOrdersStatusesEnum>, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
55
|
/**
|
|
54
56
|
*
|
|
55
57
|
* @param {*} [options] Override http request option.
|
|
@@ -77,11 +79,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
77
79
|
createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
78
80
|
/**
|
|
79
81
|
*
|
|
82
|
+
* @param {string} [chainId] uint256
|
|
80
83
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
81
84
|
* @param {string} [tokenOut]
|
|
82
85
|
* @param {string} [owner]
|
|
83
86
|
* @param {string} [fromPrice] uint256
|
|
84
87
|
* @param {string} [toPrice] uint256
|
|
88
|
+
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
85
89
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
86
90
|
* @param {boolean} [orderByDescending]
|
|
87
91
|
* @param {string} [paginationKey]
|
|
@@ -90,7 +94,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
90
94
|
* @param {*} [options] Override http request option.
|
|
91
95
|
* @throws {RequiredError}
|
|
92
96
|
*/
|
|
93
|
-
getOrders(tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
97
|
+
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, statuses?: Array<GetOrdersStatusesEnum>, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
94
98
|
/**
|
|
95
99
|
*
|
|
96
100
|
* @param {*} [options] Override http request option.
|
|
@@ -149,6 +153,12 @@ export interface SealClientCreateOrderIntentRequest {
|
|
|
149
153
|
* @interface SealClientGetOrdersRequest
|
|
150
154
|
*/
|
|
151
155
|
export interface SealClientGetOrdersRequest {
|
|
156
|
+
/**
|
|
157
|
+
* uint256
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof SealClientGetOrders
|
|
160
|
+
*/
|
|
161
|
+
readonly chainId?: string;
|
|
152
162
|
/**
|
|
153
163
|
* Token In The token to exchange from.
|
|
154
164
|
* @type {string}
|
|
@@ -179,9 +189,15 @@ export interface SealClientGetOrdersRequest {
|
|
|
179
189
|
* @memberof SealClientGetOrders
|
|
180
190
|
*/
|
|
181
191
|
readonly toPrice?: string;
|
|
192
|
+
/**
|
|
193
|
+
* orders that have either of the given statuses
|
|
194
|
+
* @type {Array<'ORDER_STATUS_UNSPECIFIED' | 'ORDER_STATUS_EXPIRED'>}
|
|
195
|
+
* @memberof SealClientGetOrders
|
|
196
|
+
*/
|
|
197
|
+
readonly statuses?: Array<GetOrdersStatusesEnum>;
|
|
182
198
|
/**
|
|
183
199
|
*
|
|
184
|
-
* @type {'
|
|
200
|
+
* @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID'}
|
|
185
201
|
* @memberof SealClientGetOrders
|
|
186
202
|
*/
|
|
187
203
|
readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
|
|
@@ -248,17 +264,26 @@ export declare class SealClient extends BaseAPI {
|
|
|
248
264
|
*/
|
|
249
265
|
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
|
|
250
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* @export
|
|
269
|
+
* @enum {string}
|
|
270
|
+
*/
|
|
271
|
+
export declare enum GetOrdersStatusesEnum {
|
|
272
|
+
OrderStatusUnspecified = "ORDER_STATUS_UNSPECIFIED",
|
|
273
|
+
OrderStatusExpired = "ORDER_STATUS_EXPIRED"
|
|
274
|
+
}
|
|
251
275
|
/**
|
|
252
276
|
* @export
|
|
253
277
|
* @enum {string}
|
|
254
278
|
*/
|
|
255
279
|
export declare enum GetOrdersOrderByPropertyEnum {
|
|
256
|
-
|
|
280
|
+
Unspecified = "UNSPECIFIED",
|
|
257
281
|
Owner = "OWNER",
|
|
258
282
|
TokenIn = "TOKEN_IN",
|
|
259
283
|
TokenOut = "TOKEN_OUT",
|
|
260
284
|
AmountIn = "AMOUNT_IN",
|
|
261
285
|
Price = "PRICE",
|
|
262
286
|
PartiallyFillable = "PARTIALLY_FILLABLE",
|
|
263
|
-
Deadline = "DEADLINE"
|
|
287
|
+
Deadline = "DEADLINE",
|
|
288
|
+
ChainId = "CHAIN_ID"
|
|
264
289
|
}
|
package/lib/api/seal-client.js
CHANGED
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetOrdersOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetOrdersOrderByPropertyEnum = exports.GetOrdersStatusesEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -84,11 +84,13 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
84
84
|
},
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
|
+
* @param {string} [chainId] uint256
|
|
87
88
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
88
89
|
* @param {string} [tokenOut]
|
|
89
90
|
* @param {string} [owner]
|
|
90
91
|
* @param {string} [fromPrice] uint256
|
|
91
92
|
* @param {string} [toPrice] uint256
|
|
93
|
+
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
92
94
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
93
95
|
* @param {boolean} [orderByDescending]
|
|
94
96
|
* @param {string} [paginationKey]
|
|
@@ -97,7 +99,7 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
97
99
|
* @param {*} [options] Override http request option.
|
|
98
100
|
* @throws {RequiredError}
|
|
99
101
|
*/
|
|
100
|
-
getOrders: async (tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
102
|
+
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, statuses, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
101
103
|
const localVarPath = `/seal/orders`;
|
|
102
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
105
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -108,6 +110,9 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
108
110
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
109
111
|
const localVarHeaderParameter = {};
|
|
110
112
|
const localVarQueryParameter = {};
|
|
113
|
+
if (chainId !== undefined) {
|
|
114
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
115
|
+
}
|
|
111
116
|
if (tokenIn !== undefined) {
|
|
112
117
|
localVarQueryParameter['tokenIn'] = tokenIn;
|
|
113
118
|
}
|
|
@@ -123,6 +128,9 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
123
128
|
if (toPrice !== undefined) {
|
|
124
129
|
localVarQueryParameter['toPrice'] = toPrice;
|
|
125
130
|
}
|
|
131
|
+
if (statuses) {
|
|
132
|
+
localVarQueryParameter['statuses'] = statuses;
|
|
133
|
+
}
|
|
126
134
|
if (orderByProperty !== undefined) {
|
|
127
135
|
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
128
136
|
}
|
|
@@ -205,11 +213,13 @@ const SealClientFp = function (configuration) {
|
|
|
205
213
|
},
|
|
206
214
|
/**
|
|
207
215
|
*
|
|
216
|
+
* @param {string} [chainId] uint256
|
|
208
217
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
209
218
|
* @param {string} [tokenOut]
|
|
210
219
|
* @param {string} [owner]
|
|
211
220
|
* @param {string} [fromPrice] uint256
|
|
212
221
|
* @param {string} [toPrice] uint256
|
|
222
|
+
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
213
223
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
214
224
|
* @param {boolean} [orderByDescending]
|
|
215
225
|
* @param {string} [paginationKey]
|
|
@@ -218,8 +228,8 @@ const SealClientFp = function (configuration) {
|
|
|
218
228
|
* @param {*} [options] Override http request option.
|
|
219
229
|
* @throws {RequiredError}
|
|
220
230
|
*/
|
|
221
|
-
async getOrders(tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
222
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
231
|
+
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, statuses, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
232
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, statuses, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
223
233
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
224
234
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
225
235
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -269,7 +279,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
269
279
|
* @throws {RequiredError}
|
|
270
280
|
*/
|
|
271
281
|
getOrders(requestParameters = {}, options) {
|
|
272
|
-
return localVarFp.getOrders(requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
|
|
282
|
+
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.statuses, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
|
|
273
283
|
},
|
|
274
284
|
/**
|
|
275
285
|
*
|
|
@@ -316,7 +326,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
316
326
|
* @memberof SealClient
|
|
317
327
|
*/
|
|
318
328
|
getOrders(requestParameters = {}, options) {
|
|
319
|
-
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
|
|
329
|
+
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.statuses, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
|
|
320
330
|
}
|
|
321
331
|
/**
|
|
322
332
|
*
|
|
@@ -329,13 +339,22 @@ class SealClient extends base_1.BaseAPI {
|
|
|
329
339
|
}
|
|
330
340
|
}
|
|
331
341
|
exports.SealClient = SealClient;
|
|
342
|
+
/**
|
|
343
|
+
* @export
|
|
344
|
+
* @enum {string}
|
|
345
|
+
*/
|
|
346
|
+
var GetOrdersStatusesEnum;
|
|
347
|
+
(function (GetOrdersStatusesEnum) {
|
|
348
|
+
GetOrdersStatusesEnum["OrderStatusUnspecified"] = "ORDER_STATUS_UNSPECIFIED";
|
|
349
|
+
GetOrdersStatusesEnum["OrderStatusExpired"] = "ORDER_STATUS_EXPIRED";
|
|
350
|
+
})(GetOrdersStatusesEnum || (exports.GetOrdersStatusesEnum = GetOrdersStatusesEnum = {}));
|
|
332
351
|
/**
|
|
333
352
|
* @export
|
|
334
353
|
* @enum {string}
|
|
335
354
|
*/
|
|
336
355
|
var GetOrdersOrderByPropertyEnum;
|
|
337
356
|
(function (GetOrdersOrderByPropertyEnum) {
|
|
338
|
-
GetOrdersOrderByPropertyEnum["
|
|
357
|
+
GetOrdersOrderByPropertyEnum["Unspecified"] = "UNSPECIFIED";
|
|
339
358
|
GetOrdersOrderByPropertyEnum["Owner"] = "OWNER";
|
|
340
359
|
GetOrdersOrderByPropertyEnum["TokenIn"] = "TOKEN_IN";
|
|
341
360
|
GetOrdersOrderByPropertyEnum["TokenOut"] = "TOKEN_OUT";
|
|
@@ -343,4 +362,5 @@ var GetOrdersOrderByPropertyEnum;
|
|
|
343
362
|
GetOrdersOrderByPropertyEnum["Price"] = "PRICE";
|
|
344
363
|
GetOrdersOrderByPropertyEnum["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
345
364
|
GetOrdersOrderByPropertyEnum["Deadline"] = "DEADLINE";
|
|
365
|
+
GetOrdersOrderByPropertyEnum["ChainId"] = "CHAIN_ID";
|
|
346
366
|
})(GetOrdersOrderByPropertyEnum || (exports.GetOrdersOrderByPropertyEnum = GetOrdersOrderByPropertyEnum = {}));
|
package/lib/model/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './rpc-status';
|
|
|
3
3
|
export * from './seal-config';
|
|
4
4
|
export * from './seal-create-order-intent-request';
|
|
5
5
|
export * from './seal-database-config';
|
|
6
|
+
export * from './seal-eip712-domain-config';
|
|
6
7
|
export * from './seal-get-config-response';
|
|
7
8
|
export * from './seal-get-health-check-response';
|
|
8
9
|
export * from './seal-get-orders-response';
|
|
@@ -11,5 +12,7 @@ export * from './seal-order';
|
|
|
11
12
|
export * from './seal-orders-order-by';
|
|
12
13
|
export * from './seal-orders-order-by-property';
|
|
13
14
|
export * from './seal-pagination';
|
|
15
|
+
export * from './seal-signature-verification-config';
|
|
14
16
|
export * from './seal-transfer-permission';
|
|
17
|
+
export * from './types-order-status';
|
|
15
18
|
export * from './types-transfer-permission-type';
|
package/lib/model/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./rpc-status"), exports);
|
|
|
19
19
|
__exportStar(require("./seal-config"), exports);
|
|
20
20
|
__exportStar(require("./seal-create-order-intent-request"), exports);
|
|
21
21
|
__exportStar(require("./seal-database-config"), exports);
|
|
22
|
+
__exportStar(require("./seal-eip712-domain-config"), exports);
|
|
22
23
|
__exportStar(require("./seal-get-config-response"), exports);
|
|
23
24
|
__exportStar(require("./seal-get-health-check-response"), exports);
|
|
24
25
|
__exportStar(require("./seal-get-orders-response"), exports);
|
|
@@ -27,5 +28,7 @@ __exportStar(require("./seal-order"), exports);
|
|
|
27
28
|
__exportStar(require("./seal-orders-order-by"), exports);
|
|
28
29
|
__exportStar(require("./seal-orders-order-by-property"), exports);
|
|
29
30
|
__exportStar(require("./seal-pagination"), exports);
|
|
31
|
+
__exportStar(require("./seal-signature-verification-config"), exports);
|
|
30
32
|
__exportStar(require("./seal-transfer-permission"), exports);
|
|
33
|
+
__exportStar(require("./types-order-status"), exports);
|
|
31
34
|
__exportStar(require("./types-transfer-permission-type"), exports);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SealDatabaseConfig } from './seal-database-config';
|
|
13
13
|
import type { SealLoggerConfig } from './seal-logger-config';
|
|
14
|
+
import type { SealSignatureVerificationConfig } from './seal-signature-verification-config';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -29,4 +30,10 @@ export interface SealConfig {
|
|
|
29
30
|
* @memberof SealConfig
|
|
30
31
|
*/
|
|
31
32
|
'database'?: SealDatabaseConfig;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {SealSignatureVerificationConfig}
|
|
36
|
+
* @memberof SealConfig
|
|
37
|
+
*/
|
|
38
|
+
'signatureVerification'?: SealSignatureVerificationConfig;
|
|
32
39
|
}
|
|
@@ -22,6 +22,12 @@ export interface SealCreateOrderIntentRequest {
|
|
|
22
22
|
* @memberof SealCreateOrderIntentRequest
|
|
23
23
|
*/
|
|
24
24
|
'owner': string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SealCreateOrderIntentRequest
|
|
29
|
+
*/
|
|
30
|
+
'chainId': string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SealEIP712DomainConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface SealEIP712DomainConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealEIP712DomainConfig
|
|
22
|
+
*/
|
|
23
|
+
'name'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SealEIP712DomainConfig
|
|
28
|
+
*/
|
|
29
|
+
'version'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SealEIP712DomainConfig
|
|
34
|
+
*/
|
|
35
|
+
'chainId'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SealEIP712DomainConfig
|
|
40
|
+
*/
|
|
41
|
+
'verifyingContract'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* seal/seal.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TypesOrderStatus } from './types-order-status';
|
|
12
13
|
/**
|
|
13
14
|
* TODO add other fields for status, and ...
|
|
14
15
|
* @export
|
|
@@ -63,4 +64,10 @@ export interface SealOrder {
|
|
|
63
64
|
* @memberof SealOrder
|
|
64
65
|
*/
|
|
65
66
|
'deadline'?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {TypesOrderStatus}
|
|
70
|
+
* @memberof SealOrder
|
|
71
|
+
*/
|
|
72
|
+
'status'?: TypesOrderStatus;
|
|
66
73
|
}
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum SealOrdersOrderByProperty {
|
|
18
|
-
|
|
18
|
+
Unspecified = "UNSPECIFIED",
|
|
19
19
|
Owner = "OWNER",
|
|
20
20
|
TokenIn = "TOKEN_IN",
|
|
21
21
|
TokenOut = "TOKEN_OUT",
|
|
22
22
|
AmountIn = "AMOUNT_IN",
|
|
23
23
|
Price = "PRICE",
|
|
24
24
|
PartiallyFillable = "PARTIALLY_FILLABLE",
|
|
25
|
-
Deadline = "DEADLINE"
|
|
25
|
+
Deadline = "DEADLINE",
|
|
26
|
+
ChainId = "CHAIN_ID"
|
|
26
27
|
}
|
|
@@ -21,7 +21,7 @@ exports.SealOrdersOrderByProperty = void 0;
|
|
|
21
21
|
*/
|
|
22
22
|
var SealOrdersOrderByProperty;
|
|
23
23
|
(function (SealOrdersOrderByProperty) {
|
|
24
|
-
SealOrdersOrderByProperty["
|
|
24
|
+
SealOrdersOrderByProperty["Unspecified"] = "UNSPECIFIED";
|
|
25
25
|
SealOrdersOrderByProperty["Owner"] = "OWNER";
|
|
26
26
|
SealOrdersOrderByProperty["TokenIn"] = "TOKEN_IN";
|
|
27
27
|
SealOrdersOrderByProperty["TokenOut"] = "TOKEN_OUT";
|
|
@@ -29,4 +29,5 @@ var SealOrdersOrderByProperty;
|
|
|
29
29
|
SealOrdersOrderByProperty["Price"] = "PRICE";
|
|
30
30
|
SealOrdersOrderByProperty["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
31
31
|
SealOrdersOrderByProperty["Deadline"] = "DEADLINE";
|
|
32
|
+
SealOrdersOrderByProperty["ChainId"] = "CHAIN_ID";
|
|
32
33
|
})(SealOrdersOrderByProperty || (exports.SealOrdersOrderByProperty = SealOrdersOrderByProperty = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SealEIP712DomainConfig } from './seal-eip712-domain-config';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealSignatureVerificationConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface SealSignatureVerificationConfig {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SealEIP712DomainConfig}
|
|
22
|
+
* @memberof SealSignatureVerificationConfig
|
|
23
|
+
*/
|
|
24
|
+
'eip712Domain'?: SealEIP712DomainConfig;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* seal/seal.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TypesOrderStatus {
|
|
18
|
+
OrderStatusUnspecified = "ORDER_STATUS_UNSPECIFIED",
|
|
19
|
+
OrderStatusExpired = "ORDER_STATUS_EXPIRED"
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* seal/seal.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TypesOrderStatus = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var TypesOrderStatus;
|
|
23
|
+
(function (TypesOrderStatus) {
|
|
24
|
+
TypesOrderStatus["OrderStatusUnspecified"] = "ORDER_STATUS_UNSPECIFIED";
|
|
25
|
+
TypesOrderStatus["OrderStatusExpired"] = "ORDER_STATUS_EXPIRED";
|
|
26
|
+
})(TypesOrderStatus || (exports.TypesOrderStatus = TypesOrderStatus = {}));
|
|
@@ -21,7 +21,7 @@ exports.TypesTransferPermissionType = void 0;
|
|
|
21
21
|
*/
|
|
22
22
|
var TypesTransferPermissionType;
|
|
23
23
|
(function (TypesTransferPermissionType) {
|
|
24
|
-
TypesTransferPermissionType["
|
|
24
|
+
TypesTransferPermissionType["Unspecified"] = "UNSPECIFIED";
|
|
25
25
|
TypesTransferPermissionType["Normal"] = "NORMAL";
|
|
26
26
|
TypesTransferPermissionType["Eip2612"] = "EIP2612";
|
|
27
27
|
TypesTransferPermissionType["Permit2"] = "PERMIT2";
|
package/package.json
CHANGED