@seal-protocol/backendjs 0.0.24 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,11 +14,13 @@ 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 { SealGetChainsResponse } from '../model';
17
18
  import type { SealGetConfigResponse } from '../model';
18
19
  import type { SealGetHealthCheckResponse } from '../model';
19
20
  import type { SealGetOrderNonceResponse } from '../model';
20
21
  import type { SealGetOrdersResponse } from '../model';
21
22
  import type { SealGetPairsResponse } from '../model';
23
+ import type { SealGetTokensResponse } from '../model';
22
24
  /**
23
25
  * SealClient - axios parameter creator
24
26
  * @export
@@ -44,6 +46,17 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
44
46
  * @throws {RequiredError}
45
47
  */
46
48
  createOrderIntent: (body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ *
51
+ * @param {string} [paginationKey]
52
+ * @param {number} [paginationLimit]
53
+ * @param {boolean} [paginationCountTotal]
54
+ * @param {GetChainsOrderByPropertyEnum} [orderByProperty]
55
+ * @param {boolean} [orderByDescending]
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ getChains: (paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetChainsOrderByPropertyEnum, orderByDescending?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
60
  /**
48
61
  *
49
62
  * @param {string} chainId uint256
@@ -58,21 +71,27 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
58
71
  * @param {string} [tokenIn] Token In The token to exchange from.
59
72
  * @param {string} [tokenOut]
60
73
  * @param {string} [owner]
61
- * @param {string} [fromPrice] uint256
62
- * @param {string} [toPrice] uint256
74
+ * @param {string} [fromPriceDecimal]
75
+ * @param {string} [toPriceDecimal]
63
76
  * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
64
77
  * @param {boolean} [orderByDescending]
65
78
  * @param {string} [paginationKey]
66
79
  * @param {number} [paginationLimit]
67
80
  * @param {boolean} [paginationCountTotal]
68
- * @param {boolean} [partiallyFillableValue]
69
81
  * @param {boolean} [reservationAllowedValue]
70
82
  * @param {boolean} [liveValue]
71
83
  * @param {boolean} [cancelledValue]
84
+ * @param {string} [depositToken]
85
+ * @param {number} [minReservationPeriodSeconds]
86
+ * @param {string} [minRemainingAmount] uint256
87
+ * @param {string} [minPriceMargin] not supported yet
88
+ * @param {string} [maxPriceMargin] not supported yet
89
+ * @param {string} [maxReservationDepositPerStable] not supported yet
90
+ * @param {string} [minRemainingAmountStableTerms] not supported yet
72
91
  * @param {*} [options] Override http request option.
73
92
  * @throws {RequiredError}
74
93
  */
75
- getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, partiallyFillableValue?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
94
+ 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>;
76
95
  /**
77
96
  *
78
97
  * @param {string} [paginationKey]
@@ -89,6 +108,18 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
89
108
  * @throws {RequiredError}
90
109
  */
91
110
  getPairs: (paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetPairsOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, tokenIn?: string, tokenOut?: string, reservableOnly?: boolean, excludeEmpty?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
111
+ /**
112
+ *
113
+ * @param {string} [paginationKey]
114
+ * @param {number} [paginationLimit]
115
+ * @param {boolean} [paginationCountTotal]
116
+ * @param {GetTokensOrderByPropertyEnum} [orderByProperty]
117
+ * @param {boolean} [orderByDescending]
118
+ * @param {string} [chainId]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ getTokens: (paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetTokensOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
92
123
  /**
93
124
  *
94
125
  * @param {*} [options] Override http request option.
@@ -121,6 +152,17 @@ export declare const SealClientFp: (configuration?: Configuration) => {
121
152
  * @throws {RequiredError}
122
153
  */
123
154
  createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
155
+ /**
156
+ *
157
+ * @param {string} [paginationKey]
158
+ * @param {number} [paginationLimit]
159
+ * @param {boolean} [paginationCountTotal]
160
+ * @param {GetChainsOrderByPropertyEnum} [orderByProperty]
161
+ * @param {boolean} [orderByDescending]
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ getChains(paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetChainsOrderByPropertyEnum, orderByDescending?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetChainsResponse>>;
124
166
  /**
125
167
  *
126
168
  * @param {string} chainId uint256
@@ -135,21 +177,27 @@ export declare const SealClientFp: (configuration?: Configuration) => {
135
177
  * @param {string} [tokenIn] Token In The token to exchange from.
136
178
  * @param {string} [tokenOut]
137
179
  * @param {string} [owner]
138
- * @param {string} [fromPrice] uint256
139
- * @param {string} [toPrice] uint256
180
+ * @param {string} [fromPriceDecimal]
181
+ * @param {string} [toPriceDecimal]
140
182
  * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
141
183
  * @param {boolean} [orderByDescending]
142
184
  * @param {string} [paginationKey]
143
185
  * @param {number} [paginationLimit]
144
186
  * @param {boolean} [paginationCountTotal]
145
- * @param {boolean} [partiallyFillableValue]
146
187
  * @param {boolean} [reservationAllowedValue]
147
188
  * @param {boolean} [liveValue]
148
189
  * @param {boolean} [cancelledValue]
190
+ * @param {string} [depositToken]
191
+ * @param {number} [minReservationPeriodSeconds]
192
+ * @param {string} [minRemainingAmount] uint256
193
+ * @param {string} [minPriceMargin] not supported yet
194
+ * @param {string} [maxPriceMargin] not supported yet
195
+ * @param {string} [maxReservationDepositPerStable] not supported yet
196
+ * @param {string} [minRemainingAmountStableTerms] not supported yet
149
197
  * @param {*} [options] Override http request option.
150
198
  * @throws {RequiredError}
151
199
  */
152
- getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, partiallyFillableValue?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
200
+ 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>>;
153
201
  /**
154
202
  *
155
203
  * @param {string} [paginationKey]
@@ -166,6 +214,18 @@ export declare const SealClientFp: (configuration?: Configuration) => {
166
214
  * @throws {RequiredError}
167
215
  */
168
216
  getPairs(paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetPairsOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, tokenIn?: string, tokenOut?: string, reservableOnly?: boolean, excludeEmpty?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetPairsResponse>>;
217
+ /**
218
+ *
219
+ * @param {string} [paginationKey]
220
+ * @param {number} [paginationLimit]
221
+ * @param {boolean} [paginationCountTotal]
222
+ * @param {GetTokensOrderByPropertyEnum} [orderByProperty]
223
+ * @param {boolean} [orderByDescending]
224
+ * @param {string} [chainId]
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ getTokens(paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetTokensOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetTokensResponse>>;
169
229
  /**
170
230
  *
171
231
  * @param {*} [options] Override http request option.
@@ -198,6 +258,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
198
258
  * @throws {RequiredError}
199
259
  */
200
260
  createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
261
+ /**
262
+ *
263
+ * @param {SealClientGetChainsRequest} requestParameters Request parameters.
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ getChains(requestParameters?: SealClientGetChainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetChainsResponse>;
201
268
  /**
202
269
  *
203
270
  * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
@@ -219,6 +286,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
219
286
  * @throws {RequiredError}
220
287
  */
221
288
  getPairs(requestParameters?: SealClientGetPairsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetPairsResponse>;
289
+ /**
290
+ *
291
+ * @param {SealClientGetTokensRequest} requestParameters Request parameters.
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ getTokens(requestParameters?: SealClientGetTokensRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetTokensResponse>;
222
296
  /**
223
297
  *
224
298
  * @param {*} [options] Override http request option.
@@ -252,6 +326,43 @@ export interface SealClientCreateOrderIntentRequest {
252
326
  */
253
327
  readonly body: SealCreateOrderIntentRequest;
254
328
  }
329
+ /**
330
+ * Request parameters for getChains operation in SealClient.
331
+ * @export
332
+ * @interface SealClientGetChainsRequest
333
+ */
334
+ export interface SealClientGetChainsRequest {
335
+ /**
336
+ *
337
+ * @type {string}
338
+ * @memberof SealClientGetChains
339
+ */
340
+ readonly paginationKey?: string;
341
+ /**
342
+ *
343
+ * @type {number}
344
+ * @memberof SealClientGetChains
345
+ */
346
+ readonly paginationLimit?: number;
347
+ /**
348
+ *
349
+ * @type {boolean}
350
+ * @memberof SealClientGetChains
351
+ */
352
+ readonly paginationCountTotal?: boolean;
353
+ /**
354
+ *
355
+ * @type {'ChainsOrderByProperty_UNSPECIFIED'}
356
+ * @memberof SealClientGetChains
357
+ */
358
+ readonly orderByProperty?: GetChainsOrderByPropertyEnum;
359
+ /**
360
+ *
361
+ * @type {boolean}
362
+ * @memberof SealClientGetChains
363
+ */
364
+ readonly orderByDescending?: boolean;
365
+ }
255
366
  /**
256
367
  * Request parameters for getOrderNonce operation in SealClient.
257
368
  * @export
@@ -302,20 +413,20 @@ export interface SealClientGetOrdersRequest {
302
413
  */
303
414
  readonly owner?: string;
304
415
  /**
305
- * uint256
416
+ *
306
417
  * @type {string}
307
418
  * @memberof SealClientGetOrders
308
419
  */
309
- readonly fromPrice?: string;
420
+ readonly fromPriceDecimal?: string;
310
421
  /**
311
- * uint256
422
+ *
312
423
  * @type {string}
313
424
  * @memberof SealClientGetOrders
314
425
  */
315
- readonly toPrice?: string;
426
+ readonly toPriceDecimal?: string;
316
427
  /**
317
428
  *
318
- * @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID' | 'RESERVATION_DEPOSIT_DENOM' | 'MIN_RESERVATION_DEPOSIT_AMOUNT' | 'REMAINING_AMOUNT' | 'RESERVED_AMOUNT' | 'FILLED_AMOUNT'}
429
+ * @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'DEADLINE' | 'CHAIN_ID' | 'DEPOSIT_TOKEN' | 'MIN_RESERVATION_DEPOSIT_AMOUNT' | 'REMAINING_AMOUNT' | 'RESERVED_AMOUNT' | 'FILLED_AMOUNT'}
319
430
  * @memberof SealClientGetOrders
320
431
  */
321
432
  readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
@@ -348,25 +459,61 @@ export interface SealClientGetOrdersRequest {
348
459
  * @type {boolean}
349
460
  * @memberof SealClientGetOrders
350
461
  */
351
- readonly partiallyFillableValue?: boolean;
462
+ readonly reservationAllowedValue?: boolean;
352
463
  /**
353
464
  *
354
465
  * @type {boolean}
355
466
  * @memberof SealClientGetOrders
356
467
  */
357
- readonly reservationAllowedValue?: boolean;
468
+ readonly liveValue?: boolean;
358
469
  /**
359
470
  *
360
471
  * @type {boolean}
361
472
  * @memberof SealClientGetOrders
362
473
  */
363
- readonly liveValue?: boolean;
474
+ readonly cancelledValue?: boolean;
364
475
  /**
365
476
  *
366
- * @type {boolean}
477
+ * @type {string}
367
478
  * @memberof SealClientGetOrders
368
479
  */
369
- readonly cancelledValue?: boolean;
480
+ readonly depositToken?: string;
481
+ /**
482
+ *
483
+ * @type {number}
484
+ * @memberof SealClientGetOrders
485
+ */
486
+ readonly minReservationPeriodSeconds?: number;
487
+ /**
488
+ * uint256
489
+ * @type {string}
490
+ * @memberof SealClientGetOrders
491
+ */
492
+ readonly minRemainingAmount?: string;
493
+ /**
494
+ * not supported yet
495
+ * @type {string}
496
+ * @memberof SealClientGetOrders
497
+ */
498
+ readonly minPriceMargin?: string;
499
+ /**
500
+ * not supported yet
501
+ * @type {string}
502
+ * @memberof SealClientGetOrders
503
+ */
504
+ readonly maxPriceMargin?: string;
505
+ /**
506
+ * not supported yet
507
+ * @type {string}
508
+ * @memberof SealClientGetOrders
509
+ */
510
+ readonly maxReservationDepositPerStable?: string;
511
+ /**
512
+ * not supported yet
513
+ * @type {string}
514
+ * @memberof SealClientGetOrders
515
+ */
516
+ readonly minRemainingAmountStableTerms?: string;
370
517
  }
371
518
  /**
372
519
  * Request parameters for getPairs operation in SealClient.
@@ -435,6 +582,49 @@ export interface SealClientGetPairsRequest {
435
582
  */
436
583
  readonly excludeEmpty?: boolean;
437
584
  }
585
+ /**
586
+ * Request parameters for getTokens operation in SealClient.
587
+ * @export
588
+ * @interface SealClientGetTokensRequest
589
+ */
590
+ export interface SealClientGetTokensRequest {
591
+ /**
592
+ *
593
+ * @type {string}
594
+ * @memberof SealClientGetTokens
595
+ */
596
+ readonly paginationKey?: string;
597
+ /**
598
+ *
599
+ * @type {number}
600
+ * @memberof SealClientGetTokens
601
+ */
602
+ readonly paginationLimit?: number;
603
+ /**
604
+ *
605
+ * @type {boolean}
606
+ * @memberof SealClientGetTokens
607
+ */
608
+ readonly paginationCountTotal?: boolean;
609
+ /**
610
+ *
611
+ * @type {'TokensOrderByProperty_UNSPECIFIED'}
612
+ * @memberof SealClientGetTokens
613
+ */
614
+ readonly orderByProperty?: GetTokensOrderByPropertyEnum;
615
+ /**
616
+ *
617
+ * @type {boolean}
618
+ * @memberof SealClientGetTokens
619
+ */
620
+ readonly orderByDescending?: boolean;
621
+ /**
622
+ *
623
+ * @type {string}
624
+ * @memberof SealClientGetTokens
625
+ */
626
+ readonly chainId?: string;
627
+ }
438
628
  /**
439
629
  * SealClient - object-oriented interface
440
630
  * @export
@@ -465,6 +655,14 @@ export declare class SealClient extends BaseAPI {
465
655
  * @memberof SealClient
466
656
  */
467
657
  createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
658
+ /**
659
+ *
660
+ * @param {SealClientGetChainsRequest} requestParameters Request parameters.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ * @memberof SealClient
664
+ */
665
+ getChains(requestParameters?: SealClientGetChainsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetChainsResponse, any>>;
468
666
  /**
469
667
  *
470
668
  * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
@@ -489,6 +687,14 @@ export declare class SealClient extends BaseAPI {
489
687
  * @memberof SealClient
490
688
  */
491
689
  getPairs(requestParameters?: SealClientGetPairsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetPairsResponse, any>>;
690
+ /**
691
+ *
692
+ * @param {SealClientGetTokensRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof SealClient
696
+ */
697
+ getTokens(requestParameters?: SealClientGetTokensRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetTokensResponse, any>>;
492
698
  /**
493
699
  *
494
700
  * @param {*} [options] Override http request option.
@@ -497,6 +703,13 @@ export declare class SealClient extends BaseAPI {
497
703
  */
498
704
  healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
499
705
  }
706
+ /**
707
+ * @export
708
+ * @enum {string}
709
+ */
710
+ export declare enum GetChainsOrderByPropertyEnum {
711
+ ChainsOrderByPropertyUnspecified = "ChainsOrderByProperty_UNSPECIFIED"
712
+ }
500
713
  /**
501
714
  * @export
502
715
  * @enum {string}
@@ -508,10 +721,9 @@ export declare enum GetOrdersOrderByPropertyEnum {
508
721
  TokenOut = "TOKEN_OUT",
509
722
  AmountIn = "AMOUNT_IN",
510
723
  Price = "PRICE",
511
- PartiallyFillable = "PARTIALLY_FILLABLE",
512
724
  Deadline = "DEADLINE",
513
725
  ChainId = "CHAIN_ID",
514
- ReservationDepositDenom = "RESERVATION_DEPOSIT_DENOM",
726
+ DepositToken = "DEPOSIT_TOKEN",
515
727
  MinReservationDepositAmount = "MIN_RESERVATION_DEPOSIT_AMOUNT",
516
728
  RemainingAmount = "REMAINING_AMOUNT",
517
729
  ReservedAmount = "RESERVED_AMOUNT",
@@ -524,3 +736,10 @@ export declare enum GetOrdersOrderByPropertyEnum {
524
736
  export declare enum GetPairsOrderByPropertyEnum {
525
737
  PairsOrderByPropertyUnspecified = "PairsOrderByProperty_UNSPECIFIED"
526
738
  }
739
+ /**
740
+ * @export
741
+ * @enum {string}
742
+ */
743
+ export declare enum GetTokensOrderByPropertyEnum {
744
+ TokensOrderByPropertyUnspecified = "TokensOrderByProperty_UNSPECIFIED"
745
+ }