@seal-protocol/backendjs 0.0.44 → 0.0.46
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
CHANGED
|
@@ -149,8 +149,8 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
149
149
|
getPairs: (paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetPairsOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, tokenIn?: string, tokenOut?: string, reservableOnly?: boolean, excludeEmpty?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
150
150
|
/**
|
|
151
151
|
*
|
|
152
|
-
* @param {string} chainId
|
|
153
152
|
* @param {string} owner hex representation of owner address
|
|
153
|
+
* @param {string} [chainId]
|
|
154
154
|
* @param {string} [token] hex representation of token address
|
|
155
155
|
* @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
|
|
156
156
|
* @param {boolean} [orderByDescending]
|
|
@@ -160,7 +160,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
*/
|
|
163
|
-
getTokenPermitApprovals: (
|
|
163
|
+
getTokenPermitApprovals: (owner: string, chainId?: string, token?: string, orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
164
164
|
/**
|
|
165
165
|
*
|
|
166
166
|
* @param {string} [paginationKey]
|
|
@@ -317,8 +317,8 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
317
317
|
getPairs(paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetPairsOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, tokenIn?: string, tokenOut?: string, reservableOnly?: boolean, excludeEmpty?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetPairsResponse>>;
|
|
318
318
|
/**
|
|
319
319
|
*
|
|
320
|
-
* @param {string} chainId
|
|
321
320
|
* @param {string} owner hex representation of owner address
|
|
321
|
+
* @param {string} [chainId]
|
|
322
322
|
* @param {string} [token] hex representation of token address
|
|
323
323
|
* @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
|
|
324
324
|
* @param {boolean} [orderByDescending]
|
|
@@ -328,7 +328,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
328
328
|
* @param {*} [options] Override http request option.
|
|
329
329
|
* @throws {RequiredError}
|
|
330
330
|
*/
|
|
331
|
-
getTokenPermitApprovals(
|
|
331
|
+
getTokenPermitApprovals(owner: string, chainId?: string, token?: string, orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetTokenPermitApprovalsResponse>>;
|
|
332
332
|
/**
|
|
333
333
|
*
|
|
334
334
|
* @param {string} [paginationKey]
|
|
@@ -866,17 +866,17 @@ export interface SealClientGetPairsRequest {
|
|
|
866
866
|
*/
|
|
867
867
|
export interface SealClientGetTokenPermitApprovalsRequest {
|
|
868
868
|
/**
|
|
869
|
-
*
|
|
869
|
+
* hex representation of owner address
|
|
870
870
|
* @type {string}
|
|
871
871
|
* @memberof SealClientGetTokenPermitApprovals
|
|
872
872
|
*/
|
|
873
|
-
readonly
|
|
873
|
+
readonly owner: string;
|
|
874
874
|
/**
|
|
875
|
-
*
|
|
875
|
+
*
|
|
876
876
|
* @type {string}
|
|
877
877
|
* @memberof SealClientGetTokenPermitApprovals
|
|
878
878
|
*/
|
|
879
|
-
readonly
|
|
879
|
+
readonly chainId?: string;
|
|
880
880
|
/**
|
|
881
881
|
* hex representation of token address
|
|
882
882
|
* @type {string}
|
|
@@ -885,7 +885,7 @@ export interface SealClientGetTokenPermitApprovalsRequest {
|
|
|
885
885
|
readonly token?: string;
|
|
886
886
|
/**
|
|
887
887
|
*
|
|
888
|
-
* @type {'TokenPermitApprovalsOrderByProperty_UNSPECIFIED' | 'TokenPermitApprovalsOrderByProperty_TOKEN' | '
|
|
888
|
+
* @type {'TokenPermitApprovalsOrderByProperty_UNSPECIFIED' | 'TokenPermitApprovalsOrderByProperty_TOKEN' | 'TokenPermitApprovalsOrderByProperty_SIG_DEADLINE' | 'TokenPermitApprovalsOrderByProperty_CHAIN_ID'}
|
|
889
889
|
* @memberof SealClientGetTokenPermitApprovals
|
|
890
890
|
*/
|
|
891
891
|
readonly orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum;
|
|
@@ -1168,7 +1168,6 @@ export declare enum GetPairsOrderByPropertyEnum {
|
|
|
1168
1168
|
export declare enum GetTokenPermitApprovalsOrderByPropertyEnum {
|
|
1169
1169
|
TokenPermitApprovalsOrderByPropertyUnspecified = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED",
|
|
1170
1170
|
TokenPermitApprovalsOrderByPropertyToken = "TokenPermitApprovalsOrderByProperty_TOKEN",
|
|
1171
|
-
TokenPermitApprovalsOrderByPropertyAmountIn = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN",
|
|
1172
1171
|
TokenPermitApprovalsOrderByPropertySigDeadline = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE",
|
|
1173
1172
|
TokenPermitApprovalsOrderByPropertyChainId = "TokenPermitApprovalsOrderByProperty_CHAIN_ID"
|
|
1174
1173
|
}
|
package/lib/api/seal-client.js
CHANGED
|
@@ -494,8 +494,8 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
494
494
|
},
|
|
495
495
|
/**
|
|
496
496
|
*
|
|
497
|
-
* @param {string} chainId
|
|
498
497
|
* @param {string} owner hex representation of owner address
|
|
498
|
+
* @param {string} [chainId]
|
|
499
499
|
* @param {string} [token] hex representation of token address
|
|
500
500
|
* @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
|
|
501
501
|
* @param {boolean} [orderByDescending]
|
|
@@ -505,9 +505,7 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
505
505
|
* @param {*} [options] Override http request option.
|
|
506
506
|
* @throws {RequiredError}
|
|
507
507
|
*/
|
|
508
|
-
getTokenPermitApprovals: async (
|
|
509
|
-
// verify required parameter 'chainId' is not null or undefined
|
|
510
|
-
(0, common_1.assertParamExists)('getTokenPermitApprovals', 'chainId', chainId);
|
|
508
|
+
getTokenPermitApprovals: async (owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
|
|
511
509
|
// verify required parameter 'owner' is not null or undefined
|
|
512
510
|
(0, common_1.assertParamExists)('getTokenPermitApprovals', 'owner', owner);
|
|
513
511
|
const localVarPath = `/seal/token_permit_approvals`;
|
|
@@ -864,8 +862,8 @@ const SealClientFp = function (configuration) {
|
|
|
864
862
|
},
|
|
865
863
|
/**
|
|
866
864
|
*
|
|
867
|
-
* @param {string} chainId
|
|
868
865
|
* @param {string} owner hex representation of owner address
|
|
866
|
+
* @param {string} [chainId]
|
|
869
867
|
* @param {string} [token] hex representation of token address
|
|
870
868
|
* @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
|
|
871
869
|
* @param {boolean} [orderByDescending]
|
|
@@ -875,8 +873,8 @@ const SealClientFp = function (configuration) {
|
|
|
875
873
|
* @param {*} [options] Override http request option.
|
|
876
874
|
* @throws {RequiredError}
|
|
877
875
|
*/
|
|
878
|
-
async getTokenPermitApprovals(
|
|
879
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenPermitApprovals(
|
|
876
|
+
async getTokenPermitApprovals(owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
|
|
877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenPermitApprovals(owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
|
|
880
878
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
881
879
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getTokenPermitApprovals']?.[localVarOperationServerIndex]?.url;
|
|
882
880
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1041,7 +1039,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1041
1039
|
* @throws {RequiredError}
|
|
1042
1040
|
*/
|
|
1043
1041
|
getTokenPermitApprovals(requestParameters, options) {
|
|
1044
|
-
return localVarFp.getTokenPermitApprovals(requestParameters.
|
|
1042
|
+
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));
|
|
1045
1043
|
},
|
|
1046
1044
|
/**
|
|
1047
1045
|
*
|
|
@@ -1194,7 +1192,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1194
1192
|
* @memberof SealClient
|
|
1195
1193
|
*/
|
|
1196
1194
|
getTokenPermitApprovals(requestParameters, options) {
|
|
1197
|
-
return (0, exports.SealClientFp)(this.configuration).getTokenPermitApprovals(requestParameters.
|
|
1195
|
+
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));
|
|
1198
1196
|
}
|
|
1199
1197
|
/**
|
|
1200
1198
|
*
|
|
@@ -1296,7 +1294,6 @@ var GetTokenPermitApprovalsOrderByPropertyEnum;
|
|
|
1296
1294
|
(function (GetTokenPermitApprovalsOrderByPropertyEnum) {
|
|
1297
1295
|
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyUnspecified"] = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED";
|
|
1298
1296
|
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyToken"] = "TokenPermitApprovalsOrderByProperty_TOKEN";
|
|
1299
|
-
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyAmountIn"] = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN";
|
|
1300
1297
|
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertySigDeadline"] = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE";
|
|
1301
1298
|
GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyChainId"] = "TokenPermitApprovalsOrderByProperty_CHAIN_ID";
|
|
1302
1299
|
})(GetTokenPermitApprovalsOrderByPropertyEnum || (exports.GetTokenPermitApprovalsOrderByPropertyEnum = GetTokenPermitApprovalsOrderByPropertyEnum = {}));
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
export declare enum TypesTokenPermitApprovalsOrderByProperty {
|
|
18
18
|
TokenPermitApprovalsOrderByPropertyUnspecified = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED",
|
|
19
19
|
TokenPermitApprovalsOrderByPropertyToken = "TokenPermitApprovalsOrderByProperty_TOKEN",
|
|
20
|
-
TokenPermitApprovalsOrderByPropertyAmountIn = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN",
|
|
21
20
|
TokenPermitApprovalsOrderByPropertySigDeadline = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE",
|
|
22
21
|
TokenPermitApprovalsOrderByPropertyChainId = "TokenPermitApprovalsOrderByProperty_CHAIN_ID"
|
|
23
22
|
}
|
|
@@ -23,7 +23,6 @@ var TypesTokenPermitApprovalsOrderByProperty;
|
|
|
23
23
|
(function (TypesTokenPermitApprovalsOrderByProperty) {
|
|
24
24
|
TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertyUnspecified"] = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED";
|
|
25
25
|
TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertyToken"] = "TokenPermitApprovalsOrderByProperty_TOKEN";
|
|
26
|
-
TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertyAmountIn"] = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN";
|
|
27
26
|
TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertySigDeadline"] = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE";
|
|
28
27
|
TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertyChainId"] = "TokenPermitApprovalsOrderByProperty_CHAIN_ID";
|
|
29
28
|
})(TypesTokenPermitApprovalsOrderByProperty || (exports.TypesTokenPermitApprovalsOrderByProperty = TypesTokenPermitApprovalsOrderByProperty = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seal-protocol/backendjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"description": "Javascript SDK for Seal Backend",
|
|
5
5
|
"author": "amin <amin@refractedlabs.com>",
|
|
6
6
|
"homepage": "https://github.com/seal-protocol/backend/tree/main/ts-client#readme",
|