@imtbl/sdk 0.7.0-alpha.1 → 0.8.0-alpha

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/dist/index.cjs CHANGED
@@ -2420,7 +2420,7 @@ class MultiRollupApiClients {
2420
2420
  }
2421
2421
 
2422
2422
  // eslint-disable-next-line @typescript-eslint/naming-convention
2423
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.7.0-alpha.1' };
2423
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.8.0-alpha' };
2424
2424
  const createConfig = ({ basePath, headers, }) => {
2425
2425
  if (!basePath.trim()) {
2426
2426
  throw Error('basePath can not be empty');
@@ -2480,7 +2480,7 @@ class APIError extends Error {
2480
2480
 
2481
2481
  /* eslint-disable implicit-arrow-linebreak */
2482
2482
  const defaultHeaders = {
2483
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.7.0-alpha.1',
2483
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.8.0-alpha',
2484
2484
  };
2485
2485
  /**
2486
2486
  * createAPIConfiguration to create a custom Configuration
@@ -2752,7 +2752,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2752
2752
  chainID,
2753
2753
  coreContractAddress,
2754
2754
  registrationContractAddress,
2755
- sdkVersion: 'ts-immutable-sdk-0.7.0-alpha.1',
2755
+ sdkVersion: 'ts-immutable-sdk-0.8.0-alpha',
2756
2756
  });
2757
2757
  /**
2758
2758
  * Sets `sdkVersion` at the time of build
@@ -27736,6 +27736,7 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
27736
27736
  CheckoutErrorType["INVALID_GAS_ESTIMATE_TYPE"] = "INVALID_GAS_ESTIMATE_TYPE";
27737
27737
  CheckoutErrorType["UNSUPPORTED_TOKEN_TYPE_ERROR"] = "UNSUPPORTED_TOKEN_TYPE_ERROR";
27738
27738
  CheckoutErrorType["GET_ORDER_LISTING_ERROR"] = "GET_ORDER_LISTING_ERROR";
27739
+ CheckoutErrorType["SWITCH_NETWORK_UNSUPPORTED"] = "SWITCH_NETWORK_UNSUPPORTED";
27739
27740
  })($a8bc256d81a5e2c1$export$e3dc0620abde7f5a || ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a = {}));
27740
27741
  class $a8bc256d81a5e2c1$export$b722478a3cbfa3bc extends Error {
27741
27742
  message;
@@ -27884,6 +27885,7 @@ async function $de192de6ef100f9f$export$b827d9418aeb5dbd(config, web3Provider, c
27884
27885
  type: ($a47e48dd2c04791b$export$1f05a55fe0680cc7).ALL
27885
27886
  });
27886
27887
  if (!allowedNetworks.networks.some((network)=>network.chainId === chainId)) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Chain:${chainId} is not a supported chain`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CHAIN_NOT_SUPPORTED_ERROR);
27888
+ if (web3Provider.provider?.isPassport) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Switching networks with Passport provider is not supported", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).SWITCH_NETWORK_UNSUPPORTED);
27887
27889
  // WT-1146 - Refer to the README in this folder for explanation on the switch network flow
27888
27890
  try {
27889
27891
  await $de192de6ef100f9f$var$switchNetworkInWallet(networkMap, web3Provider, chainId);
@@ -28678,7 +28680,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28678
28680
  function $parcel$export(e, n, v, s) {
28679
28681
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28680
28682
  }
28681
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.7.0-alpha.1";
28683
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.8.0-alpha";
28682
28684
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
28683
28685
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
28684
28686
 
package/dist/index.d.ts CHANGED
@@ -13786,7 +13786,8 @@ declare enum CheckoutErrorType {
13786
13786
  UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT",
13787
13787
  INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE",
13788
13788
  UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
13789
- GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR"
13789
+ GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
13790
+ SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED"
13790
13791
  }
13791
13792
  /**
13792
13793
  * Represents an error object with a specific type, optional message, and optional data.
package/dist/index.js CHANGED
@@ -2398,7 +2398,7 @@ class MultiRollupApiClients {
2398
2398
  }
2399
2399
 
2400
2400
  // eslint-disable-next-line @typescript-eslint/naming-convention
2401
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.7.0-alpha.1' };
2401
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.8.0-alpha' };
2402
2402
  const createConfig = ({ basePath, headers, }) => {
2403
2403
  if (!basePath.trim()) {
2404
2404
  throw Error('basePath can not be empty');
@@ -2458,7 +2458,7 @@ class APIError extends Error {
2458
2458
 
2459
2459
  /* eslint-disable implicit-arrow-linebreak */
2460
2460
  const defaultHeaders = {
2461
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.7.0-alpha.1',
2461
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.8.0-alpha',
2462
2462
  };
2463
2463
  /**
2464
2464
  * createAPIConfiguration to create a custom Configuration
@@ -2730,7 +2730,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2730
2730
  chainID,
2731
2731
  coreContractAddress,
2732
2732
  registrationContractAddress,
2733
- sdkVersion: 'ts-immutable-sdk-0.7.0-alpha.1',
2733
+ sdkVersion: 'ts-immutable-sdk-0.8.0-alpha',
2734
2734
  });
2735
2735
  /**
2736
2736
  * Sets `sdkVersion` at the time of build
@@ -27714,6 +27714,7 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
27714
27714
  CheckoutErrorType["INVALID_GAS_ESTIMATE_TYPE"] = "INVALID_GAS_ESTIMATE_TYPE";
27715
27715
  CheckoutErrorType["UNSUPPORTED_TOKEN_TYPE_ERROR"] = "UNSUPPORTED_TOKEN_TYPE_ERROR";
27716
27716
  CheckoutErrorType["GET_ORDER_LISTING_ERROR"] = "GET_ORDER_LISTING_ERROR";
27717
+ CheckoutErrorType["SWITCH_NETWORK_UNSUPPORTED"] = "SWITCH_NETWORK_UNSUPPORTED";
27717
27718
  })($a8bc256d81a5e2c1$export$e3dc0620abde7f5a || ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a = {}));
27718
27719
  class $a8bc256d81a5e2c1$export$b722478a3cbfa3bc extends Error {
27719
27720
  message;
@@ -27862,6 +27863,7 @@ async function $de192de6ef100f9f$export$b827d9418aeb5dbd(config, web3Provider, c
27862
27863
  type: ($a47e48dd2c04791b$export$1f05a55fe0680cc7).ALL
27863
27864
  });
27864
27865
  if (!allowedNetworks.networks.some((network)=>network.chainId === chainId)) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Chain:${chainId} is not a supported chain`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CHAIN_NOT_SUPPORTED_ERROR);
27866
+ if (web3Provider.provider?.isPassport) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Switching networks with Passport provider is not supported", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).SWITCH_NETWORK_UNSUPPORTED);
27865
27867
  // WT-1146 - Refer to the README in this folder for explanation on the switch network flow
27866
27868
  try {
27867
27869
  await $de192de6ef100f9f$var$switchNetworkInWallet(networkMap, web3Provider, chainId);
@@ -28656,7 +28658,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28656
28658
  function $parcel$export(e, n, v, s) {
28657
28659
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28658
28660
  }
28659
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.7.0-alpha.1";
28661
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.8.0-alpha";
28660
28662
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
28661
28663
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
28662
28664
 
package/dist/passport.js CHANGED
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
1457
1457
  }
1458
1458
 
1459
1459
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.7.0-alpha.1' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.8.0-alpha' };
1461
1461
  const createConfig = ({ basePath, headers, }) => {
1462
1462
  if (!basePath.trim()) {
1463
1463
  throw Error('basePath can not be empty');
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1513
  chainID,
1514
1514
  coreContractAddress,
1515
1515
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.7.0-alpha.1',
1516
+ sdkVersion: 'ts-immutable-sdk-0.8.0-alpha',
1517
1517
  });
1518
1518
  /**
1519
1519
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.7.0-alpha.1",
4
+ "version": "0.8.0-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",