@seal-protocol/backendjs 0.0.28 → 0.0.37

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.
@@ -14,13 +14,16 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { SealCancelOrderRequest } from '../model';
16
16
  import type { SealCreateOrderIntentRequest } from '../model';
17
+ import type { SealCreateOrderIntentResponse } from '../model';
17
18
  import type { SealGetChainsResponse } from '../model';
18
19
  import type { SealGetConfigResponse } from '../model';
19
20
  import type { SealGetHealthCheckResponse } from '../model';
20
21
  import type { SealGetOrderNonceResponse } from '../model';
21
22
  import type { SealGetOrderReservationsResponse } from '../model';
22
23
  import type { SealGetOrdersResponse } from '../model';
24
+ import type { SealGetPairPriceResponse } from '../model';
23
25
  import type { SealGetPairsResponse } from '../model';
26
+ import type { SealGetSyncStateResponse } from '../model';
24
27
  import type { SealGetTokensResponse } from '../model';
25
28
  /**
26
29
  * SealClient - axios parameter creator
@@ -105,10 +108,19 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
105
108
  * @param {string} [maxPriceMargin] not supported yet
106
109
  * @param {string} [maxReservationDepositPerStable] not supported yet
107
110
  * @param {string} [minRemainingAmountStableTerms] not supported yet
111
+ * @param {boolean} [onChainValue]
108
112
  * @param {*} [options] Override http request option.
109
113
  * @throws {RequiredError}
110
114
  */
111
- getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPriceDecimal?: string, toPriceDecimal?: 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, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
115
+ getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPriceDecimal?: string, toPriceDecimal?: 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>;
116
+ /**
117
+ *
118
+ * @param {string} [tokenInCoingeckoId]
119
+ * @param {string} [tokenOutCoingeckoId]
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ getPairPrice: (tokenInCoingeckoId?: string, tokenOutCoingeckoId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
124
  /**
113
125
  *
114
126
  * @param {string} [paginationKey]
@@ -143,6 +155,12 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
143
155
  * @throws {RequiredError}
144
156
  */
145
157
  healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
158
+ /**
159
+ *
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ syncState: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
146
164
  };
147
165
  /**
148
166
  * SealClient - functional programming interface
@@ -168,7 +186,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
168
186
  * @param {*} [options] Override http request option.
169
187
  * @throws {RequiredError}
170
188
  */
171
- createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
189
+ createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealCreateOrderIntentResponse>>;
172
190
  /**
173
191
  *
174
192
  * @param {string} [paginationKey]
@@ -227,10 +245,19 @@ export declare const SealClientFp: (configuration?: Configuration) => {
227
245
  * @param {string} [maxPriceMargin] not supported yet
228
246
  * @param {string} [maxReservationDepositPerStable] not supported yet
229
247
  * @param {string} [minRemainingAmountStableTerms] not supported yet
248
+ * @param {boolean} [onChainValue]
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPriceDecimal?: string, toPriceDecimal?: 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>>;
253
+ /**
254
+ *
255
+ * @param {string} [tokenInCoingeckoId]
256
+ * @param {string} [tokenOutCoingeckoId]
230
257
  * @param {*} [options] Override http request option.
231
258
  * @throws {RequiredError}
232
259
  */
233
- getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPriceDecimal?: string, toPriceDecimal?: 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, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
260
+ getPairPrice(tokenInCoingeckoId?: string, tokenOutCoingeckoId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetPairPriceResponse>>;
234
261
  /**
235
262
  *
236
263
  * @param {string} [paginationKey]
@@ -265,6 +292,12 @@ export declare const SealClientFp: (configuration?: Configuration) => {
265
292
  * @throws {RequiredError}
266
293
  */
267
294
  healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetHealthCheckResponse>>;
295
+ /**
296
+ *
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ syncState(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetSyncStateResponse>>;
268
301
  };
269
302
  /**
270
303
  * SealClient - factory interface
@@ -290,7 +323,7 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
290
323
  * @param {*} [options] Override http request option.
291
324
  * @throws {RequiredError}
292
325
  */
293
- createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
326
+ createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealCreateOrderIntentResponse>;
294
327
  /**
295
328
  *
296
329
  * @param {SealClientGetChainsRequest} requestParameters Request parameters.
@@ -319,6 +352,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
319
352
  * @throws {RequiredError}
320
353
  */
321
354
  getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrdersResponse>;
355
+ /**
356
+ *
357
+ * @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ getPairPrice(requestParameters?: SealClientGetPairPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetPairPriceResponse>;
322
362
  /**
323
363
  *
324
364
  * @param {SealClientGetPairsRequest} requestParameters Request parameters.
@@ -339,6 +379,12 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
339
379
  * @throws {RequiredError}
340
380
  */
341
381
  healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<SealGetHealthCheckResponse>;
382
+ /**
383
+ *
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ syncState(options?: RawAxiosRequestConfig): AxiosPromise<SealGetSyncStateResponse>;
342
388
  };
343
389
  /**
344
390
  * Request parameters for cancelOrder operation in SealClient.
@@ -621,6 +667,31 @@ export interface SealClientGetOrdersRequest {
621
667
  * @memberof SealClientGetOrders
622
668
  */
623
669
  readonly minRemainingAmountStableTerms?: string;
670
+ /**
671
+ *
672
+ * @type {boolean}
673
+ * @memberof SealClientGetOrders
674
+ */
675
+ readonly onChainValue?: boolean;
676
+ }
677
+ /**
678
+ * Request parameters for getPairPrice operation in SealClient.
679
+ * @export
680
+ * @interface SealClientGetPairPriceRequest
681
+ */
682
+ export interface SealClientGetPairPriceRequest {
683
+ /**
684
+ *
685
+ * @type {string}
686
+ * @memberof SealClientGetPairPrice
687
+ */
688
+ readonly tokenInCoingeckoId?: string;
689
+ /**
690
+ *
691
+ * @type {string}
692
+ * @memberof SealClientGetPairPrice
693
+ */
694
+ readonly tokenOutCoingeckoId?: string;
624
695
  }
625
696
  /**
626
697
  * Request parameters for getPairs operation in SealClient.
@@ -761,7 +832,7 @@ export declare class SealClient extends BaseAPI {
761
832
  * @throws {RequiredError}
762
833
  * @memberof SealClient
763
834
  */
764
- createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
835
+ createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealCreateOrderIntentResponse, any>>;
765
836
  /**
766
837
  *
767
838
  * @param {SealClientGetChainsRequest} requestParameters Request parameters.
@@ -794,6 +865,14 @@ export declare class SealClient extends BaseAPI {
794
865
  * @memberof SealClient
795
866
  */
796
867
  getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrdersResponse, any>>;
868
+ /**
869
+ *
870
+ * @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ * @memberof SealClient
874
+ */
875
+ getPairPrice(requestParameters?: SealClientGetPairPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetPairPriceResponse, any>>;
797
876
  /**
798
877
  *
799
878
  * @param {SealClientGetPairsRequest} requestParameters Request parameters.
@@ -817,6 +896,13 @@ export declare class SealClient extends BaseAPI {
817
896
  * @memberof SealClient
818
897
  */
819
898
  healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
899
+ /**
900
+ *
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ * @memberof SealClient
904
+ */
905
+ syncState(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetSyncStateResponse, any>>;
820
906
  }
821
907
  /**
822
908
  * @export
@@ -278,10 +278,11 @@ const SealClientAxiosParamCreator = function (configuration) {
278
278
  * @param {string} [maxPriceMargin] not supported yet
279
279
  * @param {string} [maxReservationDepositPerStable] not supported yet
280
280
  * @param {string} [minRemainingAmountStableTerms] not supported yet
281
+ * @param {boolean} [onChainValue]
281
282
  * @param {*} [options] Override http request option.
282
283
  * @throws {RequiredError}
283
284
  */
284
- getOrders: async (chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options = {}) => {
285
+ getOrders: async (chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options = {}) => {
285
286
  const localVarPath = `/seal/orders`;
286
287
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
287
288
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -355,6 +356,41 @@ const SealClientAxiosParamCreator = function (configuration) {
355
356
  if (minRemainingAmountStableTerms !== undefined) {
356
357
  localVarQueryParameter['minRemainingAmountStableTerms'] = minRemainingAmountStableTerms;
357
358
  }
359
+ if (onChainValue !== undefined) {
360
+ localVarQueryParameter['onChain.value'] = onChainValue;
361
+ }
362
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
363
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
365
+ return {
366
+ url: (0, common_1.toPathString)(localVarUrlObj),
367
+ options: localVarRequestOptions,
368
+ };
369
+ },
370
+ /**
371
+ *
372
+ * @param {string} [tokenInCoingeckoId]
373
+ * @param {string} [tokenOutCoingeckoId]
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ getPairPrice: async (tokenInCoingeckoId, tokenOutCoingeckoId, options = {}) => {
378
+ const localVarPath = `/seal/pair_price`;
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 (tokenInCoingeckoId !== undefined) {
389
+ localVarQueryParameter['tokenInCoingeckoId'] = tokenInCoingeckoId;
390
+ }
391
+ if (tokenOutCoingeckoId !== undefined) {
392
+ localVarQueryParameter['tokenOutCoingeckoId'] = tokenOutCoingeckoId;
393
+ }
358
394
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
359
395
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
396
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -499,6 +535,30 @@ const SealClientAxiosParamCreator = function (configuration) {
499
535
  options: localVarRequestOptions,
500
536
  };
501
537
  },
538
+ /**
539
+ *
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ syncState: async (options = {}) => {
544
+ const localVarPath = `/seal/sync_state`;
545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
546
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
547
+ let baseOptions;
548
+ if (configuration) {
549
+ baseOptions = configuration.baseOptions;
550
+ }
551
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
552
+ const localVarHeaderParameter = {};
553
+ const localVarQueryParameter = {};
554
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
556
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
557
+ return {
558
+ url: (0, common_1.toPathString)(localVarUrlObj),
559
+ options: localVarRequestOptions,
560
+ };
561
+ },
502
562
  };
503
563
  };
504
564
  exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
@@ -617,15 +677,29 @@ const SealClientFp = function (configuration) {
617
677
  * @param {string} [maxPriceMargin] not supported yet
618
678
  * @param {string} [maxReservationDepositPerStable] not supported yet
619
679
  * @param {string} [minRemainingAmountStableTerms] not supported yet
680
+ * @param {boolean} [onChainValue]
620
681
  * @param {*} [options] Override http request option.
621
682
  * @throws {RequiredError}
622
683
  */
623
- async getOrders(chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options) {
624
- 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);
684
+ async getOrders(chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options) {
685
+ 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, onChainValue, options);
625
686
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
626
687
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
627
688
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
628
689
  },
690
+ /**
691
+ *
692
+ * @param {string} [tokenInCoingeckoId]
693
+ * @param {string} [tokenOutCoingeckoId]
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ async getPairPrice(tokenInCoingeckoId, tokenOutCoingeckoId, options) {
698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPairPrice(tokenInCoingeckoId, tokenOutCoingeckoId, options);
699
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
700
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairPrice']?.[localVarOperationServerIndex]?.url;
701
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
702
+ },
629
703
  /**
630
704
  *
631
705
  * @param {string} [paginationKey]
@@ -675,6 +749,17 @@ const SealClientFp = function (configuration) {
675
749
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.healthCheck']?.[localVarOperationServerIndex]?.url;
676
750
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
677
751
  },
752
+ /**
753
+ *
754
+ * @param {*} [options] Override http request option.
755
+ * @throws {RequiredError}
756
+ */
757
+ async syncState(options) {
758
+ const localVarAxiosArgs = await localVarAxiosParamCreator.syncState(options);
759
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
760
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.syncState']?.[localVarOperationServerIndex]?.url;
761
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
762
+ },
678
763
  };
679
764
  };
680
765
  exports.SealClientFp = SealClientFp;
@@ -745,7 +830,16 @@ const SealClientFactory = function (configuration, basePath, axios) {
745
830
  * @throws {RequiredError}
746
831
  */
747
832
  getOrders(requestParameters = {}, options) {
748
- 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));
833
+ 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, requestParameters.onChainValue, options).then((request) => request(axios, basePath));
834
+ },
835
+ /**
836
+ *
837
+ * @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ getPairPrice(requestParameters = {}, options) {
842
+ return localVarFp.getPairPrice(requestParameters.tokenInCoingeckoId, requestParameters.tokenOutCoingeckoId, options).then((request) => request(axios, basePath));
749
843
  },
750
844
  /**
751
845
  *
@@ -773,6 +867,14 @@ const SealClientFactory = function (configuration, basePath, axios) {
773
867
  healthCheck(options) {
774
868
  return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
775
869
  },
870
+ /**
871
+ *
872
+ * @param {*} [options] Override http request option.
873
+ * @throws {RequiredError}
874
+ */
875
+ syncState(options) {
876
+ return localVarFp.syncState(options).then((request) => request(axios, basePath));
877
+ },
776
878
  };
777
879
  };
778
880
  exports.SealClientFactory = SealClientFactory;
@@ -850,7 +952,17 @@ class SealClient extends base_1.BaseAPI {
850
952
  * @memberof SealClient
851
953
  */
852
954
  getOrders(requestParameters = {}, options) {
853
- 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));
955
+ 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, requestParameters.onChainValue, options).then((request) => request(this.axios, this.basePath));
956
+ }
957
+ /**
958
+ *
959
+ * @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ * @memberof SealClient
963
+ */
964
+ getPairPrice(requestParameters = {}, options) {
965
+ return (0, exports.SealClientFp)(this.configuration).getPairPrice(requestParameters.tokenInCoingeckoId, requestParameters.tokenOutCoingeckoId, options).then((request) => request(this.axios, this.basePath));
854
966
  }
855
967
  /**
856
968
  *
@@ -881,6 +993,15 @@ class SealClient extends base_1.BaseAPI {
881
993
  healthCheck(options) {
882
994
  return (0, exports.SealClientFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
883
995
  }
996
+ /**
997
+ *
998
+ * @param {*} [options] Override http request option.
999
+ * @throws {RequiredError}
1000
+ * @memberof SealClient
1001
+ */
1002
+ syncState(options) {
1003
+ return (0, exports.SealClientFp)(this.configuration).syncState(options).then((request) => request(this.axios, this.basePath));
1004
+ }
884
1005
  }
885
1006
  exports.SealClient = SealClient;
886
1007
  /**
@@ -2,10 +2,12 @@ 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';
@@ -14,7 +16,9 @@ export * from './seal-get-health-check-response';
14
16
  export * from './seal-get-order-nonce-response';
15
17
  export * from './seal-get-order-reservations-response';
16
18
  export * from './seal-get-orders-response';
19
+ export * from './seal-get-pair-price-response';
17
20
  export * from './seal-get-pairs-response';
21
+ export * from './seal-get-sync-state-response';
18
22
  export * from './seal-get-tokens-response';
19
23
  export * from './seal-logger-config';
20
24
  export * from './seal-order';
@@ -18,10 +18,12 @@ __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);
@@ -30,7 +32,9 @@ __exportStar(require("./seal-get-health-check-response"), exports);
30
32
  __exportStar(require("./seal-get-order-nonce-response"), exports);
31
33
  __exportStar(require("./seal-get-order-reservations-response"), exports);
32
34
  __exportStar(require("./seal-get-orders-response"), exports);
35
+ __exportStar(require("./seal-get-pair-price-response"), exports);
33
36
  __exportStar(require("./seal-get-pairs-response"), exports);
37
+ __exportStar(require("./seal-get-sync-state-response"), exports);
34
38
  __exportStar(require("./seal-get-tokens-response"), exports);
35
39
  __exportStar(require("./seal-logger-config"), exports);
36
40
  __exportStar(require("./seal-order"), 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 {TypesTimestamp}
20
+ * @type {string}
22
21
  * @memberof SealCreateOrderIntentResponse
23
22
  */
24
- 'dummyTime'?: TypesTimestamp;
23
+ 'id'?: string;
25
24
  }
@@ -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 });
@@ -106,4 +106,10 @@ export interface SealOrderReservation {
106
106
  * @memberof SealOrderReservation
107
107
  */
108
108
  'reserver'?: string;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof SealOrderReservation
113
+ */
114
+ 'salt'?: number;
109
115
  }
@@ -179,4 +179,10 @@ export interface SealOrder {
179
179
  * @memberof SealOrder
180
180
  */
181
181
  'orderIntent'?: SealOrderIntent;
182
+ /**
183
+ *
184
+ * @type {boolean}
185
+ * @memberof SealOrder
186
+ */
187
+ 'onChain'?: boolean;
182
188
  }
@@ -0,0 +1,55 @@
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 SealSyncState
17
+ */
18
+ export interface SealSyncState {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SealSyncState
23
+ */
24
+ 'backendBlockHeight'?: string;
25
+ /**
26
+ *
27
+ * @type {TypesTimestamp}
28
+ * @memberof SealSyncState
29
+ */
30
+ 'backendBlockTime'?: TypesTimestamp;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SealSyncState
35
+ */
36
+ 'indexerBlockHeight'?: string;
37
+ /**
38
+ *
39
+ * @type {TypesTimestamp}
40
+ * @memberof SealSyncState
41
+ */
42
+ 'indexerBlockTime'?: TypesTimestamp;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SealSyncState
47
+ */
48
+ 'chainBlockHeight'?: string;
49
+ /**
50
+ *
51
+ * @type {TypesTimestamp}
52
+ * @memberof SealSyncState
53
+ */
54
+ 'chainBlockTime'?: TypesTimestamp;
55
+ }
@@ -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 });
@@ -27,4 +27,10 @@ export interface TypesTimestamp {
27
27
  * @memberof TypesTimestamp
28
28
  */
29
29
  'nanos'?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TypesTimestamp
34
+ */
35
+ 'str'?: string;
30
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.28",
3
+ "version": "v0.0.37",
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",