@seal-protocol/backendjs 0.0.79 → 0.0.97

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.
@@ -29,11 +29,14 @@ import type { SealGetOrderReservationsResponse } from '../model';
29
29
  import type { SealGetOrdersResponse } from '../model';
30
30
  import type { SealGetPairPriceResponse } from '../model';
31
31
  import type { SealGetPairsResponse } from '../model';
32
+ import type { SealGetRfqRequestsResponse } from '../model';
32
33
  import type { SealGetSealContractParamsResponse } from '../model';
33
34
  import type { SealGetSyncStateResponse } from '../model';
34
35
  import type { SealGetTokenPermitApprovalsResponse } from '../model';
35
36
  import type { SealGetTokensResponse } from '../model';
36
37
  import type { SealIssueGreenlightResponse } from '../model';
38
+ import type { SealSubmitRfqRequest } from '../model';
39
+ import type { SealSubmitRfqResponse } from '../model';
37
40
  /**
38
41
  * SealClient - axios parameter creator
39
42
  * @export
@@ -134,6 +137,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
134
137
  * @param {boolean} [expiredValue]
135
138
  * @param {string} [reserver]
136
139
  * @param {string} [orderIdHash]
140
+ * @param {string} [orderId] this would be ignore if order_id_hash is provided
137
141
  * @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
138
142
  * @param {boolean} [orderByDescending]
139
143
  * @param {string} [paginationKey]
@@ -142,7 +146,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
142
146
  * @param {*} [options] Override http request option.
143
147
  * @throws {RequiredError}
144
148
  */
145
- getOrderReservations: (chainId?: string, liveValue?: boolean, expiredValue?: boolean, reserver?: string, orderIdHash?: string, orderByProperty?: GetOrderReservationsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
149
+ getOrderReservations: (chainId?: string, liveValue?: boolean, expiredValue?: boolean, reserver?: string, orderIdHash?: string, orderId?: string, orderByProperty?: GetOrderReservationsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
146
150
  /**
147
151
  *
148
152
  * @param {string} [chainId] uint256
@@ -196,6 +200,25 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
196
200
  * @throws {RequiredError}
197
201
  */
198
202
  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>;
203
+ /**
204
+ *
205
+ * @param {string} [id]
206
+ * @param {string} [chainId]
207
+ * @param {string} [requester]
208
+ * @param {string} [tokenIn]
209
+ * @param {string} [tokenOut]
210
+ * @param {number} [creationTimeAfter]
211
+ * @param {number} [requestDeadlineAfter]
212
+ * @param {number} [buyInDeadlineAfter]
213
+ * @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
214
+ * @param {boolean} [orderByDescending]
215
+ * @param {string} [paginationKey]
216
+ * @param {number} [paginationLimit]
217
+ * @param {boolean} [paginationCountTotal]
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ getRfqRequests: (id?: string, chainId?: string, requester?: string, tokenIn?: string, tokenOut?: string, creationTimeAfter?: number, requestDeadlineAfter?: number, buyInDeadlineAfter?: number, orderByProperty?: GetRfqRequestsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
199
222
  /**
200
223
  *
201
224
  * @param {string} [chainId]
@@ -245,6 +268,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
245
268
  * @throws {RequiredError}
246
269
  */
247
270
  issueGreenlight: (chainId?: string, executor?: string, request?: string, requestHash?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
271
+ /**
272
+ *
273
+ * @param {SealSubmitRfqRequest} body
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ submitRfq: (body: SealSubmitRfqRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
248
278
  /**
249
279
  *
250
280
  * @param {*} [options] Override http request option.
@@ -352,6 +382,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
352
382
  * @param {boolean} [expiredValue]
353
383
  * @param {string} [reserver]
354
384
  * @param {string} [orderIdHash]
385
+ * @param {string} [orderId] this would be ignore if order_id_hash is provided
355
386
  * @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
356
387
  * @param {boolean} [orderByDescending]
357
388
  * @param {string} [paginationKey]
@@ -360,7 +391,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
360
391
  * @param {*} [options] Override http request option.
361
392
  * @throws {RequiredError}
362
393
  */
363
- getOrderReservations(chainId?: string, liveValue?: boolean, expiredValue?: boolean, reserver?: string, orderIdHash?: string, orderByProperty?: GetOrderReservationsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrderReservationsResponse>>;
394
+ getOrderReservations(chainId?: string, liveValue?: boolean, expiredValue?: boolean, reserver?: string, orderIdHash?: string, orderId?: string, orderByProperty?: GetOrderReservationsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrderReservationsResponse>>;
364
395
  /**
365
396
  *
366
397
  * @param {string} [chainId] uint256
@@ -414,6 +445,25 @@ export declare const SealClientFp: (configuration?: Configuration) => {
414
445
  * @throws {RequiredError}
415
446
  */
416
447
  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>>;
448
+ /**
449
+ *
450
+ * @param {string} [id]
451
+ * @param {string} [chainId]
452
+ * @param {string} [requester]
453
+ * @param {string} [tokenIn]
454
+ * @param {string} [tokenOut]
455
+ * @param {number} [creationTimeAfter]
456
+ * @param {number} [requestDeadlineAfter]
457
+ * @param {number} [buyInDeadlineAfter]
458
+ * @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
459
+ * @param {boolean} [orderByDescending]
460
+ * @param {string} [paginationKey]
461
+ * @param {number} [paginationLimit]
462
+ * @param {boolean} [paginationCountTotal]
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ getRfqRequests(id?: string, chainId?: string, requester?: string, tokenIn?: string, tokenOut?: string, creationTimeAfter?: number, requestDeadlineAfter?: number, buyInDeadlineAfter?: number, orderByProperty?: GetRfqRequestsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetRfqRequestsResponse>>;
417
467
  /**
418
468
  *
419
469
  * @param {string} [chainId]
@@ -463,6 +513,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
463
513
  * @throws {RequiredError}
464
514
  */
465
515
  issueGreenlight(chainId?: string, executor?: string, request?: string, requestHash?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealIssueGreenlightResponse>>;
516
+ /**
517
+ *
518
+ * @param {SealSubmitRfqRequest} body
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ submitRfq(body: SealSubmitRfqRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealSubmitRfqResponse>>;
466
523
  /**
467
524
  *
468
525
  * @param {*} [options] Override http request option.
@@ -572,6 +629,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
572
629
  * @throws {RequiredError}
573
630
  */
574
631
  getPairs(requestParameters?: SealClientGetPairsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetPairsResponse>;
632
+ /**
633
+ *
634
+ * @param {SealClientGetRfqRequestsRequest} requestParameters Request parameters.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ getRfqRequests(requestParameters?: SealClientGetRfqRequestsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetRfqRequestsResponse>;
575
639
  /**
576
640
  *
577
641
  * @param {SealClientGetSealContractParamsRequest} requestParameters Request parameters.
@@ -606,6 +670,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
606
670
  * @throws {RequiredError}
607
671
  */
608
672
  issueGreenlight(requestParameters?: SealClientIssueGreenlightRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealIssueGreenlightResponse>;
673
+ /**
674
+ *
675
+ * @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
676
+ * @param {*} [options] Override http request option.
677
+ * @throws {RequiredError}
678
+ */
679
+ submitRfq(requestParameters: SealClientSubmitRfqRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealSubmitRfqResponse>;
609
680
  /**
610
681
  *
611
682
  * @param {*} [options] Override http request option.
@@ -880,6 +951,12 @@ export interface SealClientGetOrderReservationsRequest {
880
951
  * @memberof SealClientGetOrderReservations
881
952
  */
882
953
  readonly orderIdHash?: string;
954
+ /**
955
+ * this would be ignore if order_id_hash is provided
956
+ * @type {string}
957
+ * @memberof SealClientGetOrderReservations
958
+ */
959
+ readonly orderId?: string;
883
960
  /**
884
961
  *
885
962
  * @type {'OrderReservationsOrderByProperty_UNSPECIFIED' | 'OrderReservationsOrderByProperty_ORDER_ID_HASH' | 'OrderReservationsOrderByProperty_RESERVATION_ID_HASH' | 'OrderReservationsOrderByProperty_TOTAL_AMOUNT' | 'OrderReservationsOrderByProperty_REMAINING_AMOUNT' | 'OrderReservationsOrderByProperty_TOTAL_DEPOSIT_AMOUNT' | 'OrderReservationsOrderByProperty_REMAINING_DEPOSIT_AMOUNT' | 'OrderReservationsOrderByProperty_CHAIN_ID' | 'OrderReservationsOrderByProperty_CREATED_AT_BLOCK_NUMBER'}
@@ -1142,6 +1219,91 @@ export interface SealClientGetPairsRequest {
1142
1219
  */
1143
1220
  readonly excludeEmpty?: boolean;
1144
1221
  }
1222
+ /**
1223
+ * Request parameters for getRfqRequests operation in SealClient.
1224
+ * @export
1225
+ * @interface SealClientGetRfqRequestsRequest
1226
+ */
1227
+ export interface SealClientGetRfqRequestsRequest {
1228
+ /**
1229
+ *
1230
+ * @type {string}
1231
+ * @memberof SealClientGetRfqRequests
1232
+ */
1233
+ readonly id?: string;
1234
+ /**
1235
+ *
1236
+ * @type {string}
1237
+ * @memberof SealClientGetRfqRequests
1238
+ */
1239
+ readonly chainId?: string;
1240
+ /**
1241
+ *
1242
+ * @type {string}
1243
+ * @memberof SealClientGetRfqRequests
1244
+ */
1245
+ readonly requester?: string;
1246
+ /**
1247
+ *
1248
+ * @type {string}
1249
+ * @memberof SealClientGetRfqRequests
1250
+ */
1251
+ readonly tokenIn?: string;
1252
+ /**
1253
+ *
1254
+ * @type {string}
1255
+ * @memberof SealClientGetRfqRequests
1256
+ */
1257
+ readonly tokenOut?: string;
1258
+ /**
1259
+ *
1260
+ * @type {number}
1261
+ * @memberof SealClientGetRfqRequests
1262
+ */
1263
+ readonly creationTimeAfter?: number;
1264
+ /**
1265
+ *
1266
+ * @type {number}
1267
+ * @memberof SealClientGetRfqRequests
1268
+ */
1269
+ readonly requestDeadlineAfter?: number;
1270
+ /**
1271
+ *
1272
+ * @type {number}
1273
+ * @memberof SealClientGetRfqRequests
1274
+ */
1275
+ readonly buyInDeadlineAfter?: number;
1276
+ /**
1277
+ *
1278
+ * @type {'RfqRequestsOrderByProperty_UNSPECIFIED' | 'RfqRequestsOrderByProperty_ID' | 'RfqRequestsOrderByProperty_CREATION_TIME' | 'RfqRequestsOrderByProperty_REQUEST_DEADLINE' | 'RfqRequestsOrderByProperty_BUY_IN_DEADLINE'}
1279
+ * @memberof SealClientGetRfqRequests
1280
+ */
1281
+ readonly orderByProperty?: GetRfqRequestsOrderByPropertyEnum;
1282
+ /**
1283
+ *
1284
+ * @type {boolean}
1285
+ * @memberof SealClientGetRfqRequests
1286
+ */
1287
+ readonly orderByDescending?: boolean;
1288
+ /**
1289
+ *
1290
+ * @type {string}
1291
+ * @memberof SealClientGetRfqRequests
1292
+ */
1293
+ readonly paginationKey?: string;
1294
+ /**
1295
+ *
1296
+ * @type {number}
1297
+ * @memberof SealClientGetRfqRequests
1298
+ */
1299
+ readonly paginationLimit?: number;
1300
+ /**
1301
+ *
1302
+ * @type {boolean}
1303
+ * @memberof SealClientGetRfqRequests
1304
+ */
1305
+ readonly paginationCountTotal?: boolean;
1306
+ }
1145
1307
  /**
1146
1308
  * Request parameters for getSealContractParams operation in SealClient.
1147
1309
  * @export
@@ -1284,6 +1446,19 @@ export interface SealClientIssueGreenlightRequest {
1284
1446
  */
1285
1447
  readonly requestHash?: string;
1286
1448
  }
1449
+ /**
1450
+ * Request parameters for submitRfq operation in SealClient.
1451
+ * @export
1452
+ * @interface SealClientSubmitRfqRequest
1453
+ */
1454
+ export interface SealClientSubmitRfqRequest {
1455
+ /**
1456
+ *
1457
+ * @type {SealSubmitRfqRequest}
1458
+ * @memberof SealClientSubmitRfq
1459
+ */
1460
+ readonly body: SealSubmitRfqRequest;
1461
+ }
1287
1462
  /**
1288
1463
  * SealClient - object-oriented interface
1289
1464
  * @export
@@ -1402,6 +1577,14 @@ export declare class SealClient extends BaseAPI {
1402
1577
  * @memberof SealClient
1403
1578
  */
1404
1579
  getPairs(requestParameters?: SealClientGetPairsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetPairsResponse, any, {}>>;
1580
+ /**
1581
+ *
1582
+ * @param {SealClientGetRfqRequestsRequest} requestParameters Request parameters.
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ * @memberof SealClient
1586
+ */
1587
+ getRfqRequests(requestParameters?: SealClientGetRfqRequestsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetRfqRequestsResponse, any, {}>>;
1405
1588
  /**
1406
1589
  *
1407
1590
  * @param {SealClientGetSealContractParamsRequest} requestParameters Request parameters.
@@ -1441,6 +1624,14 @@ export declare class SealClient extends BaseAPI {
1441
1624
  * @memberof SealClient
1442
1625
  */
1443
1626
  issueGreenlight(requestParameters?: SealClientIssueGreenlightRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealIssueGreenlightResponse, any, {}>>;
1627
+ /**
1628
+ *
1629
+ * @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
1630
+ * @param {*} [options] Override http request option.
1631
+ * @throws {RequiredError}
1632
+ * @memberof SealClient
1633
+ */
1634
+ submitRfq(requestParameters: SealClientSubmitRfqRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealSubmitRfqResponse, any, {}>>;
1444
1635
  /**
1445
1636
  *
1446
1637
  * @param {*} [options] Override http request option.
@@ -1523,6 +1714,17 @@ export declare enum GetOrdersOrderByPropertyEnum {
1523
1714
  export declare enum GetPairsOrderByPropertyEnum {
1524
1715
  PairsOrderByPropertyUnspecified = "PairsOrderByProperty_UNSPECIFIED"
1525
1716
  }
1717
+ /**
1718
+ * @export
1719
+ * @enum {string}
1720
+ */
1721
+ export declare enum GetRfqRequestsOrderByPropertyEnum {
1722
+ RfqRequestsOrderByPropertyUnspecified = "RfqRequestsOrderByProperty_UNSPECIFIED",
1723
+ RfqRequestsOrderByPropertyId = "RfqRequestsOrderByProperty_ID",
1724
+ RfqRequestsOrderByPropertyCreationTime = "RfqRequestsOrderByProperty_CREATION_TIME",
1725
+ RfqRequestsOrderByPropertyRequestDeadline = "RfqRequestsOrderByProperty_REQUEST_DEADLINE",
1726
+ RfqRequestsOrderByPropertyBuyInDeadline = "RfqRequestsOrderByProperty_BUY_IN_DEADLINE"
1727
+ }
1526
1728
  /**
1527
1729
  * @export
1528
1730
  * @enum {string}
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.GetTokensOrderByPropertyEnum = exports.GetTokenPermitApprovalsOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = exports.GetOrderActivitiesTypeEnum = exports.GetOrderActivitiesOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
19
+ exports.GetTokensOrderByPropertyEnum = exports.GetTokenPermitApprovalsOrderByPropertyEnum = exports.GetRfqRequestsOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = exports.GetOrderActivitiesTypeEnum = exports.GetOrderActivitiesOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  // Some imports not used depending on template conditions
22
22
  // @ts-ignore
@@ -407,6 +407,7 @@ const SealClientAxiosParamCreator = function (configuration) {
407
407
  * @param {boolean} [expiredValue]
408
408
  * @param {string} [reserver]
409
409
  * @param {string} [orderIdHash]
410
+ * @param {string} [orderId] this would be ignore if order_id_hash is provided
410
411
  * @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
411
412
  * @param {boolean} [orderByDescending]
412
413
  * @param {string} [paginationKey]
@@ -415,7 +416,7 @@ const SealClientAxiosParamCreator = function (configuration) {
415
416
  * @param {*} [options] Override http request option.
416
417
  * @throws {RequiredError}
417
418
  */
418
- getOrderReservations: async (chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
419
+ getOrderReservations: async (chainId, liveValue, expiredValue, reserver, orderIdHash, orderId, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
419
420
  const localVarPath = `/seal/order_reservations`;
420
421
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
421
422
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -441,6 +442,9 @@ const SealClientAxiosParamCreator = function (configuration) {
441
442
  if (orderIdHash !== undefined) {
442
443
  localVarQueryParameter['orderIdHash'] = orderIdHash;
443
444
  }
445
+ if (orderId !== undefined) {
446
+ localVarQueryParameter['orderId'] = orderId;
447
+ }
444
448
  if (orderByProperty !== undefined) {
445
449
  localVarQueryParameter['orderBy.property'] = orderByProperty;
446
450
  }
@@ -676,6 +680,82 @@ const SealClientAxiosParamCreator = function (configuration) {
676
680
  options: localVarRequestOptions,
677
681
  };
678
682
  },
683
+ /**
684
+ *
685
+ * @param {string} [id]
686
+ * @param {string} [chainId]
687
+ * @param {string} [requester]
688
+ * @param {string} [tokenIn]
689
+ * @param {string} [tokenOut]
690
+ * @param {number} [creationTimeAfter]
691
+ * @param {number} [requestDeadlineAfter]
692
+ * @param {number} [buyInDeadlineAfter]
693
+ * @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
694
+ * @param {boolean} [orderByDescending]
695
+ * @param {string} [paginationKey]
696
+ * @param {number} [paginationLimit]
697
+ * @param {boolean} [paginationCountTotal]
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ getRfqRequests: async (id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, buyInDeadlineAfter, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
702
+ const localVarPath = `/seal/rfq/requests`;
703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
704
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
705
+ let baseOptions;
706
+ if (configuration) {
707
+ baseOptions = configuration.baseOptions;
708
+ }
709
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
710
+ const localVarHeaderParameter = {};
711
+ const localVarQueryParameter = {};
712
+ if (id !== undefined) {
713
+ localVarQueryParameter['id'] = id;
714
+ }
715
+ if (chainId !== undefined) {
716
+ localVarQueryParameter['chainId'] = chainId;
717
+ }
718
+ if (requester !== undefined) {
719
+ localVarQueryParameter['requester'] = requester;
720
+ }
721
+ if (tokenIn !== undefined) {
722
+ localVarQueryParameter['tokenIn'] = tokenIn;
723
+ }
724
+ if (tokenOut !== undefined) {
725
+ localVarQueryParameter['tokenOut'] = tokenOut;
726
+ }
727
+ if (creationTimeAfter !== undefined) {
728
+ localVarQueryParameter['creationTimeAfter'] = creationTimeAfter;
729
+ }
730
+ if (requestDeadlineAfter !== undefined) {
731
+ localVarQueryParameter['requestDeadlineAfter'] = requestDeadlineAfter;
732
+ }
733
+ if (buyInDeadlineAfter !== undefined) {
734
+ localVarQueryParameter['buyInDeadlineAfter'] = buyInDeadlineAfter;
735
+ }
736
+ if (orderByProperty !== undefined) {
737
+ localVarQueryParameter['orderBy.property'] = orderByProperty;
738
+ }
739
+ if (orderByDescending !== undefined) {
740
+ localVarQueryParameter['orderBy.descending'] = orderByDescending;
741
+ }
742
+ if (paginationKey !== undefined) {
743
+ localVarQueryParameter['pagination.key'] = paginationKey;
744
+ }
745
+ if (paginationLimit !== undefined) {
746
+ localVarQueryParameter['pagination.limit'] = paginationLimit;
747
+ }
748
+ if (paginationCountTotal !== undefined) {
749
+ localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
750
+ }
751
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
753
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
754
+ return {
755
+ url: (0, common_1.toPathString)(localVarUrlObj),
756
+ options: localVarRequestOptions,
757
+ };
758
+ },
679
759
  /**
680
760
  *
681
761
  * @param {string} [chainId]
@@ -874,6 +954,35 @@ const SealClientAxiosParamCreator = function (configuration) {
874
954
  options: localVarRequestOptions,
875
955
  };
876
956
  },
957
+ /**
958
+ *
959
+ * @param {SealSubmitRfqRequest} body
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ */
963
+ submitRfq: async (body, options = {}) => {
964
+ // verify required parameter 'body' is not null or undefined
965
+ (0, common_1.assertParamExists)('submitRfq', 'body', body);
966
+ const localVarPath = `/seal/rfq/submit`;
967
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
968
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
969
+ let baseOptions;
970
+ if (configuration) {
971
+ baseOptions = configuration.baseOptions;
972
+ }
973
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
974
+ const localVarHeaderParameter = {};
975
+ const localVarQueryParameter = {};
976
+ localVarHeaderParameter['Content-Type'] = 'application/json';
977
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
979
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
980
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
981
+ return {
982
+ url: (0, common_1.toPathString)(localVarUrlObj),
983
+ options: localVarRequestOptions,
984
+ };
985
+ },
877
986
  /**
878
987
  *
879
988
  * @param {*} [options] Override http request option.
@@ -1053,6 +1162,7 @@ const SealClientFp = function (configuration) {
1053
1162
  * @param {boolean} [expiredValue]
1054
1163
  * @param {string} [reserver]
1055
1164
  * @param {string} [orderIdHash]
1165
+ * @param {string} [orderId] this would be ignore if order_id_hash is provided
1056
1166
  * @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
1057
1167
  * @param {boolean} [orderByDescending]
1058
1168
  * @param {string} [paginationKey]
@@ -1061,8 +1171,8 @@ const SealClientFp = function (configuration) {
1061
1171
  * @param {*} [options] Override http request option.
1062
1172
  * @throws {RequiredError}
1063
1173
  */
1064
- async getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
1065
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
1174
+ async getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderId, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
1175
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderId, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
1066
1176
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1067
1177
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderReservations']?.[localVarOperationServerIndex]?.url;
1068
1178
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1135,6 +1245,30 @@ const SealClientFp = function (configuration) {
1135
1245
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
1136
1246
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1137
1247
  },
1248
+ /**
1249
+ *
1250
+ * @param {string} [id]
1251
+ * @param {string} [chainId]
1252
+ * @param {string} [requester]
1253
+ * @param {string} [tokenIn]
1254
+ * @param {string} [tokenOut]
1255
+ * @param {number} [creationTimeAfter]
1256
+ * @param {number} [requestDeadlineAfter]
1257
+ * @param {number} [buyInDeadlineAfter]
1258
+ * @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
1259
+ * @param {boolean} [orderByDescending]
1260
+ * @param {string} [paginationKey]
1261
+ * @param {number} [paginationLimit]
1262
+ * @param {boolean} [paginationCountTotal]
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ */
1266
+ async getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, buyInDeadlineAfter, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
1267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, buyInDeadlineAfter, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
1268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1269
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqRequests']?.[localVarOperationServerIndex]?.url;
1270
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1271
+ },
1138
1272
  /**
1139
1273
  *
1140
1274
  * @param {string} [chainId]
@@ -1209,6 +1343,18 @@ const SealClientFp = function (configuration) {
1209
1343
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.issueGreenlight']?.[localVarOperationServerIndex]?.url;
1210
1344
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1211
1345
  },
1346
+ /**
1347
+ *
1348
+ * @param {SealSubmitRfqRequest} body
1349
+ * @param {*} [options] Override http request option.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ async submitRfq(body, options) {
1353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitRfq(body, options);
1354
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1355
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.submitRfq']?.[localVarOperationServerIndex]?.url;
1356
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1357
+ },
1212
1358
  /**
1213
1359
  *
1214
1360
  * @param {*} [options] Override http request option.
@@ -1326,7 +1472,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1326
1472
  * @throws {RequiredError}
1327
1473
  */
1328
1474
  getOrderReservations(requestParameters = {}, options) {
1329
- return localVarFp.getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
1475
+ return localVarFp.getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderId, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
1330
1476
  },
1331
1477
  /**
1332
1478
  *
@@ -1355,6 +1501,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
1355
1501
  getPairs(requestParameters = {}, options) {
1356
1502
  return localVarFp.getPairs(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.reservableOnly, requestParameters.excludeEmpty, options).then((request) => request(axios, basePath));
1357
1503
  },
1504
+ /**
1505
+ *
1506
+ * @param {SealClientGetRfqRequestsRequest} requestParameters Request parameters.
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ getRfqRequests(requestParameters = {}, options) {
1511
+ return localVarFp.getRfqRequests(requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.buyInDeadlineAfter, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
1512
+ },
1358
1513
  /**
1359
1514
  *
1360
1515
  * @param {SealClientGetSealContractParamsRequest} requestParameters Request parameters.
@@ -1399,6 +1554,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
1399
1554
  issueGreenlight(requestParameters = {}, options) {
1400
1555
  return localVarFp.issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(axios, basePath));
1401
1556
  },
1557
+ /**
1558
+ *
1559
+ * @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
1560
+ * @param {*} [options] Override http request option.
1561
+ * @throws {RequiredError}
1562
+ */
1563
+ submitRfq(requestParameters, options) {
1564
+ return localVarFp.submitRfq(requestParameters.body, options).then((request) => request(axios, basePath));
1565
+ },
1402
1566
  /**
1403
1567
  *
1404
1568
  * @param {*} [options] Override http request option.
@@ -1524,7 +1688,7 @@ class SealClient extends base_1.BaseAPI {
1524
1688
  * @memberof SealClient
1525
1689
  */
1526
1690
  getOrderReservations(requestParameters = {}, options) {
1527
- return (0, exports.SealClientFp)(this.configuration).getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
1691
+ return (0, exports.SealClientFp)(this.configuration).getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderId, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
1528
1692
  }
1529
1693
  /**
1530
1694
  *
@@ -1556,6 +1720,16 @@ class SealClient extends base_1.BaseAPI {
1556
1720
  getPairs(requestParameters = {}, options) {
1557
1721
  return (0, exports.SealClientFp)(this.configuration).getPairs(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.reservableOnly, requestParameters.excludeEmpty, options).then((request) => request(this.axios, this.basePath));
1558
1722
  }
1723
+ /**
1724
+ *
1725
+ * @param {SealClientGetRfqRequestsRequest} requestParameters Request parameters.
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ * @memberof SealClient
1729
+ */
1730
+ getRfqRequests(requestParameters = {}, options) {
1731
+ return (0, exports.SealClientFp)(this.configuration).getRfqRequests(requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.buyInDeadlineAfter, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
1732
+ }
1559
1733
  /**
1560
1734
  *
1561
1735
  * @param {SealClientGetSealContractParamsRequest} requestParameters Request parameters.
@@ -1605,6 +1779,16 @@ class SealClient extends base_1.BaseAPI {
1605
1779
  issueGreenlight(requestParameters = {}, options) {
1606
1780
  return (0, exports.SealClientFp)(this.configuration).issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(this.axios, this.basePath));
1607
1781
  }
1782
+ /**
1783
+ *
1784
+ * @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
1785
+ * @param {*} [options] Override http request option.
1786
+ * @throws {RequiredError}
1787
+ * @memberof SealClient
1788
+ */
1789
+ submitRfq(requestParameters, options) {
1790
+ return (0, exports.SealClientFp)(this.configuration).submitRfq(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1791
+ }
1608
1792
  /**
1609
1793
  *
1610
1794
  * @param {*} [options] Override http request option.
@@ -1696,6 +1880,18 @@ var GetPairsOrderByPropertyEnum;
1696
1880
  (function (GetPairsOrderByPropertyEnum) {
1697
1881
  GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
1698
1882
  })(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
1883
+ /**
1884
+ * @export
1885
+ * @enum {string}
1886
+ */
1887
+ var GetRfqRequestsOrderByPropertyEnum;
1888
+ (function (GetRfqRequestsOrderByPropertyEnum) {
1889
+ GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyUnspecified"] = "RfqRequestsOrderByProperty_UNSPECIFIED";
1890
+ GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyId"] = "RfqRequestsOrderByProperty_ID";
1891
+ GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyCreationTime"] = "RfqRequestsOrderByProperty_CREATION_TIME";
1892
+ GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyRequestDeadline"] = "RfqRequestsOrderByProperty_REQUEST_DEADLINE";
1893
+ GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyBuyInDeadline"] = "RfqRequestsOrderByProperty_BUY_IN_DEADLINE";
1894
+ })(GetRfqRequestsOrderByPropertyEnum || (exports.GetRfqRequestsOrderByPropertyEnum = GetRfqRequestsOrderByPropertyEnum = {}));
1699
1895
  /**
1700
1896
  * @export
1701
1897
  * @enum {string}
@@ -29,6 +29,7 @@ export * from './seal-get-order-reservations-response';
29
29
  export * from './seal-get-orders-response';
30
30
  export * from './seal-get-pair-price-response';
31
31
  export * from './seal-get-pairs-response';
32
+ export * from './seal-get-rfq-requests-response';
32
33
  export * from './seal-get-seal-contract-params-response';
33
34
  export * from './seal-get-sync-state-response';
34
35
  export * from './seal-get-token-permit-approvals-response';
@@ -51,8 +52,11 @@ export * from './seal-pairs-order-by';
51
52
  export * from './seal-pairs-order-by-property';
52
53
  export * from './seal-reservation-request';
53
54
  export * from './seal-reservation-settlement-request';
55
+ export * from './seal-rfq-request';
54
56
  export * from './seal-seal-contract-config';
55
57
  export * from './seal-seal-contract-params';
58
+ export * from './seal-submit-rfq-request';
59
+ export * from './seal-submit-rfq-response';
56
60
  export * from './seal-token';
57
61
  export * from './seal-token-permit-approval';
58
62
  export * from './seal-tokens-order-by';
@@ -61,6 +65,8 @@ export * from './seal-transfer-permission';
61
65
  export * from './types-bool';
62
66
  export * from './types-order-activity-type';
63
67
  export * from './types-pagination';
68
+ export * from './types-rfq-requests-order-by';
69
+ export * from './types-rfq-requests-order-by-property';
64
70
  export * from './types-timestamp';
65
71
  export * from './types-token-permit-approvals-order-by';
66
72
  export * from './types-token-permit-approvals-order-by-property';
@@ -45,6 +45,7 @@ __exportStar(require("./seal-get-order-reservations-response"), exports);
45
45
  __exportStar(require("./seal-get-orders-response"), exports);
46
46
  __exportStar(require("./seal-get-pair-price-response"), exports);
47
47
  __exportStar(require("./seal-get-pairs-response"), exports);
48
+ __exportStar(require("./seal-get-rfq-requests-response"), exports);
48
49
  __exportStar(require("./seal-get-seal-contract-params-response"), exports);
49
50
  __exportStar(require("./seal-get-sync-state-response"), exports);
50
51
  __exportStar(require("./seal-get-token-permit-approvals-response"), exports);
@@ -67,8 +68,11 @@ __exportStar(require("./seal-pairs-order-by"), exports);
67
68
  __exportStar(require("./seal-pairs-order-by-property"), exports);
68
69
  __exportStar(require("./seal-reservation-request"), exports);
69
70
  __exportStar(require("./seal-reservation-settlement-request"), exports);
71
+ __exportStar(require("./seal-rfq-request"), exports);
70
72
  __exportStar(require("./seal-seal-contract-config"), exports);
71
73
  __exportStar(require("./seal-seal-contract-params"), exports);
74
+ __exportStar(require("./seal-submit-rfq-request"), exports);
75
+ __exportStar(require("./seal-submit-rfq-response"), exports);
72
76
  __exportStar(require("./seal-token"), exports);
73
77
  __exportStar(require("./seal-token-permit-approval"), exports);
74
78
  __exportStar(require("./seal-tokens-order-by"), exports);
@@ -77,6 +81,8 @@ __exportStar(require("./seal-transfer-permission"), exports);
77
81
  __exportStar(require("./types-bool"), exports);
78
82
  __exportStar(require("./types-order-activity-type"), exports);
79
83
  __exportStar(require("./types-pagination"), exports);
84
+ __exportStar(require("./types-rfq-requests-order-by"), exports);
85
+ __exportStar(require("./types-rfq-requests-order-by-property"), exports);
80
86
  __exportStar(require("./types-timestamp"), exports);
81
87
  __exportStar(require("./types-token-permit-approvals-order-by"), exports);
82
88
  __exportStar(require("./types-token-permit-approvals-order-by-property"), exports);
@@ -39,4 +39,16 @@ export interface SealChainHealth {
39
39
  * @memberof SealChainHealth
40
40
  */
41
41
  'estimatedSyncDurationDuration'?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SealChainHealth
46
+ */
47
+ 'name'?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SealChainHealth
52
+ */
53
+ 'id'?: string;
42
54
  }
@@ -21,7 +21,7 @@ export interface SealGetHealthCheckResponse {
21
21
  * @type {Array<SealChainHealth>}
22
22
  * @memberof SealGetHealthCheckResponse
23
23
  */
24
- 'chainHealth'?: Array<SealChainHealth>;
24
+ 'chains'?: Array<SealChainHealth>;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * seal/seal.proto
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: version not set
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SealRfqRequest } from './seal-rfq-request';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SealGetRfqRequestsResponse
17
+ */
18
+ export interface SealGetRfqRequestsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SealRfqRequest>}
22
+ * @memberof SealGetRfqRequestsResponse
23
+ */
24
+ 'requests'?: Array<SealRfqRequest>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SealGetRfqRequestsResponse
29
+ */
30
+ 'paginationNextKey'?: string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * seal/seal.proto
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: version not set
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { SealOrder } from './seal-order';
13
13
  import type { TypesOrderActivityType } from './types-order-activity-type';
14
+ import type { TypesTimestamp } from './types-timestamp';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -55,10 +56,10 @@ export interface SealOrderActivity {
55
56
  'txHash'?: string;
56
57
  /**
57
58
  *
58
- * @type {number}
59
+ * @type {TypesTimestamp}
59
60
  * @memberof SealOrderActivity
60
61
  */
61
- 'time'?: number;
62
+ 'time'?: TypesTimestamp;
62
63
  /**
63
64
  *
64
65
  * @type {string}
@@ -179,4 +179,10 @@ export interface SealOrder {
179
179
  * @memberof SealOrder
180
180
  */
181
181
  'permit'?: SealTokenPermitApproval;
182
+ /**
183
+ *
184
+ * @type {string}
185
+ * @memberof SealOrder
186
+ */
187
+ 'idHash'?: string;
182
188
  }
@@ -0,0 +1,73 @@
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 SealRfqRequest
17
+ */
18
+ export interface SealRfqRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SealRfqRequest
23
+ */
24
+ 'id'?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SealRfqRequest
29
+ */
30
+ 'chainId'?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SealRfqRequest
35
+ */
36
+ 'requester'?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SealRfqRequest
41
+ */
42
+ 'tokenIn'?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SealRfqRequest
47
+ */
48
+ 'amountIn'?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SealRfqRequest
53
+ */
54
+ 'tokenOut'?: string;
55
+ /**
56
+ *
57
+ * @type {TypesTimestamp}
58
+ * @memberof SealRfqRequest
59
+ */
60
+ 'creationTime'?: TypesTimestamp;
61
+ /**
62
+ *
63
+ * @type {TypesTimestamp}
64
+ * @memberof SealRfqRequest
65
+ */
66
+ 'requestDeadline'?: TypesTimestamp;
67
+ /**
68
+ *
69
+ * @type {TypesTimestamp}
70
+ * @memberof SealRfqRequest
71
+ */
72
+ 'buyInDeadline'?: TypesTimestamp;
73
+ }
@@ -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,60 @@
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 SealSubmitRfqRequest
16
+ */
17
+ export interface SealSubmitRfqRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealSubmitRfqRequest
22
+ */
23
+ 'chainId': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SealSubmitRfqRequest
28
+ */
29
+ 'requester': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SealSubmitRfqRequest
34
+ */
35
+ 'tokenIn': string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SealSubmitRfqRequest
40
+ */
41
+ 'amountIn': string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SealSubmitRfqRequest
46
+ */
47
+ 'tokenOut': string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof SealSubmitRfqRequest
52
+ */
53
+ 'requestDeadline': number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof SealSubmitRfqRequest
58
+ */
59
+ 'buyInDeadline'?: number;
60
+ }
@@ -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,24 @@
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 SealSubmitRfqResponse
16
+ */
17
+ export interface SealSubmitRfqResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealSubmitRfqResponse
22
+ */
23
+ 'id'?: string;
24
+ }
@@ -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,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum TypesRfqRequestsOrderByProperty {
18
+ RfqRequestsOrderByPropertyUnspecified = "RfqRequestsOrderByProperty_UNSPECIFIED",
19
+ RfqRequestsOrderByPropertyId = "RfqRequestsOrderByProperty_ID",
20
+ RfqRequestsOrderByPropertyCreationTime = "RfqRequestsOrderByProperty_CREATION_TIME",
21
+ RfqRequestsOrderByPropertyRequestDeadline = "RfqRequestsOrderByProperty_REQUEST_DEADLINE",
22
+ RfqRequestsOrderByPropertyBuyInDeadline = "RfqRequestsOrderByProperty_BUY_IN_DEADLINE"
23
+ }
@@ -0,0 +1,29 @@
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 });
16
+ exports.TypesRfqRequestsOrderByProperty = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var TypesRfqRequestsOrderByProperty;
23
+ (function (TypesRfqRequestsOrderByProperty) {
24
+ TypesRfqRequestsOrderByProperty["RfqRequestsOrderByPropertyUnspecified"] = "RfqRequestsOrderByProperty_UNSPECIFIED";
25
+ TypesRfqRequestsOrderByProperty["RfqRequestsOrderByPropertyId"] = "RfqRequestsOrderByProperty_ID";
26
+ TypesRfqRequestsOrderByProperty["RfqRequestsOrderByPropertyCreationTime"] = "RfqRequestsOrderByProperty_CREATION_TIME";
27
+ TypesRfqRequestsOrderByProperty["RfqRequestsOrderByPropertyRequestDeadline"] = "RfqRequestsOrderByProperty_REQUEST_DEADLINE";
28
+ TypesRfqRequestsOrderByProperty["RfqRequestsOrderByPropertyBuyInDeadline"] = "RfqRequestsOrderByProperty_BUY_IN_DEADLINE";
29
+ })(TypesRfqRequestsOrderByProperty || (exports.TypesRfqRequestsOrderByProperty = TypesRfqRequestsOrderByProperty = {}));
@@ -0,0 +1,31 @@
1
+ /**
2
+ * seal/seal.proto
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: version not set
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TypesRfqRequestsOrderByProperty } from './types-rfq-requests-order-by-property';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TypesRfqRequestsOrderBy
17
+ */
18
+ export interface TypesRfqRequestsOrderBy {
19
+ /**
20
+ *
21
+ * @type {TypesRfqRequestsOrderByProperty}
22
+ * @memberof TypesRfqRequestsOrderBy
23
+ */
24
+ 'property'?: TypesRfqRequestsOrderByProperty;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof TypesRfqRequestsOrderBy
29
+ */
30
+ 'descending'?: boolean;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * seal/seal.proto
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: version not set
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -80,12 +80,11 @@ async function calculateLiquidity(params) {
80
80
  const balance = await erc20Contract.balanceOf(owner);
81
81
  // 2) On-chain ERC20 allowance to spender
82
82
  const onChainAllowance = await erc20Contract.allowance(owner, spender);
83
- let maxAllowed = onChainAllowance;
84
83
  // 3) ERC20 allowance to Permit2 contract (if zero, Permit2 approvals are not usable)
85
- const onChainPermit2AllowanceToContract = await erc20Contract.allowance(owner, permit2);
84
+ const onChainAllowanceToPermit2Contract = await erc20Contract.allowance(owner, permit2);
86
85
  // 4) On-chain Permit2 allowance amount (subject to expiry), only if token->Permit2 allowance > 0
87
86
  let onChainPermit2 = 0n;
88
- if (onChainPermit2AllowanceToContract > 0n) {
87
+ if (onChainAllowanceToPermit2Contract > 0n) {
89
88
  const result = await permit2Contract.allowance(owner, token, spender);
90
89
  // tuple: [amount, expiration, nonce]
91
90
  const amount = result[0];
@@ -97,7 +96,7 @@ async function calculateLiquidity(params) {
97
96
  onChainPermit2 = amount;
98
97
  }
99
98
  }
100
- maxAllowed = maxBigInt(maxAllowed, onChainPermit2);
99
+ let maxAllowed = maxBigInt(onChainAllowance, onChainPermit2);
101
100
  let permission = {};
102
101
  // 5) Validate optional off-chain permission against on-chain state and expiry windows
103
102
  if (backendPermission) {
@@ -110,7 +109,7 @@ async function calculateLiquidity(params) {
110
109
  // - close to expiry (either approval expiration or sig deadline)
111
110
  let exp = BigInt(backendPermission.allowanceExpiration?.seconds ?? 0n);
112
111
  const drop = (amt <= onChainPermit2)
113
- || (onChainPermit2AllowanceToContract === 0n)
112
+ || (onChainAllowanceToPermit2Contract === 0n)
114
113
  || isCloseToExpiry(exp, minPermissionDurationMs)
115
114
  || isCloseToExpiry(sigDeadline, minPermissionDurationMs);
116
115
  if (!drop)
@@ -1 +1,2 @@
1
1
  export { LiquidityBreakdown, TransferPermission, calculateLiquidity } from "./calculate-liquidity";
2
+ export { truncateFixedNumberToBigInt } from "./numbers";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.calculateLiquidity = exports.LiquidityBreakdown = void 0;
3
+ exports.truncateFixedNumberToBigInt = exports.calculateLiquidity = exports.LiquidityBreakdown = void 0;
4
4
  var calculate_liquidity_1 = require("./calculate-liquidity");
5
5
  Object.defineProperty(exports, "LiquidityBreakdown", { enumerable: true, get: function () { return calculate_liquidity_1.LiquidityBreakdown; } });
6
6
  Object.defineProperty(exports, "calculateLiquidity", { enumerable: true, get: function () { return calculate_liquidity_1.calculateLiquidity; } });
7
+ var numbers_1 = require("./numbers");
8
+ Object.defineProperty(exports, "truncateFixedNumberToBigInt", { enumerable: true, get: function () { return numbers_1.truncateFixedNumberToBigInt; } });
@@ -0,0 +1,2 @@
1
+ import { FixedNumber } from "ethers";
2
+ export declare function truncateFixedNumberToBigInt(f: FixedNumber): bigint;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.truncateFixedNumberToBigInt = truncateFixedNumberToBigInt;
4
+ const ethers_1 = require("ethers");
5
+ function truncateFixedNumberToBigInt(f) {
6
+ return f.value / ethers_1.ethers.parseUnits("1", f.decimals);
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.79",
3
+ "version": "0.0.97",
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",