@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.
package/dist/index.cjs CHANGED
@@ -3651,7 +3651,7 @@ class MultiRollupApiClients {
3651
3651
  }
3652
3652
 
3653
3653
  // eslint-disable-next-line @typescript-eslint/naming-convention
3654
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.3' };
3654
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.4' };
3655
3655
  const createConfig = ({ basePath, headers, }) => {
3656
3656
  if (!basePath.trim()) {
3657
3657
  throw Error('basePath can not be empty');
@@ -3711,7 +3711,7 @@ class APIError extends Error {
3711
3711
 
3712
3712
  /* eslint-disable implicit-arrow-linebreak */
3713
3713
  const defaultHeaders = {
3714
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.3',
3714
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.4',
3715
3715
  };
3716
3716
  /**
3717
3717
  * createAPIConfiguration to create a custom Configuration
@@ -4122,7 +4122,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4122
4122
  chainID,
4123
4123
  coreContractAddress,
4124
4124
  registrationContractAddress,
4125
- sdkVersion: 'ts-immutable-sdk-0.28.3',
4125
+ sdkVersion: 'ts-immutable-sdk-0.28.4',
4126
4126
  });
4127
4127
  /**
4128
4128
  * Sets `sdkVersion` at the time of build
@@ -33365,10 +33365,8 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
33365
33365
  allowUnsupportedProvider: true
33366
33366
  });
33367
33367
  await $c99672cf2294e839$export$43f7168eb392a88c(web3Provider);
33368
- const networkInfo = await $de192de6ef100f9f$export$79f13b4cfaaf0d09(this.config, web3Provider);
33369
33368
  return {
33370
- provider: web3Provider,
33371
- network: networkInfo
33369
+ provider: web3Provider
33372
33370
  };
33373
33371
  }
33374
33372
  /**
@@ -33587,7 +33585,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
33587
33585
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
33588
33586
 
33589
33587
 
33590
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.3";
33588
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.4";
33591
33589
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
33592
33590
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
33593
33591
 
@@ -33881,7 +33879,7 @@ function $b222a8f062090058$export$fae4199086a966a3(tagName, passport) {
33881
33879
  if (attempts >= maxAttempts) {
33882
33880
  window.clearInterval(timer);
33883
33881
  // eslint-disable-next-line no-console
33884
- console.error("failed to set the provider");
33882
+ console.error("failed to set the provider", err);
33885
33883
  }
33886
33884
  }
33887
33885
  };
package/dist/index.d.ts CHANGED
@@ -16713,20 +16713,6 @@ type ChainTokensConfig = {
16713
16713
  allowed?: TokenInfo[];
16714
16714
  blockscout?: boolean;
16715
16715
  };
16716
- /**
16717
- * Represents information about a network.
16718
- * @interface NetworkInfo
16719
- * @property {string} name - The name of the network.
16720
- * @property {number} chainId - The chain ID of the network.
16721
- * @property {TokenInfo} nativeCurrency - Information about the native currency of the network.
16722
- * @property {boolean} isSupported - Indicates whether the network is supported.
16723
- */
16724
- interface NetworkInfo {
16725
- name: string;
16726
- chainId: number;
16727
- nativeCurrency: TokenInfo;
16728
- isSupported: boolean;
16729
- }
16730
16716
  /**
16731
16717
  * Interface representing the params of {@link Checkout.connect}.
16732
16718
  * @property {Web3Provider} provider - The provider used to connect to the network.
@@ -16737,11 +16723,9 @@ interface ConnectParams {
16737
16723
  /**
16738
16724
  * Interface representing the result of {@link Checkout.connect}.
16739
16725
  * @property {Web3Provider} provider - The provider used to connect to the network.
16740
- * @property {NetworkInfo} network - Information about the connected network.
16741
16726
  */
16742
16727
  interface ConnectResult {
16743
16728
  provider: Web3Provider;
16744
- network: NetworkInfo;
16745
16729
  }
16746
16730
  /**
16747
16731
  * Interface representing the params of {@link Checkout.checkIsWalletConnected}.
@@ -16822,6 +16806,20 @@ interface TokenAmountEstimate {
16822
16806
  estimatedAmount?: BigNumber;
16823
16807
  token?: TokenInfo;
16824
16808
  }
16809
+ /**
16810
+ * Represents information about a network.
16811
+ * @interface NetworkInfo
16812
+ * @property {string} name - The name of the network.
16813
+ * @property {number} chainId - The chain ID of the network.
16814
+ * @property {TokenInfo} nativeCurrency - Information about the native currency of the network.
16815
+ * @property {boolean} isSupported - Indicates whether the network is supported.
16816
+ */
16817
+ interface NetworkInfo {
16818
+ name: string;
16819
+ chainId: number;
16820
+ nativeCurrency: TokenInfo;
16821
+ isSupported: boolean;
16822
+ }
16825
16823
  /**
16826
16824
  * Interface representing the parameters for {@link Checkout.switchNetwork}.
16827
16825
  * @property {Web3Provider} provider - The provider to connect to the network.
package/dist/index.js CHANGED
@@ -3629,7 +3629,7 @@ class MultiRollupApiClients {
3629
3629
  }
3630
3630
 
3631
3631
  // eslint-disable-next-line @typescript-eslint/naming-convention
3632
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.3' };
3632
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.28.4' };
3633
3633
  const createConfig = ({ basePath, headers, }) => {
3634
3634
  if (!basePath.trim()) {
3635
3635
  throw Error('basePath can not be empty');
@@ -3689,7 +3689,7 @@ class APIError extends Error {
3689
3689
 
3690
3690
  /* eslint-disable implicit-arrow-linebreak */
3691
3691
  const defaultHeaders = {
3692
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.3',
3692
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.28.4',
3693
3693
  };
3694
3694
  /**
3695
3695
  * createAPIConfiguration to create a custom Configuration
@@ -4100,7 +4100,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4100
4100
  chainID,
4101
4101
  coreContractAddress,
4102
4102
  registrationContractAddress,
4103
- sdkVersion: 'ts-immutable-sdk-0.28.3',
4103
+ sdkVersion: 'ts-immutable-sdk-0.28.4',
4104
4104
  });
4105
4105
  /**
4106
4106
  * Sets `sdkVersion` at the time of build
@@ -33343,10 +33343,8 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
33343
33343
  allowUnsupportedProvider: true
33344
33344
  });
33345
33345
  await $c99672cf2294e839$export$43f7168eb392a88c(web3Provider);
33346
- const networkInfo = await $de192de6ef100f9f$export$79f13b4cfaaf0d09(this.config, web3Provider);
33347
33346
  return {
33348
- provider: web3Provider,
33349
- network: networkInfo
33347
+ provider: web3Provider
33350
33348
  };
33351
33349
  }
33352
33350
  /**
@@ -33565,7 +33563,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
33565
33563
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
33566
33564
 
33567
33565
 
33568
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.3";
33566
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.28.4";
33569
33567
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
33570
33568
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
33571
33569
 
@@ -33859,7 +33857,7 @@ function $b222a8f062090058$export$fae4199086a966a3(tagName, passport) {
33859
33857
  if (attempts >= maxAttempts) {
33860
33858
  window.clearInterval(timer);
33861
33859
  // eslint-disable-next-line no-console
33862
- console.error("failed to set the provider");
33860
+ console.error("failed to set the provider", err);
33863
33861
  }
33864
33862
  }
33865
33863
  };
package/dist/passport.js CHANGED
@@ -2072,7 +2072,7 @@ class MultiRollupApiClients {
2072
2072
  }
2073
2073
 
2074
2074
  // eslint-disable-next-line @typescript-eslint/naming-convention
2075
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.28.3' };
2075
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.28.4' };
2076
2076
  const createConfig = ({ basePath, headers, }) => {
2077
2077
  if (!basePath.trim()) {
2078
2078
  throw Error('basePath can not be empty');
@@ -2128,7 +2128,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2128
2128
  chainID,
2129
2129
  coreContractAddress,
2130
2130
  registrationContractAddress,
2131
- sdkVersion: 'ts-immutable-sdk-0.28.3',
2131
+ sdkVersion: 'ts-immutable-sdk-0.28.4',
2132
2132
  });
2133
2133
  /**
2134
2134
  * 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.28.3",
4
+ "version": "0.28.4",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",