@imtbl/sdk 0.28.3 → 0.28.4

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.
@@ -11459,20 +11459,6 @@ type ChainTokensConfig = {
11459
11459
  allowed?: TokenInfo[];
11460
11460
  blockscout?: boolean;
11461
11461
  };
11462
- /**
11463
- * Represents information about a network.
11464
- * @interface NetworkInfo
11465
- * @property {string} name - The name of the network.
11466
- * @property {number} chainId - The chain ID of the network.
11467
- * @property {TokenInfo} nativeCurrency - Information about the native currency of the network.
11468
- * @property {boolean} isSupported - Indicates whether the network is supported.
11469
- */
11470
- interface NetworkInfo {
11471
- name: string;
11472
- chainId: number;
11473
- nativeCurrency: TokenInfo;
11474
- isSupported: boolean;
11475
- }
11476
11462
  /**
11477
11463
  * Interface representing the params of {@link Checkout.connect}.
11478
11464
  * @property {Web3Provider} provider - The provider used to connect to the network.
@@ -11483,11 +11469,9 @@ interface ConnectParams {
11483
11469
  /**
11484
11470
  * Interface representing the result of {@link Checkout.connect}.
11485
11471
  * @property {Web3Provider} provider - The provider used to connect to the network.
11486
- * @property {NetworkInfo} network - Information about the connected network.
11487
11472
  */
11488
11473
  interface ConnectResult {
11489
11474
  provider: Web3Provider;
11490
- network: NetworkInfo;
11491
11475
  }
11492
11476
  /**
11493
11477
  * Interface representing the params of {@link Checkout.checkIsWalletConnected}.
@@ -11568,6 +11552,20 @@ interface TokenAmountEstimate {
11568
11552
  estimatedAmount?: BigNumber;
11569
11553
  token?: TokenInfo;
11570
11554
  }
11555
+ /**
11556
+ * Represents information about a network.
11557
+ * @interface NetworkInfo
11558
+ * @property {string} name - The name of the network.
11559
+ * @property {number} chainId - The chain ID of the network.
11560
+ * @property {TokenInfo} nativeCurrency - Information about the native currency of the network.
11561
+ * @property {boolean} isSupported - Indicates whether the network is supported.
11562
+ */
11563
+ interface NetworkInfo {
11564
+ name: string;
11565
+ chainId: number;
11566
+ nativeCurrency: TokenInfo;
11567
+ isSupported: boolean;
11568
+ }
11571
11569
  /**
11572
11570
  * Interface representing the parameters for {@link Checkout.switchNetwork}.
11573
11571
  * @property {Web3Provider} provider - The provider to connect to the network.
@@ -20787,7 +20787,7 @@ class APIError extends Error {
20787
20787
 
20788
20788
  /* eslint-disable implicit-arrow-linebreak */
20789
20789
  const defaultHeaders = {
20790
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.3',
20790
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.4',
20791
20791
  };
20792
20792
  /**
20793
20793
  * createAPIConfiguration to create a custom Configuration
@@ -25176,10 +25176,8 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
25176
25176
  allowUnsupportedProvider: true
25177
25177
  });
25178
25178
  await $c99672cf2294e839$export$43f7168eb392a88c(web3Provider);
25179
- const networkInfo = await $de192de6ef100f9f$export$79f13b4cfaaf0d09(this.config, web3Provider);
25180
25179
  return {
25181
- provider: web3Provider,
25182
- network: networkInfo
25180
+ provider: web3Provider
25183
25181
  };
25184
25182
  }
25185
25183
  /**
@@ -25,7 +25,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
25
25
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
26
26
 
27
27
 
28
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.3";
28
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.4";
29
29
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
30
30
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
31
31
 
@@ -319,7 +319,7 @@ function $b222a8f062090058$export$fae4199086a966a3(tagName, passport) {
319
319
  if (attempts >= maxAttempts) {
320
320
  window.clearInterval(timer);
321
321
  // eslint-disable-next-line no-console
322
- console.error("failed to set the provider");
322
+ console.error("failed to set the provider", err);
323
323
  }
324
324
  }
325
325
  };
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
17
17
  chainID,
18
18
  coreContractAddress,
19
19
  registrationContractAddress,
20
- sdkVersion: 'ts-immutable-sdk-0.28.3',
20
+ sdkVersion: 'ts-immutable-sdk-0.28.4',
21
21
  });
22
22
  /**
23
23
  * Sets `sdkVersion` at the time of build