@seal-protocol/backendjs 0.0.8 → 0.0.12

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.
@@ -36,12 +36,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
36
36
  createOrderIntent: (body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
37
37
  /**
38
38
  *
39
+ * @param {string} [chainId] uint256
39
40
  * @param {string} [tokenIn] Token In The token to exchange from.
40
41
  * @param {string} [tokenOut]
41
42
  * @param {string} [owner]
42
43
  * @param {string} [fromPrice] uint256
43
44
  * @param {string} [toPrice] uint256
44
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
45
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
45
46
  * @param {boolean} [orderByDescending]
46
47
  * @param {string} [paginationKey]
47
48
  * @param {number} [paginationLimit]
@@ -49,7 +50,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
49
50
  * @param {*} [options] Override http request option.
50
51
  * @throws {RequiredError}
51
52
  */
52
- getOrders: (tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
54
  /**
54
55
  *
55
56
  * @param {*} [options] Override http request option.
@@ -77,12 +78,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
77
78
  createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
78
79
  /**
79
80
  *
81
+ * @param {string} [chainId] uint256
80
82
  * @param {string} [tokenIn] Token In The token to exchange from.
81
83
  * @param {string} [tokenOut]
82
84
  * @param {string} [owner]
83
85
  * @param {string} [fromPrice] uint256
84
86
  * @param {string} [toPrice] uint256
85
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
87
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
86
88
  * @param {boolean} [orderByDescending]
87
89
  * @param {string} [paginationKey]
88
90
  * @param {number} [paginationLimit]
@@ -90,7 +92,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
90
92
  * @param {*} [options] Override http request option.
91
93
  * @throws {RequiredError}
92
94
  */
93
- getOrders(tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
95
+ getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
94
96
  /**
95
97
  *
96
98
  * @param {*} [options] Override http request option.
@@ -149,6 +151,12 @@ export interface SealClientCreateOrderIntentRequest {
149
151
  * @interface SealClientGetOrdersRequest
150
152
  */
151
153
  export interface SealClientGetOrdersRequest {
154
+ /**
155
+ * uint256
156
+ * @type {string}
157
+ * @memberof SealClientGetOrders
158
+ */
159
+ readonly chainId?: string;
152
160
  /**
153
161
  * Token In The token to exchange from.
154
162
  * @type {string}
@@ -180,8 +188,8 @@ export interface SealClientGetOrdersRequest {
180
188
  */
181
189
  readonly toPrice?: string;
182
190
  /**
183
- *
184
- * @type {'INVALID' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE'}
191
+ * - INVALID: UNSPECIFIED
192
+ * @type {'INVALID' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID'}
185
193
  * @memberof SealClientGetOrders
186
194
  */
187
195
  readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
@@ -260,5 +268,6 @@ export declare enum GetOrdersOrderByPropertyEnum {
260
268
  AmountIn = "AMOUNT_IN",
261
269
  Price = "PRICE",
262
270
  PartiallyFillable = "PARTIALLY_FILLABLE",
263
- Deadline = "DEADLINE"
271
+ Deadline = "DEADLINE",
272
+ ChainId = "CHAIN_ID"
264
273
  }
@@ -84,12 +84,13 @@ const SealClientAxiosParamCreator = function (configuration) {
84
84
  },
85
85
  /**
86
86
  *
87
+ * @param {string} [chainId] uint256
87
88
  * @param {string} [tokenIn] Token In The token to exchange from.
88
89
  * @param {string} [tokenOut]
89
90
  * @param {string} [owner]
90
91
  * @param {string} [fromPrice] uint256
91
92
  * @param {string} [toPrice] uint256
92
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
93
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
93
94
  * @param {boolean} [orderByDescending]
94
95
  * @param {string} [paginationKey]
95
96
  * @param {number} [paginationLimit]
@@ -97,7 +98,7 @@ const SealClientAxiosParamCreator = function (configuration) {
97
98
  * @param {*} [options] Override http request option.
98
99
  * @throws {RequiredError}
99
100
  */
100
- getOrders: async (tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
101
+ getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
101
102
  const localVarPath = `/seal/orders`;
102
103
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
104
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -108,6 +109,9 @@ const SealClientAxiosParamCreator = function (configuration) {
108
109
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
109
110
  const localVarHeaderParameter = {};
110
111
  const localVarQueryParameter = {};
112
+ if (chainId !== undefined) {
113
+ localVarQueryParameter['chainId'] = chainId;
114
+ }
111
115
  if (tokenIn !== undefined) {
112
116
  localVarQueryParameter['tokenIn'] = tokenIn;
113
117
  }
@@ -205,12 +209,13 @@ const SealClientFp = function (configuration) {
205
209
  },
206
210
  /**
207
211
  *
212
+ * @param {string} [chainId] uint256
208
213
  * @param {string} [tokenIn] Token In The token to exchange from.
209
214
  * @param {string} [tokenOut]
210
215
  * @param {string} [owner]
211
216
  * @param {string} [fromPrice] uint256
212
217
  * @param {string} [toPrice] uint256
213
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
218
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
214
219
  * @param {boolean} [orderByDescending]
215
220
  * @param {string} [paginationKey]
216
221
  * @param {number} [paginationLimit]
@@ -218,8 +223,8 @@ const SealClientFp = function (configuration) {
218
223
  * @param {*} [options] Override http request option.
219
224
  * @throws {RequiredError}
220
225
  */
221
- async getOrders(tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
222
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
226
+ async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
223
228
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
224
229
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
225
230
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -269,7 +274,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
269
274
  * @throws {RequiredError}
270
275
  */
271
276
  getOrders(requestParameters = {}, options) {
272
- return localVarFp.getOrders(requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
277
+ return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
273
278
  },
274
279
  /**
275
280
  *
@@ -316,7 +321,7 @@ class SealClient extends base_1.BaseAPI {
316
321
  * @memberof SealClient
317
322
  */
318
323
  getOrders(requestParameters = {}, options) {
319
- return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
324
+ return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
320
325
  }
321
326
  /**
322
327
  *
@@ -343,4 +348,5 @@ var GetOrdersOrderByPropertyEnum;
343
348
  GetOrdersOrderByPropertyEnum["Price"] = "PRICE";
344
349
  GetOrdersOrderByPropertyEnum["PartiallyFillable"] = "PARTIALLY_FILLABLE";
345
350
  GetOrdersOrderByPropertyEnum["Deadline"] = "DEADLINE";
351
+ GetOrdersOrderByPropertyEnum["ChainId"] = "CHAIN_ID";
346
352
  })(GetOrdersOrderByPropertyEnum || (exports.GetOrdersOrderByPropertyEnum = GetOrdersOrderByPropertyEnum = {}));
@@ -3,6 +3,7 @@ export * from './rpc-status';
3
3
  export * from './seal-config';
4
4
  export * from './seal-create-order-intent-request';
5
5
  export * from './seal-database-config';
6
+ export * from './seal-eip712-domain-config';
6
7
  export * from './seal-get-config-response';
7
8
  export * from './seal-get-health-check-response';
8
9
  export * from './seal-get-orders-response';
@@ -11,5 +12,6 @@ export * from './seal-order';
11
12
  export * from './seal-orders-order-by';
12
13
  export * from './seal-orders-order-by-property';
13
14
  export * from './seal-pagination';
15
+ export * from './seal-signature-verification-config';
14
16
  export * from './seal-transfer-permission';
15
17
  export * from './types-transfer-permission-type';
@@ -19,6 +19,7 @@ __exportStar(require("./rpc-status"), exports);
19
19
  __exportStar(require("./seal-config"), exports);
20
20
  __exportStar(require("./seal-create-order-intent-request"), exports);
21
21
  __exportStar(require("./seal-database-config"), exports);
22
+ __exportStar(require("./seal-eip712-domain-config"), exports);
22
23
  __exportStar(require("./seal-get-config-response"), exports);
23
24
  __exportStar(require("./seal-get-health-check-response"), exports);
24
25
  __exportStar(require("./seal-get-orders-response"), exports);
@@ -27,5 +28,6 @@ __exportStar(require("./seal-order"), exports);
27
28
  __exportStar(require("./seal-orders-order-by"), exports);
28
29
  __exportStar(require("./seal-orders-order-by-property"), exports);
29
30
  __exportStar(require("./seal-pagination"), exports);
31
+ __exportStar(require("./seal-signature-verification-config"), exports);
30
32
  __exportStar(require("./seal-transfer-permission"), exports);
31
33
  __exportStar(require("./types-transfer-permission-type"), exports);
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { SealDatabaseConfig } from './seal-database-config';
13
13
  import type { SealLoggerConfig } from './seal-logger-config';
14
+ import type { SealSignatureVerificationConfig } from './seal-signature-verification-config';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -29,4 +30,10 @@ export interface SealConfig {
29
30
  * @memberof SealConfig
30
31
  */
31
32
  'database'?: SealDatabaseConfig;
33
+ /**
34
+ *
35
+ * @type {SealSignatureVerificationConfig}
36
+ * @memberof SealConfig
37
+ */
38
+ 'signatureVerification'?: SealSignatureVerificationConfig;
32
39
  }
@@ -22,6 +22,12 @@ export interface SealCreateOrderIntentRequest {
22
22
  * @memberof SealCreateOrderIntentRequest
23
23
  */
24
24
  'owner': string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SealCreateOrderIntentRequest
29
+ */
30
+ 'chainId': string;
25
31
  /**
26
32
  *
27
33
  * @type {string}
@@ -0,0 +1,42 @@
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 SealEIP712DomainConfig
16
+ */
17
+ export interface SealEIP712DomainConfig {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealEIP712DomainConfig
22
+ */
23
+ 'name'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SealEIP712DomainConfig
28
+ */
29
+ 'version'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SealEIP712DomainConfig
34
+ */
35
+ 'chainId'?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SealEIP712DomainConfig
40
+ */
41
+ 'verifyingContract'?: string;
42
+ }
@@ -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 });
@@ -22,5 +22,6 @@ export declare enum SealOrdersOrderByProperty {
22
22
  AmountIn = "AMOUNT_IN",
23
23
  Price = "PRICE",
24
24
  PartiallyFillable = "PARTIALLY_FILLABLE",
25
- Deadline = "DEADLINE"
25
+ Deadline = "DEADLINE",
26
+ ChainId = "CHAIN_ID"
26
27
  }
@@ -29,4 +29,5 @@ var SealOrdersOrderByProperty;
29
29
  SealOrdersOrderByProperty["Price"] = "PRICE";
30
30
  SealOrdersOrderByProperty["PartiallyFillable"] = "PARTIALLY_FILLABLE";
31
31
  SealOrdersOrderByProperty["Deadline"] = "DEADLINE";
32
+ SealOrdersOrderByProperty["ChainId"] = "CHAIN_ID";
32
33
  })(SealOrdersOrderByProperty || (exports.SealOrdersOrderByProperty = SealOrdersOrderByProperty = {}));
@@ -0,0 +1,25 @@
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 { SealEIP712DomainConfig } from './seal-eip712-domain-config';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SealSignatureVerificationConfig
17
+ */
18
+ export interface SealSignatureVerificationConfig {
19
+ /**
20
+ *
21
+ * @type {SealEIP712DomainConfig}
22
+ * @memberof SealSignatureVerificationConfig
23
+ */
24
+ 'eip712Domain'?: SealEIP712DomainConfig;
25
+ }
@@ -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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.8",
3
+ "version": "0.0.12",
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",