@seal-protocol/backendjs 0.0.24 → 0.0.27
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 +239 -20
- package/lib/api/seal-client.js +229 -21
- package/lib/model/index.d.ts +8 -0
- package/lib/model/index.js +8 -0
- package/lib/model/seal-chain.d.ts +42 -0
- package/lib/model/seal-chain.js +15 -0
- package/lib/model/seal-chains-order-by-property.d.ts +19 -0
- package/lib/model/seal-chains-order-by-property.js +25 -0
- package/lib/model/seal-chains-order-by.d.ts +31 -0
- package/lib/model/seal-chains-order-by.js +15 -0
- package/lib/model/seal-create-order-intent-request.d.ts +15 -15
- package/lib/model/seal-get-chains-response.d.ts +31 -0
- package/lib/model/seal-get-chains-response.js +15 -0
- package/lib/model/seal-get-tokens-response.d.ts +31 -0
- package/lib/model/seal-get-tokens-response.js +15 -0
- package/lib/model/seal-order.d.ts +10 -10
- package/lib/model/seal-orders-order-by-property.d.ts +1 -2
- package/lib/model/seal-orders-order-by-property.js +1 -2
- package/lib/model/seal-token.d.ts +72 -0
- package/lib/model/seal-token.js +15 -0
- package/lib/model/seal-tokens-order-by-property.d.ts +19 -0
- package/lib/model/seal-tokens-order-by-property.js +25 -0
- package/lib/model/seal-tokens-order-by.d.ts +31 -0
- package/lib/model/seal-tokens-order-by.js +15 -0
- package/package.json +1 -1
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.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetTokensOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = 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
|
|
@@ -111,6 +111,50 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
111
111
|
options: localVarRequestOptions,
|
|
112
112
|
};
|
|
113
113
|
},
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {string} [paginationKey]
|
|
117
|
+
* @param {number} [paginationLimit]
|
|
118
|
+
* @param {boolean} [paginationCountTotal]
|
|
119
|
+
* @param {GetChainsOrderByPropertyEnum} [orderByProperty]
|
|
120
|
+
* @param {boolean} [orderByDescending]
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
getChains: async (paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, options = {}) => {
|
|
125
|
+
const localVarPath = `/seal/chains`;
|
|
126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
let baseOptions;
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
133
|
+
const localVarHeaderParameter = {};
|
|
134
|
+
const localVarQueryParameter = {};
|
|
135
|
+
if (paginationKey !== undefined) {
|
|
136
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
137
|
+
}
|
|
138
|
+
if (paginationLimit !== undefined) {
|
|
139
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
140
|
+
}
|
|
141
|
+
if (paginationCountTotal !== undefined) {
|
|
142
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
143
|
+
}
|
|
144
|
+
if (orderByProperty !== undefined) {
|
|
145
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
146
|
+
}
|
|
147
|
+
if (orderByDescending !== undefined) {
|
|
148
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
149
|
+
}
|
|
150
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
153
|
+
return {
|
|
154
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
155
|
+
options: localVarRequestOptions,
|
|
156
|
+
};
|
|
157
|
+
},
|
|
114
158
|
/**
|
|
115
159
|
*
|
|
116
160
|
* @param {string} chainId uint256
|
|
@@ -153,21 +197,27 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
153
197
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
154
198
|
* @param {string} [tokenOut]
|
|
155
199
|
* @param {string} [owner]
|
|
156
|
-
* @param {string} [
|
|
157
|
-
* @param {string} [
|
|
200
|
+
* @param {string} [fromPriceDecimal]
|
|
201
|
+
* @param {string} [toPriceDecimal]
|
|
158
202
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
159
203
|
* @param {boolean} [orderByDescending]
|
|
160
204
|
* @param {string} [paginationKey]
|
|
161
205
|
* @param {number} [paginationLimit]
|
|
162
206
|
* @param {boolean} [paginationCountTotal]
|
|
163
|
-
* @param {boolean} [partiallyFillableValue]
|
|
164
207
|
* @param {boolean} [reservationAllowedValue]
|
|
165
208
|
* @param {boolean} [liveValue]
|
|
166
209
|
* @param {boolean} [cancelledValue]
|
|
210
|
+
* @param {string} [depositToken]
|
|
211
|
+
* @param {number} [minReservationPeriodSeconds]
|
|
212
|
+
* @param {string} [minRemainingAmount] uint256
|
|
213
|
+
* @param {string} [minPriceMargin] not supported yet
|
|
214
|
+
* @param {string} [maxPriceMargin] not supported yet
|
|
215
|
+
* @param {string} [maxReservationDepositPerStable] not supported yet
|
|
216
|
+
* @param {string} [minRemainingAmountStableTerms] not supported yet
|
|
167
217
|
* @param {*} [options] Override http request option.
|
|
168
218
|
* @throws {RequiredError}
|
|
169
219
|
*/
|
|
170
|
-
getOrders: async (chainId, tokenIn, tokenOut, owner,
|
|
220
|
+
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options = {}) => {
|
|
171
221
|
const localVarPath = `/seal/orders`;
|
|
172
222
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
173
223
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -190,11 +240,11 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
190
240
|
if (owner !== undefined) {
|
|
191
241
|
localVarQueryParameter['owner'] = owner;
|
|
192
242
|
}
|
|
193
|
-
if (
|
|
194
|
-
localVarQueryParameter['
|
|
243
|
+
if (fromPriceDecimal !== undefined) {
|
|
244
|
+
localVarQueryParameter['fromPriceDecimal'] = fromPriceDecimal;
|
|
195
245
|
}
|
|
196
|
-
if (
|
|
197
|
-
localVarQueryParameter['
|
|
246
|
+
if (toPriceDecimal !== undefined) {
|
|
247
|
+
localVarQueryParameter['toPriceDecimal'] = toPriceDecimal;
|
|
198
248
|
}
|
|
199
249
|
if (orderByProperty !== undefined) {
|
|
200
250
|
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
@@ -211,9 +261,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
211
261
|
if (paginationCountTotal !== undefined) {
|
|
212
262
|
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
213
263
|
}
|
|
214
|
-
if (partiallyFillableValue !== undefined) {
|
|
215
|
-
localVarQueryParameter['partiallyFillable.value'] = partiallyFillableValue;
|
|
216
|
-
}
|
|
217
264
|
if (reservationAllowedValue !== undefined) {
|
|
218
265
|
localVarQueryParameter['reservationAllowed.value'] = reservationAllowedValue;
|
|
219
266
|
}
|
|
@@ -223,6 +270,27 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
223
270
|
if (cancelledValue !== undefined) {
|
|
224
271
|
localVarQueryParameter['cancelled.value'] = cancelledValue;
|
|
225
272
|
}
|
|
273
|
+
if (depositToken !== undefined) {
|
|
274
|
+
localVarQueryParameter['depositToken'] = depositToken;
|
|
275
|
+
}
|
|
276
|
+
if (minReservationPeriodSeconds !== undefined) {
|
|
277
|
+
localVarQueryParameter['minReservationPeriodSeconds'] = minReservationPeriodSeconds;
|
|
278
|
+
}
|
|
279
|
+
if (minRemainingAmount !== undefined) {
|
|
280
|
+
localVarQueryParameter['minRemainingAmount'] = minRemainingAmount;
|
|
281
|
+
}
|
|
282
|
+
if (minPriceMargin !== undefined) {
|
|
283
|
+
localVarQueryParameter['minPriceMargin'] = minPriceMargin;
|
|
284
|
+
}
|
|
285
|
+
if (maxPriceMargin !== undefined) {
|
|
286
|
+
localVarQueryParameter['maxPriceMargin'] = maxPriceMargin;
|
|
287
|
+
}
|
|
288
|
+
if (maxReservationDepositPerStable !== undefined) {
|
|
289
|
+
localVarQueryParameter['maxReservationDepositPerStable'] = maxReservationDepositPerStable;
|
|
290
|
+
}
|
|
291
|
+
if (minRemainingAmountStableTerms !== undefined) {
|
|
292
|
+
localVarQueryParameter['minRemainingAmountStableTerms'] = minRemainingAmountStableTerms;
|
|
293
|
+
}
|
|
226
294
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
227
295
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
296
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -295,6 +363,54 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
295
363
|
options: localVarRequestOptions,
|
|
296
364
|
};
|
|
297
365
|
},
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @param {string} [paginationKey]
|
|
369
|
+
* @param {number} [paginationLimit]
|
|
370
|
+
* @param {boolean} [paginationCountTotal]
|
|
371
|
+
* @param {GetTokensOrderByPropertyEnum} [orderByProperty]
|
|
372
|
+
* @param {boolean} [orderByDescending]
|
|
373
|
+
* @param {string} [chainId]
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
getTokens: async (paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, options = {}) => {
|
|
378
|
+
const localVarPath = `/seal/tokens`;
|
|
379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
381
|
+
let baseOptions;
|
|
382
|
+
if (configuration) {
|
|
383
|
+
baseOptions = configuration.baseOptions;
|
|
384
|
+
}
|
|
385
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
386
|
+
const localVarHeaderParameter = {};
|
|
387
|
+
const localVarQueryParameter = {};
|
|
388
|
+
if (paginationKey !== undefined) {
|
|
389
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
390
|
+
}
|
|
391
|
+
if (paginationLimit !== undefined) {
|
|
392
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
393
|
+
}
|
|
394
|
+
if (paginationCountTotal !== undefined) {
|
|
395
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
396
|
+
}
|
|
397
|
+
if (orderByProperty !== undefined) {
|
|
398
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
399
|
+
}
|
|
400
|
+
if (orderByDescending !== undefined) {
|
|
401
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
402
|
+
}
|
|
403
|
+
if (chainId !== undefined) {
|
|
404
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
405
|
+
}
|
|
406
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
409
|
+
return {
|
|
410
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
},
|
|
298
414
|
/**
|
|
299
415
|
*
|
|
300
416
|
* @param {*} [options] Override http request option.
|
|
@@ -364,6 +480,22 @@ const SealClientFp = function (configuration) {
|
|
|
364
480
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrderIntent']?.[localVarOperationServerIndex]?.url;
|
|
365
481
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
366
482
|
},
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @param {string} [paginationKey]
|
|
486
|
+
* @param {number} [paginationLimit]
|
|
487
|
+
* @param {boolean} [paginationCountTotal]
|
|
488
|
+
* @param {GetChainsOrderByPropertyEnum} [orderByProperty]
|
|
489
|
+
* @param {boolean} [orderByDescending]
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
async getChains(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, options) {
|
|
494
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChains(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, options);
|
|
495
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
496
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getChains']?.[localVarOperationServerIndex]?.url;
|
|
497
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
498
|
+
},
|
|
367
499
|
/**
|
|
368
500
|
*
|
|
369
501
|
* @param {string} chainId uint256
|
|
@@ -383,22 +515,28 @@ const SealClientFp = function (configuration) {
|
|
|
383
515
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
384
516
|
* @param {string} [tokenOut]
|
|
385
517
|
* @param {string} [owner]
|
|
386
|
-
* @param {string} [
|
|
387
|
-
* @param {string} [
|
|
518
|
+
* @param {string} [fromPriceDecimal]
|
|
519
|
+
* @param {string} [toPriceDecimal]
|
|
388
520
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
389
521
|
* @param {boolean} [orderByDescending]
|
|
390
522
|
* @param {string} [paginationKey]
|
|
391
523
|
* @param {number} [paginationLimit]
|
|
392
524
|
* @param {boolean} [paginationCountTotal]
|
|
393
|
-
* @param {boolean} [partiallyFillableValue]
|
|
394
525
|
* @param {boolean} [reservationAllowedValue]
|
|
395
526
|
* @param {boolean} [liveValue]
|
|
396
527
|
* @param {boolean} [cancelledValue]
|
|
528
|
+
* @param {string} [depositToken]
|
|
529
|
+
* @param {number} [minReservationPeriodSeconds]
|
|
530
|
+
* @param {string} [minRemainingAmount] uint256
|
|
531
|
+
* @param {string} [minPriceMargin] not supported yet
|
|
532
|
+
* @param {string} [maxPriceMargin] not supported yet
|
|
533
|
+
* @param {string} [maxReservationDepositPerStable] not supported yet
|
|
534
|
+
* @param {string} [minRemainingAmountStableTerms] not supported yet
|
|
397
535
|
* @param {*} [options] Override http request option.
|
|
398
536
|
* @throws {RequiredError}
|
|
399
537
|
*/
|
|
400
|
-
async getOrders(chainId, tokenIn, tokenOut, owner,
|
|
401
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner,
|
|
538
|
+
async getOrders(chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options) {
|
|
539
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options);
|
|
402
540
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
403
541
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
404
542
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -424,6 +562,23 @@ const SealClientFp = function (configuration) {
|
|
|
424
562
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
|
|
425
563
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
426
564
|
},
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @param {string} [paginationKey]
|
|
568
|
+
* @param {number} [paginationLimit]
|
|
569
|
+
* @param {boolean} [paginationCountTotal]
|
|
570
|
+
* @param {GetTokensOrderByPropertyEnum} [orderByProperty]
|
|
571
|
+
* @param {boolean} [orderByDescending]
|
|
572
|
+
* @param {string} [chainId]
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
async getTokens(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, options) {
|
|
577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokens(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, options);
|
|
578
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
579
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getTokens']?.[localVarOperationServerIndex]?.url;
|
|
580
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
581
|
+
},
|
|
427
582
|
/**
|
|
428
583
|
*
|
|
429
584
|
* @param {*} [options] Override http request option.
|
|
@@ -471,6 +626,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
471
626
|
createOrderIntent(requestParameters, options) {
|
|
472
627
|
return localVarFp.createOrderIntent(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
473
628
|
},
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {SealClientGetChainsRequest} requestParameters Request parameters.
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
getChains(requestParameters = {}, options) {
|
|
636
|
+
return localVarFp.getChains(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, options).then((request) => request(axios, basePath));
|
|
637
|
+
},
|
|
474
638
|
/**
|
|
475
639
|
*
|
|
476
640
|
* @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
|
|
@@ -487,7 +651,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
487
651
|
* @throws {RequiredError}
|
|
488
652
|
*/
|
|
489
653
|
getOrders(requestParameters = {}, options) {
|
|
490
|
-
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.
|
|
654
|
+
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPriceDecimal, requestParameters.toPriceDecimal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, options).then((request) => request(axios, basePath));
|
|
491
655
|
},
|
|
492
656
|
/**
|
|
493
657
|
*
|
|
@@ -498,6 +662,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
498
662
|
getPairs(requestParameters = {}, options) {
|
|
499
663
|
return localVarFp.getPairs(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.reservableOnly, requestParameters.excludeEmpty, options).then((request) => request(axios, basePath));
|
|
500
664
|
},
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @param {SealClientGetTokensRequest} requestParameters Request parameters.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
getTokens(requestParameters = {}, options) {
|
|
672
|
+
return localVarFp.getTokens(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, options).then((request) => request(axios, basePath));
|
|
673
|
+
},
|
|
501
674
|
/**
|
|
502
675
|
*
|
|
503
676
|
* @param {*} [options] Override http request option.
|
|
@@ -545,6 +718,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
545
718
|
createOrderIntent(requestParameters, options) {
|
|
546
719
|
return (0, exports.SealClientFp)(this.configuration).createOrderIntent(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
547
720
|
}
|
|
721
|
+
/**
|
|
722
|
+
*
|
|
723
|
+
* @param {SealClientGetChainsRequest} requestParameters Request parameters.
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
* @memberof SealClient
|
|
727
|
+
*/
|
|
728
|
+
getChains(requestParameters = {}, options) {
|
|
729
|
+
return (0, exports.SealClientFp)(this.configuration).getChains(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, options).then((request) => request(this.axios, this.basePath));
|
|
730
|
+
}
|
|
548
731
|
/**
|
|
549
732
|
*
|
|
550
733
|
* @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
|
|
@@ -563,7 +746,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
563
746
|
* @memberof SealClient
|
|
564
747
|
*/
|
|
565
748
|
getOrders(requestParameters = {}, options) {
|
|
566
|
-
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.
|
|
749
|
+
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPriceDecimal, requestParameters.toPriceDecimal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, options).then((request) => request(this.axios, this.basePath));
|
|
567
750
|
}
|
|
568
751
|
/**
|
|
569
752
|
*
|
|
@@ -575,6 +758,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
575
758
|
getPairs(requestParameters = {}, options) {
|
|
576
759
|
return (0, exports.SealClientFp)(this.configuration).getPairs(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.reservableOnly, requestParameters.excludeEmpty, options).then((request) => request(this.axios, this.basePath));
|
|
577
760
|
}
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @param {SealClientGetTokensRequest} requestParameters Request parameters.
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
* @memberof SealClient
|
|
767
|
+
*/
|
|
768
|
+
getTokens(requestParameters = {}, options) {
|
|
769
|
+
return (0, exports.SealClientFp)(this.configuration).getTokens(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
|
|
770
|
+
}
|
|
578
771
|
/**
|
|
579
772
|
*
|
|
580
773
|
* @param {*} [options] Override http request option.
|
|
@@ -586,6 +779,14 @@ class SealClient extends base_1.BaseAPI {
|
|
|
586
779
|
}
|
|
587
780
|
}
|
|
588
781
|
exports.SealClient = SealClient;
|
|
782
|
+
/**
|
|
783
|
+
* @export
|
|
784
|
+
* @enum {string}
|
|
785
|
+
*/
|
|
786
|
+
var GetChainsOrderByPropertyEnum;
|
|
787
|
+
(function (GetChainsOrderByPropertyEnum) {
|
|
788
|
+
GetChainsOrderByPropertyEnum["ChainsOrderByPropertyUnspecified"] = "ChainsOrderByProperty_UNSPECIFIED";
|
|
789
|
+
})(GetChainsOrderByPropertyEnum || (exports.GetChainsOrderByPropertyEnum = GetChainsOrderByPropertyEnum = {}));
|
|
589
790
|
/**
|
|
590
791
|
* @export
|
|
591
792
|
* @enum {string}
|
|
@@ -598,10 +799,9 @@ var GetOrdersOrderByPropertyEnum;
|
|
|
598
799
|
GetOrdersOrderByPropertyEnum["TokenOut"] = "TOKEN_OUT";
|
|
599
800
|
GetOrdersOrderByPropertyEnum["AmountIn"] = "AMOUNT_IN";
|
|
600
801
|
GetOrdersOrderByPropertyEnum["Price"] = "PRICE";
|
|
601
|
-
GetOrdersOrderByPropertyEnum["PartiallyFillable"] = "PARTIALLY_FILLABLE";
|
|
602
802
|
GetOrdersOrderByPropertyEnum["Deadline"] = "DEADLINE";
|
|
603
803
|
GetOrdersOrderByPropertyEnum["ChainId"] = "CHAIN_ID";
|
|
604
|
-
GetOrdersOrderByPropertyEnum["
|
|
804
|
+
GetOrdersOrderByPropertyEnum["DepositToken"] = "DEPOSIT_TOKEN";
|
|
605
805
|
GetOrdersOrderByPropertyEnum["MinReservationDepositAmount"] = "MIN_RESERVATION_DEPOSIT_AMOUNT";
|
|
606
806
|
GetOrdersOrderByPropertyEnum["RemainingAmount"] = "REMAINING_AMOUNT";
|
|
607
807
|
GetOrdersOrderByPropertyEnum["ReservedAmount"] = "RESERVED_AMOUNT";
|
|
@@ -615,3 +815,11 @@ var GetPairsOrderByPropertyEnum;
|
|
|
615
815
|
(function (GetPairsOrderByPropertyEnum) {
|
|
616
816
|
GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
|
|
617
817
|
})(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
|
|
818
|
+
/**
|
|
819
|
+
* @export
|
|
820
|
+
* @enum {string}
|
|
821
|
+
*/
|
|
822
|
+
var GetTokensOrderByPropertyEnum;
|
|
823
|
+
(function (GetTokensOrderByPropertyEnum) {
|
|
824
|
+
GetTokensOrderByPropertyEnum["TokensOrderByPropertyUnspecified"] = "TokensOrderByProperty_UNSPECIFIED";
|
|
825
|
+
})(GetTokensOrderByPropertyEnum || (exports.GetTokensOrderByPropertyEnum = GetTokensOrderByPropertyEnum = {}));
|
package/lib/model/index.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
export * from './protobuf-any';
|
|
2
2
|
export * from './rpc-status';
|
|
3
3
|
export * from './seal-cancel-order-request';
|
|
4
|
+
export * from './seal-chain';
|
|
5
|
+
export * from './seal-chains-order-by';
|
|
6
|
+
export * from './seal-chains-order-by-property';
|
|
4
7
|
export * from './seal-config';
|
|
5
8
|
export * from './seal-create-order-intent-request';
|
|
6
9
|
export * from './seal-database-config';
|
|
7
10
|
export * from './seal-eip712-domain-config';
|
|
11
|
+
export * from './seal-get-chains-response';
|
|
8
12
|
export * from './seal-get-config-response';
|
|
9
13
|
export * from './seal-get-health-check-response';
|
|
10
14
|
export * from './seal-get-order-nonce-response';
|
|
11
15
|
export * from './seal-get-orders-response';
|
|
12
16
|
export * from './seal-get-pairs-response';
|
|
17
|
+
export * from './seal-get-tokens-response';
|
|
13
18
|
export * from './seal-logger-config';
|
|
14
19
|
export * from './seal-order';
|
|
15
20
|
export * from './seal-order-config';
|
|
@@ -20,6 +25,9 @@ export * from './seal-pair';
|
|
|
20
25
|
export * from './seal-pairs-order-by';
|
|
21
26
|
export * from './seal-pairs-order-by-property';
|
|
22
27
|
export * from './seal-signature-verification-config';
|
|
28
|
+
export * from './seal-token';
|
|
29
|
+
export * from './seal-tokens-order-by';
|
|
30
|
+
export * from './seal-tokens-order-by-property';
|
|
23
31
|
export * from './seal-transfer-permission';
|
|
24
32
|
export * from './types-bool';
|
|
25
33
|
export * from './types-timestamp';
|
package/lib/model/index.js
CHANGED
|
@@ -17,15 +17,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./protobuf-any"), exports);
|
|
18
18
|
__exportStar(require("./rpc-status"), exports);
|
|
19
19
|
__exportStar(require("./seal-cancel-order-request"), exports);
|
|
20
|
+
__exportStar(require("./seal-chain"), exports);
|
|
21
|
+
__exportStar(require("./seal-chains-order-by"), exports);
|
|
22
|
+
__exportStar(require("./seal-chains-order-by-property"), exports);
|
|
20
23
|
__exportStar(require("./seal-config"), exports);
|
|
21
24
|
__exportStar(require("./seal-create-order-intent-request"), exports);
|
|
22
25
|
__exportStar(require("./seal-database-config"), exports);
|
|
23
26
|
__exportStar(require("./seal-eip712-domain-config"), exports);
|
|
27
|
+
__exportStar(require("./seal-get-chains-response"), exports);
|
|
24
28
|
__exportStar(require("./seal-get-config-response"), exports);
|
|
25
29
|
__exportStar(require("./seal-get-health-check-response"), exports);
|
|
26
30
|
__exportStar(require("./seal-get-order-nonce-response"), exports);
|
|
27
31
|
__exportStar(require("./seal-get-orders-response"), exports);
|
|
28
32
|
__exportStar(require("./seal-get-pairs-response"), exports);
|
|
33
|
+
__exportStar(require("./seal-get-tokens-response"), exports);
|
|
29
34
|
__exportStar(require("./seal-logger-config"), exports);
|
|
30
35
|
__exportStar(require("./seal-order"), exports);
|
|
31
36
|
__exportStar(require("./seal-order-config"), exports);
|
|
@@ -36,6 +41,9 @@ __exportStar(require("./seal-pair"), exports);
|
|
|
36
41
|
__exportStar(require("./seal-pairs-order-by"), exports);
|
|
37
42
|
__exportStar(require("./seal-pairs-order-by-property"), exports);
|
|
38
43
|
__exportStar(require("./seal-signature-verification-config"), exports);
|
|
44
|
+
__exportStar(require("./seal-token"), exports);
|
|
45
|
+
__exportStar(require("./seal-tokens-order-by"), exports);
|
|
46
|
+
__exportStar(require("./seal-tokens-order-by-property"), exports);
|
|
39
47
|
__exportStar(require("./seal-transfer-permission"), exports);
|
|
40
48
|
__exportStar(require("./types-bool"), exports);
|
|
41
49
|
__exportStar(require("./types-timestamp"), exports);
|
|
@@ -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 SealChain
|
|
16
|
+
*/
|
|
17
|
+
export interface SealChain {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealChain
|
|
22
|
+
*/
|
|
23
|
+
'chainId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SealChain
|
|
28
|
+
*/
|
|
29
|
+
'name'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SealChain
|
|
34
|
+
*/
|
|
35
|
+
'coingeckoId'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SealChain
|
|
40
|
+
*/
|
|
41
|
+
'logoUri'?: 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 });
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SealChainsOrderByProperty {
|
|
18
|
+
ChainsOrderByPropertyUnspecified = "ChainsOrderByProperty_UNSPECIFIED"
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.SealChainsOrderByProperty = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var SealChainsOrderByProperty;
|
|
23
|
+
(function (SealChainsOrderByProperty) {
|
|
24
|
+
SealChainsOrderByProperty["ChainsOrderByPropertyUnspecified"] = "ChainsOrderByProperty_UNSPECIFIED";
|
|
25
|
+
})(SealChainsOrderByProperty || (exports.SealChainsOrderByProperty = SealChainsOrderByProperty = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { SealChainsOrderByProperty } from './seal-chains-order-by-property';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealChainsOrderBy
|
|
17
|
+
*/
|
|
18
|
+
export interface SealChainsOrderBy {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SealChainsOrderByProperty}
|
|
22
|
+
* @memberof SealChainsOrderBy
|
|
23
|
+
*/
|
|
24
|
+
'property'?: SealChainsOrderByProperty;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof SealChainsOrderBy
|
|
29
|
+
*/
|
|
30
|
+
'descending'?: boolean;
|
|
31
|
+
}
|
|
@@ -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 });
|