@seal-protocol/backendjs 0.0.27 → 0.0.29
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 +211 -3
- package/lib/api/seal-client.js +237 -1
- package/lib/model/index.d.ts +9 -0
- package/lib/model/index.js +9 -0
- package/lib/model/seal-chain-sync-state.d.ts +61 -0
- package/lib/model/seal-chain-sync-state.js +15 -0
- package/lib/model/seal-create-order-intent-response.d.ts +2 -3
- package/lib/model/seal-get-order-reservations-response.d.ts +31 -0
- package/lib/model/seal-get-order-reservations-response.js +15 -0
- package/lib/model/seal-get-pair-price-response.d.ts +42 -0
- package/lib/model/seal-get-pair-price-response.js +15 -0
- package/lib/model/seal-get-sync-state-response.d.ts +25 -0
- package/lib/model/seal-get-sync-state-response.js +15 -0
- package/lib/model/seal-order-intent.d.ts +31 -0
- package/lib/model/seal-order-intent.js +15 -0
- package/lib/model/seal-order-reservation.d.ts +115 -0
- package/lib/model/seal-order-reservation.js +15 -0
- package/lib/model/seal-order-reservations-order-by-property.d.ts +27 -0
- package/lib/model/seal-order-reservations-order-by-property.js +33 -0
- package/lib/model/seal-order-reservations-order-by.d.ts +31 -0
- package/lib/model/seal-order-reservations-order-by.js +15 -0
- package/lib/model/seal-order.d.ts +7 -0
- package/lib/model/seal-sync-state.d.ts +55 -0
- package/lib/model/seal-sync-state.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.GetTokensOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetTokensOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = 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
|
|
@@ -191,6 +191,70 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
191
191
|
options: localVarRequestOptions,
|
|
192
192
|
};
|
|
193
193
|
},
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @param {string} [chainId] uint256
|
|
197
|
+
* @param {boolean} [liveValue]
|
|
198
|
+
* @param {boolean} [expiredValue]
|
|
199
|
+
* @param {string} [reserver]
|
|
200
|
+
* @param {string} [orderIdHash]
|
|
201
|
+
* @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
|
|
202
|
+
* @param {boolean} [orderByDescending]
|
|
203
|
+
* @param {string} [paginationKey]
|
|
204
|
+
* @param {number} [paginationLimit]
|
|
205
|
+
* @param {boolean} [paginationCountTotal]
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
getOrderReservations: async (chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
210
|
+
const localVarPath = `/seal/order_reservations`;
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
}
|
|
217
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
218
|
+
const localVarHeaderParameter = {};
|
|
219
|
+
const localVarQueryParameter = {};
|
|
220
|
+
if (chainId !== undefined) {
|
|
221
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
222
|
+
}
|
|
223
|
+
if (liveValue !== undefined) {
|
|
224
|
+
localVarQueryParameter['live.value'] = liveValue;
|
|
225
|
+
}
|
|
226
|
+
if (expiredValue !== undefined) {
|
|
227
|
+
localVarQueryParameter['expired.value'] = expiredValue;
|
|
228
|
+
}
|
|
229
|
+
if (reserver !== undefined) {
|
|
230
|
+
localVarQueryParameter['reserver'] = reserver;
|
|
231
|
+
}
|
|
232
|
+
if (orderIdHash !== undefined) {
|
|
233
|
+
localVarQueryParameter['orderIdHash'] = orderIdHash;
|
|
234
|
+
}
|
|
235
|
+
if (orderByProperty !== undefined) {
|
|
236
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
237
|
+
}
|
|
238
|
+
if (orderByDescending !== undefined) {
|
|
239
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
240
|
+
}
|
|
241
|
+
if (paginationKey !== undefined) {
|
|
242
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
243
|
+
}
|
|
244
|
+
if (paginationLimit !== undefined) {
|
|
245
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
246
|
+
}
|
|
247
|
+
if (paginationCountTotal !== undefined) {
|
|
248
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
249
|
+
}
|
|
250
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
253
|
+
return {
|
|
254
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
194
258
|
/**
|
|
195
259
|
*
|
|
196
260
|
* @param {string} [chainId] uint256
|
|
@@ -299,6 +363,38 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
299
363
|
options: localVarRequestOptions,
|
|
300
364
|
};
|
|
301
365
|
},
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @param {string} [tokenInCoingeckoId]
|
|
369
|
+
* @param {string} [tokenOutCoingeckoId]
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
getPairPrice: async (tokenInCoingeckoId, tokenOutCoingeckoId, options = {}) => {
|
|
374
|
+
const localVarPath = `/seal/pair_price`;
|
|
375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
376
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
377
|
+
let baseOptions;
|
|
378
|
+
if (configuration) {
|
|
379
|
+
baseOptions = configuration.baseOptions;
|
|
380
|
+
}
|
|
381
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
382
|
+
const localVarHeaderParameter = {};
|
|
383
|
+
const localVarQueryParameter = {};
|
|
384
|
+
if (tokenInCoingeckoId !== undefined) {
|
|
385
|
+
localVarQueryParameter['tokenInCoingeckoId'] = tokenInCoingeckoId;
|
|
386
|
+
}
|
|
387
|
+
if (tokenOutCoingeckoId !== undefined) {
|
|
388
|
+
localVarQueryParameter['tokenOutCoingeckoId'] = tokenOutCoingeckoId;
|
|
389
|
+
}
|
|
390
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
391
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
392
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
393
|
+
return {
|
|
394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
395
|
+
options: localVarRequestOptions,
|
|
396
|
+
};
|
|
397
|
+
},
|
|
302
398
|
/**
|
|
303
399
|
*
|
|
304
400
|
* @param {string} [paginationKey]
|
|
@@ -435,6 +531,30 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
435
531
|
options: localVarRequestOptions,
|
|
436
532
|
};
|
|
437
533
|
},
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
syncState: async (options = {}) => {
|
|
540
|
+
const localVarPath = `/seal/sync_state`;
|
|
541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
542
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
543
|
+
let baseOptions;
|
|
544
|
+
if (configuration) {
|
|
545
|
+
baseOptions = configuration.baseOptions;
|
|
546
|
+
}
|
|
547
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
548
|
+
const localVarHeaderParameter = {};
|
|
549
|
+
const localVarQueryParameter = {};
|
|
550
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
552
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
553
|
+
return {
|
|
554
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
555
|
+
options: localVarRequestOptions,
|
|
556
|
+
};
|
|
557
|
+
},
|
|
438
558
|
};
|
|
439
559
|
};
|
|
440
560
|
exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
|
|
@@ -509,6 +629,27 @@ const SealClientFp = function (configuration) {
|
|
|
509
629
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderNonce']?.[localVarOperationServerIndex]?.url;
|
|
510
630
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
511
631
|
},
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @param {string} [chainId] uint256
|
|
635
|
+
* @param {boolean} [liveValue]
|
|
636
|
+
* @param {boolean} [expiredValue]
|
|
637
|
+
* @param {string} [reserver]
|
|
638
|
+
* @param {string} [orderIdHash]
|
|
639
|
+
* @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
|
|
640
|
+
* @param {boolean} [orderByDescending]
|
|
641
|
+
* @param {string} [paginationKey]
|
|
642
|
+
* @param {number} [paginationLimit]
|
|
643
|
+
* @param {boolean} [paginationCountTotal]
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
async getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
649
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
650
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderReservations']?.[localVarOperationServerIndex]?.url;
|
|
651
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
652
|
+
},
|
|
512
653
|
/**
|
|
513
654
|
*
|
|
514
655
|
* @param {string} [chainId] uint256
|
|
@@ -541,6 +682,19 @@ const SealClientFp = function (configuration) {
|
|
|
541
682
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
542
683
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
543
684
|
},
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @param {string} [tokenInCoingeckoId]
|
|
688
|
+
* @param {string} [tokenOutCoingeckoId]
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
async getPairPrice(tokenInCoingeckoId, tokenOutCoingeckoId, options) {
|
|
693
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPairPrice(tokenInCoingeckoId, tokenOutCoingeckoId, options);
|
|
694
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
695
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairPrice']?.[localVarOperationServerIndex]?.url;
|
|
696
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
697
|
+
},
|
|
544
698
|
/**
|
|
545
699
|
*
|
|
546
700
|
* @param {string} [paginationKey]
|
|
@@ -590,6 +744,17 @@ const SealClientFp = function (configuration) {
|
|
|
590
744
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.healthCheck']?.[localVarOperationServerIndex]?.url;
|
|
591
745
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
592
746
|
},
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
*/
|
|
752
|
+
async syncState(options) {
|
|
753
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.syncState(options);
|
|
754
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
755
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.syncState']?.[localVarOperationServerIndex]?.url;
|
|
756
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
757
|
+
},
|
|
593
758
|
};
|
|
594
759
|
};
|
|
595
760
|
exports.SealClientFp = SealClientFp;
|
|
@@ -644,6 +809,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
644
809
|
getOrderNonce(requestParameters, options) {
|
|
645
810
|
return localVarFp.getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(axios, basePath));
|
|
646
811
|
},
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @param {SealClientGetOrderReservationsRequest} requestParameters Request parameters.
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
getOrderReservations(requestParameters = {}, options) {
|
|
819
|
+
return localVarFp.getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
|
|
820
|
+
},
|
|
647
821
|
/**
|
|
648
822
|
*
|
|
649
823
|
* @param {SealClientGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -653,6 +827,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
653
827
|
getOrders(requestParameters = {}, options) {
|
|
654
828
|
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));
|
|
655
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
*/
|
|
836
|
+
getPairPrice(requestParameters = {}, options) {
|
|
837
|
+
return localVarFp.getPairPrice(requestParameters.tokenInCoingeckoId, requestParameters.tokenOutCoingeckoId, options).then((request) => request(axios, basePath));
|
|
838
|
+
},
|
|
656
839
|
/**
|
|
657
840
|
*
|
|
658
841
|
* @param {SealClientGetPairsRequest} requestParameters Request parameters.
|
|
@@ -679,6 +862,14 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
679
862
|
healthCheck(options) {
|
|
680
863
|
return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
|
|
681
864
|
},
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @param {*} [options] Override http request option.
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
*/
|
|
870
|
+
syncState(options) {
|
|
871
|
+
return localVarFp.syncState(options).then((request) => request(axios, basePath));
|
|
872
|
+
},
|
|
682
873
|
};
|
|
683
874
|
};
|
|
684
875
|
exports.SealClientFactory = SealClientFactory;
|
|
@@ -738,6 +929,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
738
929
|
getOrderNonce(requestParameters, options) {
|
|
739
930
|
return (0, exports.SealClientFp)(this.configuration).getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(this.axios, this.basePath));
|
|
740
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @param {SealClientGetOrderReservationsRequest} requestParameters Request parameters.
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
* @memberof SealClient
|
|
938
|
+
*/
|
|
939
|
+
getOrderReservations(requestParameters = {}, options) {
|
|
940
|
+
return (0, exports.SealClientFp)(this.configuration).getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
|
|
941
|
+
}
|
|
741
942
|
/**
|
|
742
943
|
*
|
|
743
944
|
* @param {SealClientGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -748,6 +949,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
748
949
|
getOrders(requestParameters = {}, options) {
|
|
749
950
|
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));
|
|
750
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
* @memberof SealClient
|
|
958
|
+
*/
|
|
959
|
+
getPairPrice(requestParameters = {}, options) {
|
|
960
|
+
return (0, exports.SealClientFp)(this.configuration).getPairPrice(requestParameters.tokenInCoingeckoId, requestParameters.tokenOutCoingeckoId, options).then((request) => request(this.axios, this.basePath));
|
|
961
|
+
}
|
|
751
962
|
/**
|
|
752
963
|
*
|
|
753
964
|
* @param {SealClientGetPairsRequest} requestParameters Request parameters.
|
|
@@ -777,6 +988,15 @@ class SealClient extends base_1.BaseAPI {
|
|
|
777
988
|
healthCheck(options) {
|
|
778
989
|
return (0, exports.SealClientFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
779
990
|
}
|
|
991
|
+
/**
|
|
992
|
+
*
|
|
993
|
+
* @param {*} [options] Override http request option.
|
|
994
|
+
* @throws {RequiredError}
|
|
995
|
+
* @memberof SealClient
|
|
996
|
+
*/
|
|
997
|
+
syncState(options) {
|
|
998
|
+
return (0, exports.SealClientFp)(this.configuration).syncState(options).then((request) => request(this.axios, this.basePath));
|
|
999
|
+
}
|
|
780
1000
|
}
|
|
781
1001
|
exports.SealClient = SealClient;
|
|
782
1002
|
/**
|
|
@@ -787,6 +1007,22 @@ var GetChainsOrderByPropertyEnum;
|
|
|
787
1007
|
(function (GetChainsOrderByPropertyEnum) {
|
|
788
1008
|
GetChainsOrderByPropertyEnum["ChainsOrderByPropertyUnspecified"] = "ChainsOrderByProperty_UNSPECIFIED";
|
|
789
1009
|
})(GetChainsOrderByPropertyEnum || (exports.GetChainsOrderByPropertyEnum = GetChainsOrderByPropertyEnum = {}));
|
|
1010
|
+
/**
|
|
1011
|
+
* @export
|
|
1012
|
+
* @enum {string}
|
|
1013
|
+
*/
|
|
1014
|
+
var GetOrderReservationsOrderByPropertyEnum;
|
|
1015
|
+
(function (GetOrderReservationsOrderByPropertyEnum) {
|
|
1016
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyUnspecified"] = "OrderReservationsOrderByProperty_UNSPECIFIED";
|
|
1017
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyOrderIdHash"] = "OrderReservationsOrderByProperty_ORDER_ID_HASH";
|
|
1018
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyReservationId"] = "OrderReservationsOrderByProperty_RESERVATION_ID";
|
|
1019
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyTotalAmount"] = "OrderReservationsOrderByProperty_TOTAL_AMOUNT";
|
|
1020
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyRemainingAmount"] = "OrderReservationsOrderByProperty_REMAINING_AMOUNT";
|
|
1021
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyTotalDepositAmount"] = "OrderReservationsOrderByProperty_TOTAL_DEPOSIT_AMOUNT";
|
|
1022
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyRemainingDepositAmount"] = "OrderReservationsOrderByProperty_REMAINING_DEPOSIT_AMOUNT";
|
|
1023
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyChainId"] = "OrderReservationsOrderByProperty_CHAIN_ID";
|
|
1024
|
+
GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyCreatedAtBlockNumber"] = "OrderReservationsOrderByProperty_CREATED_AT_BLOCK_NUMBER";
|
|
1025
|
+
})(GetOrderReservationsOrderByPropertyEnum || (exports.GetOrderReservationsOrderByPropertyEnum = GetOrderReservationsOrderByPropertyEnum = {}));
|
|
790
1026
|
/**
|
|
791
1027
|
* @export
|
|
792
1028
|
* @enum {string}
|
package/lib/model/index.d.ts
CHANGED
|
@@ -2,22 +2,31 @@ export * from './protobuf-any';
|
|
|
2
2
|
export * from './rpc-status';
|
|
3
3
|
export * from './seal-cancel-order-request';
|
|
4
4
|
export * from './seal-chain';
|
|
5
|
+
export * from './seal-chain-sync-state';
|
|
5
6
|
export * from './seal-chains-order-by';
|
|
6
7
|
export * from './seal-chains-order-by-property';
|
|
7
8
|
export * from './seal-config';
|
|
8
9
|
export * from './seal-create-order-intent-request';
|
|
10
|
+
export * from './seal-create-order-intent-response';
|
|
9
11
|
export * from './seal-database-config';
|
|
10
12
|
export * from './seal-eip712-domain-config';
|
|
11
13
|
export * from './seal-get-chains-response';
|
|
12
14
|
export * from './seal-get-config-response';
|
|
13
15
|
export * from './seal-get-health-check-response';
|
|
14
16
|
export * from './seal-get-order-nonce-response';
|
|
17
|
+
export * from './seal-get-order-reservations-response';
|
|
15
18
|
export * from './seal-get-orders-response';
|
|
19
|
+
export * from './seal-get-pair-price-response';
|
|
16
20
|
export * from './seal-get-pairs-response';
|
|
21
|
+
export * from './seal-get-sync-state-response';
|
|
17
22
|
export * from './seal-get-tokens-response';
|
|
18
23
|
export * from './seal-logger-config';
|
|
19
24
|
export * from './seal-order';
|
|
20
25
|
export * from './seal-order-config';
|
|
26
|
+
export * from './seal-order-intent';
|
|
27
|
+
export * from './seal-order-reservation';
|
|
28
|
+
export * from './seal-order-reservations-order-by';
|
|
29
|
+
export * from './seal-order-reservations-order-by-property';
|
|
21
30
|
export * from './seal-orders-order-by';
|
|
22
31
|
export * from './seal-orders-order-by-property';
|
|
23
32
|
export * from './seal-pagination';
|
package/lib/model/index.js
CHANGED
|
@@ -18,22 +18,31 @@ __exportStar(require("./protobuf-any"), exports);
|
|
|
18
18
|
__exportStar(require("./rpc-status"), exports);
|
|
19
19
|
__exportStar(require("./seal-cancel-order-request"), exports);
|
|
20
20
|
__exportStar(require("./seal-chain"), exports);
|
|
21
|
+
__exportStar(require("./seal-chain-sync-state"), exports);
|
|
21
22
|
__exportStar(require("./seal-chains-order-by"), exports);
|
|
22
23
|
__exportStar(require("./seal-chains-order-by-property"), exports);
|
|
23
24
|
__exportStar(require("./seal-config"), exports);
|
|
24
25
|
__exportStar(require("./seal-create-order-intent-request"), exports);
|
|
26
|
+
__exportStar(require("./seal-create-order-intent-response"), exports);
|
|
25
27
|
__exportStar(require("./seal-database-config"), exports);
|
|
26
28
|
__exportStar(require("./seal-eip712-domain-config"), exports);
|
|
27
29
|
__exportStar(require("./seal-get-chains-response"), exports);
|
|
28
30
|
__exportStar(require("./seal-get-config-response"), exports);
|
|
29
31
|
__exportStar(require("./seal-get-health-check-response"), exports);
|
|
30
32
|
__exportStar(require("./seal-get-order-nonce-response"), exports);
|
|
33
|
+
__exportStar(require("./seal-get-order-reservations-response"), exports);
|
|
31
34
|
__exportStar(require("./seal-get-orders-response"), exports);
|
|
35
|
+
__exportStar(require("./seal-get-pair-price-response"), exports);
|
|
32
36
|
__exportStar(require("./seal-get-pairs-response"), exports);
|
|
37
|
+
__exportStar(require("./seal-get-sync-state-response"), exports);
|
|
33
38
|
__exportStar(require("./seal-get-tokens-response"), exports);
|
|
34
39
|
__exportStar(require("./seal-logger-config"), exports);
|
|
35
40
|
__exportStar(require("./seal-order"), exports);
|
|
36
41
|
__exportStar(require("./seal-order-config"), exports);
|
|
42
|
+
__exportStar(require("./seal-order-intent"), exports);
|
|
43
|
+
__exportStar(require("./seal-order-reservation"), exports);
|
|
44
|
+
__exportStar(require("./seal-order-reservations-order-by"), exports);
|
|
45
|
+
__exportStar(require("./seal-order-reservations-order-by-property"), exports);
|
|
37
46
|
__exportStar(require("./seal-orders-order-by"), exports);
|
|
38
47
|
__exportStar(require("./seal-orders-order-by-property"), exports);
|
|
39
48
|
__exportStar(require("./seal-pagination"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
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 SealChainSyncState
|
|
17
|
+
*/
|
|
18
|
+
export interface SealChainSyncState {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SealChainSyncState
|
|
23
|
+
*/
|
|
24
|
+
'backendBlockHeight'?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {TypesTimestamp}
|
|
28
|
+
* @memberof SealChainSyncState
|
|
29
|
+
*/
|
|
30
|
+
'backendBlockTime'?: TypesTimestamp;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SealChainSyncState
|
|
35
|
+
*/
|
|
36
|
+
'indexerBlockHeight'?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {TypesTimestamp}
|
|
40
|
+
* @memberof SealChainSyncState
|
|
41
|
+
*/
|
|
42
|
+
'indexerBlockTime'?: TypesTimestamp;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SealChainSyncState
|
|
47
|
+
*/
|
|
48
|
+
'chainBlockHeight'?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {TypesTimestamp}
|
|
52
|
+
* @memberof SealChainSyncState
|
|
53
|
+
*/
|
|
54
|
+
'chainBlockTime'?: TypesTimestamp;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SealChainSyncState
|
|
59
|
+
*/
|
|
60
|
+
'chainName'?: string;
|
|
61
|
+
}
|
|
@@ -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,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { TypesTimestamp } from './types-timestamp';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -18,8 +17,8 @@ import type { TypesTimestamp } from './types-timestamp';
|
|
|
18
17
|
export interface SealCreateOrderIntentResponse {
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
21
|
-
* @type {
|
|
20
|
+
* @type {string}
|
|
22
21
|
* @memberof SealCreateOrderIntentResponse
|
|
23
22
|
*/
|
|
24
|
-
'
|
|
23
|
+
'id'?: string;
|
|
25
24
|
}
|
|
@@ -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 { SealOrderReservation } from './seal-order-reservation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealGetOrderReservationsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SealGetOrderReservationsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SealOrderReservation>}
|
|
22
|
+
* @memberof SealGetOrderReservationsResponse
|
|
23
|
+
*/
|
|
24
|
+
'orderReservations'?: Array<SealOrderReservation>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SealGetOrderReservationsResponse
|
|
29
|
+
*/
|
|
30
|
+
'paginationNextKey'?: string;
|
|
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 });
|
|
@@ -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 SealGetPairPriceResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SealGetPairPriceResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealGetPairPriceResponse
|
|
22
|
+
*/
|
|
23
|
+
'tokenInPrice'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SealGetPairPriceResponse
|
|
28
|
+
*/
|
|
29
|
+
'tokenOutPrice'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SealGetPairPriceResponse
|
|
34
|
+
*/
|
|
35
|
+
'tokenInPriceInTermsOfTokenOut'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SealGetPairPriceResponse
|
|
40
|
+
*/
|
|
41
|
+
'tokenOutPriceInTermsOfTokenIn'?: 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,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 { SealChainSyncState } from './seal-chain-sync-state';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealGetSyncStateResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SealGetSyncStateResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SealChainSyncState>}
|
|
22
|
+
* @memberof SealGetSyncStateResponse
|
|
23
|
+
*/
|
|
24
|
+
'syncState'?: Array<SealChainSyncState>;
|
|
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 });
|