@imtbl/sdk 0.44.4 → 0.45.0

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.
@@ -1,12 +1,531 @@
1
- import { Config, TransfersApi, OrdersApi, UsersApi, Contracts, TradesApi, ExchangesApi, WithdrawalsApi, MintsApi, DepositsApi, EncodingApi, TokensApi } from '@imtbl/core-sdk';
1
+ import { ImmutableX, Config, TransfersApi, OrdersApi, UsersApi, Contracts, TradesApi, ExchangesApi, WithdrawalsApi, MintsApi, DepositsApi, EncodingApi, TokensApi } from '@imtbl/core-sdk';
2
+ export { IMXError, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey } from '@imtbl/core-sdk';
3
+ import { AxiosError } from 'axios';
2
4
  import BN from 'bn.js';
3
5
  import * as encUtils from 'enc-utils';
4
- import { AxiosError } from 'axios';
5
6
  import { parseUnits } from '@ethersproject/units';
6
7
  import { BigNumber } from '@ethersproject/bignumber';
7
8
  import { ethers } from 'ethers';
8
9
  import detectEthereumProvider from '@metamask/detect-provider';
9
10
 
11
+ var Environment;
12
+ (function (Environment) {
13
+ Environment["PRODUCTION"] = "production";
14
+ Environment["SANDBOX"] = "sandbox";
15
+ })(Environment || (Environment = {}));
16
+
17
+ /**
18
+ * createImmutableXConfiguration to create a custom ImmutableXConfiguration
19
+ * other than the production and sandbox defined below.
20
+ */
21
+ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress, registrationContractAddress, }) => Config.createConfig({
22
+ basePath,
23
+ chainID,
24
+ coreContractAddress,
25
+ registrationContractAddress,
26
+ sdkVersion: 'ts-immutable-sdk-0.45.0',
27
+ });
28
+ /**
29
+ * Sets `sdkVersion` at the time of build
30
+ */
31
+ const production = () => createImmutableXConfiguration({
32
+ basePath: 'https://api.x.immutable.com',
33
+ chainID: 1,
34
+ coreContractAddress: '0x5FDCCA53617f4d2b9134B29090C87D01058e27e9',
35
+ registrationContractAddress: '0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c',
36
+ });
37
+ /**
38
+ * Sets `sdkVersion` at the time of build
39
+ */
40
+ const sandbox = () => createImmutableXConfiguration({
41
+ basePath: 'https://api.sandbox.x.immutable.com',
42
+ chainID: 11155111,
43
+ coreContractAddress: '0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98',
44
+ registrationContractAddress: '0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97',
45
+ });
46
+ class ImxConfiguration {
47
+ immutableXConfig;
48
+ baseConfig;
49
+ constructor({ baseConfig, overrides }) {
50
+ this.baseConfig = baseConfig;
51
+ if (overrides) {
52
+ this.immutableXConfig = overrides.immutableXConfig;
53
+ }
54
+ else {
55
+ switch (baseConfig.environment) {
56
+ case Environment.SANDBOX: {
57
+ this.immutableXConfig = sandbox();
58
+ break;
59
+ }
60
+ case Environment.PRODUCTION: {
61
+ this.immutableXConfig = production();
62
+ break;
63
+ }
64
+ default: {
65
+ this.immutableXConfig = sandbox();
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ class IMXClient {
73
+ immutableX;
74
+ depositsApi;
75
+ mintsApi;
76
+ ordersApi;
77
+ tokensApi;
78
+ tradesApi;
79
+ transfersApi;
80
+ exchangeApi;
81
+ nftCheckoutPrimaryApi;
82
+ usersApi;
83
+ withdrawalsApi;
84
+ balanceApi;
85
+ assetApi;
86
+ collectionApi;
87
+ metadataApi;
88
+ metadataRefreshesApi;
89
+ projectsApi;
90
+ constructor(config) {
91
+ const imxConfig = new ImxConfiguration(config);
92
+ this.immutableX = new ImmutableX(imxConfig.immutableXConfig);
93
+ this.depositsApi = this.immutableX.depositsApi;
94
+ this.mintsApi = this.immutableX.mintsApi;
95
+ this.ordersApi = this.immutableX.ordersApi;
96
+ this.tokensApi = this.immutableX.tokensApi;
97
+ this.tradesApi = this.immutableX.tradesApi;
98
+ this.transfersApi = this.immutableX.transfersApi;
99
+ this.exchangeApi = this.immutableX.exchangeApi;
100
+ this.usersApi = this.immutableX.usersApi;
101
+ this.withdrawalsApi = this.immutableX.withdrawalsApi;
102
+ this.balanceApi = this.immutableX.balanceApi;
103
+ this.assetApi = this.immutableX.assetApi;
104
+ this.collectionApi = this.immutableX.collectionApi;
105
+ this.metadataApi = this.immutableX.metadataApi;
106
+ this.metadataRefreshesApi = this.immutableX.metadataRefreshesApi;
107
+ this.nftCheckoutPrimaryApi = this.immutableX.nftCheckoutPrimaryApi;
108
+ this.projectsApi = this.immutableX.projectsApi;
109
+ }
110
+ /**
111
+ * Get details of a Deposit with the given ID
112
+ * @param request - the request object containing the parameters to be provided in the API request
113
+ * @returns a promise that resolves with the requested Deposit
114
+ * @throws {@link index.IMXError}
115
+ */
116
+ getDeposit(request) {
117
+ return this.immutableX.getDeposit(request);
118
+ }
119
+ /**
120
+ * Get a list of Deposits
121
+ * @param request - optional object containing the parameters to be provided in the API request
122
+ * @returns a promise that resolves with the requested list of Deposits
123
+ * @throws {@link index.IMXError}
124
+ */
125
+ listDeposits(request) {
126
+ return this.immutableX.listDeposits(request);
127
+ }
128
+ /**
129
+ * Get Stark keys for a registered User
130
+ * @param ethAddress - the eth address of the User
131
+ * @returns a promise that resolves with the requested User
132
+ * @throws {@link index.IMXError}
133
+ */
134
+ getUser(ethAddress) {
135
+ return this.immutableX.getUser(ethAddress);
136
+ }
137
+ /**
138
+ * Get details of an Asset
139
+ * @param request - the request object containing the parameters to be provided in the API request
140
+ * @returns a promise that resolves with the requested Asset
141
+ * @throws {@link index.IMXError}
142
+ */
143
+ getAsset(request) {
144
+ return this.immutableX.getAsset(request);
145
+ }
146
+ /**
147
+ * Get a list of Assets
148
+ * @param request - optional object containing the parameters to be provided in the API request
149
+ * @returns a promise that resolves with the requested list of Assets
150
+ * @throws {@link index.IMXError}
151
+ */
152
+ listAssets(request) {
153
+ return this.immutableX.listAssets(request);
154
+ }
155
+ /**
156
+ * Create a Collection
157
+ * @param ethSigner - the L1 signer
158
+ * @param request - the request object to be provided in the API request
159
+ * @returns a promise that resolves with the created Collection
160
+ * @throws {@link index.IMXError}
161
+ */
162
+ createCollection(ethSigner, request) {
163
+ return this.immutableX.createCollection(ethSigner, request);
164
+ }
165
+ /**
166
+ * Get details of a Collection at the given address
167
+ * @param request - the request object containing the parameters to be provided in the API request
168
+ * @returns a promise that resolves with the requested Collection
169
+ * @throws {@link index.IMXError}
170
+ */
171
+ getCollection(request) {
172
+ return this.immutableX.getCollection(request);
173
+ }
174
+ /**
175
+ * Get a list of Collection filters
176
+ * @param request - the request object containing the parameters to be provided in the API request
177
+ * @returns a promise that resolves with the requested list of Collection Filters
178
+ * @throws {@link index.IMXError}
179
+ */
180
+ listCollectionFilters(request) {
181
+ return this.immutableX.listCollectionFilters(request);
182
+ }
183
+ /**
184
+ * Get a list of Collections
185
+ * @param request - optional object containing the parameters to be provided in the API request
186
+ * @returns a promise that resolves with the requested list of Collections
187
+ * @throws {@link index.IMXError}
188
+ */
189
+ listCollections(request) {
190
+ return this.collectionApi.listCollections(request).then((res) => res.data);
191
+ }
192
+ /**
193
+ * Update a Collection
194
+ * @param ethSigner - the L1 signer
195
+ * @param collectionAddress - the Collection contract address
196
+ * @param request - the request object containing the parameters to be provided in the API request
197
+ * @returns a promise that resolves with the updated Collection
198
+ * @throws {@link index.IMXError}
199
+ */
200
+ updateCollection(ethSigner, collectionAddress, request) {
201
+ return this.immutableX.updateCollection(ethSigner, collectionAddress, request);
202
+ }
203
+ /**
204
+ * Add metadata schema to Collection
205
+ * @param ethSigner - the L1 signer
206
+ * @param collectionAddress - the Collection contract address
207
+ * @param request - the request object containing the parameters to be provided in the API request
208
+ * @returns a promise that resolves with the SuccessResponse if successful
209
+ * @throws {@link index.IMXError}
210
+ */
211
+ addMetadataSchemaToCollection(ethSigner, collectionAddress, request) {
212
+ return this.immutableX.addMetadataSchemaToCollection(ethSigner, collectionAddress, request);
213
+ }
214
+ /**
215
+ * Get Metadata schema
216
+ * @param request - the request object containing the parameters to be provided in the API request
217
+ * @returns a promise that resolves with the requested Metadata schema
218
+ * @throws {@link index.IMXError}
219
+ */
220
+ getMetadataSchema(request) {
221
+ return this.immutableX.getMetadataSchema(request);
222
+ }
223
+ /**
224
+ * Update metadata schema by name
225
+ * @param ethSigner - the L1 signer
226
+ * @param collectionAddress - the Collection contract address
227
+ * @param name - the Metadata schema name
228
+ * @param request - the request object containing the parameters to be provided in the API request
229
+ * @returns a promise that resolves with the SuccessResponse if successful
230
+ * @throws {@link index.IMXError}
231
+ */
232
+ updateMetadataSchemaByName(ethSigner, collectionAddress, name, request) {
233
+ return this.immutableX.updateMetadataSchemaByName(ethSigner, collectionAddress, name, request);
234
+ }
235
+ /**
236
+ * Get a list of metadata refreshes
237
+ * @param ethSigner - the L1 signer
238
+ * @param collectionAddress - the Collection contract address
239
+ * @param pageSize - the page size of the result
240
+ * @param cursor - the cursor
241
+ * @returns a promise that resolves with the requested metadata refreshes
242
+ * @throws {@link index.IMXError}
243
+ */
244
+ listMetadataRefreshes(ethSigner, collectionAddress, pageSize, cursor) {
245
+ return this.immutableX.listMetadataRefreshes(ethSigner, collectionAddress, pageSize, cursor);
246
+ }
247
+ /**
248
+ * Get a list of metadata refresh errors
249
+ * @param ethSigner - the L1 signer
250
+ * @param refreshId - the metadata refresh ID
251
+ * @param pageSize - the page size of the result
252
+ * @param cursor - the cursor
253
+ * @returns a promise that resolves with the requested metadata refresh errors
254
+ * @throws {@link index.IMXError}
255
+ */
256
+ getMetadataRefreshErrors(ethSigner, refreshId, pageSize, cursor) {
257
+ return this.immutableX.getMetadataRefreshErrors(ethSigner, refreshId, pageSize, cursor);
258
+ }
259
+ /**
260
+ * Get a list of metadata refresh results
261
+ * @param ethSigner - the L1 signer
262
+ * @param refreshId - the metadata refresh ID
263
+ * @returns a promise that resolves with the requested metadata refresh results
264
+ * @throws {@link index.IMXError}
265
+ */
266
+ getMetadataRefreshResults(ethSigner, refreshId) {
267
+ return this.immutableX.getMetadataRefreshResults(ethSigner, refreshId);
268
+ }
269
+ /**
270
+ * Request a metadata refresh
271
+ * @param ethSigner - the L1 signer
272
+ * @param request the request object containing the parameters to be provided in the API request
273
+ * @returns a promise that resolves with the requested metadata refresh
274
+ * @throws {@link index.IMXError}
275
+ */
276
+ createMetadataRefresh(ethSigner, request) {
277
+ return this.immutableX.createMetadataRefresh(ethSigner, request);
278
+ }
279
+ /**
280
+ * Create a Project
281
+ * @param ethSigner - the L1 signer
282
+ * @param request - the request object containing the parameters to be provided in the API request
283
+ * @returns a promise that resolves with the created Project
284
+ * @throws {@link index.IMXError}
285
+ */
286
+ async createProject(ethSigner, request) {
287
+ return this.immutableX.createProject(ethSigner, request);
288
+ }
289
+ /**
290
+ * Get a Project
291
+ * @param ethSigner - the L1 signer
292
+ * @param id - the Project ID
293
+ * @returns a promise that resolves with the requested Project
294
+ * @throws {@link index.IMXError}
295
+ */
296
+ async getProject(ethSigner, id) {
297
+ return this.immutableX.getProject(ethSigner, id);
298
+ }
299
+ /**
300
+ * Get Projects owned by the given User
301
+ * @param ethSigner - the L1 signer
302
+ * @param pageSize - the page size of the result
303
+ * @param cursor - the cursor
304
+ * @param orderBy - the property to sort by
305
+ * @param direction - direction to sort (asc/desc)
306
+ * @returns a promise that resolves with the requested Projects
307
+ * @throws {@link index.IMXError}
308
+ */
309
+ async getProjects(ethSigner, pageSize, cursor, orderBy, direction) {
310
+ return this.immutableX.getProjects(ethSigner, pageSize, cursor, orderBy, direction);
311
+ }
312
+ /**
313
+ * Get the token Balances of the User
314
+ * @param request - the request object containing the parameters to be provided in the API request
315
+ * @returns a promise that resolves with the requested Balance
316
+ * @throws {@link index.IMXError}
317
+ */
318
+ getBalance(request) {
319
+ return this.immutableX.getBalance(request);
320
+ }
321
+ /**
322
+ * Get a list of Balances for given User
323
+ * @param request the request object containing the parameters to be provided in the API request
324
+ * @returns a promise that resolves with the requested list of Balances
325
+ * @throws {@link index.IMXError}
326
+ */
327
+ listBalances(request) {
328
+ return this.immutableX.listBalances(request);
329
+ }
330
+ /**
331
+ * Get details of a Mint with the given ID
332
+ * @param request the request object containing the parameters to be provided in the API request
333
+ * @returns a promise that resolves with the requested Mint
334
+ * @throws {@link index.IMXError}
335
+ */
336
+ getMint(request) {
337
+ return this.immutableX.getMint(request);
338
+ }
339
+ /**
340
+ * Get a list of Mints
341
+ * @param request optional object containing the parameters to be provided in the API request
342
+ * @returns a promise that resolves with the requested list of Mints
343
+ * @throws {@link index.IMXError}
344
+ */
345
+ listMints(request) {
346
+ return this.immutableX.listMints(request);
347
+ }
348
+ /**
349
+ * Mint tokens in a batch with fees
350
+ * @param ethSigner - the L1 signer
351
+ * @param request - the request object to be provided in the API request
352
+ * @returns a promise that resolves with the minted tokens
353
+ * @throws {@link index.IMXError}
354
+ */
355
+ mint(ethSigner, request) {
356
+ return this.immutableX.mint(ethSigner, request);
357
+ }
358
+ /**
359
+ * Get a list of Withdrawals
360
+ * @param request - optional object containing the parameters to be provided in the API request
361
+ * @returns a promise that resolves with the requested list of Withdrawals
362
+ * @throws {@link index.IMXError}
363
+ */
364
+ listWithdrawals(request) {
365
+ return this.immutableX.listWithdrawals(request);
366
+ }
367
+ /**
368
+ * Get details of Withdrawal with the given ID
369
+ * @param request - the request object containing the parameters to be provided in the API request
370
+ * @returns a promise that resolves with the requested Withdrawal
371
+ * @throws {@link index.IMXError}
372
+ */
373
+ getWithdrawal(request) {
374
+ return this.immutableX.getWithdrawal(request);
375
+ }
376
+ /**
377
+ * Get details of an Order with the given ID
378
+ * @param request - the request object containing the parameters to be provided in the API request
379
+ * @returns a promise that resolves with the requested Order
380
+ * @throws {@link index.IMXError}
381
+ */
382
+ getOrder(request) {
383
+ return this.immutableX.getOrder(request);
384
+ }
385
+ /**
386
+ * Get a list of Orders
387
+ * @param request - optional object containing the parameters to be provided in the API request
388
+ * @returns a promise that resolves with the requested list of Orders
389
+ * @throws {@link index.IMXError}
390
+ */
391
+ listOrders(request) {
392
+ return this.immutableX.listOrders(request);
393
+ }
394
+ /**
395
+ * Get details of a Trade with the given ID
396
+ * @param request - the request object containing the parameters to be provided in the API request
397
+ * @returns a promise that resolves with the requested Trade
398
+ * @throws {@link index.IMXError}
399
+ */
400
+ getTrade(request) {
401
+ return this.immutableX.getTrade(request);
402
+ }
403
+ /**
404
+ * Get a list of Trades
405
+ * @param request - optional object containing the parameters to be provided in the API request
406
+ * @returns a promise that resolves with the requested list of Trades
407
+ * @throws {@link index.IMXError}
408
+ */
409
+ listTrades(request) {
410
+ return this.immutableX.listTrades(request);
411
+ }
412
+ /**
413
+ * Get details of a Token
414
+ * @param request - the request object containing the parameters to be provided in the API request
415
+ * @returns a promise that resolves with the requested Token
416
+ * @throws {@link index.IMXError}
417
+ */
418
+ getToken(request) {
419
+ return this.immutableX.getToken(request);
420
+ }
421
+ /**
422
+ * Get a list of Tokens
423
+ * @param request - optional object containing the parameters to be provided in the API request
424
+ * @returns a promise that resolves with the requested list of Tokens
425
+ * @throws {@link index.IMXError}
426
+ */
427
+ listTokens(request) {
428
+ return this.immutableX.listTokens(request);
429
+ }
430
+ /**
431
+ * Get details of a Transfer with the given ID
432
+ * @param request - the request object containing the parameters to be provided in the API request
433
+ * @returns a promise that resolves with the requested Transfer
434
+ * @throws {@link index.IMXError}
435
+ */
436
+ getTransfer(request) {
437
+ return this.immutableX.getTransfer(request);
438
+ }
439
+ /**
440
+ * Get a list of Transfers
441
+ * @param request - optional object containing the parameters to be provided in the API request
442
+ * @returns a promise that resolves with the requested list of Transfers
443
+ * @throws {@link index.IMXError}
444
+ */
445
+ listTransfers(request) {
446
+ return this.immutableX.listTransfers(request);
447
+ }
448
+ /**
449
+ * Create a new Exchange transaction
450
+ * @param request - the request object to be provided in the API request
451
+ * @returns a promise that resolves with the created Exchange Transaction
452
+ * @throws {@link index.IMXError}
453
+ */
454
+ createExchange(request) {
455
+ return this.immutableX.createExchange(request).then((res) => res.data);
456
+ }
457
+ /**
458
+ * Get an Exchange transaction
459
+ * @param request - the request object to be provided in the API request
460
+ * @returns a promise that resolves with the Exchange Transaction
461
+ * @throws {@link index.IMXError}
462
+ */
463
+ getExchange(request) {
464
+ return this.immutableX.getExchange(request).then((res) => res.data);
465
+ }
466
+ /**
467
+ * Get Exchange transactions
468
+ * @param request - the request object to be provided in the API request
469
+ * @returns a promise that resolves with Exchange Transactions
470
+ * @throws {@link index.IMXError}
471
+ */
472
+ getExchanges(request) {
473
+ return this.immutableX.getExchanges(request).then((res) => res.data);
474
+ }
475
+ /**
476
+ * Create a new Transfer request
477
+ * @param walletConnection - the pair of Eth/Stark signers
478
+ * @param request - the request object to be provided in the API request
479
+ * @returns a promise that resolves with the created Exchange Transfer
480
+ * @throws {@link index.IMXError}
481
+ */
482
+ exchangeTransfer(walletConnection, request) {
483
+ return this.immutableX.exchangeTransfer(walletConnection, request);
484
+ }
485
+ /**
486
+ * Create a new nft primary transaction
487
+ * @param request - the request object to be provided in the API request
488
+ * @returns a promise that resolves with the created nft primary Transaction
489
+ * @throws {@link index.IMXError}
490
+ */
491
+ createNftPrimary(request) {
492
+ return this.immutableX.createNftPrimary(request).then((res) => res.data);
493
+ }
494
+ /**
495
+ * Get nft primary supported currencies and their limits
496
+ * @param request - the request object to be provided in the API request
497
+ * @returns a promise that resolves with nft primary Currencies
498
+ * @throws {@link index.IMXError}
499
+ */
500
+ getCurrenciesNFTCheckoutPrimary(request) {
501
+ return this.immutableX
502
+ .getCurrenciesNFTCheckoutPrimary(request)
503
+ .then((res) => res.data);
504
+ }
505
+ /**
506
+ * Get nft primary transaction by transaction id
507
+ * @param request - the request object to be provided in the API request
508
+ * @returns a promise that resolves with nft primary transaction
509
+ * @throws {@link index.IMXError}
510
+ */
511
+ getNftPrimaryTransaction(request) {
512
+ return this.immutableX
513
+ .getNftPrimaryTransaction(request)
514
+ .then((res) => res.data);
515
+ }
516
+ /**
517
+ * Get list of nft primary transactions
518
+ * @param request - the request object to be provided in the API request
519
+ * @returns a promise that resolves with nft primary transaction
520
+ * @throws {@link index.IMXError}
521
+ */
522
+ getNftPrimaryTransactions(request) {
523
+ return this.immutableX
524
+ .getNftPrimaryTransactions(request)
525
+ .then((res) => res.data);
526
+ }
527
+ }
528
+
10
529
  // used to sign message with L1 keys. Used for registration
11
530
  function serializeEthSignature(sig) {
12
531
  // This is because golang appends a recovery param
@@ -79,12 +598,6 @@ function convertToSignableToken(token) {
79
598
  }
80
599
  }
81
600
 
82
- var Environment;
83
- (function (Environment) {
84
- Environment["PRODUCTION"] = "production";
85
- Environment["SANDBOX"] = "sandbox";
86
- })(Environment || (Environment = {}));
87
-
88
601
  function isChainValid(chainID, config) {
89
602
  return chainID === config.ethConfiguration.chainID;
90
603
  }
@@ -1162,4 +1675,4 @@ class ProviderConfiguration {
1162
1675
  }
1163
1676
  }
1164
1677
 
1165
- export { GenericIMXProvider, MetaMaskIMXProvider, ProviderConfiguration };
1678
+ export { GenericIMXProvider, IMXClient, MetaMaskIMXProvider, ProviderConfiguration };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.44.4",
4
+ "version": "0.45.0",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
8
8
  "dependencies": {
9
9
  "@0xsequence/abi": "^1.4.3",
10
10
  "@0xsequence/core": "^1.4.3",
11
- "@biom3/design-tokens": "^0.2.10",
12
- "@biom3/react": "^0.19.40",
11
+ "@biom3/design-tokens": "^0.2.11",
12
+ "@biom3/react": "^0.19.42",
13
13
  "@ethersproject/abi": "^5.7.0",
14
14
  "@ethersproject/abstract-signer": "^5.7.0",
15
15
  "@ethersproject/providers": "^5.7.2",
@@ -51,11 +51,11 @@
51
51
  "@imtbl/cryptofiat": "0.0.0",
52
52
  "@imtbl/generated-clients": "0.0.0",
53
53
  "@imtbl/guardian": "0.0.0",
54
- "@imtbl/immutablex-client": "0.0.0",
55
54
  "@imtbl/orderbook": "0.0.0",
56
55
  "@imtbl/passport": "0.0.0",
57
- "@imtbl/provider": "0.0.0",
58
56
  "@imtbl/version-check": "0.0.0",
57
+ "@imtbl/x-client": "0.0.0",
58
+ "@imtbl/x-provider": "0.0.0",
59
59
  "@rollup/plugin-commonjs": "^24.0.1",
60
60
  "@rollup/plugin-json": "^6.0.0",
61
61
  "@rollup/plugin-node-resolve": "^15.0.2",
@@ -90,10 +90,6 @@
90
90
  "types": "./dist/blockchain_data.d.ts",
91
91
  "import": "./dist/blockchain_data.js"
92
92
  },
93
- "./immutablex_client": {
94
- "types": "./dist/immutablex_client.d.ts",
95
- "import": "./dist/immutablex_client.js"
96
- },
97
93
  "./passport": {
98
94
  "types": "./dist/passport.d.ts",
99
95
  "import": "./dist/passport.js"
@@ -102,13 +98,13 @@
102
98
  "types": "./dist/orderbook.d.ts",
103
99
  "import": "./dist/orderbook.js"
104
100
  },
105
- "./provider": {
106
- "types": "./dist/provider.d.ts",
107
- "import": "./dist/provider.js"
108
- },
109
101
  "./checkout": {
110
102
  "types": "./dist/checkout.d.ts",
111
103
  "import": "./dist/checkout.js"
104
+ },
105
+ "./x": {
106
+ "types": "./dist/x.d.ts",
107
+ "import": "./dist/x.js"
112
108
  }
113
109
  },
114
110
  "files": [
@@ -127,7 +123,7 @@
127
123
  },
128
124
  "repository": "immutable/ts-immutable-sdk.git",
129
125
  "resolutions": {
130
- "@biom3/design-tokens": "^0.2.10",
126
+ "@biom3/design-tokens": "^0.2.11",
131
127
  "@openzeppelin/contracts": "3.4.2-solc-0.7"
132
128
  },
133
129
  "scripts": {