@seal-protocol/backendjs 0.0.28 → 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.
@@ -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
@@ -109,6 +112,14 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
109
112
  * @throws {RequiredError}
110
113
  */
111
114
  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
+ /**
116
+ *
117
+ * @param {string} [tokenInCoingeckoId]
118
+ * @param {string} [tokenOutCoingeckoId]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ getPairPrice: (tokenInCoingeckoId?: string, tokenOutCoingeckoId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
123
  /**
113
124
  *
114
125
  * @param {string} [paginationKey]
@@ -143,6 +154,12 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
143
154
  * @throws {RequiredError}
144
155
  */
145
156
  healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
157
+ /**
158
+ *
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ syncState: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
146
163
  };
147
164
  /**
148
165
  * SealClient - functional programming interface
@@ -168,7 +185,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
168
185
  * @param {*} [options] Override http request option.
169
186
  * @throws {RequiredError}
170
187
  */
171
- createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
188
+ createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealCreateOrderIntentResponse>>;
172
189
  /**
173
190
  *
174
191
  * @param {string} [paginationKey]
@@ -231,6 +248,14 @@ export declare const SealClientFp: (configuration?: Configuration) => {
231
248
  * @throws {RequiredError}
232
249
  */
233
250
  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>>;
251
+ /**
252
+ *
253
+ * @param {string} [tokenInCoingeckoId]
254
+ * @param {string} [tokenOutCoingeckoId]
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ getPairPrice(tokenInCoingeckoId?: string, tokenOutCoingeckoId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetPairPriceResponse>>;
234
259
  /**
235
260
  *
236
261
  * @param {string} [paginationKey]
@@ -265,6 +290,12 @@ export declare const SealClientFp: (configuration?: Configuration) => {
265
290
  * @throws {RequiredError}
266
291
  */
267
292
  healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetHealthCheckResponse>>;
293
+ /**
294
+ *
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ syncState(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetSyncStateResponse>>;
268
299
  };
269
300
  /**
270
301
  * SealClient - factory interface
@@ -290,7 +321,7 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
290
321
  * @param {*} [options] Override http request option.
291
322
  * @throws {RequiredError}
292
323
  */
293
- createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
324
+ createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealCreateOrderIntentResponse>;
294
325
  /**
295
326
  *
296
327
  * @param {SealClientGetChainsRequest} requestParameters Request parameters.
@@ -319,6 +350,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
319
350
  * @throws {RequiredError}
320
351
  */
321
352
  getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrdersResponse>;
353
+ /**
354
+ *
355
+ * @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ getPairPrice(requestParameters?: SealClientGetPairPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetPairPriceResponse>;
322
360
  /**
323
361
  *
324
362
  * @param {SealClientGetPairsRequest} requestParameters Request parameters.
@@ -339,6 +377,12 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
339
377
  * @throws {RequiredError}
340
378
  */
341
379
  healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<SealGetHealthCheckResponse>;
380
+ /**
381
+ *
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ syncState(options?: RawAxiosRequestConfig): AxiosPromise<SealGetSyncStateResponse>;
342
386
  };
343
387
  /**
344
388
  * Request parameters for cancelOrder operation in SealClient.
@@ -622,6 +666,25 @@ export interface SealClientGetOrdersRequest {
622
666
  */
623
667
  readonly minRemainingAmountStableTerms?: string;
624
668
  }
669
+ /**
670
+ * Request parameters for getPairPrice operation in SealClient.
671
+ * @export
672
+ * @interface SealClientGetPairPriceRequest
673
+ */
674
+ export interface SealClientGetPairPriceRequest {
675
+ /**
676
+ *
677
+ * @type {string}
678
+ * @memberof SealClientGetPairPrice
679
+ */
680
+ readonly tokenInCoingeckoId?: string;
681
+ /**
682
+ *
683
+ * @type {string}
684
+ * @memberof SealClientGetPairPrice
685
+ */
686
+ readonly tokenOutCoingeckoId?: string;
687
+ }
625
688
  /**
626
689
  * Request parameters for getPairs operation in SealClient.
627
690
  * @export
@@ -761,7 +824,7 @@ export declare class SealClient extends BaseAPI {
761
824
  * @throws {RequiredError}
762
825
  * @memberof SealClient
763
826
  */
764
- createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
827
+ createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealCreateOrderIntentResponse, any>>;
765
828
  /**
766
829
  *
767
830
  * @param {SealClientGetChainsRequest} requestParameters Request parameters.
@@ -794,6 +857,14 @@ export declare class SealClient extends BaseAPI {
794
857
  * @memberof SealClient
795
858
  */
796
859
  getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrdersResponse, any>>;
860
+ /**
861
+ *
862
+ * @param {SealClientGetPairPriceRequest} requestParameters Request parameters.
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ * @memberof SealClient
866
+ */
867
+ getPairPrice(requestParameters?: SealClientGetPairPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetPairPriceResponse, any>>;
797
868
  /**
798
869
  *
799
870
  * @param {SealClientGetPairsRequest} requestParameters Request parameters.
@@ -817,6 +888,13 @@ export declare class SealClient extends BaseAPI {
817
888
  * @memberof SealClient
818
889
  */
819
890
  healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
891
+ /**
892
+ *
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ * @memberof SealClient
896
+ */
897
+ syncState(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetSyncStateResponse, any>>;
820
898
  }
821
899
  /**
822
900
  * @export
@@ -363,6 +363,38 @@ const SealClientAxiosParamCreator = function (configuration) {
363
363
  options: localVarRequestOptions,
364
364
  };
365
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
+ },
366
398
  /**
367
399
  *
368
400
  * @param {string} [paginationKey]
@@ -499,6 +531,30 @@ const SealClientAxiosParamCreator = function (configuration) {
499
531
  options: localVarRequestOptions,
500
532
  };
501
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
+ },
502
558
  };
503
559
  };
504
560
  exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
@@ -626,6 +682,19 @@ const SealClientFp = function (configuration) {
626
682
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
627
683
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
628
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
+ },
629
698
  /**
630
699
  *
631
700
  * @param {string} [paginationKey]
@@ -675,6 +744,17 @@ const SealClientFp = function (configuration) {
675
744
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.healthCheck']?.[localVarOperationServerIndex]?.url;
676
745
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
677
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
+ },
678
758
  };
679
759
  };
680
760
  exports.SealClientFp = SealClientFp;
@@ -747,6 +827,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
747
827
  getOrders(requestParameters = {}, options) {
748
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));
749
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
+ },
750
839
  /**
751
840
  *
752
841
  * @param {SealClientGetPairsRequest} requestParameters Request parameters.
@@ -773,6 +862,14 @@ const SealClientFactory = function (configuration, basePath, axios) {
773
862
  healthCheck(options) {
774
863
  return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
775
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
+ },
776
873
  };
777
874
  };
778
875
  exports.SealClientFactory = SealClientFactory;
@@ -852,6 +949,16 @@ class SealClient extends base_1.BaseAPI {
852
949
  getOrders(requestParameters = {}, options) {
853
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));
854
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
+ }
855
962
  /**
856
963
  *
857
964
  * @param {SealClientGetPairsRequest} requestParameters Request parameters.
@@ -881,6 +988,15 @@ class SealClient extends base_1.BaseAPI {
881
988
  healthCheck(options) {
882
989
  return (0, exports.SealClientFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
883
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
+ }
884
1000
  }
885
1001
  exports.SealClient = SealClient;
886
1002
  /**
@@ -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
  }
@@ -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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
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",