@seal-protocol/backendjs 0.0.97 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/codegen/api/seal-client.d.ts +224 -13
- package/lib/codegen/api/seal-client.js +251 -12
- package/lib/codegen/model/index.d.ts +9 -0
- package/lib/codegen/model/index.js +9 -0
- package/lib/codegen/model/seal-chain-config.d.ts +7 -0
- package/lib/codegen/model/seal-get-rfq-nonce-response.d.ts +24 -0
- package/lib/codegen/model/seal-get-rfq-nonce-response.js +15 -0
- package/lib/codegen/model/seal-get-rfq-quotes-response.d.ts +31 -0
- package/lib/codegen/model/seal-get-rfq-quotes-response.js +15 -0
- package/lib/codegen/model/seal-order-reservation.d.ts +6 -0
- package/lib/codegen/model/seal-rfq-contract-config.d.ts +32 -0
- package/lib/codegen/model/seal-rfq-contract-config.js +15 -0
- package/lib/codegen/model/seal-rfq-contract-params.d.ts +54 -0
- package/lib/codegen/model/seal-rfq-contract-params.js +15 -0
- package/lib/codegen/model/seal-rfq-quote.d.ts +104 -0
- package/lib/codegen/model/seal-rfq-quote.js +15 -0
- package/lib/codegen/model/seal-rfq-request.d.ts +0 -6
- package/lib/codegen/model/seal-seal-contract-params.d.ts +12 -0
- package/lib/codegen/model/seal-submit-quote-request.d.ts +84 -0
- package/lib/codegen/model/seal-submit-quote-request.js +15 -0
- package/lib/codegen/model/seal-submit-quote-response.d.ts +24 -0
- package/lib/codegen/model/seal-submit-quote-response.js +15 -0
- package/lib/codegen/model/seal-submit-rfq-request.d.ts +0 -6
- package/lib/codegen/model/types-rfq-quote-order-by-property.d.ts +22 -0
- package/lib/codegen/model/types-rfq-quote-order-by-property.js +28 -0
- package/lib/codegen/model/types-rfq-quote-order-by.d.ts +31 -0
- package/lib/codegen/model/types-rfq-quote-order-by.js +15 -0
- package/lib/codegen/model/types-rfq-requests-order-by-property.d.ts +1 -2
- package/lib/codegen/model/types-rfq-requests-order-by-property.js +0 -1
- package/package.json +1 -1
|
@@ -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.GetRfqRequestsOrderByPropertyEnum = 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.GetRfqQuotesOrderByPropertyEnum = 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
|
|
@@ -680,6 +680,108 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
680
680
|
options: localVarRequestOptions,
|
|
681
681
|
};
|
|
682
682
|
},
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @param {string} owner
|
|
686
|
+
* @param {string} chainId
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
getRfqNonce: async (owner, chainId, options = {}) => {
|
|
691
|
+
// verify required parameter 'owner' is not null or undefined
|
|
692
|
+
(0, common_1.assertParamExists)('getRfqNonce', 'owner', owner);
|
|
693
|
+
// verify required parameter 'chainId' is not null or undefined
|
|
694
|
+
(0, common_1.assertParamExists)('getRfqNonce', 'chainId', chainId);
|
|
695
|
+
const localVarPath = `/seal/rfq/nonce`;
|
|
696
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
697
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
698
|
+
let baseOptions;
|
|
699
|
+
if (configuration) {
|
|
700
|
+
baseOptions = configuration.baseOptions;
|
|
701
|
+
}
|
|
702
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
703
|
+
const localVarHeaderParameter = {};
|
|
704
|
+
const localVarQueryParameter = {};
|
|
705
|
+
if (owner !== undefined) {
|
|
706
|
+
localVarQueryParameter['owner'] = owner;
|
|
707
|
+
}
|
|
708
|
+
if (chainId !== undefined) {
|
|
709
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
710
|
+
}
|
|
711
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
713
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
714
|
+
return {
|
|
715
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
716
|
+
options: localVarRequestOptions,
|
|
717
|
+
};
|
|
718
|
+
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @param {string} chainId
|
|
722
|
+
* @param {string} [quoteHash]
|
|
723
|
+
* @param {string} [requestId]
|
|
724
|
+
* @param {string} [offerer]
|
|
725
|
+
* @param {string} [id]
|
|
726
|
+
* @param {GetRfqQuotesOrderByPropertyEnum} [orderByProperty]
|
|
727
|
+
* @param {boolean} [orderByDescending]
|
|
728
|
+
* @param {string} [paginationKey]
|
|
729
|
+
* @param {number} [paginationLimit]
|
|
730
|
+
* @param {boolean} [paginationCountTotal]
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
getRfqQuotes: async (chainId, quoteHash, requestId, offerer, id, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
735
|
+
// verify required parameter 'chainId' is not null or undefined
|
|
736
|
+
(0, common_1.assertParamExists)('getRfqQuotes', 'chainId', chainId);
|
|
737
|
+
const localVarPath = `/seal/rfq/quotes`;
|
|
738
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
739
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
740
|
+
let baseOptions;
|
|
741
|
+
if (configuration) {
|
|
742
|
+
baseOptions = configuration.baseOptions;
|
|
743
|
+
}
|
|
744
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
745
|
+
const localVarHeaderParameter = {};
|
|
746
|
+
const localVarQueryParameter = {};
|
|
747
|
+
if (chainId !== undefined) {
|
|
748
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
749
|
+
}
|
|
750
|
+
if (quoteHash !== undefined) {
|
|
751
|
+
localVarQueryParameter['quoteHash'] = quoteHash;
|
|
752
|
+
}
|
|
753
|
+
if (requestId !== undefined) {
|
|
754
|
+
localVarQueryParameter['requestId'] = requestId;
|
|
755
|
+
}
|
|
756
|
+
if (offerer !== undefined) {
|
|
757
|
+
localVarQueryParameter['offerer'] = offerer;
|
|
758
|
+
}
|
|
759
|
+
if (id !== undefined) {
|
|
760
|
+
localVarQueryParameter['id'] = id;
|
|
761
|
+
}
|
|
762
|
+
if (orderByProperty !== undefined) {
|
|
763
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
764
|
+
}
|
|
765
|
+
if (orderByDescending !== undefined) {
|
|
766
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
767
|
+
}
|
|
768
|
+
if (paginationKey !== undefined) {
|
|
769
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
770
|
+
}
|
|
771
|
+
if (paginationLimit !== undefined) {
|
|
772
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
773
|
+
}
|
|
774
|
+
if (paginationCountTotal !== undefined) {
|
|
775
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
776
|
+
}
|
|
777
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
778
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
779
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
780
|
+
return {
|
|
781
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
782
|
+
options: localVarRequestOptions,
|
|
783
|
+
};
|
|
784
|
+
},
|
|
683
785
|
/**
|
|
684
786
|
*
|
|
685
787
|
* @param {string} [id]
|
|
@@ -689,7 +791,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
689
791
|
* @param {string} [tokenOut]
|
|
690
792
|
* @param {number} [creationTimeAfter]
|
|
691
793
|
* @param {number} [requestDeadlineAfter]
|
|
692
|
-
* @param {number} [buyInDeadlineAfter]
|
|
693
794
|
* @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
|
|
694
795
|
* @param {boolean} [orderByDescending]
|
|
695
796
|
* @param {string} [paginationKey]
|
|
@@ -698,7 +799,7 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
698
799
|
* @param {*} [options] Override http request option.
|
|
699
800
|
* @throws {RequiredError}
|
|
700
801
|
*/
|
|
701
|
-
getRfqRequests: async (id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter,
|
|
802
|
+
getRfqRequests: async (id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
702
803
|
const localVarPath = `/seal/rfq/requests`;
|
|
703
804
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
704
805
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -730,9 +831,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
730
831
|
if (requestDeadlineAfter !== undefined) {
|
|
731
832
|
localVarQueryParameter['requestDeadlineAfter'] = requestDeadlineAfter;
|
|
732
833
|
}
|
|
733
|
-
if (buyInDeadlineAfter !== undefined) {
|
|
734
|
-
localVarQueryParameter['buyInDeadlineAfter'] = buyInDeadlineAfter;
|
|
735
|
-
}
|
|
736
834
|
if (orderByProperty !== undefined) {
|
|
737
835
|
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
738
836
|
}
|
|
@@ -954,6 +1052,35 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
954
1052
|
options: localVarRequestOptions,
|
|
955
1053
|
};
|
|
956
1054
|
},
|
|
1055
|
+
/**
|
|
1056
|
+
*
|
|
1057
|
+
* @param {SealSubmitQuoteRequest} body
|
|
1058
|
+
* @param {*} [options] Override http request option.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
submitQuote: async (body, options = {}) => {
|
|
1062
|
+
// verify required parameter 'body' is not null or undefined
|
|
1063
|
+
(0, common_1.assertParamExists)('submitQuote', 'body', body);
|
|
1064
|
+
const localVarPath = `/seal/quote/submit`;
|
|
1065
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1066
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1067
|
+
let baseOptions;
|
|
1068
|
+
if (configuration) {
|
|
1069
|
+
baseOptions = configuration.baseOptions;
|
|
1070
|
+
}
|
|
1071
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1072
|
+
const localVarHeaderParameter = {};
|
|
1073
|
+
const localVarQueryParameter = {};
|
|
1074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1075
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1076
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1077
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1078
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1079
|
+
return {
|
|
1080
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1081
|
+
options: localVarRequestOptions,
|
|
1082
|
+
};
|
|
1083
|
+
},
|
|
957
1084
|
/**
|
|
958
1085
|
*
|
|
959
1086
|
* @param {SealSubmitRfqRequest} body
|
|
@@ -1245,6 +1372,40 @@ const SealClientFp = function (configuration) {
|
|
|
1245
1372
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
|
|
1246
1373
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1247
1374
|
},
|
|
1375
|
+
/**
|
|
1376
|
+
*
|
|
1377
|
+
* @param {string} owner
|
|
1378
|
+
* @param {string} chainId
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
async getRfqNonce(owner, chainId, options) {
|
|
1383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqNonce(owner, chainId, options);
|
|
1384
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1385
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqNonce']?.[localVarOperationServerIndex]?.url;
|
|
1386
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1387
|
+
},
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @param {string} chainId
|
|
1391
|
+
* @param {string} [quoteHash]
|
|
1392
|
+
* @param {string} [requestId]
|
|
1393
|
+
* @param {string} [offerer]
|
|
1394
|
+
* @param {string} [id]
|
|
1395
|
+
* @param {GetRfqQuotesOrderByPropertyEnum} [orderByProperty]
|
|
1396
|
+
* @param {boolean} [orderByDescending]
|
|
1397
|
+
* @param {string} [paginationKey]
|
|
1398
|
+
* @param {number} [paginationLimit]
|
|
1399
|
+
* @param {boolean} [paginationCountTotal]
|
|
1400
|
+
* @param {*} [options] Override http request option.
|
|
1401
|
+
* @throws {RequiredError}
|
|
1402
|
+
*/
|
|
1403
|
+
async getRfqQuotes(chainId, quoteHash, requestId, offerer, id, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
1404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqQuotes(chainId, quoteHash, requestId, offerer, id, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
1405
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1406
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqQuotes']?.[localVarOperationServerIndex]?.url;
|
|
1407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1408
|
+
},
|
|
1248
1409
|
/**
|
|
1249
1410
|
*
|
|
1250
1411
|
* @param {string} [id]
|
|
@@ -1254,7 +1415,6 @@ const SealClientFp = function (configuration) {
|
|
|
1254
1415
|
* @param {string} [tokenOut]
|
|
1255
1416
|
* @param {number} [creationTimeAfter]
|
|
1256
1417
|
* @param {number} [requestDeadlineAfter]
|
|
1257
|
-
* @param {number} [buyInDeadlineAfter]
|
|
1258
1418
|
* @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
|
|
1259
1419
|
* @param {boolean} [orderByDescending]
|
|
1260
1420
|
* @param {string} [paginationKey]
|
|
@@ -1263,8 +1423,8 @@ const SealClientFp = function (configuration) {
|
|
|
1263
1423
|
* @param {*} [options] Override http request option.
|
|
1264
1424
|
* @throws {RequiredError}
|
|
1265
1425
|
*/
|
|
1266
|
-
async getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter,
|
|
1267
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter,
|
|
1426
|
+
async getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
1427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
1268
1428
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1269
1429
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqRequests']?.[localVarOperationServerIndex]?.url;
|
|
1270
1430
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1343,6 +1503,18 @@ const SealClientFp = function (configuration) {
|
|
|
1343
1503
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.issueGreenlight']?.[localVarOperationServerIndex]?.url;
|
|
1344
1504
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1345
1505
|
},
|
|
1506
|
+
/**
|
|
1507
|
+
*
|
|
1508
|
+
* @param {SealSubmitQuoteRequest} body
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
*/
|
|
1512
|
+
async submitQuote(body, options) {
|
|
1513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitQuote(body, options);
|
|
1514
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1515
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.submitQuote']?.[localVarOperationServerIndex]?.url;
|
|
1516
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1517
|
+
},
|
|
1346
1518
|
/**
|
|
1347
1519
|
*
|
|
1348
1520
|
* @param {SealSubmitRfqRequest} body
|
|
@@ -1501,6 +1673,24 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1501
1673
|
getPairs(requestParameters = {}, options) {
|
|
1502
1674
|
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));
|
|
1503
1675
|
},
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @param {SealClientGetRfqNonceRequest} requestParameters Request parameters.
|
|
1679
|
+
* @param {*} [options] Override http request option.
|
|
1680
|
+
* @throws {RequiredError}
|
|
1681
|
+
*/
|
|
1682
|
+
getRfqNonce(requestParameters, options) {
|
|
1683
|
+
return localVarFp.getRfqNonce(requestParameters.owner, requestParameters.chainId, options).then((request) => request(axios, basePath));
|
|
1684
|
+
},
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @param {SealClientGetRfqQuotesRequest} requestParameters Request parameters.
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
*/
|
|
1691
|
+
getRfqQuotes(requestParameters, options) {
|
|
1692
|
+
return localVarFp.getRfqQuotes(requestParameters.chainId, requestParameters.quoteHash, requestParameters.requestId, requestParameters.offerer, requestParameters.id, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
|
|
1693
|
+
},
|
|
1504
1694
|
/**
|
|
1505
1695
|
*
|
|
1506
1696
|
* @param {SealClientGetRfqRequestsRequest} requestParameters Request parameters.
|
|
@@ -1508,7 +1698,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1508
1698
|
* @throws {RequiredError}
|
|
1509
1699
|
*/
|
|
1510
1700
|
getRfqRequests(requestParameters = {}, options) {
|
|
1511
|
-
return localVarFp.getRfqRequests(requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.
|
|
1701
|
+
return localVarFp.getRfqRequests(requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
|
|
1512
1702
|
},
|
|
1513
1703
|
/**
|
|
1514
1704
|
*
|
|
@@ -1554,6 +1744,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1554
1744
|
issueGreenlight(requestParameters = {}, options) {
|
|
1555
1745
|
return localVarFp.issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(axios, basePath));
|
|
1556
1746
|
},
|
|
1747
|
+
/**
|
|
1748
|
+
*
|
|
1749
|
+
* @param {SealClientSubmitQuoteRequest} requestParameters Request parameters.
|
|
1750
|
+
* @param {*} [options] Override http request option.
|
|
1751
|
+
* @throws {RequiredError}
|
|
1752
|
+
*/
|
|
1753
|
+
submitQuote(requestParameters, options) {
|
|
1754
|
+
return localVarFp.submitQuote(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1755
|
+
},
|
|
1557
1756
|
/**
|
|
1558
1757
|
*
|
|
1559
1758
|
* @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
|
|
@@ -1720,6 +1919,26 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1720
1919
|
getPairs(requestParameters = {}, options) {
|
|
1721
1920
|
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));
|
|
1722
1921
|
}
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @param {SealClientGetRfqNonceRequest} requestParameters Request parameters.
|
|
1925
|
+
* @param {*} [options] Override http request option.
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
* @memberof SealClient
|
|
1928
|
+
*/
|
|
1929
|
+
getRfqNonce(requestParameters, options) {
|
|
1930
|
+
return (0, exports.SealClientFp)(this.configuration).getRfqNonce(requestParameters.owner, requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
*
|
|
1934
|
+
* @param {SealClientGetRfqQuotesRequest} requestParameters Request parameters.
|
|
1935
|
+
* @param {*} [options] Override http request option.
|
|
1936
|
+
* @throws {RequiredError}
|
|
1937
|
+
* @memberof SealClient
|
|
1938
|
+
*/
|
|
1939
|
+
getRfqQuotes(requestParameters, options) {
|
|
1940
|
+
return (0, exports.SealClientFp)(this.configuration).getRfqQuotes(requestParameters.chainId, requestParameters.quoteHash, requestParameters.requestId, requestParameters.offerer, requestParameters.id, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
|
|
1941
|
+
}
|
|
1723
1942
|
/**
|
|
1724
1943
|
*
|
|
1725
1944
|
* @param {SealClientGetRfqRequestsRequest} requestParameters Request parameters.
|
|
@@ -1728,7 +1947,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1728
1947
|
* @memberof SealClient
|
|
1729
1948
|
*/
|
|
1730
1949
|
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.
|
|
1950
|
+
return (0, exports.SealClientFp)(this.configuration).getRfqRequests(requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
|
|
1732
1951
|
}
|
|
1733
1952
|
/**
|
|
1734
1953
|
*
|
|
@@ -1779,6 +1998,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1779
1998
|
issueGreenlight(requestParameters = {}, options) {
|
|
1780
1999
|
return (0, exports.SealClientFp)(this.configuration).issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(this.axios, this.basePath));
|
|
1781
2000
|
}
|
|
2001
|
+
/**
|
|
2002
|
+
*
|
|
2003
|
+
* @param {SealClientSubmitQuoteRequest} requestParameters Request parameters.
|
|
2004
|
+
* @param {*} [options] Override http request option.
|
|
2005
|
+
* @throws {RequiredError}
|
|
2006
|
+
* @memberof SealClient
|
|
2007
|
+
*/
|
|
2008
|
+
submitQuote(requestParameters, options) {
|
|
2009
|
+
return (0, exports.SealClientFp)(this.configuration).submitQuote(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2010
|
+
}
|
|
1782
2011
|
/**
|
|
1783
2012
|
*
|
|
1784
2013
|
* @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
|
|
@@ -1880,6 +2109,17 @@ var GetPairsOrderByPropertyEnum;
|
|
|
1880
2109
|
(function (GetPairsOrderByPropertyEnum) {
|
|
1881
2110
|
GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
|
|
1882
2111
|
})(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
|
|
2112
|
+
/**
|
|
2113
|
+
* @export
|
|
2114
|
+
* @enum {string}
|
|
2115
|
+
*/
|
|
2116
|
+
var GetRfqQuotesOrderByPropertyEnum;
|
|
2117
|
+
(function (GetRfqQuotesOrderByPropertyEnum) {
|
|
2118
|
+
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertyUnspecified"] = "RfqQuoteOrderByProperty_UNSPECIFIED";
|
|
2119
|
+
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertyId"] = "RfqQuoteOrderByProperty_ID";
|
|
2120
|
+
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertySettlementTime"] = "RfqQuoteOrderByProperty_SETTLEMENT_TIME";
|
|
2121
|
+
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertyDeadline"] = "RfqQuoteOrderByProperty_DEADLINE";
|
|
2122
|
+
})(GetRfqQuotesOrderByPropertyEnum || (exports.GetRfqQuotesOrderByPropertyEnum = GetRfqQuotesOrderByPropertyEnum = {}));
|
|
1883
2123
|
/**
|
|
1884
2124
|
* @export
|
|
1885
2125
|
* @enum {string}
|
|
@@ -1890,7 +2130,6 @@ var GetRfqRequestsOrderByPropertyEnum;
|
|
|
1890
2130
|
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyId"] = "RfqRequestsOrderByProperty_ID";
|
|
1891
2131
|
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyCreationTime"] = "RfqRequestsOrderByProperty_CREATION_TIME";
|
|
1892
2132
|
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyRequestDeadline"] = "RfqRequestsOrderByProperty_REQUEST_DEADLINE";
|
|
1893
|
-
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyBuyInDeadline"] = "RfqRequestsOrderByProperty_BUY_IN_DEADLINE";
|
|
1894
2133
|
})(GetRfqRequestsOrderByPropertyEnum || (exports.GetRfqRequestsOrderByPropertyEnum = GetRfqRequestsOrderByPropertyEnum = {}));
|
|
1895
2134
|
/**
|
|
1896
2135
|
* @export
|
|
@@ -29,6 +29,8 @@ 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-nonce-response';
|
|
33
|
+
export * from './seal-get-rfq-quotes-response';
|
|
32
34
|
export * from './seal-get-rfq-requests-response';
|
|
33
35
|
export * from './seal-get-seal-contract-params-response';
|
|
34
36
|
export * from './seal-get-sync-state-response';
|
|
@@ -52,9 +54,14 @@ export * from './seal-pairs-order-by';
|
|
|
52
54
|
export * from './seal-pairs-order-by-property';
|
|
53
55
|
export * from './seal-reservation-request';
|
|
54
56
|
export * from './seal-reservation-settlement-request';
|
|
57
|
+
export * from './seal-rfq-contract-config';
|
|
58
|
+
export * from './seal-rfq-contract-params';
|
|
59
|
+
export * from './seal-rfq-quote';
|
|
55
60
|
export * from './seal-rfq-request';
|
|
56
61
|
export * from './seal-seal-contract-config';
|
|
57
62
|
export * from './seal-seal-contract-params';
|
|
63
|
+
export * from './seal-submit-quote-request';
|
|
64
|
+
export * from './seal-submit-quote-response';
|
|
58
65
|
export * from './seal-submit-rfq-request';
|
|
59
66
|
export * from './seal-submit-rfq-response';
|
|
60
67
|
export * from './seal-token';
|
|
@@ -65,6 +72,8 @@ export * from './seal-transfer-permission';
|
|
|
65
72
|
export * from './types-bool';
|
|
66
73
|
export * from './types-order-activity-type';
|
|
67
74
|
export * from './types-pagination';
|
|
75
|
+
export * from './types-rfq-quote-order-by';
|
|
76
|
+
export * from './types-rfq-quote-order-by-property';
|
|
68
77
|
export * from './types-rfq-requests-order-by';
|
|
69
78
|
export * from './types-rfq-requests-order-by-property';
|
|
70
79
|
export * from './types-timestamp';
|
|
@@ -45,6 +45,8 @@ __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-nonce-response"), exports);
|
|
49
|
+
__exportStar(require("./seal-get-rfq-quotes-response"), exports);
|
|
48
50
|
__exportStar(require("./seal-get-rfq-requests-response"), exports);
|
|
49
51
|
__exportStar(require("./seal-get-seal-contract-params-response"), exports);
|
|
50
52
|
__exportStar(require("./seal-get-sync-state-response"), exports);
|
|
@@ -68,9 +70,14 @@ __exportStar(require("./seal-pairs-order-by"), exports);
|
|
|
68
70
|
__exportStar(require("./seal-pairs-order-by-property"), exports);
|
|
69
71
|
__exportStar(require("./seal-reservation-request"), exports);
|
|
70
72
|
__exportStar(require("./seal-reservation-settlement-request"), exports);
|
|
73
|
+
__exportStar(require("./seal-rfq-contract-config"), exports);
|
|
74
|
+
__exportStar(require("./seal-rfq-contract-params"), exports);
|
|
75
|
+
__exportStar(require("./seal-rfq-quote"), exports);
|
|
71
76
|
__exportStar(require("./seal-rfq-request"), exports);
|
|
72
77
|
__exportStar(require("./seal-seal-contract-config"), exports);
|
|
73
78
|
__exportStar(require("./seal-seal-contract-params"), exports);
|
|
79
|
+
__exportStar(require("./seal-submit-quote-request"), exports);
|
|
80
|
+
__exportStar(require("./seal-submit-quote-response"), exports);
|
|
74
81
|
__exportStar(require("./seal-submit-rfq-request"), exports);
|
|
75
82
|
__exportStar(require("./seal-submit-rfq-response"), exports);
|
|
76
83
|
__exportStar(require("./seal-token"), exports);
|
|
@@ -81,6 +88,8 @@ __exportStar(require("./seal-transfer-permission"), exports);
|
|
|
81
88
|
__exportStar(require("./types-bool"), exports);
|
|
82
89
|
__exportStar(require("./types-order-activity-type"), exports);
|
|
83
90
|
__exportStar(require("./types-pagination"), exports);
|
|
91
|
+
__exportStar(require("./types-rfq-quote-order-by"), exports);
|
|
92
|
+
__exportStar(require("./types-rfq-quote-order-by-property"), exports);
|
|
84
93
|
__exportStar(require("./types-rfq-requests-order-by"), exports);
|
|
85
94
|
__exportStar(require("./types-rfq-requests-order-by-property"), exports);
|
|
86
95
|
__exportStar(require("./types-timestamp"), exports);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SealContractConfig } from './seal-contract-config';
|
|
13
|
+
import type { SealRfqContractConfig } from './seal-rfq-contract-config';
|
|
13
14
|
import type { SealSealContractConfig } from './seal-seal-contract-config';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -29,4 +30,10 @@ export interface SealChainConfig {
|
|
|
29
30
|
* @memberof SealChainConfig
|
|
30
31
|
*/
|
|
31
32
|
'permit2Contract'?: SealContractConfig;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {SealRfqContractConfig}
|
|
36
|
+
* @memberof SealChainConfig
|
|
37
|
+
*/
|
|
38
|
+
'rfqContract'?: SealRfqContractConfig;
|
|
32
39
|
}
|
|
@@ -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 SealGetRfqNonceResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SealGetRfqNonceResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealGetRfqNonceResponse
|
|
22
|
+
*/
|
|
23
|
+
'nonce'?: 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,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 { SealRfqQuote } from './seal-rfq-quote';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealGetRfqQuotesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SealGetRfqQuotesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SealRfqQuote>}
|
|
22
|
+
* @memberof SealGetRfqQuotesResponse
|
|
23
|
+
*/
|
|
24
|
+
'quotes'?: Array<SealRfqQuote>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SealGetRfqQuotesResponse
|
|
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 });
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { SealContractConfig } from './seal-contract-config';
|
|
13
|
+
import type { SealRfqContractParams } from './seal-rfq-contract-params';
|
|
14
|
+
/**
|
|
15
|
+
* RfqContractConfig represents the configuration for the RFQ smart contract.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SealRfqContractConfig
|
|
18
|
+
*/
|
|
19
|
+
export interface SealRfqContractConfig {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {SealContractConfig}
|
|
23
|
+
* @memberof SealRfqContractConfig
|
|
24
|
+
*/
|
|
25
|
+
'contractConfig'?: SealContractConfig;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SealRfqContractParams}
|
|
29
|
+
* @memberof SealRfqContractConfig
|
|
30
|
+
*/
|
|
31
|
+
'params'?: SealRfqContractParams;
|
|
32
|
+
}
|
|
@@ -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 });
|