@seal-protocol/backendjs 0.0.14 → 0.0.16
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 +41 -20
- package/lib/api/seal-client.js +31 -20
- package/lib/model/index.d.ts +2 -1
- package/lib/model/index.js +2 -1
- package/lib/model/seal-create-order-intent-request.d.ts +36 -0
- package/lib/model/seal-create-order-intent-response.d.ts +25 -0
- package/lib/model/seal-create-order-intent-response.js +15 -0
- package/lib/model/seal-order.d.ts +84 -6
- package/lib/model/seal-orders-order-by-property.d.ts +6 -1
- package/lib/model/seal-orders-order-by-property.js +5 -0
- package/lib/model/types-bool.d.ts +24 -0
- package/lib/model/types-bool.js +15 -0
- package/lib/model/types-order-status.d.ts +5 -1
- package/lib/model/types-order-status.js +4 -0
- package/lib/model/types-timestamp.d.ts +30 -0
- package/lib/model/types-timestamp.js +15 -0
- package/package.json +1 -1
package/lib/api/seal-client.d.ts
CHANGED
|
@@ -51,16 +51,19 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
51
51
|
* @param {string} [owner]
|
|
52
52
|
* @param {string} [fromPrice] uint256
|
|
53
53
|
* @param {string} [toPrice] uint256
|
|
54
|
-
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
55
54
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
56
55
|
* @param {boolean} [orderByDescending]
|
|
57
56
|
* @param {string} [paginationKey]
|
|
58
57
|
* @param {number} [paginationLimit]
|
|
59
58
|
* @param {boolean} [paginationCountTotal]
|
|
59
|
+
* @param {boolean} [partiallyFillableValue]
|
|
60
|
+
* @param {boolean} [reservationAllowedValue]
|
|
61
|
+
* @param {boolean} [liveValue]
|
|
62
|
+
* @param {boolean} [cancelledValue]
|
|
60
63
|
* @param {*} [options] Override http request option.
|
|
61
64
|
* @throws {RequiredError}
|
|
62
65
|
*/
|
|
63
|
-
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string,
|
|
66
|
+
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, partiallyFillableValue?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
67
|
/**
|
|
65
68
|
*
|
|
66
69
|
* @param {*} [options] Override http request option.
|
|
@@ -102,16 +105,19 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
102
105
|
* @param {string} [owner]
|
|
103
106
|
* @param {string} [fromPrice] uint256
|
|
104
107
|
* @param {string} [toPrice] uint256
|
|
105
|
-
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
106
108
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
107
109
|
* @param {boolean} [orderByDescending]
|
|
108
110
|
* @param {string} [paginationKey]
|
|
109
111
|
* @param {number} [paginationLimit]
|
|
110
112
|
* @param {boolean} [paginationCountTotal]
|
|
113
|
+
* @param {boolean} [partiallyFillableValue]
|
|
114
|
+
* @param {boolean} [reservationAllowedValue]
|
|
115
|
+
* @param {boolean} [liveValue]
|
|
116
|
+
* @param {boolean} [cancelledValue]
|
|
111
117
|
* @param {*} [options] Override http request option.
|
|
112
118
|
* @throws {RequiredError}
|
|
113
119
|
*/
|
|
114
|
-
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string,
|
|
120
|
+
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, partiallyFillableValue?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
115
121
|
/**
|
|
116
122
|
*
|
|
117
123
|
* @param {*} [options] Override http request option.
|
|
@@ -232,15 +238,9 @@ export interface SealClientGetOrdersRequest {
|
|
|
232
238
|
* @memberof SealClientGetOrders
|
|
233
239
|
*/
|
|
234
240
|
readonly toPrice?: string;
|
|
235
|
-
/**
|
|
236
|
-
* orders that have either of the given statuses
|
|
237
|
-
* @type {Array<'ORDER_STATUS_UNSPECIFIED' | 'ORDER_STATUS_EXPIRED'>}
|
|
238
|
-
* @memberof SealClientGetOrders
|
|
239
|
-
*/
|
|
240
|
-
readonly statuses?: Array<GetOrdersStatusesEnum>;
|
|
241
241
|
/**
|
|
242
242
|
*
|
|
243
|
-
* @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID'}
|
|
243
|
+
* @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID' | 'RESERVATION_DEPOSIT_DENOM' | 'MIN_RESERVATION_DEPOSIT_AMOUNT' | 'REMAINING_AMOUNT' | 'RESERVED_AMOUNT' | 'FILLED_AMOUNT'}
|
|
244
244
|
* @memberof SealClientGetOrders
|
|
245
245
|
*/
|
|
246
246
|
readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
|
|
@@ -268,6 +268,30 @@ export interface SealClientGetOrdersRequest {
|
|
|
268
268
|
* @memberof SealClientGetOrders
|
|
269
269
|
*/
|
|
270
270
|
readonly paginationCountTotal?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {boolean}
|
|
274
|
+
* @memberof SealClientGetOrders
|
|
275
|
+
*/
|
|
276
|
+
readonly partiallyFillableValue?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @type {boolean}
|
|
280
|
+
* @memberof SealClientGetOrders
|
|
281
|
+
*/
|
|
282
|
+
readonly reservationAllowedValue?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {boolean}
|
|
286
|
+
* @memberof SealClientGetOrders
|
|
287
|
+
*/
|
|
288
|
+
readonly liveValue?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {boolean}
|
|
292
|
+
* @memberof SealClientGetOrders
|
|
293
|
+
*/
|
|
294
|
+
readonly cancelledValue?: boolean;
|
|
271
295
|
}
|
|
272
296
|
/**
|
|
273
297
|
* SealClient - object-oriented interface
|
|
@@ -315,14 +339,6 @@ export declare class SealClient extends BaseAPI {
|
|
|
315
339
|
*/
|
|
316
340
|
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
|
|
317
341
|
}
|
|
318
|
-
/**
|
|
319
|
-
* @export
|
|
320
|
-
* @enum {string}
|
|
321
|
-
*/
|
|
322
|
-
export declare enum GetOrdersStatusesEnum {
|
|
323
|
-
OrderStatusUnspecified = "ORDER_STATUS_UNSPECIFIED",
|
|
324
|
-
OrderStatusExpired = "ORDER_STATUS_EXPIRED"
|
|
325
|
-
}
|
|
326
342
|
/**
|
|
327
343
|
* @export
|
|
328
344
|
* @enum {string}
|
|
@@ -336,5 +352,10 @@ export declare enum GetOrdersOrderByPropertyEnum {
|
|
|
336
352
|
Price = "PRICE",
|
|
337
353
|
PartiallyFillable = "PARTIALLY_FILLABLE",
|
|
338
354
|
Deadline = "DEADLINE",
|
|
339
|
-
ChainId = "CHAIN_ID"
|
|
355
|
+
ChainId = "CHAIN_ID",
|
|
356
|
+
ReservationDepositDenom = "RESERVATION_DEPOSIT_DENOM",
|
|
357
|
+
MinReservationDepositAmount = "MIN_RESERVATION_DEPOSIT_AMOUNT",
|
|
358
|
+
RemainingAmount = "REMAINING_AMOUNT",
|
|
359
|
+
ReservedAmount = "RESERVED_AMOUNT",
|
|
360
|
+
FilledAmount = "FILLED_AMOUNT"
|
|
340
361
|
}
|
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.
|
|
19
|
+
exports.GetOrdersOrderByPropertyEnum = 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
|
|
@@ -126,16 +126,19 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
126
126
|
* @param {string} [owner]
|
|
127
127
|
* @param {string} [fromPrice] uint256
|
|
128
128
|
* @param {string} [toPrice] uint256
|
|
129
|
-
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
130
129
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
131
130
|
* @param {boolean} [orderByDescending]
|
|
132
131
|
* @param {string} [paginationKey]
|
|
133
132
|
* @param {number} [paginationLimit]
|
|
134
133
|
* @param {boolean} [paginationCountTotal]
|
|
134
|
+
* @param {boolean} [partiallyFillableValue]
|
|
135
|
+
* @param {boolean} [reservationAllowedValue]
|
|
136
|
+
* @param {boolean} [liveValue]
|
|
137
|
+
* @param {boolean} [cancelledValue]
|
|
135
138
|
* @param {*} [options] Override http request option.
|
|
136
139
|
* @throws {RequiredError}
|
|
137
140
|
*/
|
|
138
|
-
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice,
|
|
141
|
+
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, partiallyFillableValue, reservationAllowedValue, liveValue, cancelledValue, options = {}) => {
|
|
139
142
|
const localVarPath = `/seal/orders`;
|
|
140
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
144
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -164,9 +167,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
164
167
|
if (toPrice !== undefined) {
|
|
165
168
|
localVarQueryParameter['toPrice'] = toPrice;
|
|
166
169
|
}
|
|
167
|
-
if (statuses) {
|
|
168
|
-
localVarQueryParameter['statuses'] = statuses;
|
|
169
|
-
}
|
|
170
170
|
if (orderByProperty !== undefined) {
|
|
171
171
|
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
172
172
|
}
|
|
@@ -182,6 +182,18 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
182
182
|
if (paginationCountTotal !== undefined) {
|
|
183
183
|
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
184
184
|
}
|
|
185
|
+
if (partiallyFillableValue !== undefined) {
|
|
186
|
+
localVarQueryParameter['partiallyFillable.value'] = partiallyFillableValue;
|
|
187
|
+
}
|
|
188
|
+
if (reservationAllowedValue !== undefined) {
|
|
189
|
+
localVarQueryParameter['reservationAllowed.value'] = reservationAllowedValue;
|
|
190
|
+
}
|
|
191
|
+
if (liveValue !== undefined) {
|
|
192
|
+
localVarQueryParameter['live.value'] = liveValue;
|
|
193
|
+
}
|
|
194
|
+
if (cancelledValue !== undefined) {
|
|
195
|
+
localVarQueryParameter['cancelled.value'] = cancelledValue;
|
|
196
|
+
}
|
|
185
197
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
199
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -268,17 +280,20 @@ const SealClientFp = function (configuration) {
|
|
|
268
280
|
* @param {string} [owner]
|
|
269
281
|
* @param {string} [fromPrice] uint256
|
|
270
282
|
* @param {string} [toPrice] uint256
|
|
271
|
-
* @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
|
|
272
283
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
273
284
|
* @param {boolean} [orderByDescending]
|
|
274
285
|
* @param {string} [paginationKey]
|
|
275
286
|
* @param {number} [paginationLimit]
|
|
276
287
|
* @param {boolean} [paginationCountTotal]
|
|
288
|
+
* @param {boolean} [partiallyFillableValue]
|
|
289
|
+
* @param {boolean} [reservationAllowedValue]
|
|
290
|
+
* @param {boolean} [liveValue]
|
|
291
|
+
* @param {boolean} [cancelledValue]
|
|
277
292
|
* @param {*} [options] Override http request option.
|
|
278
293
|
* @throws {RequiredError}
|
|
279
294
|
*/
|
|
280
|
-
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice,
|
|
281
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice,
|
|
295
|
+
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, partiallyFillableValue, reservationAllowedValue, liveValue, cancelledValue, options) {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, partiallyFillableValue, reservationAllowedValue, liveValue, cancelledValue, options);
|
|
282
297
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
283
298
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
284
299
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -337,7 +352,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
337
352
|
* @throws {RequiredError}
|
|
338
353
|
*/
|
|
339
354
|
getOrders(requestParameters = {}, options) {
|
|
340
|
-
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.
|
|
355
|
+
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.partiallyFillableValue, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, options).then((request) => request(axios, basePath));
|
|
341
356
|
},
|
|
342
357
|
/**
|
|
343
358
|
*
|
|
@@ -394,7 +409,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
394
409
|
* @memberof SealClient
|
|
395
410
|
*/
|
|
396
411
|
getOrders(requestParameters = {}, options) {
|
|
397
|
-
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.
|
|
412
|
+
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.partiallyFillableValue, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, options).then((request) => request(this.axios, this.basePath));
|
|
398
413
|
}
|
|
399
414
|
/**
|
|
400
415
|
*
|
|
@@ -407,15 +422,6 @@ class SealClient extends base_1.BaseAPI {
|
|
|
407
422
|
}
|
|
408
423
|
}
|
|
409
424
|
exports.SealClient = SealClient;
|
|
410
|
-
/**
|
|
411
|
-
* @export
|
|
412
|
-
* @enum {string}
|
|
413
|
-
*/
|
|
414
|
-
var GetOrdersStatusesEnum;
|
|
415
|
-
(function (GetOrdersStatusesEnum) {
|
|
416
|
-
GetOrdersStatusesEnum["OrderStatusUnspecified"] = "ORDER_STATUS_UNSPECIFIED";
|
|
417
|
-
GetOrdersStatusesEnum["OrderStatusExpired"] = "ORDER_STATUS_EXPIRED";
|
|
418
|
-
})(GetOrdersStatusesEnum || (exports.GetOrdersStatusesEnum = GetOrdersStatusesEnum = {}));
|
|
419
425
|
/**
|
|
420
426
|
* @export
|
|
421
427
|
* @enum {string}
|
|
@@ -431,4 +437,9 @@ var GetOrdersOrderByPropertyEnum;
|
|
|
431
437
|
GetOrdersOrderByPropertyEnum["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
432
438
|
GetOrdersOrderByPropertyEnum["Deadline"] = "DEADLINE";
|
|
433
439
|
GetOrdersOrderByPropertyEnum["ChainId"] = "CHAIN_ID";
|
|
440
|
+
GetOrdersOrderByPropertyEnum["ReservationDepositDenom"] = "RESERVATION_DEPOSIT_DENOM";
|
|
441
|
+
GetOrdersOrderByPropertyEnum["MinReservationDepositAmount"] = "MIN_RESERVATION_DEPOSIT_AMOUNT";
|
|
442
|
+
GetOrdersOrderByPropertyEnum["RemainingAmount"] = "REMAINING_AMOUNT";
|
|
443
|
+
GetOrdersOrderByPropertyEnum["ReservedAmount"] = "RESERVED_AMOUNT";
|
|
444
|
+
GetOrdersOrderByPropertyEnum["FilledAmount"] = "FILLED_AMOUNT";
|
|
434
445
|
})(GetOrdersOrderByPropertyEnum || (exports.GetOrdersOrderByPropertyEnum = GetOrdersOrderByPropertyEnum = {}));
|
package/lib/model/index.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ export * from './seal-orders-order-by-property';
|
|
|
15
15
|
export * from './seal-pagination';
|
|
16
16
|
export * from './seal-signature-verification-config';
|
|
17
17
|
export * from './seal-transfer-permission';
|
|
18
|
-
export * from './types-
|
|
18
|
+
export * from './types-bool';
|
|
19
|
+
export * from './types-timestamp';
|
|
19
20
|
export * from './types-transfer-permission-type';
|
package/lib/model/index.js
CHANGED
|
@@ -31,5 +31,6 @@ __exportStar(require("./seal-orders-order-by-property"), exports);
|
|
|
31
31
|
__exportStar(require("./seal-pagination"), exports);
|
|
32
32
|
__exportStar(require("./seal-signature-verification-config"), exports);
|
|
33
33
|
__exportStar(require("./seal-transfer-permission"), exports);
|
|
34
|
-
__exportStar(require("./types-
|
|
34
|
+
__exportStar(require("./types-bool"), exports);
|
|
35
|
+
__exportStar(require("./types-timestamp"), exports);
|
|
35
36
|
__exportStar(require("./types-transfer-permission-type"), exports);
|
|
@@ -82,4 +82,40 @@ export interface SealCreateOrderIntentRequest {
|
|
|
82
82
|
* @memberof SealCreateOrderIntentRequest
|
|
83
83
|
*/
|
|
84
84
|
'transferPermission': SealTransferPermission;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof SealCreateOrderIntentRequest
|
|
89
|
+
*/
|
|
90
|
+
'minFillRatio': string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof SealCreateOrderIntentRequest
|
|
95
|
+
*/
|
|
96
|
+
'reservationAllowed': boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof SealCreateOrderIntentRequest
|
|
101
|
+
*/
|
|
102
|
+
'reservationDepositDenom'?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof SealCreateOrderIntentRequest
|
|
107
|
+
*/
|
|
108
|
+
'reservationPeriodSeconds': string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof SealCreateOrderIntentRequest
|
|
113
|
+
*/
|
|
114
|
+
'minReservationDepositAmount': string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof SealCreateOrderIntentRequest
|
|
119
|
+
*/
|
|
120
|
+
'makerFee': string;
|
|
85
121
|
}
|
|
@@ -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 { TypesTimestamp } from './types-timestamp';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealCreateOrderIntentResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SealCreateOrderIntentResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TypesTimestamp}
|
|
22
|
+
* @memberof SealCreateOrderIntentResponse
|
|
23
|
+
*/
|
|
24
|
+
'dummyTime'?: TypesTimestamp;
|
|
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 });
|
|
@@ -9,13 +9,19 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { TypesTimestamp } from './types-timestamp';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* @export
|
|
16
16
|
* @interface SealOrder
|
|
17
17
|
*/
|
|
18
18
|
export interface SealOrder {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SealOrder
|
|
23
|
+
*/
|
|
24
|
+
'id'?: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -60,14 +66,86 @@ export interface SealOrder {
|
|
|
60
66
|
'nonce'?: string;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
|
-
* @type {
|
|
69
|
+
* @type {TypesTimestamp}
|
|
70
|
+
* @memberof SealOrder
|
|
71
|
+
*/
|
|
72
|
+
'deadline'?: TypesTimestamp;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof SealOrder
|
|
77
|
+
*/
|
|
78
|
+
'live'?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof SealOrder
|
|
83
|
+
*/
|
|
84
|
+
'cancelled'?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof SealOrder
|
|
89
|
+
*/
|
|
90
|
+
'minFillRatio'?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
64
94
|
* @memberof SealOrder
|
|
65
95
|
*/
|
|
66
|
-
'
|
|
96
|
+
'reservationAllowed'?: boolean;
|
|
67
97
|
/**
|
|
68
98
|
*
|
|
69
|
-
* @type {
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof SealOrder
|
|
101
|
+
*/
|
|
102
|
+
'reservationDepositDenom'?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof SealOrder
|
|
107
|
+
*/
|
|
108
|
+
'reservationPeriodSeconds'?: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof SealOrder
|
|
113
|
+
*/
|
|
114
|
+
'minReservationDepositAmount'?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof SealOrder
|
|
119
|
+
*/
|
|
120
|
+
'makerFee'?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof SealOrder
|
|
125
|
+
*/
|
|
126
|
+
'remainingAmount'?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof SealOrder
|
|
131
|
+
*/
|
|
132
|
+
'reservedAmount'?: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof SealOrder
|
|
137
|
+
*/
|
|
138
|
+
'reservationsCount'?: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof SealOrder
|
|
143
|
+
*/
|
|
144
|
+
'reservationDepositAmount'?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
70
148
|
* @memberof SealOrder
|
|
71
149
|
*/
|
|
72
|
-
'
|
|
150
|
+
'filledAmount'?: string;
|
|
73
151
|
}
|
|
@@ -23,5 +23,10 @@ export declare enum SealOrdersOrderByProperty {
|
|
|
23
23
|
Price = "PRICE",
|
|
24
24
|
PartiallyFillable = "PARTIALLY_FILLABLE",
|
|
25
25
|
Deadline = "DEADLINE",
|
|
26
|
-
ChainId = "CHAIN_ID"
|
|
26
|
+
ChainId = "CHAIN_ID",
|
|
27
|
+
ReservationDepositDenom = "RESERVATION_DEPOSIT_DENOM",
|
|
28
|
+
MinReservationDepositAmount = "MIN_RESERVATION_DEPOSIT_AMOUNT",
|
|
29
|
+
RemainingAmount = "REMAINING_AMOUNT",
|
|
30
|
+
ReservedAmount = "RESERVED_AMOUNT",
|
|
31
|
+
FilledAmount = "FILLED_AMOUNT"
|
|
27
32
|
}
|
|
@@ -30,4 +30,9 @@ var SealOrdersOrderByProperty;
|
|
|
30
30
|
SealOrdersOrderByProperty["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
31
31
|
SealOrdersOrderByProperty["Deadline"] = "DEADLINE";
|
|
32
32
|
SealOrdersOrderByProperty["ChainId"] = "CHAIN_ID";
|
|
33
|
+
SealOrdersOrderByProperty["ReservationDepositDenom"] = "RESERVATION_DEPOSIT_DENOM";
|
|
34
|
+
SealOrdersOrderByProperty["MinReservationDepositAmount"] = "MIN_RESERVATION_DEPOSIT_AMOUNT";
|
|
35
|
+
SealOrdersOrderByProperty["RemainingAmount"] = "REMAINING_AMOUNT";
|
|
36
|
+
SealOrdersOrderByProperty["ReservedAmount"] = "RESERVED_AMOUNT";
|
|
37
|
+
SealOrdersOrderByProperty["FilledAmount"] = "FILLED_AMOUNT";
|
|
33
38
|
})(SealOrdersOrderByProperty || (exports.SealOrdersOrderByProperty = SealOrdersOrderByProperty = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
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 TypesBool
|
|
16
|
+
*/
|
|
17
|
+
export interface TypesBool {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof TypesBool
|
|
22
|
+
*/
|
|
23
|
+
'value'?: boolean;
|
|
24
|
+
}
|
|
@@ -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 });
|
|
@@ -16,5 +16,9 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export declare enum TypesOrderStatus {
|
|
18
18
|
OrderStatusUnspecified = "ORDER_STATUS_UNSPECIFIED",
|
|
19
|
-
|
|
19
|
+
OrderStatusNew = "ORDER_STATUS_NEW",
|
|
20
|
+
OrderStatusLive = "ORDER_STATUS_LIVE",
|
|
21
|
+
OrderStatusExpired = "ORDER_STATUS_EXPIRED",
|
|
22
|
+
OrderStatusCancelled = "ORDER_STATUS_CANCELLED",
|
|
23
|
+
OrderStatusDone = "ORDER_STATUS_DONE"
|
|
20
24
|
}
|
|
@@ -22,5 +22,9 @@ exports.TypesOrderStatus = void 0;
|
|
|
22
22
|
var TypesOrderStatus;
|
|
23
23
|
(function (TypesOrderStatus) {
|
|
24
24
|
TypesOrderStatus["OrderStatusUnspecified"] = "ORDER_STATUS_UNSPECIFIED";
|
|
25
|
+
TypesOrderStatus["OrderStatusNew"] = "ORDER_STATUS_NEW";
|
|
26
|
+
TypesOrderStatus["OrderStatusLive"] = "ORDER_STATUS_LIVE";
|
|
25
27
|
TypesOrderStatus["OrderStatusExpired"] = "ORDER_STATUS_EXPIRED";
|
|
28
|
+
TypesOrderStatus["OrderStatusCancelled"] = "ORDER_STATUS_CANCELLED";
|
|
29
|
+
TypesOrderStatus["OrderStatusDone"] = "ORDER_STATUS_DONE";
|
|
26
30
|
})(TypesOrderStatus || (exports.TypesOrderStatus = TypesOrderStatus = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
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 TypesTimestamp
|
|
16
|
+
*/
|
|
17
|
+
export interface TypesTimestamp {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TypesTimestamp
|
|
22
|
+
*/
|
|
23
|
+
'seconds'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TypesTimestamp
|
|
28
|
+
*/
|
|
29
|
+
'nanos'?: number;
|
|
30
|
+
}
|
|
@@ -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 });
|
package/package.json
CHANGED