@seal-protocol/backendjs 0.0.24 → 0.0.25
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 +4 -13
- package/lib/api/seal-client.js +6 -12
- package/lib/model/seal-create-order-intent-request.d.ts +15 -15
- package/lib/model/seal-order.d.ts +8 -8
- package/lib/model/seal-orders-order-by-property.d.ts +1 -2
- package/lib/model/seal-orders-order-by-property.js +1 -2
- package/package.json +1 -1
package/lib/api/seal-client.d.ts
CHANGED
|
@@ -65,14 +65,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
65
65
|
* @param {string} [paginationKey]
|
|
66
66
|
* @param {number} [paginationLimit]
|
|
67
67
|
* @param {boolean} [paginationCountTotal]
|
|
68
|
-
* @param {boolean} [partiallyFillableValue]
|
|
69
68
|
* @param {boolean} [reservationAllowedValue]
|
|
70
69
|
* @param {boolean} [liveValue]
|
|
71
70
|
* @param {boolean} [cancelledValue]
|
|
72
71
|
* @param {*} [options] Override http request option.
|
|
73
72
|
* @throws {RequiredError}
|
|
74
73
|
*/
|
|
75
|
-
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean,
|
|
74
|
+
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
76
75
|
/**
|
|
77
76
|
*
|
|
78
77
|
* @param {string} [paginationKey]
|
|
@@ -142,14 +141,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
142
141
|
* @param {string} [paginationKey]
|
|
143
142
|
* @param {number} [paginationLimit]
|
|
144
143
|
* @param {boolean} [paginationCountTotal]
|
|
145
|
-
* @param {boolean} [partiallyFillableValue]
|
|
146
144
|
* @param {boolean} [reservationAllowedValue]
|
|
147
145
|
* @param {boolean} [liveValue]
|
|
148
146
|
* @param {boolean} [cancelledValue]
|
|
149
147
|
* @param {*} [options] Override http request option.
|
|
150
148
|
* @throws {RequiredError}
|
|
151
149
|
*/
|
|
152
|
-
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean,
|
|
150
|
+
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
153
151
|
/**
|
|
154
152
|
*
|
|
155
153
|
* @param {string} [paginationKey]
|
|
@@ -315,7 +313,7 @@ export interface SealClientGetOrdersRequest {
|
|
|
315
313
|
readonly toPrice?: string;
|
|
316
314
|
/**
|
|
317
315
|
*
|
|
318
|
-
* @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | '
|
|
316
|
+
* @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'DEADLINE' | 'CHAIN_ID' | 'DEPOSIT_TOKEN' | 'MIN_RESERVATION_DEPOSIT_AMOUNT' | 'REMAINING_AMOUNT' | 'RESERVED_AMOUNT' | 'FILLED_AMOUNT'}
|
|
319
317
|
* @memberof SealClientGetOrders
|
|
320
318
|
*/
|
|
321
319
|
readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
|
|
@@ -343,12 +341,6 @@ export interface SealClientGetOrdersRequest {
|
|
|
343
341
|
* @memberof SealClientGetOrders
|
|
344
342
|
*/
|
|
345
343
|
readonly paginationCountTotal?: boolean;
|
|
346
|
-
/**
|
|
347
|
-
*
|
|
348
|
-
* @type {boolean}
|
|
349
|
-
* @memberof SealClientGetOrders
|
|
350
|
-
*/
|
|
351
|
-
readonly partiallyFillableValue?: boolean;
|
|
352
344
|
/**
|
|
353
345
|
*
|
|
354
346
|
* @type {boolean}
|
|
@@ -508,10 +500,9 @@ export declare enum GetOrdersOrderByPropertyEnum {
|
|
|
508
500
|
TokenOut = "TOKEN_OUT",
|
|
509
501
|
AmountIn = "AMOUNT_IN",
|
|
510
502
|
Price = "PRICE",
|
|
511
|
-
PartiallyFillable = "PARTIALLY_FILLABLE",
|
|
512
503
|
Deadline = "DEADLINE",
|
|
513
504
|
ChainId = "CHAIN_ID",
|
|
514
|
-
|
|
505
|
+
DepositToken = "DEPOSIT_TOKEN",
|
|
515
506
|
MinReservationDepositAmount = "MIN_RESERVATION_DEPOSIT_AMOUNT",
|
|
516
507
|
RemainingAmount = "REMAINING_AMOUNT",
|
|
517
508
|
ReservedAmount = "RESERVED_AMOUNT",
|
package/lib/api/seal-client.js
CHANGED
|
@@ -160,14 +160,13 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
160
160
|
* @param {string} [paginationKey]
|
|
161
161
|
* @param {number} [paginationLimit]
|
|
162
162
|
* @param {boolean} [paginationCountTotal]
|
|
163
|
-
* @param {boolean} [partiallyFillableValue]
|
|
164
163
|
* @param {boolean} [reservationAllowedValue]
|
|
165
164
|
* @param {boolean} [liveValue]
|
|
166
165
|
* @param {boolean} [cancelledValue]
|
|
167
166
|
* @param {*} [options] Override http request option.
|
|
168
167
|
* @throws {RequiredError}
|
|
169
168
|
*/
|
|
170
|
-
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal,
|
|
169
|
+
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, options = {}) => {
|
|
171
170
|
const localVarPath = `/seal/orders`;
|
|
172
171
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
173
172
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -211,9 +210,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
211
210
|
if (paginationCountTotal !== undefined) {
|
|
212
211
|
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
213
212
|
}
|
|
214
|
-
if (partiallyFillableValue !== undefined) {
|
|
215
|
-
localVarQueryParameter['partiallyFillable.value'] = partiallyFillableValue;
|
|
216
|
-
}
|
|
217
213
|
if (reservationAllowedValue !== undefined) {
|
|
218
214
|
localVarQueryParameter['reservationAllowed.value'] = reservationAllowedValue;
|
|
219
215
|
}
|
|
@@ -390,15 +386,14 @@ const SealClientFp = function (configuration) {
|
|
|
390
386
|
* @param {string} [paginationKey]
|
|
391
387
|
* @param {number} [paginationLimit]
|
|
392
388
|
* @param {boolean} [paginationCountTotal]
|
|
393
|
-
* @param {boolean} [partiallyFillableValue]
|
|
394
389
|
* @param {boolean} [reservationAllowedValue]
|
|
395
390
|
* @param {boolean} [liveValue]
|
|
396
391
|
* @param {boolean} [cancelledValue]
|
|
397
392
|
* @param {*} [options] Override http request option.
|
|
398
393
|
* @throws {RequiredError}
|
|
399
394
|
*/
|
|
400
|
-
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal,
|
|
401
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal,
|
|
395
|
+
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, options) {
|
|
396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, options);
|
|
402
397
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
403
398
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
404
399
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -487,7 +482,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
487
482
|
* @throws {RequiredError}
|
|
488
483
|
*/
|
|
489
484
|
getOrders(requestParameters = {}, options) {
|
|
490
|
-
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.
|
|
485
|
+
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.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, options).then((request) => request(axios, basePath));
|
|
491
486
|
},
|
|
492
487
|
/**
|
|
493
488
|
*
|
|
@@ -563,7 +558,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
563
558
|
* @memberof SealClient
|
|
564
559
|
*/
|
|
565
560
|
getOrders(requestParameters = {}, options) {
|
|
566
|
-
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.
|
|
561
|
+
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.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, options).then((request) => request(this.axios, this.basePath));
|
|
567
562
|
}
|
|
568
563
|
/**
|
|
569
564
|
*
|
|
@@ -598,10 +593,9 @@ var GetOrdersOrderByPropertyEnum;
|
|
|
598
593
|
GetOrdersOrderByPropertyEnum["TokenOut"] = "TOKEN_OUT";
|
|
599
594
|
GetOrdersOrderByPropertyEnum["AmountIn"] = "AMOUNT_IN";
|
|
600
595
|
GetOrdersOrderByPropertyEnum["Price"] = "PRICE";
|
|
601
|
-
GetOrdersOrderByPropertyEnum["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
602
596
|
GetOrdersOrderByPropertyEnum["Deadline"] = "DEADLINE";
|
|
603
597
|
GetOrdersOrderByPropertyEnum["ChainId"] = "CHAIN_ID";
|
|
604
|
-
GetOrdersOrderByPropertyEnum["
|
|
598
|
+
GetOrdersOrderByPropertyEnum["DepositToken"] = "DEPOSIT_TOKEN";
|
|
605
599
|
GetOrdersOrderByPropertyEnum["MinReservationDepositAmount"] = "MIN_RESERVATION_DEPOSIT_AMOUNT";
|
|
606
600
|
GetOrdersOrderByPropertyEnum["RemainingAmount"] = "REMAINING_AMOUNT";
|
|
607
601
|
GetOrdersOrderByPropertyEnum["ReservedAmount"] = "RESERVED_AMOUNT";
|
|
@@ -54,64 +54,64 @@ export interface SealCreateOrderIntentRequest {
|
|
|
54
54
|
'price': string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {string}
|
|
58
58
|
* @memberof SealCreateOrderIntentRequest
|
|
59
59
|
*/
|
|
60
|
-
'
|
|
60
|
+
'depositAmount': string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof SealCreateOrderIntentRequest
|
|
65
65
|
*/
|
|
66
|
-
'
|
|
66
|
+
'depositToken': string;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof SealCreateOrderIntentRequest
|
|
71
71
|
*/
|
|
72
|
-
'
|
|
72
|
+
'reservationPeriodSeconds': number;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof SealCreateOrderIntentRequest
|
|
77
77
|
*/
|
|
78
|
-
'
|
|
78
|
+
'minFillRatio': string;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @type {
|
|
81
|
+
* @type {string}
|
|
82
82
|
* @memberof SealCreateOrderIntentRequest
|
|
83
83
|
*/
|
|
84
|
-
'
|
|
84
|
+
'minReservationDepositAmount': string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @memberof SealCreateOrderIntentRequest
|
|
89
89
|
*/
|
|
90
|
-
'
|
|
90
|
+
'nonce': string;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
|
-
* @type {
|
|
93
|
+
* @type {number}
|
|
94
94
|
* @memberof SealCreateOrderIntentRequest
|
|
95
95
|
*/
|
|
96
|
-
'
|
|
96
|
+
'deadline': number;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @memberof SealCreateOrderIntentRequest
|
|
101
101
|
*/
|
|
102
|
-
'
|
|
102
|
+
'signature': string;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
|
-
* @type {
|
|
105
|
+
* @type {SealTransferPermission}
|
|
106
106
|
* @memberof SealCreateOrderIntentRequest
|
|
107
107
|
*/
|
|
108
|
-
'
|
|
108
|
+
'transferPermission': SealTransferPermission;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
|
-
* @type {
|
|
111
|
+
* @type {boolean}
|
|
112
112
|
* @memberof SealCreateOrderIntentRequest
|
|
113
113
|
*/
|
|
114
|
-
'
|
|
114
|
+
'reservationAllowed': boolean;
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @type {string}
|
|
@@ -58,12 +58,6 @@ export interface SealOrder {
|
|
|
58
58
|
* @memberof SealOrder
|
|
59
59
|
*/
|
|
60
60
|
'priceDecimal'?: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
64
|
-
* @memberof SealOrder
|
|
65
|
-
*/
|
|
66
|
-
'partiallyFillable'?: boolean;
|
|
67
61
|
/**
|
|
68
62
|
*
|
|
69
63
|
* @type {string}
|
|
@@ -111,7 +105,7 @@ export interface SealOrder {
|
|
|
111
105
|
* @type {string}
|
|
112
106
|
* @memberof SealOrder
|
|
113
107
|
*/
|
|
114
|
-
'
|
|
108
|
+
'depositToken'?: string;
|
|
115
109
|
/**
|
|
116
110
|
*
|
|
117
111
|
* @type {string}
|
|
@@ -153,7 +147,7 @@ export interface SealOrder {
|
|
|
153
147
|
* @type {string}
|
|
154
148
|
* @memberof SealOrder
|
|
155
149
|
*/
|
|
156
|
-
'
|
|
150
|
+
'depositAmount'?: string;
|
|
157
151
|
/**
|
|
158
152
|
*
|
|
159
153
|
* @type {string}
|
|
@@ -172,4 +166,10 @@ export interface SealOrder {
|
|
|
172
166
|
* @memberof SealOrder
|
|
173
167
|
*/
|
|
174
168
|
'expiredReservationAmount'?: string;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {TypesTimestamp}
|
|
172
|
+
* @memberof SealOrder
|
|
173
|
+
*/
|
|
174
|
+
'creationTime'?: TypesTimestamp;
|
|
175
175
|
}
|
|
@@ -21,10 +21,9 @@ export declare enum SealOrdersOrderByProperty {
|
|
|
21
21
|
TokenOut = "TOKEN_OUT",
|
|
22
22
|
AmountIn = "AMOUNT_IN",
|
|
23
23
|
Price = "PRICE",
|
|
24
|
-
PartiallyFillable = "PARTIALLY_FILLABLE",
|
|
25
24
|
Deadline = "DEADLINE",
|
|
26
25
|
ChainId = "CHAIN_ID",
|
|
27
|
-
|
|
26
|
+
DepositToken = "DEPOSIT_TOKEN",
|
|
28
27
|
MinReservationDepositAmount = "MIN_RESERVATION_DEPOSIT_AMOUNT",
|
|
29
28
|
RemainingAmount = "REMAINING_AMOUNT",
|
|
30
29
|
ReservedAmount = "RESERVED_AMOUNT",
|
|
@@ -27,10 +27,9 @@ var SealOrdersOrderByProperty;
|
|
|
27
27
|
SealOrdersOrderByProperty["TokenOut"] = "TOKEN_OUT";
|
|
28
28
|
SealOrdersOrderByProperty["AmountIn"] = "AMOUNT_IN";
|
|
29
29
|
SealOrdersOrderByProperty["Price"] = "PRICE";
|
|
30
|
-
SealOrdersOrderByProperty["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
31
30
|
SealOrdersOrderByProperty["Deadline"] = "DEADLINE";
|
|
32
31
|
SealOrdersOrderByProperty["ChainId"] = "CHAIN_ID";
|
|
33
|
-
SealOrdersOrderByProperty["
|
|
32
|
+
SealOrdersOrderByProperty["DepositToken"] = "DEPOSIT_TOKEN";
|
|
34
33
|
SealOrdersOrderByProperty["MinReservationDepositAmount"] = "MIN_RESERVATION_DEPOSIT_AMOUNT";
|
|
35
34
|
SealOrdersOrderByProperty["RemainingAmount"] = "REMAINING_AMOUNT";
|
|
36
35
|
SealOrdersOrderByProperty["ReservedAmount"] = "RESERVED_AMOUNT";
|
package/package.json
CHANGED