@seal-protocol/backendjs 0.0.41 → 0.0.43
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/api/seal-client.d.ts +250 -30
- package/lib/api/seal-client.js +272 -28
- package/lib/model/index.d.ts +14 -8
- package/lib/model/index.js +14 -8
- package/lib/model/seal-chain-config.d.ts +37 -0
- package/lib/model/seal-chain-config.js +15 -0
- package/lib/model/seal-config.d.ts +5 -5
- package/lib/model/seal-contract-config.d.ts +31 -0
- package/lib/model/seal-contract-config.js +15 -0
- package/lib/model/seal-create-order-request.d.ts +114 -0
- package/lib/model/seal-create-order-request.js +15 -0
- package/lib/model/seal-create-order-response.d.ts +24 -0
- package/lib/model/seal-create-order-response.js +15 -0
- package/lib/model/seal-create-token-permit-approval-request.d.ts +79 -0
- package/lib/model/seal-create-token-permit-approval-request.js +15 -0
- package/lib/model/seal-domain-separator-config.d.ts +30 -0
- package/lib/model/seal-domain-separator-config.js +15 -0
- package/lib/model/seal-get-permit-approvals-response.d.ts +31 -0
- package/lib/model/seal-get-permit-approvals-response.js +15 -0
- package/lib/model/seal-get-token-permit-approvals-response.d.ts +31 -0
- package/lib/model/seal-get-token-permit-approvals-response.js +15 -0
- package/lib/model/seal-greenlight.d.ts +67 -0
- package/lib/model/seal-greenlight.js +15 -0
- package/lib/model/seal-issue-greenlight-response.d.ts +25 -0
- package/lib/model/seal-issue-greenlight-response.js +15 -0
- package/lib/model/seal-order.d.ts +17 -5
- package/lib/model/seal-orders-order-by-property.d.ts +13 -13
- package/lib/model/seal-orders-order-by-property.js +13 -13
- package/lib/model/seal-token-permit-approval.d.ts +80 -0
- package/lib/model/seal-token-permit-approval.js +15 -0
- package/lib/model/types-pagination.d.ts +36 -0
- package/lib/model/types-pagination.js +15 -0
- package/lib/model/types-token-permit-approvals-order-by-property.d.ts +23 -0
- package/lib/model/types-token-permit-approvals-order-by-property.js +29 -0
- package/lib/model/types-token-permit-approvals-order-by.d.ts +31 -0
- package/lib/model/types-token-permit-approvals-order-by.js +15 -0
- package/lib/model/types-transfer-permit-type.d.ts +21 -0
- package/lib/model/types-transfer-permit-type.js +27 -0
- package/package.json +1 -1
package/lib/api/seal-client.js
CHANGED
|
@@ -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.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetTokensOrderByPropertyEnum = exports.GetTokenPermitApprovalsOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = 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
|
|
@@ -84,14 +84,43 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
84
84
|
},
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
|
-
* @param {
|
|
87
|
+
* @param {SealCreateOrderRequest} body
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
createOrder: async (body, options = {}) => {
|
|
92
92
|
// verify required parameter 'body' is not null or undefined
|
|
93
|
-
(0, common_1.assertParamExists)('
|
|
94
|
-
const localVarPath = `/seal/order/
|
|
93
|
+
(0, common_1.assertParamExists)('createOrder', 'body', body);
|
|
94
|
+
const localVarPath = `/seal/order/create_order`;
|
|
95
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
96
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
97
|
+
let baseOptions;
|
|
98
|
+
if (configuration) {
|
|
99
|
+
baseOptions = configuration.baseOptions;
|
|
100
|
+
}
|
|
101
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
102
|
+
const localVarHeaderParameter = {};
|
|
103
|
+
const localVarQueryParameter = {};
|
|
104
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
105
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
108
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
109
|
+
return {
|
|
110
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
111
|
+
options: localVarRequestOptions,
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {SealCreateTokenPermitApprovalRequest} body
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
createTokenPermitApproval: async (body, options = {}) => {
|
|
121
|
+
// verify required parameter 'body' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('createTokenPermitApproval', 'body', body);
|
|
123
|
+
const localVarPath = `/seal/create_token_permit_approval`;
|
|
95
124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
96
125
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
97
126
|
let baseOptions;
|
|
@@ -463,6 +492,66 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
463
492
|
options: localVarRequestOptions,
|
|
464
493
|
};
|
|
465
494
|
},
|
|
495
|
+
/**
|
|
496
|
+
*
|
|
497
|
+
* @param {string} chainId
|
|
498
|
+
* @param {string} owner hex representation of owner address
|
|
499
|
+
* @param {string} [token] hex representation of token address
|
|
500
|
+
* @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
|
|
501
|
+
* @param {boolean} [orderByDescending]
|
|
502
|
+
* @param {string} [paginationKey]
|
|
503
|
+
* @param {number} [paginationLimit]
|
|
504
|
+
* @param {boolean} [paginationCountTotal]
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
getTokenPermitApprovals: async (chainId, owner, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
509
|
+
// verify required parameter 'chainId' is not null or undefined
|
|
510
|
+
(0, common_1.assertParamExists)('getTokenPermitApprovals', 'chainId', chainId);
|
|
511
|
+
// verify required parameter 'owner' is not null or undefined
|
|
512
|
+
(0, common_1.assertParamExists)('getTokenPermitApprovals', 'owner', owner);
|
|
513
|
+
const localVarPath = `/seal/token_permit_approvals`;
|
|
514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
516
|
+
let baseOptions;
|
|
517
|
+
if (configuration) {
|
|
518
|
+
baseOptions = configuration.baseOptions;
|
|
519
|
+
}
|
|
520
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
521
|
+
const localVarHeaderParameter = {};
|
|
522
|
+
const localVarQueryParameter = {};
|
|
523
|
+
if (chainId !== undefined) {
|
|
524
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
525
|
+
}
|
|
526
|
+
if (owner !== undefined) {
|
|
527
|
+
localVarQueryParameter['owner'] = owner;
|
|
528
|
+
}
|
|
529
|
+
if (token !== undefined) {
|
|
530
|
+
localVarQueryParameter['token'] = token;
|
|
531
|
+
}
|
|
532
|
+
if (orderByProperty !== undefined) {
|
|
533
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
534
|
+
}
|
|
535
|
+
if (orderByDescending !== undefined) {
|
|
536
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
537
|
+
}
|
|
538
|
+
if (paginationKey !== undefined) {
|
|
539
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
540
|
+
}
|
|
541
|
+
if (paginationLimit !== undefined) {
|
|
542
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
543
|
+
}
|
|
544
|
+
if (paginationCountTotal !== undefined) {
|
|
545
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
546
|
+
}
|
|
547
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
548
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
549
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
550
|
+
return {
|
|
551
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
552
|
+
options: localVarRequestOptions,
|
|
553
|
+
};
|
|
554
|
+
},
|
|
466
555
|
/**
|
|
467
556
|
*
|
|
468
557
|
* @param {string} [paginationKey]
|
|
@@ -535,6 +624,46 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
535
624
|
options: localVarRequestOptions,
|
|
536
625
|
};
|
|
537
626
|
},
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @param {string} [chainId] uint256
|
|
630
|
+
* @param {string} [executor]
|
|
631
|
+
* @param {string} [request] json
|
|
632
|
+
* @param {string} [requestHash] hex hash for double checking the request, if was empty the checking is bypassed
|
|
633
|
+
* @param {*} [options] Override http request option.
|
|
634
|
+
* @throws {RequiredError}
|
|
635
|
+
*/
|
|
636
|
+
issueGreenlight: async (chainId, executor, request, requestHash, options = {}) => {
|
|
637
|
+
const localVarPath = `/seal/issue_greenlight`;
|
|
638
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
639
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
640
|
+
let baseOptions;
|
|
641
|
+
if (configuration) {
|
|
642
|
+
baseOptions = configuration.baseOptions;
|
|
643
|
+
}
|
|
644
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
645
|
+
const localVarHeaderParameter = {};
|
|
646
|
+
const localVarQueryParameter = {};
|
|
647
|
+
if (chainId !== undefined) {
|
|
648
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
649
|
+
}
|
|
650
|
+
if (executor !== undefined) {
|
|
651
|
+
localVarQueryParameter['executor'] = executor;
|
|
652
|
+
}
|
|
653
|
+
if (request !== undefined) {
|
|
654
|
+
localVarQueryParameter['request'] = request;
|
|
655
|
+
}
|
|
656
|
+
if (requestHash !== undefined) {
|
|
657
|
+
localVarQueryParameter['requestHash'] = requestHash;
|
|
658
|
+
}
|
|
659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
661
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
662
|
+
return {
|
|
663
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
664
|
+
options: localVarRequestOptions,
|
|
665
|
+
};
|
|
666
|
+
},
|
|
538
667
|
/**
|
|
539
668
|
*
|
|
540
669
|
* @param {*} [options] Override http request option.
|
|
@@ -594,14 +723,26 @@ const SealClientFp = function (configuration) {
|
|
|
594
723
|
},
|
|
595
724
|
/**
|
|
596
725
|
*
|
|
597
|
-
* @param {
|
|
726
|
+
* @param {SealCreateOrderRequest} body
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
async createOrder(body, options) {
|
|
731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(body, options);
|
|
732
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
733
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
734
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
|
+
},
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @param {SealCreateTokenPermitApprovalRequest} body
|
|
598
739
|
* @param {*} [options] Override http request option.
|
|
599
740
|
* @throws {RequiredError}
|
|
600
741
|
*/
|
|
601
|
-
async
|
|
602
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
742
|
+
async createTokenPermitApproval(body, options) {
|
|
743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTokenPermitApproval(body, options);
|
|
603
744
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
604
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.
|
|
745
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createTokenPermitApproval']?.[localVarOperationServerIndex]?.url;
|
|
605
746
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
606
747
|
},
|
|
607
748
|
/**
|
|
@@ -721,6 +862,25 @@ const SealClientFp = function (configuration) {
|
|
|
721
862
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
|
|
722
863
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
723
864
|
},
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @param {string} chainId
|
|
868
|
+
* @param {string} owner hex representation of owner address
|
|
869
|
+
* @param {string} [token] hex representation of token address
|
|
870
|
+
* @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
|
|
871
|
+
* @param {boolean} [orderByDescending]
|
|
872
|
+
* @param {string} [paginationKey]
|
|
873
|
+
* @param {number} [paginationLimit]
|
|
874
|
+
* @param {boolean} [paginationCountTotal]
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
async getTokenPermitApprovals(chainId, owner, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenPermitApprovals(chainId, owner, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
880
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
881
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getTokenPermitApprovals']?.[localVarOperationServerIndex]?.url;
|
|
882
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
883
|
+
},
|
|
724
884
|
/**
|
|
725
885
|
*
|
|
726
886
|
* @param {string} [paginationKey]
|
|
@@ -749,6 +909,21 @@ const SealClientFp = function (configuration) {
|
|
|
749
909
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.healthCheck']?.[localVarOperationServerIndex]?.url;
|
|
750
910
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
751
911
|
},
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* @param {string} [chainId] uint256
|
|
915
|
+
* @param {string} [executor]
|
|
916
|
+
* @param {string} [request] json
|
|
917
|
+
* @param {string} [requestHash] hex hash for double checking the request, if was empty the checking is bypassed
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
async issueGreenlight(chainId, executor, request, requestHash, options) {
|
|
922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.issueGreenlight(chainId, executor, request, requestHash, options);
|
|
923
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
924
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.issueGreenlight']?.[localVarOperationServerIndex]?.url;
|
|
925
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
926
|
+
},
|
|
752
927
|
/**
|
|
753
928
|
*
|
|
754
929
|
* @param {*} [options] Override http request option.
|
|
@@ -789,12 +964,21 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
789
964
|
},
|
|
790
965
|
/**
|
|
791
966
|
*
|
|
792
|
-
* @param {
|
|
967
|
+
* @param {SealClientCreateOrderRequest} requestParameters Request parameters.
|
|
793
968
|
* @param {*} [options] Override http request option.
|
|
794
969
|
* @throws {RequiredError}
|
|
795
970
|
*/
|
|
796
|
-
|
|
797
|
-
return localVarFp.
|
|
971
|
+
createOrder(requestParameters, options) {
|
|
972
|
+
return localVarFp.createOrder(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
973
|
+
},
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @param {SealClientCreateTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
*/
|
|
980
|
+
createTokenPermitApproval(requestParameters, options) {
|
|
981
|
+
return localVarFp.createTokenPermitApproval(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
798
982
|
},
|
|
799
983
|
/**
|
|
800
984
|
*
|
|
@@ -850,6 +1034,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
850
1034
|
getPairs(requestParameters = {}, options) {
|
|
851
1035
|
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));
|
|
852
1036
|
},
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @param {SealClientGetTokenPermitApprovalsRequest} requestParameters Request parameters.
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
getTokenPermitApprovals(requestParameters, options) {
|
|
1044
|
+
return localVarFp.getTokenPermitApprovals(requestParameters.chainId, requestParameters.owner, requestParameters.token, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
|
|
1045
|
+
},
|
|
853
1046
|
/**
|
|
854
1047
|
*
|
|
855
1048
|
* @param {SealClientGetTokensRequest} requestParameters Request parameters.
|
|
@@ -867,6 +1060,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
867
1060
|
healthCheck(options) {
|
|
868
1061
|
return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
|
|
869
1062
|
},
|
|
1063
|
+
/**
|
|
1064
|
+
*
|
|
1065
|
+
* @param {SealClientIssueGreenlightRequest} requestParameters Request parameters.
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
*/
|
|
1069
|
+
issueGreenlight(requestParameters = {}, options) {
|
|
1070
|
+
return localVarFp.issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(axios, basePath));
|
|
1071
|
+
},
|
|
870
1072
|
/**
|
|
871
1073
|
*
|
|
872
1074
|
* @param {*} [options] Override http request option.
|
|
@@ -906,13 +1108,23 @@ class SealClient extends base_1.BaseAPI {
|
|
|
906
1108
|
}
|
|
907
1109
|
/**
|
|
908
1110
|
*
|
|
909
|
-
* @param {
|
|
1111
|
+
* @param {SealClientCreateOrderRequest} requestParameters Request parameters.
|
|
1112
|
+
* @param {*} [options] Override http request option.
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
* @memberof SealClient
|
|
1115
|
+
*/
|
|
1116
|
+
createOrder(requestParameters, options) {
|
|
1117
|
+
return (0, exports.SealClientFp)(this.configuration).createOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @param {SealClientCreateTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
910
1122
|
* @param {*} [options] Override http request option.
|
|
911
1123
|
* @throws {RequiredError}
|
|
912
1124
|
* @memberof SealClient
|
|
913
1125
|
*/
|
|
914
|
-
|
|
915
|
-
return (0, exports.SealClientFp)(this.configuration).
|
|
1126
|
+
createTokenPermitApproval(requestParameters, options) {
|
|
1127
|
+
return (0, exports.SealClientFp)(this.configuration).createTokenPermitApproval(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
916
1128
|
}
|
|
917
1129
|
/**
|
|
918
1130
|
*
|
|
@@ -974,6 +1186,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
974
1186
|
getPairs(requestParameters = {}, options) {
|
|
975
1187
|
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));
|
|
976
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @param {SealClientGetTokenPermitApprovalsRequest} requestParameters Request parameters.
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
* @memberof SealClient
|
|
1195
|
+
*/
|
|
1196
|
+
getTokenPermitApprovals(requestParameters, options) {
|
|
1197
|
+
return (0, exports.SealClientFp)(this.configuration).getTokenPermitApprovals(requestParameters.chainId, requestParameters.owner, requestParameters.token, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
|
|
1198
|
+
}
|
|
977
1199
|
/**
|
|
978
1200
|
*
|
|
979
1201
|
* @param {SealClientGetTokensRequest} requestParameters Request parameters.
|
|
@@ -993,6 +1215,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
993
1215
|
healthCheck(options) {
|
|
994
1216
|
return (0, exports.SealClientFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
995
1217
|
}
|
|
1218
|
+
/**
|
|
1219
|
+
*
|
|
1220
|
+
* @param {SealClientIssueGreenlightRequest} requestParameters Request parameters.
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
* @memberof SealClient
|
|
1224
|
+
*/
|
|
1225
|
+
issueGreenlight(requestParameters = {}, options) {
|
|
1226
|
+
return (0, exports.SealClientFp)(this.configuration).issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(this.axios, this.basePath));
|
|
1227
|
+
}
|
|
996
1228
|
/**
|
|
997
1229
|
*
|
|
998
1230
|
* @param {*} [options] Override http request option.
|
|
@@ -1034,19 +1266,19 @@ var GetOrderReservationsOrderByPropertyEnum;
|
|
|
1034
1266
|
*/
|
|
1035
1267
|
var GetOrdersOrderByPropertyEnum;
|
|
1036
1268
|
(function (GetOrdersOrderByPropertyEnum) {
|
|
1037
|
-
GetOrdersOrderByPropertyEnum["
|
|
1038
|
-
GetOrdersOrderByPropertyEnum["
|
|
1039
|
-
GetOrdersOrderByPropertyEnum["
|
|
1040
|
-
GetOrdersOrderByPropertyEnum["
|
|
1041
|
-
GetOrdersOrderByPropertyEnum["
|
|
1042
|
-
GetOrdersOrderByPropertyEnum["
|
|
1043
|
-
GetOrdersOrderByPropertyEnum["
|
|
1044
|
-
GetOrdersOrderByPropertyEnum["
|
|
1045
|
-
GetOrdersOrderByPropertyEnum["
|
|
1046
|
-
GetOrdersOrderByPropertyEnum["
|
|
1047
|
-
GetOrdersOrderByPropertyEnum["
|
|
1048
|
-
GetOrdersOrderByPropertyEnum["
|
|
1049
|
-
GetOrdersOrderByPropertyEnum["
|
|
1269
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyUnspecified"] = "OrdersOrderByProperty_UNSPECIFIED";
|
|
1270
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyOwner"] = "OrdersOrderByProperty_OWNER";
|
|
1271
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyTokenIn"] = "OrdersOrderByProperty_TOKEN_IN";
|
|
1272
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyTokenOut"] = "OrdersOrderByProperty_TOKEN_OUT";
|
|
1273
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyAmountIn"] = "OrdersOrderByProperty_AMOUNT_IN";
|
|
1274
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyPrice"] = "OrdersOrderByProperty_PRICE";
|
|
1275
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyDeadline"] = "OrdersOrderByProperty_DEADLINE";
|
|
1276
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyChainId"] = "OrdersOrderByProperty_CHAIN_ID";
|
|
1277
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyDepositToken"] = "OrdersOrderByProperty_DEPOSIT_TOKEN";
|
|
1278
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyMinReservationDepositAmount"] = "OrdersOrderByProperty_MIN_RESERVATION_DEPOSIT_AMOUNT";
|
|
1279
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyRemainingAmount"] = "OrdersOrderByProperty_REMAINING_AMOUNT";
|
|
1280
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyReservedAmount"] = "OrdersOrderByProperty_RESERVED_AMOUNT";
|
|
1281
|
+
GetOrdersOrderByPropertyEnum["OrdersOrderByPropertyFilledAmount"] = "OrdersOrderByProperty_FILLED_AMOUNT";
|
|
1050
1282
|
})(GetOrdersOrderByPropertyEnum || (exports.GetOrdersOrderByPropertyEnum = GetOrdersOrderByPropertyEnum = {}));
|
|
1051
1283
|
/**
|
|
1052
1284
|
* @export
|
|
@@ -1056,6 +1288,18 @@ var GetPairsOrderByPropertyEnum;
|
|
|
1056
1288
|
(function (GetPairsOrderByPropertyEnum) {
|
|
1057
1289
|
GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
|
|
1058
1290
|
})(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
|
|
1291
|
+
/**
|
|
1292
|
+
* @export
|
|
1293
|
+
* @enum {string}
|
|
1294
|
+
*/
|
|
1295
|
+
var GetTokenPermitApprovalsOrderByPropertyEnum;
|
|
1296
|
+
(function (GetTokenPermitApprovalsOrderByPropertyEnum) {
|
|
1297
|
+
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyUnspecified"] = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED";
|
|
1298
|
+
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyToken"] = "TokenPermitApprovalsOrderByProperty_TOKEN";
|
|
1299
|
+
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyAmountIn"] = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN";
|
|
1300
|
+
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertySigDeadline"] = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE";
|
|
1301
|
+
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyChainId"] = "TokenPermitApprovalsOrderByProperty_CHAIN_ID";
|
|
1302
|
+
})(GetTokenPermitApprovalsOrderByPropertyEnum || (exports.GetTokenPermitApprovalsOrderByPropertyEnum = GetTokenPermitApprovalsOrderByPropertyEnum = {}));
|
|
1059
1303
|
/**
|
|
1060
1304
|
* @export
|
|
1061
1305
|
* @enum {string}
|
package/lib/model/index.d.ts
CHANGED
|
@@ -2,15 +2,18 @@ export * from './protobuf-any';
|
|
|
2
2
|
export * from './rpc-status';
|
|
3
3
|
export * from './seal-cancel-order-request';
|
|
4
4
|
export * from './seal-chain';
|
|
5
|
+
export * from './seal-chain-config';
|
|
5
6
|
export * from './seal-chain-health';
|
|
6
7
|
export * from './seal-chain-sync-state';
|
|
7
8
|
export * from './seal-chains-order-by';
|
|
8
9
|
export * from './seal-chains-order-by-property';
|
|
9
10
|
export * from './seal-config';
|
|
10
|
-
export * from './seal-
|
|
11
|
-
export * from './seal-create-order-
|
|
11
|
+
export * from './seal-contract-config';
|
|
12
|
+
export * from './seal-create-order-request';
|
|
13
|
+
export * from './seal-create-order-response';
|
|
14
|
+
export * from './seal-create-token-permit-approval-request';
|
|
12
15
|
export * from './seal-database-config';
|
|
13
|
-
export * from './seal-
|
|
16
|
+
export * from './seal-domain-separator-config';
|
|
14
17
|
export * from './seal-get-chains-response';
|
|
15
18
|
export * from './seal-get-config-response';
|
|
16
19
|
export * from './seal-get-health-check-response';
|
|
@@ -20,25 +23,28 @@ export * from './seal-get-orders-response';
|
|
|
20
23
|
export * from './seal-get-pair-price-response';
|
|
21
24
|
export * from './seal-get-pairs-response';
|
|
22
25
|
export * from './seal-get-sync-state-response';
|
|
26
|
+
export * from './seal-get-token-permit-approvals-response';
|
|
23
27
|
export * from './seal-get-tokens-response';
|
|
28
|
+
export * from './seal-greenlight';
|
|
29
|
+
export * from './seal-issue-greenlight-response';
|
|
24
30
|
export * from './seal-logger-config';
|
|
25
31
|
export * from './seal-order';
|
|
26
32
|
export * from './seal-order-config';
|
|
27
|
-
export * from './seal-order-intent';
|
|
28
33
|
export * from './seal-order-reservation';
|
|
29
34
|
export * from './seal-order-reservations-order-by';
|
|
30
35
|
export * from './seal-order-reservations-order-by-property';
|
|
31
36
|
export * from './seal-orders-order-by';
|
|
32
37
|
export * from './seal-orders-order-by-property';
|
|
33
|
-
export * from './seal-pagination';
|
|
34
38
|
export * from './seal-pair';
|
|
35
39
|
export * from './seal-pairs-order-by';
|
|
36
40
|
export * from './seal-pairs-order-by-property';
|
|
37
|
-
export * from './seal-signature-verification-config';
|
|
38
41
|
export * from './seal-token';
|
|
42
|
+
export * from './seal-token-permit-approval';
|
|
39
43
|
export * from './seal-tokens-order-by';
|
|
40
44
|
export * from './seal-tokens-order-by-property';
|
|
41
|
-
export * from './seal-transfer-permission';
|
|
42
45
|
export * from './types-bool';
|
|
46
|
+
export * from './types-pagination';
|
|
43
47
|
export * from './types-timestamp';
|
|
44
|
-
export * from './types-
|
|
48
|
+
export * from './types-token-permit-approvals-order-by';
|
|
49
|
+
export * from './types-token-permit-approvals-order-by-property';
|
|
50
|
+
export * from './types-transfer-permit-type';
|
package/lib/model/index.js
CHANGED
|
@@ -18,15 +18,18 @@ __exportStar(require("./protobuf-any"), exports);
|
|
|
18
18
|
__exportStar(require("./rpc-status"), exports);
|
|
19
19
|
__exportStar(require("./seal-cancel-order-request"), exports);
|
|
20
20
|
__exportStar(require("./seal-chain"), exports);
|
|
21
|
+
__exportStar(require("./seal-chain-config"), exports);
|
|
21
22
|
__exportStar(require("./seal-chain-health"), exports);
|
|
22
23
|
__exportStar(require("./seal-chain-sync-state"), exports);
|
|
23
24
|
__exportStar(require("./seal-chains-order-by"), exports);
|
|
24
25
|
__exportStar(require("./seal-chains-order-by-property"), exports);
|
|
25
26
|
__exportStar(require("./seal-config"), exports);
|
|
26
|
-
__exportStar(require("./seal-
|
|
27
|
-
__exportStar(require("./seal-create-order-
|
|
27
|
+
__exportStar(require("./seal-contract-config"), exports);
|
|
28
|
+
__exportStar(require("./seal-create-order-request"), exports);
|
|
29
|
+
__exportStar(require("./seal-create-order-response"), exports);
|
|
30
|
+
__exportStar(require("./seal-create-token-permit-approval-request"), exports);
|
|
28
31
|
__exportStar(require("./seal-database-config"), exports);
|
|
29
|
-
__exportStar(require("./seal-
|
|
32
|
+
__exportStar(require("./seal-domain-separator-config"), exports);
|
|
30
33
|
__exportStar(require("./seal-get-chains-response"), exports);
|
|
31
34
|
__exportStar(require("./seal-get-config-response"), exports);
|
|
32
35
|
__exportStar(require("./seal-get-health-check-response"), exports);
|
|
@@ -36,25 +39,28 @@ __exportStar(require("./seal-get-orders-response"), exports);
|
|
|
36
39
|
__exportStar(require("./seal-get-pair-price-response"), exports);
|
|
37
40
|
__exportStar(require("./seal-get-pairs-response"), exports);
|
|
38
41
|
__exportStar(require("./seal-get-sync-state-response"), exports);
|
|
42
|
+
__exportStar(require("./seal-get-token-permit-approvals-response"), exports);
|
|
39
43
|
__exportStar(require("./seal-get-tokens-response"), exports);
|
|
44
|
+
__exportStar(require("./seal-greenlight"), exports);
|
|
45
|
+
__exportStar(require("./seal-issue-greenlight-response"), exports);
|
|
40
46
|
__exportStar(require("./seal-logger-config"), exports);
|
|
41
47
|
__exportStar(require("./seal-order"), exports);
|
|
42
48
|
__exportStar(require("./seal-order-config"), exports);
|
|
43
|
-
__exportStar(require("./seal-order-intent"), exports);
|
|
44
49
|
__exportStar(require("./seal-order-reservation"), exports);
|
|
45
50
|
__exportStar(require("./seal-order-reservations-order-by"), exports);
|
|
46
51
|
__exportStar(require("./seal-order-reservations-order-by-property"), exports);
|
|
47
52
|
__exportStar(require("./seal-orders-order-by"), exports);
|
|
48
53
|
__exportStar(require("./seal-orders-order-by-property"), exports);
|
|
49
|
-
__exportStar(require("./seal-pagination"), exports);
|
|
50
54
|
__exportStar(require("./seal-pair"), exports);
|
|
51
55
|
__exportStar(require("./seal-pairs-order-by"), exports);
|
|
52
56
|
__exportStar(require("./seal-pairs-order-by-property"), exports);
|
|
53
|
-
__exportStar(require("./seal-signature-verification-config"), exports);
|
|
54
57
|
__exportStar(require("./seal-token"), exports);
|
|
58
|
+
__exportStar(require("./seal-token-permit-approval"), exports);
|
|
55
59
|
__exportStar(require("./seal-tokens-order-by"), exports);
|
|
56
60
|
__exportStar(require("./seal-tokens-order-by-property"), exports);
|
|
57
|
-
__exportStar(require("./seal-transfer-permission"), exports);
|
|
58
61
|
__exportStar(require("./types-bool"), exports);
|
|
62
|
+
__exportStar(require("./types-pagination"), exports);
|
|
59
63
|
__exportStar(require("./types-timestamp"), exports);
|
|
60
|
-
__exportStar(require("./types-
|
|
64
|
+
__exportStar(require("./types-token-permit-approvals-order-by"), exports);
|
|
65
|
+
__exportStar(require("./types-token-permit-approvals-order-by-property"), exports);
|
|
66
|
+
__exportStar(require("./types-transfer-permit-type"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealChainConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface SealChainConfig {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SealChainConfig
|
|
23
|
+
*/
|
|
24
|
+
'chainId'?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SealContractConfig}
|
|
28
|
+
* @memberof SealChainConfig
|
|
29
|
+
*/
|
|
30
|
+
'sealContract'?: SealContractConfig;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SealContractConfig}
|
|
34
|
+
* @memberof SealChainConfig
|
|
35
|
+
*/
|
|
36
|
+
'permit2Contract'?: SealContractConfig;
|
|
37
|
+
}
|
|
@@ -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 });
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SealChainConfig } from './seal-chain-config';
|
|
12
13
|
import type { SealDatabaseConfig } from './seal-database-config';
|
|
13
14
|
import type { SealLoggerConfig } from './seal-logger-config';
|
|
14
15
|
import type { SealOrderConfig } from './seal-order-config';
|
|
15
|
-
import type { SealSignatureVerificationConfig } from './seal-signature-verification-config';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -33,14 +33,14 @@ export interface SealConfig {
|
|
|
33
33
|
'database'?: SealDatabaseConfig;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {SealOrderConfig}
|
|
37
37
|
* @memberof SealConfig
|
|
38
38
|
*/
|
|
39
|
-
'
|
|
39
|
+
'order'?: SealOrderConfig;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {SealChainConfig}
|
|
43
43
|
* @memberof SealConfig
|
|
44
44
|
*/
|
|
45
|
-
'
|
|
45
|
+
'ethereum'?: SealChainConfig;
|
|
46
46
|
}
|
|
@@ -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 { SealDomainSeparatorConfig } from './seal-domain-separator-config';
|
|
13
|
+
/**
|
|
14
|
+
* ContractConfig represents the configuration for a smart contract.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SealContractConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface SealContractConfig {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SealContractConfig
|
|
23
|
+
*/
|
|
24
|
+
'address'?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SealDomainSeparatorConfig}
|
|
28
|
+
* @memberof SealContractConfig
|
|
29
|
+
*/
|
|
30
|
+
'domainSeparator'?: SealDomainSeparatorConfig;
|
|
31
|
+
}
|