@dynamic-labs/ethereum-core 4.19.5 → 4.19.7

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/CHANGELOG.md CHANGED
@@ -1,4 +1,31 @@
1
1
 
2
+ ### [4.19.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.6...v4.19.7) (2025-06-06)
3
+
4
+
5
+ ### Features
6
+
7
+ * add util to find waas wallets ([#8871](https://github.com/dynamic-labs/dynamic-auth/issues/8871)) ([2d7114e](https://github.com/dynamic-labs/dynamic-auth/commit/2d7114e51f5badf1d04600597f1fd9433fabf3d0))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * make sure smart account is deployed before creating sessions ([#8894](https://github.com/dynamic-labs/dynamic-auth/issues/8894)) ([5ba3d23](https://github.com/dynamic-labs/dynamic-auth/commit/5ba3d23bb8ef7c7438809128c8ef74c390ba1d48))
13
+ * only deploy zksync smart account if not deployed ([#8840](https://github.com/dynamic-labs/dynamic-auth/issues/8840)) ([66a306a](https://github.com/dynamic-labs/dynamic-auth/commit/66a306aaee25c58f685fa050a5d6aea79b196fce))
14
+ * primary wallet loading time when using React 19 ([#8896](https://github.com/dynamic-labs/dynamic-auth/issues/8896)) ([f5690f3](https://github.com/dynamic-labs/dynamic-auth/commit/f5690f31012e8fc6a5650423d4ece6c04f7c1811))
15
+
16
+ ### [4.19.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.5...v4.19.6) (2025-06-04)
17
+
18
+
19
+ ### Features
20
+
21
+ * backup unsuccessful popup when create wallet fails ([#8872](https://github.com/dynamic-labs/dynamic-auth/issues/8872)) ([c8f88f2](https://github.com/dynamic-labs/dynamic-auth/commit/c8f88f2cafdb7856764305764a230e159f09dadf))
22
+ * **global-wallet:** new native api method to return the eoa wallet for a connected smart wallet ([#8864](https://github.com/dynamic-labs/dynamic-auth/issues/8864)) ([5d0e200](https://github.com/dynamic-labs/dynamic-auth/commit/5d0e2002caefb658f6120b102abe145d6caafaf4))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * dont call select endpoint when signing in with 7702 wallet ([#8854](https://github.com/dynamic-labs/dynamic-auth/issues/8854)) ([9828a8f](https://github.com/dynamic-labs/dynamic-auth/commit/9828a8fb758b07dd4dc51cb9eadee483b884defe))
28
+
2
29
  ### [4.19.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.4...v4.19.5) (2025-06-02)
3
30
 
4
31
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.19.5";
6
+ var version = "4.19.7";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.19.5";
2
+ var version = "4.19.7";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-core",
3
- "version": "4.19.5",
3
+ "version": "4.19.7",
4
4
  "description": "Core package for utilities and types for viem",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,14 +18,14 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.672",
22
- "@dynamic-labs/assert-package-version": "4.19.5",
23
- "@dynamic-labs/logger": "4.19.5",
24
- "@dynamic-labs/rpc-providers": "4.19.5",
25
- "@dynamic-labs/types": "4.19.5",
26
- "@dynamic-labs/utils": "4.19.5",
27
- "@dynamic-labs/wallet-book": "4.19.5",
28
- "@dynamic-labs/wallet-connector-core": "4.19.5"
21
+ "@dynamic-labs/sdk-api-core": "0.0.681",
22
+ "@dynamic-labs/assert-package-version": "4.19.7",
23
+ "@dynamic-labs/logger": "4.19.7",
24
+ "@dynamic-labs/rpc-providers": "4.19.7",
25
+ "@dynamic-labs/types": "4.19.7",
26
+ "@dynamic-labs/utils": "4.19.7",
27
+ "@dynamic-labs/wallet-book": "4.19.7",
28
+ "@dynamic-labs/wallet-connector-core": "4.19.7"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "viem": "^2.28.4"
@@ -89,8 +89,20 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
89
89
  }
90
90
  isTestnet() {
91
91
  return _tslib.__awaiter(this, void 0, void 0, function* () {
92
- var _a, _b, _c;
93
- return (_c = (_b = (_a = (yield this.getPublicClient())) === null || _a === void 0 ? void 0 : _a.chain) === null || _b === void 0 ? void 0 : _b.testnet) !== null && _c !== void 0 ? _c : false;
92
+ var _a, _b;
93
+ const chain = (_a = (yield this.getPublicClient())) === null || _a === void 0 ? void 0 : _a.chain;
94
+ const evmNetwork = this.evmNetworks.find((n) => n.chainId === (chain === null || chain === void 0 ? void 0 : chain.id));
95
+ walletConnectorCore.logger.logVerboseTroubleshootingMessage('[EthereumWalletConnector] isTestnet', {
96
+ evmNetwork,
97
+ viemChain: chain,
98
+ });
99
+ // this is a workaround to an issue with Hyperliquid Mainnet, where its chainId
100
+ // conflicts with another chain in viem, so viem thinks it's a testnet, but it's not
101
+ // we should use the value coming from our api and only fallback to viem if it's not set
102
+ if ((evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.isTestnet) !== undefined) {
103
+ return evmNetwork.isTestnet;
104
+ }
105
+ return (_b = chain === null || chain === void 0 ? void 0 : chain.testnet) !== null && _b !== void 0 ? _b : false;
94
106
  });
95
107
  }
96
108
  parseAddress(address) {
@@ -85,8 +85,20 @@ class EthereumWalletConnector extends WalletConnectorBase {
85
85
  }
86
86
  isTestnet() {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
- var _a, _b, _c;
89
- return (_c = (_b = (_a = (yield this.getPublicClient())) === null || _a === void 0 ? void 0 : _a.chain) === null || _b === void 0 ? void 0 : _b.testnet) !== null && _c !== void 0 ? _c : false;
88
+ var _a, _b;
89
+ const chain = (_a = (yield this.getPublicClient())) === null || _a === void 0 ? void 0 : _a.chain;
90
+ const evmNetwork = this.evmNetworks.find((n) => n.chainId === (chain === null || chain === void 0 ? void 0 : chain.id));
91
+ logger.logVerboseTroubleshootingMessage('[EthereumWalletConnector] isTestnet', {
92
+ evmNetwork,
93
+ viemChain: chain,
94
+ });
95
+ // this is a workaround to an issue with Hyperliquid Mainnet, where its chainId
96
+ // conflicts with another chain in viem, so viem thinks it's a testnet, but it's not
97
+ // we should use the value coming from our api and only fallback to viem if it's not set
98
+ if ((evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.isTestnet) !== undefined) {
99
+ return evmNetwork.isTestnet;
100
+ }
101
+ return (_b = chain === null || chain === void 0 ? void 0 : chain.testnet) !== null && _b !== void 0 ? _b : false;
90
102
  });
91
103
  }
92
104
  parseAddress(address) {