@seal-protocol/backendjs 0.0.129 → 0.0.131
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/codegen/api/seal-client.d.ts +221 -107
- package/lib/codegen/api/seal-client.js +217 -117
- package/lib/codegen/model/index.d.ts +6 -3
- package/lib/codegen/model/index.js +6 -3
- package/lib/codegen/model/seal-chain.d.ts +1 -1
- package/lib/codegen/model/{seal-domain-info.d.ts → seal-get-order-stats-for-owner-response.d.ts} +6 -18
- package/lib/codegen/model/seal-get-rfq-activities-response.d.ts +31 -0
- package/lib/codegen/model/seal-rfq-activities-order-by-property.d.ts +22 -0
- package/lib/codegen/model/seal-rfq-activities-order-by-property.js +28 -0
- package/lib/codegen/model/seal-rfq-activities-order-by.d.ts +31 -0
- package/lib/codegen/model/{seal-approval-type.d.ts → seal-rfq-activities-order-by.js} +4 -11
- package/lib/codegen/model/seal-rfq-activity.d.ts +75 -0
- package/lib/codegen/model/seal-rfq-activity.js +15 -0
- package/lib/codegen/model/types-rfq-activity-type.d.ts +25 -0
- package/lib/codegen/model/types-rfq-activity-type.js +31 -0
- package/lib/utils/calculate-liquidity.d.ts +21 -1
- package/lib/utils/calculate-liquidity.js +54 -11
- package/lib/utils/calculate-required-permit.d.ts +36 -0
- package/lib/utils/calculate-required-permit.js +111 -0
- package/lib/utils/index.d.ts +3 -1
- package/lib/utils/index.js +20 -1
- package/package.json +1 -1
- package/lib/codegen/model/seal-approval-type.js +0 -28
- package/lib/codegen/model/seal-calculate-required-permit-response.d.ts +0 -74
- /package/lib/codegen/model/{seal-calculate-required-permit-response.js → seal-get-order-stats-for-owner-response.js} +0 -0
- /package/lib/codegen/model/{seal-domain-info.js → seal-get-rfq-activities-response.js} +0 -0
|
@@ -13,7 +13,6 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { SealAddRfqRequestViewerRequest } from '../model';
|
|
16
|
-
import type { SealCalculateRequiredPermitResponse } from '../model';
|
|
17
16
|
import type { SealCancelOrderRequest } from '../model';
|
|
18
17
|
import type { SealCreateExecutionMessageRequest } from '../model';
|
|
19
18
|
import type { SealCreateExecutionMessageResponse } from '../model';
|
|
@@ -32,10 +31,12 @@ import type { SealGetHealthCheckResponse } from '../model';
|
|
|
32
31
|
import type { SealGetOrderActivitiesResponse } from '../model';
|
|
33
32
|
import type { SealGetOrderNonceResponse } from '../model';
|
|
34
33
|
import type { SealGetOrderReservationsResponse } from '../model';
|
|
34
|
+
import type { SealGetOrderStatsForOwnerResponse } from '../model';
|
|
35
35
|
import type { SealGetOrdersResponse } from '../model';
|
|
36
36
|
import type { SealGetPairPriceResponse } from '../model';
|
|
37
37
|
import type { SealGetPairsResponse } from '../model';
|
|
38
38
|
import type { SealGetPermit2ContractsResponse } from '../model';
|
|
39
|
+
import type { SealGetRfqActivitiesResponse } from '../model';
|
|
39
40
|
import type { SealGetRfqCommitmentResponse } from '../model';
|
|
40
41
|
import type { SealGetRfqContractsResponse } from '../model';
|
|
41
42
|
import type { SealGetRfqNonceResponse } from '../model';
|
|
@@ -62,18 +63,6 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
62
63
|
* @throws {RequiredError}
|
|
63
64
|
*/
|
|
64
65
|
addRfqRequestViewer: (body: SealAddRfqRequestViewerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @param {string} chainId
|
|
68
|
-
* @param {string} owner hex representation of owner address
|
|
69
|
-
* @param {string} spender hex representation of spender address
|
|
70
|
-
* @param {string} token hex representation of token address
|
|
71
|
-
* @param {string} orderAmount
|
|
72
|
-
* @param {number} [orderExpiration] unix seconds
|
|
73
|
-
* @param {*} [options] Override http request option.
|
|
74
|
-
* @throws {RequiredError}
|
|
75
|
-
*/
|
|
76
|
-
calculateRequiredPermit: (chainId: string, owner: string, spender: string, token: string, orderAmount: string, orderExpiration?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
66
|
/**
|
|
78
67
|
*
|
|
79
68
|
* @param {SealCancelOrderRequest} body
|
|
@@ -149,9 +138,9 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
149
138
|
getChains: (paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetChainsOrderByPropertyEnum, orderByDescending?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
150
139
|
/**
|
|
151
140
|
*
|
|
152
|
-
* @param {string} chainId uint256
|
|
153
141
|
* @param {GetOrderActivitiesOrderByPropertyEnum} [orderByProperty]
|
|
154
142
|
* @param {boolean} [orderByDescending]
|
|
143
|
+
* @param {string} [chainId] uint256
|
|
155
144
|
* @param {string} [orderId]
|
|
156
145
|
* @param {string} [reservationIdHash]
|
|
157
146
|
* @param {string} [user] either the order owner or the actor
|
|
@@ -162,7 +151,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
162
151
|
* @param {*} [options] Override http request option.
|
|
163
152
|
* @throws {RequiredError}
|
|
164
153
|
*/
|
|
165
|
-
getOrderActivities: (
|
|
154
|
+
getOrderActivities: (orderByProperty?: GetOrderActivitiesOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, orderId?: string, reservationIdHash?: string, user?: string, type?: GetOrderActivitiesTypeEnum, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
166
155
|
/**
|
|
167
156
|
*
|
|
168
157
|
* @param {string} chainId uint256
|
|
@@ -189,6 +178,15 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
189
178
|
* @throws {RequiredError}
|
|
190
179
|
*/
|
|
191
180
|
getOrderReservations: (orderByProperty?: GetOrderReservationsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, chainId?: string, reserver?: string, liveValue?: boolean, expiredValue?: boolean, orderOnChainId?: string, orderOnChainIdHash?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @param {string} [chainId] uint256
|
|
184
|
+
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
185
|
+
* @param {string} [owner]
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
getOrderStatsForOwner: (chainId?: string, tokenIn?: string, owner?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
192
190
|
/**
|
|
193
191
|
*
|
|
194
192
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
@@ -251,6 +249,22 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
251
249
|
* @throws {RequiredError}
|
|
252
250
|
*/
|
|
253
251
|
getPermit2Contracts: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @param {GetRfqActivitiesOrderByPropertyEnum} [orderByProperty]
|
|
255
|
+
* @param {boolean} [orderByDescending]
|
|
256
|
+
* @param {string} [chainId] uint256
|
|
257
|
+
* @param {string} [requestId]
|
|
258
|
+
* @param {string} [commitmentId]
|
|
259
|
+
* @param {string} [user] either the order owner or the actor
|
|
260
|
+
* @param {GetRfqActivitiesTypeEnum} [type]
|
|
261
|
+
* @param {string} [paginationKey]
|
|
262
|
+
* @param {number} [paginationLimit]
|
|
263
|
+
* @param {boolean} [paginationCountTotal]
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
getRfqActivities: (orderByProperty?: GetRfqActivitiesOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, requestId?: string, commitmentId?: string, user?: string, type?: GetRfqActivitiesTypeEnum, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
254
268
|
/**
|
|
255
269
|
*
|
|
256
270
|
* @param {GetRfqCommitmentsOrderByPropertyEnum} [orderByProperty]
|
|
@@ -288,12 +302,12 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
288
302
|
getRfqNonce: (owner: string, chainId: string, contract: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
289
303
|
/**
|
|
290
304
|
*
|
|
291
|
-
* @param {string} chainId
|
|
292
305
|
* @param {GetRfqQuotesOrderByPropertyEnum} [orderByProperty]
|
|
293
306
|
* @param {boolean} [orderByDescending]
|
|
294
307
|
* @param {string} [paginationKey]
|
|
295
308
|
* @param {number} [paginationLimit]
|
|
296
309
|
* @param {boolean} [paginationCountTotal]
|
|
310
|
+
* @param {string} [chainId]
|
|
297
311
|
* @param {string} [quoteHash]
|
|
298
312
|
* @param {string} [requestId]
|
|
299
313
|
* @param {string} [offerer]
|
|
@@ -305,7 +319,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
305
319
|
* @param {*} [options] Override http request option.
|
|
306
320
|
* @throws {RequiredError}
|
|
307
321
|
*/
|
|
308
|
-
getRfqQuotes: (
|
|
322
|
+
getRfqQuotes: (orderByProperty?: GetRfqQuotesOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, chainId?: string, quoteHash?: string, requestId?: string, offerer?: string, id?: string, onChainValue?: boolean, settlementTimeAfter?: number, deadlineAfter?: number, rejectedValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
309
323
|
/**
|
|
310
324
|
*
|
|
311
325
|
* @param {string} requestId
|
|
@@ -431,18 +445,6 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
431
445
|
* @throws {RequiredError}
|
|
432
446
|
*/
|
|
433
447
|
addRfqRequestViewer(body: SealAddRfqRequestViewerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
434
|
-
/**
|
|
435
|
-
*
|
|
436
|
-
* @param {string} chainId
|
|
437
|
-
* @param {string} owner hex representation of owner address
|
|
438
|
-
* @param {string} spender hex representation of spender address
|
|
439
|
-
* @param {string} token hex representation of token address
|
|
440
|
-
* @param {string} orderAmount
|
|
441
|
-
* @param {number} [orderExpiration] unix seconds
|
|
442
|
-
* @param {*} [options] Override http request option.
|
|
443
|
-
* @throws {RequiredError}
|
|
444
|
-
*/
|
|
445
|
-
calculateRequiredPermit(chainId: string, owner: string, spender: string, token: string, orderAmount: string, orderExpiration?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealCalculateRequiredPermitResponse>>;
|
|
446
448
|
/**
|
|
447
449
|
*
|
|
448
450
|
* @param {SealCancelOrderRequest} body
|
|
@@ -518,9 +520,9 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
518
520
|
getChains(paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetChainsOrderByPropertyEnum, orderByDescending?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetChainsResponse>>;
|
|
519
521
|
/**
|
|
520
522
|
*
|
|
521
|
-
* @param {string} chainId uint256
|
|
522
523
|
* @param {GetOrderActivitiesOrderByPropertyEnum} [orderByProperty]
|
|
523
524
|
* @param {boolean} [orderByDescending]
|
|
525
|
+
* @param {string} [chainId] uint256
|
|
524
526
|
* @param {string} [orderId]
|
|
525
527
|
* @param {string} [reservationIdHash]
|
|
526
528
|
* @param {string} [user] either the order owner or the actor
|
|
@@ -531,7 +533,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
531
533
|
* @param {*} [options] Override http request option.
|
|
532
534
|
* @throws {RequiredError}
|
|
533
535
|
*/
|
|
534
|
-
getOrderActivities(
|
|
536
|
+
getOrderActivities(orderByProperty?: GetOrderActivitiesOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, orderId?: string, reservationIdHash?: string, user?: string, type?: GetOrderActivitiesTypeEnum, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrderActivitiesResponse>>;
|
|
535
537
|
/**
|
|
536
538
|
*
|
|
537
539
|
* @param {string} chainId uint256
|
|
@@ -558,6 +560,15 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
558
560
|
* @throws {RequiredError}
|
|
559
561
|
*/
|
|
560
562
|
getOrderReservations(orderByProperty?: GetOrderReservationsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, chainId?: string, reserver?: string, liveValue?: boolean, expiredValue?: boolean, orderOnChainId?: string, orderOnChainIdHash?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrderReservationsResponse>>;
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @param {string} [chainId] uint256
|
|
566
|
+
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
567
|
+
* @param {string} [owner]
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
getOrderStatsForOwner(chainId?: string, tokenIn?: string, owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrderStatsForOwnerResponse>>;
|
|
561
572
|
/**
|
|
562
573
|
*
|
|
563
574
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
@@ -620,6 +631,22 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
620
631
|
* @throws {RequiredError}
|
|
621
632
|
*/
|
|
622
633
|
getPermit2Contracts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetPermit2ContractsResponse>>;
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @param {GetRfqActivitiesOrderByPropertyEnum} [orderByProperty]
|
|
637
|
+
* @param {boolean} [orderByDescending]
|
|
638
|
+
* @param {string} [chainId] uint256
|
|
639
|
+
* @param {string} [requestId]
|
|
640
|
+
* @param {string} [commitmentId]
|
|
641
|
+
* @param {string} [user] either the order owner or the actor
|
|
642
|
+
* @param {GetRfqActivitiesTypeEnum} [type]
|
|
643
|
+
* @param {string} [paginationKey]
|
|
644
|
+
* @param {number} [paginationLimit]
|
|
645
|
+
* @param {boolean} [paginationCountTotal]
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
getRfqActivities(orderByProperty?: GetRfqActivitiesOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, requestId?: string, commitmentId?: string, user?: string, type?: GetRfqActivitiesTypeEnum, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetRfqActivitiesResponse>>;
|
|
623
650
|
/**
|
|
624
651
|
*
|
|
625
652
|
* @param {GetRfqCommitmentsOrderByPropertyEnum} [orderByProperty]
|
|
@@ -657,12 +684,12 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
657
684
|
getRfqNonce(owner: string, chainId: string, contract: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetRfqNonceResponse>>;
|
|
658
685
|
/**
|
|
659
686
|
*
|
|
660
|
-
* @param {string} chainId
|
|
661
687
|
* @param {GetRfqQuotesOrderByPropertyEnum} [orderByProperty]
|
|
662
688
|
* @param {boolean} [orderByDescending]
|
|
663
689
|
* @param {string} [paginationKey]
|
|
664
690
|
* @param {number} [paginationLimit]
|
|
665
691
|
* @param {boolean} [paginationCountTotal]
|
|
692
|
+
* @param {string} [chainId]
|
|
666
693
|
* @param {string} [quoteHash]
|
|
667
694
|
* @param {string} [requestId]
|
|
668
695
|
* @param {string} [offerer]
|
|
@@ -674,7 +701,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
674
701
|
* @param {*} [options] Override http request option.
|
|
675
702
|
* @throws {RequiredError}
|
|
676
703
|
*/
|
|
677
|
-
getRfqQuotes(
|
|
704
|
+
getRfqQuotes(orderByProperty?: GetRfqQuotesOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, chainId?: string, quoteHash?: string, requestId?: string, offerer?: string, id?: string, onChainValue?: boolean, settlementTimeAfter?: number, deadlineAfter?: number, rejectedValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetRfqQuotesResponse>>;
|
|
678
705
|
/**
|
|
679
706
|
*
|
|
680
707
|
* @param {string} requestId
|
|
@@ -800,13 +827,6 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
800
827
|
* @throws {RequiredError}
|
|
801
828
|
*/
|
|
802
829
|
addRfqRequestViewer(requestParameters: SealClientAddRfqRequestViewerRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
803
|
-
/**
|
|
804
|
-
*
|
|
805
|
-
* @param {SealClientCalculateRequiredPermitRequest} requestParameters Request parameters.
|
|
806
|
-
* @param {*} [options] Override http request option.
|
|
807
|
-
* @throws {RequiredError}
|
|
808
|
-
*/
|
|
809
|
-
calculateRequiredPermit(requestParameters: SealClientCalculateRequiredPermitRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealCalculateRequiredPermitResponse>;
|
|
810
830
|
/**
|
|
811
831
|
*
|
|
812
832
|
* @param {SealClientCancelOrderRequest} requestParameters Request parameters.
|
|
@@ -882,7 +902,7 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
882
902
|
* @param {*} [options] Override http request option.
|
|
883
903
|
* @throws {RequiredError}
|
|
884
904
|
*/
|
|
885
|
-
getOrderActivities(requestParameters
|
|
905
|
+
getOrderActivities(requestParameters?: SealClientGetOrderActivitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrderActivitiesResponse>;
|
|
886
906
|
/**
|
|
887
907
|
*
|
|
888
908
|
* @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
|
|
@@ -897,6 +917,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
897
917
|
* @throws {RequiredError}
|
|
898
918
|
*/
|
|
899
919
|
getOrderReservations(requestParameters?: SealClientGetOrderReservationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrderReservationsResponse>;
|
|
920
|
+
/**
|
|
921
|
+
*
|
|
922
|
+
* @param {SealClientGetOrderStatsForOwnerRequest} requestParameters Request parameters.
|
|
923
|
+
* @param {*} [options] Override http request option.
|
|
924
|
+
* @throws {RequiredError}
|
|
925
|
+
*/
|
|
926
|
+
getOrderStatsForOwner(requestParameters?: SealClientGetOrderStatsForOwnerRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrderStatsForOwnerResponse>;
|
|
900
927
|
/**
|
|
901
928
|
*
|
|
902
929
|
* @param {SealClientGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -924,6 +951,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
924
951
|
* @throws {RequiredError}
|
|
925
952
|
*/
|
|
926
953
|
getPermit2Contracts(options?: RawAxiosRequestConfig): AxiosPromise<SealGetPermit2ContractsResponse>;
|
|
954
|
+
/**
|
|
955
|
+
*
|
|
956
|
+
* @param {SealClientGetRfqActivitiesRequest} requestParameters Request parameters.
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
getRfqActivities(requestParameters?: SealClientGetRfqActivitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetRfqActivitiesResponse>;
|
|
927
961
|
/**
|
|
928
962
|
*
|
|
929
963
|
* @param {SealClientGetRfqCommitmentsRequest} requestParameters Request parameters.
|
|
@@ -951,7 +985,7 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
951
985
|
* @param {*} [options] Override http request option.
|
|
952
986
|
* @throws {RequiredError}
|
|
953
987
|
*/
|
|
954
|
-
getRfqQuotes(requestParameters
|
|
988
|
+
getRfqQuotes(requestParameters?: SealClientGetRfqQuotesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetRfqQuotesResponse>;
|
|
955
989
|
/**
|
|
956
990
|
*
|
|
957
991
|
* @param {SealClientGetRfqRequestViewersRequest} requestParameters Request parameters.
|
|
@@ -1041,49 +1075,6 @@ export interface SealClientAddRfqRequestViewerRequest {
|
|
|
1041
1075
|
*/
|
|
1042
1076
|
readonly body: SealAddRfqRequestViewerRequest;
|
|
1043
1077
|
}
|
|
1044
|
-
/**
|
|
1045
|
-
* Request parameters for calculateRequiredPermit operation in SealClient.
|
|
1046
|
-
* @export
|
|
1047
|
-
* @interface SealClientCalculateRequiredPermitRequest
|
|
1048
|
-
*/
|
|
1049
|
-
export interface SealClientCalculateRequiredPermitRequest {
|
|
1050
|
-
/**
|
|
1051
|
-
*
|
|
1052
|
-
* @type {string}
|
|
1053
|
-
* @memberof SealClientCalculateRequiredPermit
|
|
1054
|
-
*/
|
|
1055
|
-
readonly chainId: string;
|
|
1056
|
-
/**
|
|
1057
|
-
* hex representation of owner address
|
|
1058
|
-
* @type {string}
|
|
1059
|
-
* @memberof SealClientCalculateRequiredPermit
|
|
1060
|
-
*/
|
|
1061
|
-
readonly owner: string;
|
|
1062
|
-
/**
|
|
1063
|
-
* hex representation of spender address
|
|
1064
|
-
* @type {string}
|
|
1065
|
-
* @memberof SealClientCalculateRequiredPermit
|
|
1066
|
-
*/
|
|
1067
|
-
readonly spender: string;
|
|
1068
|
-
/**
|
|
1069
|
-
* hex representation of token address
|
|
1070
|
-
* @type {string}
|
|
1071
|
-
* @memberof SealClientCalculateRequiredPermit
|
|
1072
|
-
*/
|
|
1073
|
-
readonly token: string;
|
|
1074
|
-
/**
|
|
1075
|
-
*
|
|
1076
|
-
* @type {string}
|
|
1077
|
-
* @memberof SealClientCalculateRequiredPermit
|
|
1078
|
-
*/
|
|
1079
|
-
readonly orderAmount: string;
|
|
1080
|
-
/**
|
|
1081
|
-
* unix seconds
|
|
1082
|
-
* @type {number}
|
|
1083
|
-
* @memberof SealClientCalculateRequiredPermit
|
|
1084
|
-
*/
|
|
1085
|
-
readonly orderExpiration?: number;
|
|
1086
|
-
}
|
|
1087
1078
|
/**
|
|
1088
1079
|
* Request parameters for cancelOrder operation in SealClient.
|
|
1089
1080
|
* @export
|
|
@@ -1231,12 +1222,6 @@ export interface SealClientGetChainsRequest {
|
|
|
1231
1222
|
* @interface SealClientGetOrderActivitiesRequest
|
|
1232
1223
|
*/
|
|
1233
1224
|
export interface SealClientGetOrderActivitiesRequest {
|
|
1234
|
-
/**
|
|
1235
|
-
* uint256
|
|
1236
|
-
* @type {string}
|
|
1237
|
-
* @memberof SealClientGetOrderActivities
|
|
1238
|
-
*/
|
|
1239
|
-
readonly chainId: string;
|
|
1240
1225
|
/**
|
|
1241
1226
|
*
|
|
1242
1227
|
* @type {'OrderActivitiesOrderByProperty_UNSPECIFIED' | 'OrderActivitiesOrderByProperty_ACTIVITY_ID' | 'OrderActivitiesOrderByProperty_ACTIVITY_TIME'}
|
|
@@ -1249,6 +1234,12 @@ export interface SealClientGetOrderActivitiesRequest {
|
|
|
1249
1234
|
* @memberof SealClientGetOrderActivities
|
|
1250
1235
|
*/
|
|
1251
1236
|
readonly orderByDescending?: boolean;
|
|
1237
|
+
/**
|
|
1238
|
+
* uint256
|
|
1239
|
+
* @type {string}
|
|
1240
|
+
* @memberof SealClientGetOrderActivities
|
|
1241
|
+
*/
|
|
1242
|
+
readonly chainId?: string;
|
|
1252
1243
|
/**
|
|
1253
1244
|
*
|
|
1254
1245
|
* @type {string}
|
|
@@ -1390,6 +1381,31 @@ export interface SealClientGetOrderReservationsRequest {
|
|
|
1390
1381
|
*/
|
|
1391
1382
|
readonly orderOnChainIdHash?: string;
|
|
1392
1383
|
}
|
|
1384
|
+
/**
|
|
1385
|
+
* Request parameters for getOrderStatsForOwner operation in SealClient.
|
|
1386
|
+
* @export
|
|
1387
|
+
* @interface SealClientGetOrderStatsForOwnerRequest
|
|
1388
|
+
*/
|
|
1389
|
+
export interface SealClientGetOrderStatsForOwnerRequest {
|
|
1390
|
+
/**
|
|
1391
|
+
* uint256
|
|
1392
|
+
* @type {string}
|
|
1393
|
+
* @memberof SealClientGetOrderStatsForOwner
|
|
1394
|
+
*/
|
|
1395
|
+
readonly chainId?: string;
|
|
1396
|
+
/**
|
|
1397
|
+
* Token In The token to exchange from.
|
|
1398
|
+
* @type {string}
|
|
1399
|
+
* @memberof SealClientGetOrderStatsForOwner
|
|
1400
|
+
*/
|
|
1401
|
+
readonly tokenIn?: string;
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* @type {string}
|
|
1405
|
+
* @memberof SealClientGetOrderStatsForOwner
|
|
1406
|
+
*/
|
|
1407
|
+
readonly owner?: string;
|
|
1408
|
+
}
|
|
1393
1409
|
/**
|
|
1394
1410
|
* Request parameters for getOrders operation in SealClient.
|
|
1395
1411
|
* @export
|
|
@@ -1639,6 +1655,73 @@ export interface SealClientGetPairsRequest {
|
|
|
1639
1655
|
*/
|
|
1640
1656
|
readonly excludeEmpty?: boolean;
|
|
1641
1657
|
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Request parameters for getRfqActivities operation in SealClient.
|
|
1660
|
+
* @export
|
|
1661
|
+
* @interface SealClientGetRfqActivitiesRequest
|
|
1662
|
+
*/
|
|
1663
|
+
export interface SealClientGetRfqActivitiesRequest {
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @type {'RfqActivitiesOrderByProperty_UNSPECIFIED' | 'RfqActivitiesOrderByProperty_ACTIVITY_ID' | 'RfqActivitiesOrderByProperty_CHAIN_ID' | 'RfqActivitiesOrderByProperty_ACTIVITY_TIME'}
|
|
1667
|
+
* @memberof SealClientGetRfqActivities
|
|
1668
|
+
*/
|
|
1669
|
+
readonly orderByProperty?: GetRfqActivitiesOrderByPropertyEnum;
|
|
1670
|
+
/**
|
|
1671
|
+
*
|
|
1672
|
+
* @type {boolean}
|
|
1673
|
+
* @memberof SealClientGetRfqActivities
|
|
1674
|
+
*/
|
|
1675
|
+
readonly orderByDescending?: boolean;
|
|
1676
|
+
/**
|
|
1677
|
+
* uint256
|
|
1678
|
+
* @type {string}
|
|
1679
|
+
* @memberof SealClientGetRfqActivities
|
|
1680
|
+
*/
|
|
1681
|
+
readonly chainId?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @type {string}
|
|
1685
|
+
* @memberof SealClientGetRfqActivities
|
|
1686
|
+
*/
|
|
1687
|
+
readonly requestId?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @type {string}
|
|
1691
|
+
* @memberof SealClientGetRfqActivities
|
|
1692
|
+
*/
|
|
1693
|
+
readonly commitmentId?: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* either the order owner or the actor
|
|
1696
|
+
* @type {string}
|
|
1697
|
+
* @memberof SealClientGetRfqActivities
|
|
1698
|
+
*/
|
|
1699
|
+
readonly user?: string;
|
|
1700
|
+
/**
|
|
1701
|
+
*
|
|
1702
|
+
* @type {'RFQ_ACTIVITY_TYPE_UNSPECIFIED' | 'RFQ_ACTIVITY_TYPE_REQUEST_SUBMITTED' | 'RFQ_ACTIVITY_TYPE_COMMITMENT_SETTLED' | 'RFQ_ACTIVITY_TYPE_QUOTE_ACCEPTED' | 'RFQ_ACTIVITY_TYPE_COMMITMENT_DEFAULTED' | 'RFQ_ACTIVITY_TYPE_QUOTE_SUBMITTED' | 'RFQ_ACTIVITY_DEFAULTED_COMMITMENT_CLOSED'}
|
|
1703
|
+
* @memberof SealClientGetRfqActivities
|
|
1704
|
+
*/
|
|
1705
|
+
readonly type?: GetRfqActivitiesTypeEnum;
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* @type {string}
|
|
1709
|
+
* @memberof SealClientGetRfqActivities
|
|
1710
|
+
*/
|
|
1711
|
+
readonly paginationKey?: string;
|
|
1712
|
+
/**
|
|
1713
|
+
*
|
|
1714
|
+
* @type {number}
|
|
1715
|
+
* @memberof SealClientGetRfqActivities
|
|
1716
|
+
*/
|
|
1717
|
+
readonly paginationLimit?: number;
|
|
1718
|
+
/**
|
|
1719
|
+
*
|
|
1720
|
+
* @type {boolean}
|
|
1721
|
+
* @memberof SealClientGetRfqActivities
|
|
1722
|
+
*/
|
|
1723
|
+
readonly paginationCountTotal?: boolean;
|
|
1724
|
+
}
|
|
1642
1725
|
/**
|
|
1643
1726
|
* Request parameters for getRfqCommitments operation in SealClient.
|
|
1644
1727
|
* @export
|
|
@@ -1768,12 +1851,6 @@ export interface SealClientGetRfqNonceRequest {
|
|
|
1768
1851
|
* @interface SealClientGetRfqQuotesRequest
|
|
1769
1852
|
*/
|
|
1770
1853
|
export interface SealClientGetRfqQuotesRequest {
|
|
1771
|
-
/**
|
|
1772
|
-
*
|
|
1773
|
-
* @type {string}
|
|
1774
|
-
* @memberof SealClientGetRfqQuotes
|
|
1775
|
-
*/
|
|
1776
|
-
readonly chainId: string;
|
|
1777
1854
|
/**
|
|
1778
1855
|
*
|
|
1779
1856
|
* @type {'RfqQuoteOrderByProperty_UNSPECIFIED' | 'RfqQuoteOrderByProperty_ID' | 'RfqQuoteOrderByProperty_SETTLEMENT_TIME' | 'RfqQuoteOrderByProperty_DEADLINE'}
|
|
@@ -1804,6 +1881,12 @@ export interface SealClientGetRfqQuotesRequest {
|
|
|
1804
1881
|
* @memberof SealClientGetRfqQuotes
|
|
1805
1882
|
*/
|
|
1806
1883
|
readonly paginationCountTotal?: boolean;
|
|
1884
|
+
/**
|
|
1885
|
+
*
|
|
1886
|
+
* @type {string}
|
|
1887
|
+
* @memberof SealClientGetRfqQuotes
|
|
1888
|
+
*/
|
|
1889
|
+
readonly chainId?: string;
|
|
1807
1890
|
/**
|
|
1808
1891
|
*
|
|
1809
1892
|
* @type {string}
|
|
@@ -2207,14 +2290,6 @@ export declare class SealClient extends BaseAPI {
|
|
|
2207
2290
|
* @memberof SealClient
|
|
2208
2291
|
*/
|
|
2209
2292
|
addRfqRequestViewer(requestParameters: SealClientAddRfqRequestViewerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
2210
|
-
/**
|
|
2211
|
-
*
|
|
2212
|
-
* @param {SealClientCalculateRequiredPermitRequest} requestParameters Request parameters.
|
|
2213
|
-
* @param {*} [options] Override http request option.
|
|
2214
|
-
* @throws {RequiredError}
|
|
2215
|
-
* @memberof SealClient
|
|
2216
|
-
*/
|
|
2217
|
-
calculateRequiredPermit(requestParameters: SealClientCalculateRequiredPermitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealCalculateRequiredPermitResponse, any, {}>>;
|
|
2218
2293
|
/**
|
|
2219
2294
|
*
|
|
2220
2295
|
* @param {SealClientCancelOrderRequest} requestParameters Request parameters.
|
|
@@ -2301,7 +2376,7 @@ export declare class SealClient extends BaseAPI {
|
|
|
2301
2376
|
* @throws {RequiredError}
|
|
2302
2377
|
* @memberof SealClient
|
|
2303
2378
|
*/
|
|
2304
|
-
getOrderActivities(requestParameters
|
|
2379
|
+
getOrderActivities(requestParameters?: SealClientGetOrderActivitiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrderActivitiesResponse, any, {}>>;
|
|
2305
2380
|
/**
|
|
2306
2381
|
*
|
|
2307
2382
|
* @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
|
|
@@ -2318,6 +2393,14 @@ export declare class SealClient extends BaseAPI {
|
|
|
2318
2393
|
* @memberof SealClient
|
|
2319
2394
|
*/
|
|
2320
2395
|
getOrderReservations(requestParameters?: SealClientGetOrderReservationsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrderReservationsResponse, any, {}>>;
|
|
2396
|
+
/**
|
|
2397
|
+
*
|
|
2398
|
+
* @param {SealClientGetOrderStatsForOwnerRequest} requestParameters Request parameters.
|
|
2399
|
+
* @param {*} [options] Override http request option.
|
|
2400
|
+
* @throws {RequiredError}
|
|
2401
|
+
* @memberof SealClient
|
|
2402
|
+
*/
|
|
2403
|
+
getOrderStatsForOwner(requestParameters?: SealClientGetOrderStatsForOwnerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrderStatsForOwnerResponse, any, {}>>;
|
|
2321
2404
|
/**
|
|
2322
2405
|
*
|
|
2323
2406
|
* @param {SealClientGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -2349,6 +2432,14 @@ export declare class SealClient extends BaseAPI {
|
|
|
2349
2432
|
* @memberof SealClient
|
|
2350
2433
|
*/
|
|
2351
2434
|
getPermit2Contracts(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetPermit2ContractsResponse, any, {}>>;
|
|
2435
|
+
/**
|
|
2436
|
+
*
|
|
2437
|
+
* @param {SealClientGetRfqActivitiesRequest} requestParameters Request parameters.
|
|
2438
|
+
* @param {*} [options] Override http request option.
|
|
2439
|
+
* @throws {RequiredError}
|
|
2440
|
+
* @memberof SealClient
|
|
2441
|
+
*/
|
|
2442
|
+
getRfqActivities(requestParameters?: SealClientGetRfqActivitiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetRfqActivitiesResponse, any, {}>>;
|
|
2352
2443
|
/**
|
|
2353
2444
|
*
|
|
2354
2445
|
* @param {SealClientGetRfqCommitmentsRequest} requestParameters Request parameters.
|
|
@@ -2380,7 +2471,7 @@ export declare class SealClient extends BaseAPI {
|
|
|
2380
2471
|
* @throws {RequiredError}
|
|
2381
2472
|
* @memberof SealClient
|
|
2382
2473
|
*/
|
|
2383
|
-
getRfqQuotes(requestParameters
|
|
2474
|
+
getRfqQuotes(requestParameters?: SealClientGetRfqQuotesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetRfqQuotesResponse, any, {}>>;
|
|
2384
2475
|
/**
|
|
2385
2476
|
*
|
|
2386
2477
|
* @param {SealClientGetRfqRequestViewersRequest} requestParameters Request parameters.
|
|
@@ -2542,6 +2633,29 @@ export declare enum GetOrdersOrderByPropertyEnum {
|
|
|
2542
2633
|
export declare enum GetPairsOrderByPropertyEnum {
|
|
2543
2634
|
PairsOrderByPropertyUnspecified = "PairsOrderByProperty_UNSPECIFIED"
|
|
2544
2635
|
}
|
|
2636
|
+
/**
|
|
2637
|
+
* @export
|
|
2638
|
+
* @enum {string}
|
|
2639
|
+
*/
|
|
2640
|
+
export declare enum GetRfqActivitiesOrderByPropertyEnum {
|
|
2641
|
+
RfqActivitiesOrderByPropertyUnspecified = "RfqActivitiesOrderByProperty_UNSPECIFIED",
|
|
2642
|
+
RfqActivitiesOrderByPropertyActivityId = "RfqActivitiesOrderByProperty_ACTIVITY_ID",
|
|
2643
|
+
RfqActivitiesOrderByPropertyChainId = "RfqActivitiesOrderByProperty_CHAIN_ID",
|
|
2644
|
+
RfqActivitiesOrderByPropertyActivityTime = "RfqActivitiesOrderByProperty_ACTIVITY_TIME"
|
|
2645
|
+
}
|
|
2646
|
+
/**
|
|
2647
|
+
* @export
|
|
2648
|
+
* @enum {string}
|
|
2649
|
+
*/
|
|
2650
|
+
export declare enum GetRfqActivitiesTypeEnum {
|
|
2651
|
+
RfqActivityTypeUnspecified = "RFQ_ACTIVITY_TYPE_UNSPECIFIED",
|
|
2652
|
+
RfqActivityTypeRequestSubmitted = "RFQ_ACTIVITY_TYPE_REQUEST_SUBMITTED",
|
|
2653
|
+
RfqActivityTypeCommitmentSettled = "RFQ_ACTIVITY_TYPE_COMMITMENT_SETTLED",
|
|
2654
|
+
RfqActivityTypeQuoteAccepted = "RFQ_ACTIVITY_TYPE_QUOTE_ACCEPTED",
|
|
2655
|
+
RfqActivityTypeCommitmentDefaulted = "RFQ_ACTIVITY_TYPE_COMMITMENT_DEFAULTED",
|
|
2656
|
+
RfqActivityTypeQuoteSubmitted = "RFQ_ACTIVITY_TYPE_QUOTE_SUBMITTED",
|
|
2657
|
+
RfqActivityDefaultedCommitmentClosed = "RFQ_ACTIVITY_DEFAULTED_COMMITMENT_CLOSED"
|
|
2658
|
+
}
|
|
2545
2659
|
/**
|
|
2546
2660
|
* @export
|
|
2547
2661
|
* @enum {string}
|