@seal-protocol/backendjs 0.0.44 → 0.0.49

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.
@@ -12,6 +12,7 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { SealCalculateRequiredPermitResponse } from '../model';
15
16
  import type { SealCancelOrderRequest } from '../model';
16
17
  import type { SealCreateOrderRequest } from '../model';
17
18
  import type { SealCreateOrderResponse } from '../model';
@@ -33,6 +34,17 @@ import type { SealIssueGreenlightResponse } from '../model';
33
34
  * @export
34
35
  */
35
36
  export declare const SealClientAxiosParamCreator: (configuration?: Configuration) => {
37
+ /**
38
+ *
39
+ * @param {string} chainId
40
+ * @param {string} owner hex representation of owner address
41
+ * @param {string} token hex representation of token address
42
+ * @param {string} orderAmount
43
+ * @param {number} [orderExpiration] unix seconds
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ calculateRequiredPermit: (chainId: string, owner: string, token: string, orderAmount: string, orderExpiration?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
48
  /**
37
49
  *
38
50
  * @param {SealCancelOrderRequest} body
@@ -149,8 +161,8 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
149
161
  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
162
  /**
151
163
  *
152
- * @param {string} chainId
153
164
  * @param {string} owner hex representation of owner address
165
+ * @param {string} [chainId]
154
166
  * @param {string} [token] hex representation of token address
155
167
  * @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
156
168
  * @param {boolean} [orderByDescending]
@@ -160,7 +172,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
160
172
  * @param {*} [options] Override http request option.
161
173
  * @throws {RequiredError}
162
174
  */
163
- getTokenPermitApprovals: (chainId: string, owner: string, token?: string, orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
175
+ getTokenPermitApprovals: (owner: string, chainId?: string, token?: string, orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
164
176
  /**
165
177
  *
166
178
  * @param {string} [paginationKey]
@@ -201,6 +213,17 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
201
213
  * @export
202
214
  */
203
215
  export declare const SealClientFp: (configuration?: Configuration) => {
216
+ /**
217
+ *
218
+ * @param {string} chainId
219
+ * @param {string} owner hex representation of owner address
220
+ * @param {string} token hex representation of token address
221
+ * @param {string} orderAmount
222
+ * @param {number} [orderExpiration] unix seconds
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ calculateRequiredPermit(chainId: string, owner: string, token: string, orderAmount: string, orderExpiration?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealCalculateRequiredPermitResponse>>;
204
227
  /**
205
228
  *
206
229
  * @param {SealCancelOrderRequest} body
@@ -317,8 +340,8 @@ export declare const SealClientFp: (configuration?: Configuration) => {
317
340
  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
341
  /**
319
342
  *
320
- * @param {string} chainId
321
343
  * @param {string} owner hex representation of owner address
344
+ * @param {string} [chainId]
322
345
  * @param {string} [token] hex representation of token address
323
346
  * @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
324
347
  * @param {boolean} [orderByDescending]
@@ -328,7 +351,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
328
351
  * @param {*} [options] Override http request option.
329
352
  * @throws {RequiredError}
330
353
  */
331
- getTokenPermitApprovals(chainId: string, owner: string, token?: string, orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetTokenPermitApprovalsResponse>>;
354
+ 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
355
  /**
333
356
  *
334
357
  * @param {string} [paginationKey]
@@ -369,6 +392,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
369
392
  * @export
370
393
  */
371
394
  export declare const SealClientFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
395
+ /**
396
+ *
397
+ * @param {SealClientCalculateRequiredPermitRequest} requestParameters Request parameters.
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ calculateRequiredPermit(requestParameters: SealClientCalculateRequiredPermitRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealCalculateRequiredPermitResponse>;
372
402
  /**
373
403
  *
374
404
  * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
@@ -472,6 +502,43 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
472
502
  */
473
503
  syncState(options?: RawAxiosRequestConfig): AxiosPromise<SealGetSyncStateResponse>;
474
504
  };
505
+ /**
506
+ * Request parameters for calculateRequiredPermit operation in SealClient.
507
+ * @export
508
+ * @interface SealClientCalculateRequiredPermitRequest
509
+ */
510
+ export interface SealClientCalculateRequiredPermitRequest {
511
+ /**
512
+ *
513
+ * @type {string}
514
+ * @memberof SealClientCalculateRequiredPermit
515
+ */
516
+ readonly chainId: string;
517
+ /**
518
+ * hex representation of owner address
519
+ * @type {string}
520
+ * @memberof SealClientCalculateRequiredPermit
521
+ */
522
+ readonly owner: string;
523
+ /**
524
+ * hex representation of token address
525
+ * @type {string}
526
+ * @memberof SealClientCalculateRequiredPermit
527
+ */
528
+ readonly token: string;
529
+ /**
530
+ *
531
+ * @type {string}
532
+ * @memberof SealClientCalculateRequiredPermit
533
+ */
534
+ readonly orderAmount: string;
535
+ /**
536
+ * unix seconds
537
+ * @type {number}
538
+ * @memberof SealClientCalculateRequiredPermit
539
+ */
540
+ readonly orderExpiration?: number;
541
+ }
475
542
  /**
476
543
  * Request parameters for cancelOrder operation in SealClient.
477
544
  * @export
@@ -866,17 +933,17 @@ export interface SealClientGetPairsRequest {
866
933
  */
867
934
  export interface SealClientGetTokenPermitApprovalsRequest {
868
935
  /**
869
- *
936
+ * hex representation of owner address
870
937
  * @type {string}
871
938
  * @memberof SealClientGetTokenPermitApprovals
872
939
  */
873
- readonly chainId: string;
940
+ readonly owner: string;
874
941
  /**
875
- * hex representation of owner address
942
+ *
876
943
  * @type {string}
877
944
  * @memberof SealClientGetTokenPermitApprovals
878
945
  */
879
- readonly owner: string;
946
+ readonly chainId?: string;
880
947
  /**
881
948
  * hex representation of token address
882
949
  * @type {string}
@@ -885,7 +952,7 @@ export interface SealClientGetTokenPermitApprovalsRequest {
885
952
  readonly token?: string;
886
953
  /**
887
954
  *
888
- * @type {'TokenPermitApprovalsOrderByProperty_UNSPECIFIED' | 'TokenPermitApprovalsOrderByProperty_TOKEN' | 'TokenPermitApprovalsOrderByProperty_AMOUNT_IN' | 'TokenPermitApprovalsOrderByProperty_SIG_DEADLINE' | 'TokenPermitApprovalsOrderByProperty_CHAIN_ID'}
955
+ * @type {'TokenPermitApprovalsOrderByProperty_UNSPECIFIED' | 'TokenPermitApprovalsOrderByProperty_TOKEN' | 'TokenPermitApprovalsOrderByProperty_CHAIN_ID'}
889
956
  * @memberof SealClientGetTokenPermitApprovals
890
957
  */
891
958
  readonly orderByProperty?: GetTokenPermitApprovalsOrderByPropertyEnum;
@@ -995,6 +1062,14 @@ export interface SealClientIssueGreenlightRequest {
995
1062
  * @extends {BaseAPI}
996
1063
  */
997
1064
  export declare class SealClient extends BaseAPI {
1065
+ /**
1066
+ *
1067
+ * @param {SealClientCalculateRequiredPermitRequest} requestParameters Request parameters.
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ * @memberof SealClient
1071
+ */
1072
+ calculateRequiredPermit(requestParameters: SealClientCalculateRequiredPermitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealCalculateRequiredPermitResponse, any>>;
998
1073
  /**
999
1074
  *
1000
1075
  * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
@@ -1168,8 +1243,6 @@ export declare enum GetPairsOrderByPropertyEnum {
1168
1243
  export declare enum GetTokenPermitApprovalsOrderByPropertyEnum {
1169
1244
  TokenPermitApprovalsOrderByPropertyUnspecified = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED",
1170
1245
  TokenPermitApprovalsOrderByPropertyToken = "TokenPermitApprovalsOrderByProperty_TOKEN",
1171
- TokenPermitApprovalsOrderByPropertyAmountIn = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN",
1172
- TokenPermitApprovalsOrderByPropertySigDeadline = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE",
1173
1246
  TokenPermitApprovalsOrderByPropertyChainId = "TokenPermitApprovalsOrderByProperty_CHAIN_ID"
1174
1247
  }
1175
1248
  /**
@@ -29,6 +29,58 @@ const base_1 = require("../base");
29
29
  */
30
30
  const SealClientAxiosParamCreator = function (configuration) {
31
31
  return {
32
+ /**
33
+ *
34
+ * @param {string} chainId
35
+ * @param {string} owner hex representation of owner address
36
+ * @param {string} token hex representation of token address
37
+ * @param {string} orderAmount
38
+ * @param {number} [orderExpiration] unix seconds
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ calculateRequiredPermit: async (chainId, owner, token, orderAmount, orderExpiration, options = {}) => {
43
+ // verify required parameter 'chainId' is not null or undefined
44
+ (0, common_1.assertParamExists)('calculateRequiredPermit', 'chainId', chainId);
45
+ // verify required parameter 'owner' is not null or undefined
46
+ (0, common_1.assertParamExists)('calculateRequiredPermit', 'owner', owner);
47
+ // verify required parameter 'token' is not null or undefined
48
+ (0, common_1.assertParamExists)('calculateRequiredPermit', 'token', token);
49
+ // verify required parameter 'orderAmount' is not null or undefined
50
+ (0, common_1.assertParamExists)('calculateRequiredPermit', 'orderAmount', orderAmount);
51
+ const localVarPath = `/seal/calculate_required_permit`;
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
59
+ const localVarHeaderParameter = {};
60
+ const localVarQueryParameter = {};
61
+ if (chainId !== undefined) {
62
+ localVarQueryParameter['chainId'] = chainId;
63
+ }
64
+ if (owner !== undefined) {
65
+ localVarQueryParameter['owner'] = owner;
66
+ }
67
+ if (token !== undefined) {
68
+ localVarQueryParameter['token'] = token;
69
+ }
70
+ if (orderAmount !== undefined) {
71
+ localVarQueryParameter['orderAmount'] = orderAmount;
72
+ }
73
+ if (orderExpiration !== undefined) {
74
+ localVarQueryParameter['orderExpiration'] = orderExpiration;
75
+ }
76
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
77
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
79
+ return {
80
+ url: (0, common_1.toPathString)(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ },
32
84
  /**
33
85
  *
34
86
  * @param {SealCancelOrderRequest} body
@@ -494,8 +546,8 @@ const SealClientAxiosParamCreator = function (configuration) {
494
546
  },
495
547
  /**
496
548
  *
497
- * @param {string} chainId
498
549
  * @param {string} owner hex representation of owner address
550
+ * @param {string} [chainId]
499
551
  * @param {string} [token] hex representation of token address
500
552
  * @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
501
553
  * @param {boolean} [orderByDescending]
@@ -505,9 +557,7 @@ const SealClientAxiosParamCreator = function (configuration) {
505
557
  * @param {*} [options] Override http request option.
506
558
  * @throws {RequiredError}
507
559
  */
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);
560
+ getTokenPermitApprovals: async (owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
511
561
  // verify required parameter 'owner' is not null or undefined
512
562
  (0, common_1.assertParamExists)('getTokenPermitApprovals', 'owner', owner);
513
563
  const localVarPath = `/seal/token_permit_approvals`;
@@ -698,6 +748,22 @@ exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
698
748
  const SealClientFp = function (configuration) {
699
749
  const localVarAxiosParamCreator = (0, exports.SealClientAxiosParamCreator)(configuration);
700
750
  return {
751
+ /**
752
+ *
753
+ * @param {string} chainId
754
+ * @param {string} owner hex representation of owner address
755
+ * @param {string} token hex representation of token address
756
+ * @param {string} orderAmount
757
+ * @param {number} [orderExpiration] unix seconds
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ async calculateRequiredPermit(chainId, owner, token, orderAmount, orderExpiration, options) {
762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calculateRequiredPermit(chainId, owner, token, orderAmount, orderExpiration, options);
763
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
764
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.calculateRequiredPermit']?.[localVarOperationServerIndex]?.url;
765
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
766
+ },
701
767
  /**
702
768
  *
703
769
  * @param {SealCancelOrderRequest} body
@@ -864,8 +930,8 @@ const SealClientFp = function (configuration) {
864
930
  },
865
931
  /**
866
932
  *
867
- * @param {string} chainId
868
933
  * @param {string} owner hex representation of owner address
934
+ * @param {string} [chainId]
869
935
  * @param {string} [token] hex representation of token address
870
936
  * @param {GetTokenPermitApprovalsOrderByPropertyEnum} [orderByProperty]
871
937
  * @param {boolean} [orderByDescending]
@@ -875,8 +941,8 @@ const SealClientFp = function (configuration) {
875
941
  * @param {*} [options] Override http request option.
876
942
  * @throws {RequiredError}
877
943
  */
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);
944
+ async getTokenPermitApprovals(owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenPermitApprovals(owner, chainId, token, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
880
946
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
881
947
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getTokenPermitApprovals']?.[localVarOperationServerIndex]?.url;
882
948
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -945,6 +1011,15 @@ exports.SealClientFp = SealClientFp;
945
1011
  const SealClientFactory = function (configuration, basePath, axios) {
946
1012
  const localVarFp = (0, exports.SealClientFp)(configuration);
947
1013
  return {
1014
+ /**
1015
+ *
1016
+ * @param {SealClientCalculateRequiredPermitRequest} requestParameters Request parameters.
1017
+ * @param {*} [options] Override http request option.
1018
+ * @throws {RequiredError}
1019
+ */
1020
+ calculateRequiredPermit(requestParameters, options) {
1021
+ return localVarFp.calculateRequiredPermit(requestParameters.chainId, requestParameters.owner, requestParameters.token, requestParameters.orderAmount, requestParameters.orderExpiration, options).then((request) => request(axios, basePath));
1022
+ },
948
1023
  /**
949
1024
  *
950
1025
  * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
@@ -1041,7 +1116,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1041
1116
  * @throws {RequiredError}
1042
1117
  */
1043
1118
  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));
1119
+ 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
1120
  },
1046
1121
  /**
1047
1122
  *
@@ -1087,6 +1162,16 @@ exports.SealClientFactory = SealClientFactory;
1087
1162
  * @extends {BaseAPI}
1088
1163
  */
1089
1164
  class SealClient extends base_1.BaseAPI {
1165
+ /**
1166
+ *
1167
+ * @param {SealClientCalculateRequiredPermitRequest} requestParameters Request parameters.
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ * @memberof SealClient
1171
+ */
1172
+ calculateRequiredPermit(requestParameters, options) {
1173
+ return (0, exports.SealClientFp)(this.configuration).calculateRequiredPermit(requestParameters.chainId, requestParameters.owner, requestParameters.token, requestParameters.orderAmount, requestParameters.orderExpiration, options).then((request) => request(this.axios, this.basePath));
1174
+ }
1090
1175
  /**
1091
1176
  *
1092
1177
  * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
@@ -1194,7 +1279,7 @@ class SealClient extends base_1.BaseAPI {
1194
1279
  * @memberof SealClient
1195
1280
  */
1196
1281
  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));
1282
+ 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
1283
  }
1199
1284
  /**
1200
1285
  *
@@ -1296,8 +1381,6 @@ var GetTokenPermitApprovalsOrderByPropertyEnum;
1296
1381
  (function (GetTokenPermitApprovalsOrderByPropertyEnum) {
1297
1382
  GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyUnspecified"] = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED";
1298
1383
  GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyToken"] = "TokenPermitApprovalsOrderByProperty_TOKEN";
1299
- GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyAmountIn"] = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN";
1300
- GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertySigDeadline"] = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE";
1301
1384
  GetTokenPermitApprovalsOrderByPropertyEnum["TokenPermitApprovalsOrderByPropertyChainId"] = "TokenPermitApprovalsOrderByProperty_CHAIN_ID";
1302
1385
  })(GetTokenPermitApprovalsOrderByPropertyEnum || (exports.GetTokenPermitApprovalsOrderByPropertyEnum = GetTokenPermitApprovalsOrderByPropertyEnum = {}));
1303
1386
  /**
@@ -1,5 +1,7 @@
1
1
  export * from './protobuf-any';
2
2
  export * from './rpc-status';
3
+ export * from './seal-approval-type';
4
+ export * from './seal-calculate-required-permit-response';
3
5
  export * from './seal-cancel-order-request';
4
6
  export * from './seal-chain';
5
7
  export * from './seal-chain-config';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./protobuf-any"), exports);
18
18
  __exportStar(require("./rpc-status"), exports);
19
+ __exportStar(require("./seal-approval-type"), exports);
20
+ __exportStar(require("./seal-calculate-required-permit-response"), exports);
19
21
  __exportStar(require("./seal-cancel-order-request"), exports);
20
22
  __exportStar(require("./seal-chain"), exports);
21
23
  __exportStar(require("./seal-chain-config"), exports);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * seal/seal.proto
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: version not set
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum SealApprovalType {
18
+ ApprovalTypeUnspecified = "ApprovalType_UNSPECIFIED",
19
+ ApprovalTypeEip2612 = "ApprovalType_EIP2612",
20
+ ApprovalTypePermit2 = "ApprovalType_PERMIT2",
21
+ ApprovalTypeErc20 = "ApprovalType_ERC20"
22
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * seal/seal.proto
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: version not set
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SealApprovalType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var SealApprovalType;
23
+ (function (SealApprovalType) {
24
+ SealApprovalType["ApprovalTypeUnspecified"] = "ApprovalType_UNSPECIFIED";
25
+ SealApprovalType["ApprovalTypeEip2612"] = "ApprovalType_EIP2612";
26
+ SealApprovalType["ApprovalTypePermit2"] = "ApprovalType_PERMIT2";
27
+ SealApprovalType["ApprovalTypeErc20"] = "ApprovalType_ERC20";
28
+ })(SealApprovalType || (exports.SealApprovalType = SealApprovalType = {}));
@@ -0,0 +1,67 @@
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 { SealApprovalType } from './seal-approval-type';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SealCalculateRequiredPermitResponse
17
+ */
18
+ export interface SealCalculateRequiredPermitResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SealCalculateRequiredPermitResponse
23
+ */
24
+ 'ordersCount'?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SealCalculateRequiredPermitResponse
29
+ */
30
+ 'ordersRemaining'?: string;
31
+ /**
32
+ *
33
+ * @type {SealApprovalType}
34
+ * @memberof SealCalculateRequiredPermitResponse
35
+ */
36
+ 'approvalType'?: SealApprovalType;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SealCalculateRequiredPermitResponse
41
+ */
42
+ 'spender'?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SealCalculateRequiredPermitResponse
47
+ */
48
+ 'allowance'?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SealCalculateRequiredPermitResponse
53
+ */
54
+ 'nonce'?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof SealCalculateRequiredPermitResponse
59
+ */
60
+ 'sigDeadline'?: number;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof SealCalculateRequiredPermitResponse
65
+ */
66
+ 'allowanceExpiration'?: number;
67
+ }
@@ -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 });
@@ -191,10 +191,4 @@ export interface SealOrder {
191
191
  * @memberof SealOrder
192
192
  */
193
193
  'permit'?: SealTokenPermitApproval;
194
- /**
195
- *
196
- * @type {SealTokenPermitApproval}
197
- * @memberof SealOrder
198
- */
199
- 'permit2'?: SealTokenPermitApproval;
200
194
  }
@@ -17,7 +17,5 @@
17
17
  export declare enum TypesTokenPermitApprovalsOrderByProperty {
18
18
  TokenPermitApprovalsOrderByPropertyUnspecified = "TokenPermitApprovalsOrderByProperty_UNSPECIFIED",
19
19
  TokenPermitApprovalsOrderByPropertyToken = "TokenPermitApprovalsOrderByProperty_TOKEN",
20
- TokenPermitApprovalsOrderByPropertyAmountIn = "TokenPermitApprovalsOrderByProperty_AMOUNT_IN",
21
- TokenPermitApprovalsOrderByPropertySigDeadline = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE",
22
20
  TokenPermitApprovalsOrderByPropertyChainId = "TokenPermitApprovalsOrderByProperty_CHAIN_ID"
23
21
  }
@@ -23,7 +23,5 @@ 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
- TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertySigDeadline"] = "TokenPermitApprovalsOrderByProperty_SIG_DEADLINE";
28
26
  TypesTokenPermitApprovalsOrderByProperty["TokenPermitApprovalsOrderByPropertyChainId"] = "TokenPermitApprovalsOrderByProperty_CHAIN_ID";
29
27
  })(TypesTokenPermitApprovalsOrderByProperty || (exports.TypesTokenPermitApprovalsOrderByProperty = TypesTokenPermitApprovalsOrderByProperty = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "v0.0.44",
3
+ "version": "0.0.49",
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",