@seal-protocol/backendjs 0.0.109 → 0.0.110

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.
@@ -33,17 +33,20 @@ const SealClientAxiosParamCreator = function (configuration) {
33
33
  *
34
34
  * @param {string} chainId
35
35
  * @param {string} owner hex representation of owner address
36
+ * @param {string} spender hex representation of spender address
36
37
  * @param {string} token hex representation of token address
37
38
  * @param {string} orderAmount
38
39
  * @param {number} [orderExpiration] unix seconds
39
40
  * @param {*} [options] Override http request option.
40
41
  * @throws {RequiredError}
41
42
  */
42
- calculateRequiredPermit: async (chainId, owner, token, orderAmount, orderExpiration, options = {}) => {
43
+ calculateRequiredPermit: async (chainId, owner, spender, token, orderAmount, orderExpiration, options = {}) => {
43
44
  // verify required parameter 'chainId' is not null or undefined
44
45
  (0, common_1.assertParamExists)('calculateRequiredPermit', 'chainId', chainId);
45
46
  // verify required parameter 'owner' is not null or undefined
46
47
  (0, common_1.assertParamExists)('calculateRequiredPermit', 'owner', owner);
48
+ // verify required parameter 'spender' is not null or undefined
49
+ (0, common_1.assertParamExists)('calculateRequiredPermit', 'spender', spender);
47
50
  // verify required parameter 'token' is not null or undefined
48
51
  (0, common_1.assertParamExists)('calculateRequiredPermit', 'token', token);
49
52
  // verify required parameter 'orderAmount' is not null or undefined
@@ -64,6 +67,9 @@ const SealClientAxiosParamCreator = function (configuration) {
64
67
  if (owner !== undefined) {
65
68
  localVarQueryParameter['owner'] = owner;
66
69
  }
70
+ if (spender !== undefined) {
71
+ localVarQueryParameter['spender'] = spender;
72
+ }
67
73
  if (token !== undefined) {
68
74
  localVarQueryParameter['token'] = token;
69
75
  }
@@ -426,14 +432,17 @@ const SealClientAxiosParamCreator = function (configuration) {
426
432
  *
427
433
  * @param {string} chainId uint256
428
434
  * @param {string} owner
435
+ * @param {string} contract
429
436
  * @param {*} [options] Override http request option.
430
437
  * @throws {RequiredError}
431
438
  */
432
- getOrderNonce: async (chainId, owner, options = {}) => {
439
+ getOrderNonce: async (chainId, owner, contract, options = {}) => {
433
440
  // verify required parameter 'chainId' is not null or undefined
434
441
  (0, common_1.assertParamExists)('getOrderNonce', 'chainId', chainId);
435
442
  // verify required parameter 'owner' is not null or undefined
436
443
  (0, common_1.assertParamExists)('getOrderNonce', 'owner', owner);
444
+ // verify required parameter 'contract' is not null or undefined
445
+ (0, common_1.assertParamExists)('getOrderNonce', 'contract', contract);
437
446
  const localVarPath = `/seal/orders/nonce`;
438
447
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
439
448
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -450,6 +459,9 @@ const SealClientAxiosParamCreator = function (configuration) {
450
459
  if (owner !== undefined) {
451
460
  localVarQueryParameter['owner'] = owner;
452
461
  }
462
+ if (contract !== undefined) {
463
+ localVarQueryParameter['contract'] = contract;
464
+ }
453
465
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
454
466
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
455
467
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -551,10 +563,11 @@ const SealClientAxiosParamCreator = function (configuration) {
551
563
  * @param {string} [minRemainingAmountStableTerms] not supported yet
552
564
  * @param {boolean} [onChainValue]
553
565
  * @param {string} [id] 56-bytes in hex format
566
+ * @param {number} [contractId]
554
567
  * @param {*} [options] Override http request option.
555
568
  * @throws {RequiredError}
556
569
  */
557
- getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, options = {}) => {
570
+ getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, contractId, options = {}) => {
558
571
  const localVarPath = `/seal/orders`;
559
572
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
560
573
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -634,6 +647,9 @@ const SealClientAxiosParamCreator = function (configuration) {
634
647
  if (id !== undefined) {
635
648
  localVarQueryParameter['id'] = id;
636
649
  }
650
+ if (contractId !== undefined) {
651
+ localVarQueryParameter['contractId'] = contractId;
652
+ }
637
653
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
638
654
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
655
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -738,6 +754,30 @@ const SealClientAxiosParamCreator = function (configuration) {
738
754
  options: localVarRequestOptions,
739
755
  };
740
756
  },
757
+ /**
758
+ *
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ getPermit2Contracts: async (options = {}) => {
763
+ const localVarPath = `/seal/contracts/permit2`;
764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
765
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
766
+ let baseOptions;
767
+ if (configuration) {
768
+ baseOptions = configuration.baseOptions;
769
+ }
770
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
771
+ const localVarHeaderParameter = {};
772
+ const localVarQueryParameter = {};
773
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
775
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
776
+ return {
777
+ url: (0, common_1.toPathString)(localVarUrlObj),
778
+ options: localVarRequestOptions,
779
+ };
780
+ },
741
781
  /**
742
782
  *
743
783
  * @param {GetRfqCommitmentsOrderByPropertyEnum} [orderByProperty]
@@ -814,18 +854,49 @@ const SealClientAxiosParamCreator = function (configuration) {
814
854
  options: localVarRequestOptions,
815
855
  };
816
856
  },
857
+ /**
858
+ *
859
+ * @param {string} [chainId]
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ */
863
+ getRfqContracts: async (chainId, options = {}) => {
864
+ const localVarPath = `/seal/contracts/rfq`;
865
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
866
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
867
+ let baseOptions;
868
+ if (configuration) {
869
+ baseOptions = configuration.baseOptions;
870
+ }
871
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
872
+ const localVarHeaderParameter = {};
873
+ const localVarQueryParameter = {};
874
+ if (chainId !== undefined) {
875
+ localVarQueryParameter['chainId'] = chainId;
876
+ }
877
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
879
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
880
+ return {
881
+ url: (0, common_1.toPathString)(localVarUrlObj),
882
+ options: localVarRequestOptions,
883
+ };
884
+ },
817
885
  /**
818
886
  *
819
887
  * @param {string} owner
820
888
  * @param {string} chainId
889
+ * @param {string} contract
821
890
  * @param {*} [options] Override http request option.
822
891
  * @throws {RequiredError}
823
892
  */
824
- getRfqNonce: async (owner, chainId, options = {}) => {
893
+ getRfqNonce: async (owner, chainId, contract, options = {}) => {
825
894
  // verify required parameter 'owner' is not null or undefined
826
895
  (0, common_1.assertParamExists)('getRfqNonce', 'owner', owner);
827
896
  // verify required parameter 'chainId' is not null or undefined
828
897
  (0, common_1.assertParamExists)('getRfqNonce', 'chainId', chainId);
898
+ // verify required parameter 'contract' is not null or undefined
899
+ (0, common_1.assertParamExists)('getRfqNonce', 'contract', contract);
829
900
  const localVarPath = `/seal/rfq/nonce`;
830
901
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
831
902
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -842,6 +913,9 @@ const SealClientAxiosParamCreator = function (configuration) {
842
913
  if (chainId !== undefined) {
843
914
  localVarQueryParameter['chainId'] = chainId;
844
915
  }
916
+ if (contract !== undefined) {
917
+ localVarQueryParameter['contract'] = contract;
918
+ }
845
919
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
846
920
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
847
921
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1026,8 +1100,8 @@ const SealClientAxiosParamCreator = function (configuration) {
1026
1100
  * @param {*} [options] Override http request option.
1027
1101
  * @throws {RequiredError}
1028
1102
  */
1029
- getSealContractParams: async (chainId, options = {}) => {
1030
- const localVarPath = `/seal/seal_contract_params`;
1103
+ getSealContracts: async (chainId, options = {}) => {
1104
+ const localVarPath = `/seal/contracts/seal`;
1031
1105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1032
1106
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1033
1107
  let baseOptions;
@@ -1051,6 +1125,7 @@ const SealClientAxiosParamCreator = function (configuration) {
1051
1125
  /**
1052
1126
  *
1053
1127
  * @param {string} owner hex representation of owner address
1128
+ * @param {string} spender hex representation of owner address
1054
1129
  * @param {string} [chainId]
1055
1130
  * @param {string} [token] hex representation of token address
1056
1131
  * @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
@@ -1061,9 +1136,11 @@ const SealClientAxiosParamCreator = function (configuration) {
1061
1136
  * @param {*} [options] Override http request option.
1062
1137
  * @throws {RequiredError}
1063
1138
  */
1064
- getTokenPermitApprovals: async (owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
1139
+ getTokenPermitApprovals: async (owner, spender, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
1065
1140
  // verify required parameter 'owner' is not null or undefined
1066
1141
  (0, common_1.assertParamExists)('getTokenPermitApprovals', 'owner', owner);
1142
+ // verify required parameter 'spender' is not null or undefined
1143
+ (0, common_1.assertParamExists)('getTokenPermitApprovals', 'spender', spender);
1067
1144
  const localVarPath = `/seal/token_permit_approvals`;
1068
1145
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1069
1146
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1080,6 +1157,9 @@ const SealClientAxiosParamCreator = function (configuration) {
1080
1157
  if (owner !== undefined) {
1081
1158
  localVarQueryParameter['owner'] = owner;
1082
1159
  }
1160
+ if (spender !== undefined) {
1161
+ localVarQueryParameter['spender'] = spender;
1162
+ }
1083
1163
  if (token !== undefined) {
1084
1164
  localVarQueryParameter['token'] = token;
1085
1165
  }
@@ -1182,12 +1262,13 @@ const SealClientAxiosParamCreator = function (configuration) {
1182
1262
  *
1183
1263
  * @param {string} [chainId] uint256
1184
1264
  * @param {string} [executor]
1265
+ * @param {string} [sealContract]
1185
1266
  * @param {string} [request] json
1186
1267
  * @param {string} [requestHash] hex hash for double checking the request, if was empty the checking is bypassed
1187
1268
  * @param {*} [options] Override http request option.
1188
1269
  * @throws {RequiredError}
1189
1270
  */
1190
- issueGreenlight: async (chainId, executor, request, requestHash, options = {}) => {
1271
+ issueGreenlight: async (chainId, executor, sealContract, request, requestHash, options = {}) => {
1191
1272
  const localVarPath = `/seal/issue_greenlight`;
1192
1273
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1193
1274
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1204,6 +1285,9 @@ const SealClientAxiosParamCreator = function (configuration) {
1204
1285
  if (executor !== undefined) {
1205
1286
  localVarQueryParameter['executor'] = executor;
1206
1287
  }
1288
+ if (sealContract !== undefined) {
1289
+ localVarQueryParameter['sealContract'] = sealContract;
1290
+ }
1207
1291
  if (request !== undefined) {
1208
1292
  localVarQueryParameter['request'] = request;
1209
1293
  }
@@ -1256,14 +1340,15 @@ const SealClientFp = function (configuration) {
1256
1340
  *
1257
1341
  * @param {string} chainId
1258
1342
  * @param {string} owner hex representation of owner address
1343
+ * @param {string} spender hex representation of spender address
1259
1344
  * @param {string} token hex representation of token address
1260
1345
  * @param {string} orderAmount
1261
1346
  * @param {number} [orderExpiration] unix seconds
1262
1347
  * @param {*} [options] Override http request option.
1263
1348
  * @throws {RequiredError}
1264
1349
  */
1265
- async calculateRequiredPermit(chainId, owner, token, orderAmount, orderExpiration, options) {
1266
- const localVarAxiosArgs = await localVarAxiosParamCreator.calculateRequiredPermit(chainId, owner, token, orderAmount, orderExpiration, options);
1350
+ async calculateRequiredPermit(chainId, owner, spender, token, orderAmount, orderExpiration, options) {
1351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calculateRequiredPermit(chainId, owner, spender, token, orderAmount, orderExpiration, options);
1267
1352
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1268
1353
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.calculateRequiredPermit']?.[localVarOperationServerIndex]?.url;
1269
1354
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1405,11 +1490,12 @@ const SealClientFp = function (configuration) {
1405
1490
  *
1406
1491
  * @param {string} chainId uint256
1407
1492
  * @param {string} owner
1493
+ * @param {string} contract
1408
1494
  * @param {*} [options] Override http request option.
1409
1495
  * @throws {RequiredError}
1410
1496
  */
1411
- async getOrderNonce(chainId, owner, options) {
1412
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderNonce(chainId, owner, options);
1497
+ async getOrderNonce(chainId, owner, contract, options) {
1498
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderNonce(chainId, owner, contract, options);
1413
1499
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1414
1500
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderNonce']?.[localVarOperationServerIndex]?.url;
1415
1501
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1461,11 +1547,12 @@ const SealClientFp = function (configuration) {
1461
1547
  * @param {string} [minRemainingAmountStableTerms] not supported yet
1462
1548
  * @param {boolean} [onChainValue]
1463
1549
  * @param {string} [id] 56-bytes in hex format
1550
+ * @param {number} [contractId]
1464
1551
  * @param {*} [options] Override http request option.
1465
1552
  * @throws {RequiredError}
1466
1553
  */
1467
- async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, options) {
1468
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, options);
1554
+ async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, contractId, options) {
1555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, id, contractId, options);
1469
1556
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1470
1557
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
1471
1558
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1504,6 +1591,17 @@ const SealClientFp = function (configuration) {
1504
1591
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
1505
1592
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1506
1593
  },
1594
+ /**
1595
+ *
1596
+ * @param {*} [options] Override http request option.
1597
+ * @throws {RequiredError}
1598
+ */
1599
+ async getPermit2Contracts(options) {
1600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPermit2Contracts(options);
1601
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1602
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPermit2Contracts']?.[localVarOperationServerIndex]?.url;
1603
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1604
+ },
1507
1605
  /**
1508
1606
  *
1509
1607
  * @param {GetRfqCommitmentsOrderByPropertyEnum} [orderByProperty]
@@ -1528,15 +1626,28 @@ const SealClientFp = function (configuration) {
1528
1626
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqCommitments']?.[localVarOperationServerIndex]?.url;
1529
1627
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1530
1628
  },
1629
+ /**
1630
+ *
1631
+ * @param {string} [chainId]
1632
+ * @param {*} [options] Override http request option.
1633
+ * @throws {RequiredError}
1634
+ */
1635
+ async getRfqContracts(chainId, options) {
1636
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqContracts(chainId, options);
1637
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1638
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqContracts']?.[localVarOperationServerIndex]?.url;
1639
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1640
+ },
1531
1641
  /**
1532
1642
  *
1533
1643
  * @param {string} owner
1534
1644
  * @param {string} chainId
1645
+ * @param {string} contract
1535
1646
  * @param {*} [options] Override http request option.
1536
1647
  * @throws {RequiredError}
1537
1648
  */
1538
- async getRfqNonce(owner, chainId, options) {
1539
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqNonce(owner, chainId, options);
1649
+ async getRfqNonce(owner, chainId, contract, options) {
1650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqNonce(owner, chainId, contract, options);
1540
1651
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1541
1652
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqNonce']?.[localVarOperationServerIndex]?.url;
1542
1653
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1599,15 +1710,16 @@ const SealClientFp = function (configuration) {
1599
1710
  * @param {*} [options] Override http request option.
1600
1711
  * @throws {RequiredError}
1601
1712
  */
1602
- async getSealContractParams(chainId, options) {
1603
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSealContractParams(chainId, options);
1713
+ async getSealContracts(chainId, options) {
1714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSealContracts(chainId, options);
1604
1715
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1605
- const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getSealContractParams']?.[localVarOperationServerIndex]?.url;
1716
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getSealContracts']?.[localVarOperationServerIndex]?.url;
1606
1717
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1607
1718
  },
1608
1719
  /**
1609
1720
  *
1610
1721
  * @param {string} owner hex representation of owner address
1722
+ * @param {string} spender hex representation of owner address
1611
1723
  * @param {string} [chainId]
1612
1724
  * @param {string} [token] hex representation of token address
1613
1725
  * @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
@@ -1618,8 +1730,8 @@ const SealClientFp = function (configuration) {
1618
1730
  * @param {*} [options] Override http request option.
1619
1731
  * @throws {RequiredError}
1620
1732
  */
1621
- async getTokenPermitApprovals(owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
1622
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenPermitApprovals(owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
1733
+ async getTokenPermitApprovals(owner, spender, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
1734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenPermitApprovals(owner, spender, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
1623
1735
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1624
1736
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getTokenPermitApprovals']?.[localVarOperationServerIndex]?.url;
1625
1737
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1656,13 +1768,14 @@ const SealClientFp = function (configuration) {
1656
1768
  *
1657
1769
  * @param {string} [chainId] uint256
1658
1770
  * @param {string} [executor]
1771
+ * @param {string} [sealContract]
1659
1772
  * @param {string} [request] json
1660
1773
  * @param {string} [requestHash] hex hash for double checking the request, if was empty the checking is bypassed
1661
1774
  * @param {*} [options] Override http request option.
1662
1775
  * @throws {RequiredError}
1663
1776
  */
1664
- async issueGreenlight(chainId, executor, request, requestHash, options) {
1665
- const localVarAxiosArgs = await localVarAxiosParamCreator.issueGreenlight(chainId, executor, request, requestHash, options);
1777
+ async issueGreenlight(chainId, executor, sealContract, request, requestHash, options) {
1778
+ const localVarAxiosArgs = await localVarAxiosParamCreator.issueGreenlight(chainId, executor, sealContract, request, requestHash, options);
1666
1779
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1667
1780
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.issueGreenlight']?.[localVarOperationServerIndex]?.url;
1668
1781
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1695,7 +1808,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1695
1808
  * @throws {RequiredError}
1696
1809
  */
1697
1810
  calculateRequiredPermit(requestParameters, options) {
1698
- return localVarFp.calculateRequiredPermit(requestParameters.chainId, requestParameters.owner, requestParameters.token, requestParameters.orderAmount, requestParameters.orderExpiration, options).then((request) => request(axios, basePath));
1811
+ return localVarFp.calculateRequiredPermit(requestParameters.chainId, requestParameters.owner, requestParameters.spender, requestParameters.token, requestParameters.orderAmount, requestParameters.orderExpiration, options).then((request) => request(axios, basePath));
1699
1812
  },
1700
1813
  /**
1701
1814
  *
@@ -1793,7 +1906,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1793
1906
  * @throws {RequiredError}
1794
1907
  */
1795
1908
  getOrderNonce(requestParameters, options) {
1796
- return localVarFp.getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(axios, basePath));
1909
+ return localVarFp.getOrderNonce(requestParameters.chainId, requestParameters.owner, requestParameters.contract, options).then((request) => request(axios, basePath));
1797
1910
  },
1798
1911
  /**
1799
1912
  *
@@ -1811,7 +1924,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1811
1924
  * @throws {RequiredError}
1812
1925
  */
1813
1926
  getOrders(requestParameters = {}, options) {
1814
- return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, requestParameters.id, options).then((request) => request(axios, basePath));
1927
+ return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, requestParameters.id, requestParameters.contractId, options).then((request) => request(axios, basePath));
1815
1928
  },
1816
1929
  /**
1817
1930
  *
@@ -1831,6 +1944,14 @@ const SealClientFactory = function (configuration, basePath, axios) {
1831
1944
  getPairs(requestParameters = {}, options) {
1832
1945
  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));
1833
1946
  },
1947
+ /**
1948
+ *
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ */
1952
+ getPermit2Contracts(options) {
1953
+ return localVarFp.getPermit2Contracts(options).then((request) => request(axios, basePath));
1954
+ },
1834
1955
  /**
1835
1956
  *
1836
1957
  * @param {SealClientGetRfqCommitmentsRequest} requestParameters Request parameters.
@@ -1840,6 +1961,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
1840
1961
  getRfqCommitments(requestParameters = {}, options) {
1841
1962
  return localVarFp.getRfqCommitments(requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.chainId, requestParameters.maker, requestParameters.taker, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.commitmentId, requestParameters.settlementTimeAfter, requestParameters.settledRatioLessThanOrEq, options).then((request) => request(axios, basePath));
1842
1963
  },
1964
+ /**
1965
+ *
1966
+ * @param {SealClientGetRfqContractsRequest} requestParameters Request parameters.
1967
+ * @param {*} [options] Override http request option.
1968
+ * @throws {RequiredError}
1969
+ */
1970
+ getRfqContracts(requestParameters = {}, options) {
1971
+ return localVarFp.getRfqContracts(requestParameters.chainId, options).then((request) => request(axios, basePath));
1972
+ },
1843
1973
  /**
1844
1974
  *
1845
1975
  * @param {SealClientGetRfqNonceRequest} requestParameters Request parameters.
@@ -1847,7 +1977,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1847
1977
  * @throws {RequiredError}
1848
1978
  */
1849
1979
  getRfqNonce(requestParameters, options) {
1850
- return localVarFp.getRfqNonce(requestParameters.owner, requestParameters.chainId, options).then((request) => request(axios, basePath));
1980
+ return localVarFp.getRfqNonce(requestParameters.owner, requestParameters.chainId, requestParameters.contract, options).then((request) => request(axios, basePath));
1851
1981
  },
1852
1982
  /**
1853
1983
  *
@@ -1869,12 +1999,12 @@ const SealClientFactory = function (configuration, basePath, axios) {
1869
1999
  },
1870
2000
  /**
1871
2001
  *
1872
- * @param {SealClientGetSealContractParamsRequest} requestParameters Request parameters.
2002
+ * @param {SealClientGetSealContractsRequest} requestParameters Request parameters.
1873
2003
  * @param {*} [options] Override http request option.
1874
2004
  * @throws {RequiredError}
1875
2005
  */
1876
- getSealContractParams(requestParameters = {}, options) {
1877
- return localVarFp.getSealContractParams(requestParameters.chainId, options).then((request) => request(axios, basePath));
2006
+ getSealContracts(requestParameters = {}, options) {
2007
+ return localVarFp.getSealContracts(requestParameters.chainId, options).then((request) => request(axios, basePath));
1878
2008
  },
1879
2009
  /**
1880
2010
  *
@@ -1883,7 +2013,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1883
2013
  * @throws {RequiredError}
1884
2014
  */
1885
2015
  getTokenPermitApprovals(requestParameters, options) {
1886
- return localVarFp.getTokenPermitApprovals(requestParameters.owner, requestParameters.chainId, requestParameters.token, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
2016
+ return localVarFp.getTokenPermitApprovals(requestParameters.owner, requestParameters.spender, requestParameters.chainId, requestParameters.token, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
1887
2017
  },
1888
2018
  /**
1889
2019
  *
@@ -1909,7 +2039,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1909
2039
  * @throws {RequiredError}
1910
2040
  */
1911
2041
  issueGreenlight(requestParameters = {}, options) {
1912
- return localVarFp.issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(axios, basePath));
2042
+ return localVarFp.issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.sealContract, requestParameters.request, requestParameters.requestHash, options).then((request) => request(axios, basePath));
1913
2043
  },
1914
2044
  /**
1915
2045
  *
@@ -1937,7 +2067,7 @@ class SealClient extends base_1.BaseAPI {
1937
2067
  * @memberof SealClient
1938
2068
  */
1939
2069
  calculateRequiredPermit(requestParameters, options) {
1940
- return (0, exports.SealClientFp)(this.configuration).calculateRequiredPermit(requestParameters.chainId, requestParameters.owner, requestParameters.token, requestParameters.orderAmount, requestParameters.orderExpiration, options).then((request) => request(this.axios, this.basePath));
2070
+ return (0, exports.SealClientFp)(this.configuration).calculateRequiredPermit(requestParameters.chainId, requestParameters.owner, requestParameters.spender, requestParameters.token, requestParameters.orderAmount, requestParameters.orderExpiration, options).then((request) => request(this.axios, this.basePath));
1941
2071
  }
1942
2072
  /**
1943
2073
  *
@@ -2046,7 +2176,7 @@ class SealClient extends base_1.BaseAPI {
2046
2176
  * @memberof SealClient
2047
2177
  */
2048
2178
  getOrderNonce(requestParameters, options) {
2049
- return (0, exports.SealClientFp)(this.configuration).getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(this.axios, this.basePath));
2179
+ return (0, exports.SealClientFp)(this.configuration).getOrderNonce(requestParameters.chainId, requestParameters.owner, requestParameters.contract, options).then((request) => request(this.axios, this.basePath));
2050
2180
  }
2051
2181
  /**
2052
2182
  *
@@ -2066,7 +2196,7 @@ class SealClient extends base_1.BaseAPI {
2066
2196
  * @memberof SealClient
2067
2197
  */
2068
2198
  getOrders(requestParameters = {}, options) {
2069
- return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2199
+ return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, requestParameters.id, requestParameters.contractId, options).then((request) => request(this.axios, this.basePath));
2070
2200
  }
2071
2201
  /**
2072
2202
  *
@@ -2088,6 +2218,15 @@ class SealClient extends base_1.BaseAPI {
2088
2218
  getPairs(requestParameters = {}, options) {
2089
2219
  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));
2090
2220
  }
2221
+ /**
2222
+ *
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ * @memberof SealClient
2226
+ */
2227
+ getPermit2Contracts(options) {
2228
+ return (0, exports.SealClientFp)(this.configuration).getPermit2Contracts(options).then((request) => request(this.axios, this.basePath));
2229
+ }
2091
2230
  /**
2092
2231
  *
2093
2232
  * @param {SealClientGetRfqCommitmentsRequest} requestParameters Request parameters.
@@ -2098,6 +2237,16 @@ class SealClient extends base_1.BaseAPI {
2098
2237
  getRfqCommitments(requestParameters = {}, options) {
2099
2238
  return (0, exports.SealClientFp)(this.configuration).getRfqCommitments(requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.chainId, requestParameters.maker, requestParameters.taker, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.commitmentId, requestParameters.settlementTimeAfter, requestParameters.settledRatioLessThanOrEq, options).then((request) => request(this.axios, this.basePath));
2100
2239
  }
2240
+ /**
2241
+ *
2242
+ * @param {SealClientGetRfqContractsRequest} requestParameters Request parameters.
2243
+ * @param {*} [options] Override http request option.
2244
+ * @throws {RequiredError}
2245
+ * @memberof SealClient
2246
+ */
2247
+ getRfqContracts(requestParameters = {}, options) {
2248
+ return (0, exports.SealClientFp)(this.configuration).getRfqContracts(requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
2249
+ }
2101
2250
  /**
2102
2251
  *
2103
2252
  * @param {SealClientGetRfqNonceRequest} requestParameters Request parameters.
@@ -2106,7 +2255,7 @@ class SealClient extends base_1.BaseAPI {
2106
2255
  * @memberof SealClient
2107
2256
  */
2108
2257
  getRfqNonce(requestParameters, options) {
2109
- return (0, exports.SealClientFp)(this.configuration).getRfqNonce(requestParameters.owner, requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
2258
+ return (0, exports.SealClientFp)(this.configuration).getRfqNonce(requestParameters.owner, requestParameters.chainId, requestParameters.contract, options).then((request) => request(this.axios, this.basePath));
2110
2259
  }
2111
2260
  /**
2112
2261
  *
@@ -2130,13 +2279,13 @@ class SealClient extends base_1.BaseAPI {
2130
2279
  }
2131
2280
  /**
2132
2281
  *
2133
- * @param {SealClientGetSealContractParamsRequest} requestParameters Request parameters.
2282
+ * @param {SealClientGetSealContractsRequest} requestParameters Request parameters.
2134
2283
  * @param {*} [options] Override http request option.
2135
2284
  * @throws {RequiredError}
2136
2285
  * @memberof SealClient
2137
2286
  */
2138
- getSealContractParams(requestParameters = {}, options) {
2139
- return (0, exports.SealClientFp)(this.configuration).getSealContractParams(requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
2287
+ getSealContracts(requestParameters = {}, options) {
2288
+ return (0, exports.SealClientFp)(this.configuration).getSealContracts(requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
2140
2289
  }
2141
2290
  /**
2142
2291
  *
@@ -2146,7 +2295,7 @@ class SealClient extends base_1.BaseAPI {
2146
2295
  * @memberof SealClient
2147
2296
  */
2148
2297
  getTokenPermitApprovals(requestParameters, options) {
2149
- return (0, exports.SealClientFp)(this.configuration).getTokenPermitApprovals(requestParameters.owner, requestParameters.chainId, requestParameters.token, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
2298
+ return (0, exports.SealClientFp)(this.configuration).getTokenPermitApprovals(requestParameters.owner, requestParameters.spender, requestParameters.chainId, requestParameters.token, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
2150
2299
  }
2151
2300
  /**
2152
2301
  *
@@ -2175,7 +2324,7 @@ class SealClient extends base_1.BaseAPI {
2175
2324
  * @memberof SealClient
2176
2325
  */
2177
2326
  issueGreenlight(requestParameters = {}, options) {
2178
- return (0, exports.SealClientFp)(this.configuration).issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(this.axios, this.basePath));
2327
+ return (0, exports.SealClientFp)(this.configuration).issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.sealContract, requestParameters.request, requestParameters.requestHash, options).then((request) => request(this.axios, this.basePath));
2179
2328
  }
2180
2329
  /**
2181
2330
  *
@@ -2310,6 +2459,8 @@ var GetTokenPermitApprovalsOrderByPropertyEnum;
2310
2459
  GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyUnspecified"] = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED";
2311
2460
  GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyToken"] = "TokenPermitApprovalsOrderByProperty_TOKEN";
2312
2461
  GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyChainId"] = "TokenPermitApprovalsOrderByProperty_CHAIN_ID";
2462
+ GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyOwner"] = "TokenPermitApprovalsOrderByProperty_OWNER";
2463
+ GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertySpender"] = "TokenPermitApprovalsOrderByProperty_SPENDER";
2313
2464
  })(GetTokenPermitApprovalsOrderByPropertyEnum || (exports.GetTokenPermitApprovalsOrderByPropertyEnum = GetTokenPermitApprovalsOrderByPropertyEnum = {}));
2314
2465
  /**
2315
2466
  * @export