@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.
@@ -1076,7 +1076,8 @@ declare enum CheckoutErrorType {
1076
1076
  UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT",
1077
1077
  INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE",
1078
1078
  UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
1079
- GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR"
1079
+ GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
1080
+ SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED"
1080
1081
  }
1081
1082
  /**
1082
1083
  * Represents an error object with a specific type, optional message, and optional data.
@@ -17718,6 +17718,7 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
17718
17718
  CheckoutErrorType["INVALID_GAS_ESTIMATE_TYPE"] = "INVALID_GAS_ESTIMATE_TYPE";
17719
17719
  CheckoutErrorType["UNSUPPORTED_TOKEN_TYPE_ERROR"] = "UNSUPPORTED_TOKEN_TYPE_ERROR";
17720
17720
  CheckoutErrorType["GET_ORDER_LISTING_ERROR"] = "GET_ORDER_LISTING_ERROR";
17721
+ CheckoutErrorType["SWITCH_NETWORK_UNSUPPORTED"] = "SWITCH_NETWORK_UNSUPPORTED";
17721
17722
  })($a8bc256d81a5e2c1$export$e3dc0620abde7f5a || ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a = {}));
17722
17723
  class $a8bc256d81a5e2c1$export$b722478a3cbfa3bc extends Error {
17723
17724
  message;
@@ -17866,6 +17867,7 @@ async function $de192de6ef100f9f$export$b827d9418aeb5dbd(config, web3Provider, c
17866
17867
  type: ($a47e48dd2c04791b$export$1f05a55fe0680cc7).ALL
17867
17868
  });
17868
17869
  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);
17870
+ if (web3Provider.provider?.isPassport) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Switching networks with Passport provider is not supported", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).SWITCH_NETWORK_UNSUPPORTED);
17869
17871
  // WT-1146 - Refer to the README in this folder for explanation on the switch network flow
17870
17872
  try {
17871
17873
  await $de192de6ef100f9f$var$switchNetworkInWallet(networkMap, web3Provider, chainId);
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.7.0-alpha.1";
7
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.8.0-alpha";
8
8
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
9
9
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
10
10
 
@@ -16,7 +16,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
16
16
  chainID,
17
17
  coreContractAddress,
18
18
  registrationContractAddress,
19
- sdkVersion: 'ts-immutable-sdk-0.7.0-alpha.1',
19
+ sdkVersion: 'ts-immutable-sdk-0.8.0-alpha',
20
20
  });
21
21
  /**
22
22
  * Sets `sdkVersion` at the time of build