@seal-protocol/backendjs 0.0.66 → 0.0.72
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 +10 -2
- package/lib/api/seal-client.js +10 -5
- package/package.json +1 -1
package/lib/api/seal-client.d.ts
CHANGED
|
@@ -158,10 +158,11 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
158
158
|
* @param {string} [maxReservationDepositPerStable] not supported yet
|
|
159
159
|
* @param {string} [minRemainingAmountStableTerms] not supported yet
|
|
160
160
|
* @param {boolean} [onChainValue]
|
|
161
|
+
* @param {string} [id] 56-bytes in hex format
|
|
161
162
|
* @param {*} [options] Override http request option.
|
|
162
163
|
* @throws {RequiredError}
|
|
163
164
|
*/
|
|
164
|
-
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, depositToken?: string, minReservationPeriodSeconds?: number, minRemainingAmount?: string, minPriceMargin?: string, maxPriceMargin?: string, maxReservationDepositPerStable?: string, minRemainingAmountStableTerms?: string, onChainValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
165
|
+
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, depositToken?: string, minReservationPeriodSeconds?: number, minRemainingAmount?: string, minPriceMargin?: string, maxPriceMargin?: string, maxReservationDepositPerStable?: string, minRemainingAmountStableTerms?: string, onChainValue?: boolean, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
165
166
|
/**
|
|
166
167
|
*
|
|
167
168
|
* @param {string} [tokenInCoingeckoId]
|
|
@@ -368,10 +369,11 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
368
369
|
* @param {string} [maxReservationDepositPerStable] not supported yet
|
|
369
370
|
* @param {string} [minRemainingAmountStableTerms] not supported yet
|
|
370
371
|
* @param {boolean} [onChainValue]
|
|
372
|
+
* @param {string} [id] 56-bytes in hex format
|
|
371
373
|
* @param {*} [options] Override http request option.
|
|
372
374
|
* @throws {RequiredError}
|
|
373
375
|
*/
|
|
374
|
-
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, depositToken?: string, minReservationPeriodSeconds?: number, minRemainingAmount?: string, minPriceMargin?: string, maxPriceMargin?: string, maxReservationDepositPerStable?: string, minRemainingAmountStableTerms?: string, onChainValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
376
|
+
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, depositToken?: string, minReservationPeriodSeconds?: number, minRemainingAmount?: string, minPriceMargin?: string, maxPriceMargin?: string, maxReservationDepositPerStable?: string, minRemainingAmountStableTerms?: string, onChainValue?: boolean, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
375
377
|
/**
|
|
376
378
|
*
|
|
377
379
|
* @param {string} [tokenInCoingeckoId]
|
|
@@ -1011,6 +1013,12 @@ export interface SealClientGetOrdersRequest {
|
|
|
1011
1013
|
* @memberof SealClientGetOrders
|
|
1012
1014
|
*/
|
|
1013
1015
|
readonly onChainValue?: boolean;
|
|
1016
|
+
/**
|
|
1017
|
+
* 56-bytes in hex format
|
|
1018
|
+
* @type {string}
|
|
1019
|
+
* @memberof SealClientGetOrders
|
|
1020
|
+
*/
|
|
1021
|
+
readonly id?: string;
|
|
1014
1022
|
}
|
|
1015
1023
|
/**
|
|
1016
1024
|
* Request parameters for getPairPrice operation in SealClient.
|
package/lib/api/seal-client.js
CHANGED
|
@@ -459,10 +459,11 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
459
459
|
* @param {string} [maxReservationDepositPerStable] not supported yet
|
|
460
460
|
* @param {string} [minRemainingAmountStableTerms] not supported yet
|
|
461
461
|
* @param {boolean} [onChainValue]
|
|
462
|
+
* @param {string} [id] 56-bytes in hex format
|
|
462
463
|
* @param {*} [options] Override http request option.
|
|
463
464
|
* @throws {RequiredError}
|
|
464
465
|
*/
|
|
465
|
-
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options = {}) => {
|
|
466
|
+
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, options = {}) => {
|
|
466
467
|
const localVarPath = `/seal/orders`;
|
|
467
468
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
468
469
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -539,6 +540,9 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
539
540
|
if (onChainValue !== undefined) {
|
|
540
541
|
localVarQueryParameter['onChain.value'] = onChainValue;
|
|
541
542
|
}
|
|
543
|
+
if (id !== undefined) {
|
|
544
|
+
localVarQueryParameter['id'] = id;
|
|
545
|
+
}
|
|
542
546
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
543
547
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
544
548
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1046,11 +1050,12 @@ const SealClientFp = function (configuration) {
|
|
|
1046
1050
|
* @param {string} [maxReservationDepositPerStable] not supported yet
|
|
1047
1051
|
* @param {string} [minRemainingAmountStableTerms] not supported yet
|
|
1048
1052
|
* @param {boolean} [onChainValue]
|
|
1053
|
+
* @param {string} [id] 56-bytes in hex format
|
|
1049
1054
|
* @param {*} [options] Override http request option.
|
|
1050
1055
|
* @throws {RequiredError}
|
|
1051
1056
|
*/
|
|
1052
|
-
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options) {
|
|
1053
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options);
|
|
1057
|
+
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, options) {
|
|
1058
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, options);
|
|
1054
1059
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1055
1060
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
1056
1061
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1280,7 +1285,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1280
1285
|
* @throws {RequiredError}
|
|
1281
1286
|
*/
|
|
1282
1287
|
getOrders(requestParameters = {}, options) {
|
|
1283
|
-
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, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, options).then((request) => request(axios, basePath));
|
|
1288
|
+
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, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1284
1289
|
},
|
|
1285
1290
|
/**
|
|
1286
1291
|
*
|
|
@@ -1469,7 +1474,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1469
1474
|
* @memberof SealClient
|
|
1470
1475
|
*/
|
|
1471
1476
|
getOrders(requestParameters = {}, options) {
|
|
1472
|
-
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, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, options).then((request) => request(this.axios, this.basePath));
|
|
1477
|
+
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, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1473
1478
|
}
|
|
1474
1479
|
/**
|
|
1475
1480
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seal-protocol/backendjs",
|
|
3
|
-
"version": "v0.0.
|
|
3
|
+
"version": "v0.0.72",
|
|
4
4
|
"description": "Javascript SDK for Seal Backend",
|
|
5
5
|
"author": "amin <amin@refractedlabs.com>",
|
|
6
6
|
"homepage": "https://github.com/seal-protocol/backend/tree/main/ts-client#readme",
|