@dynamic-labs/ethereum-core 4.9.4 → 4.9.5

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,17 @@
1
1
 
2
+ ### [4.9.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.4...v4.9.5) (2025-03-19)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for AA to Global Wallet ([#8294](https://github.com/dynamic-labs/dynamic-auth/issues/8294)) ([173dfb9](https://github.com/dynamic-labs/dynamic-auth/commit/173dfb9c00e4307feec6ab11913f1a80310885eb))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * Remove the usage of random uuid in Global Wallet ([#8314](https://github.com/dynamic-labs/dynamic-auth/issues/8314)) ([79a7a64](https://github.com/dynamic-labs/dynamic-auth/commit/79a7a640b9ce470051a3c877ea46e8d4c94ea542))
13
+ * Fix UI when token balance is 0 ([#8299](https://github.com/dynamic-labs/dynamic-auth/issues/8299)) ([e8a2eca](https://github.com/dynamic-labs/dynamic-auth/commit/e8a2eca9876d914db738557a74751537eee2e129))
14
+
2
15
  ### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
3
16
 
4
17
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.4";
6
+ var version = "4.9.5";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.4";
2
+ var version = "4.9.5";
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.9.4",
3
+ "version": "4.9.5",
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.642",
22
- "@dynamic-labs/assert-package-version": "4.9.4",
23
- "@dynamic-labs/logger": "4.9.4",
24
- "@dynamic-labs/rpc-providers": "4.9.4",
25
- "@dynamic-labs/types": "4.9.4",
26
- "@dynamic-labs/utils": "4.9.4",
27
- "@dynamic-labs/wallet-book": "4.9.4",
28
- "@dynamic-labs/wallet-connector-core": "4.9.4"
21
+ "@dynamic-labs/sdk-api-core": "0.0.644",
22
+ "@dynamic-labs/assert-package-version": "4.9.5",
23
+ "@dynamic-labs/logger": "4.9.5",
24
+ "@dynamic-labs/rpc-providers": "4.9.5",
25
+ "@dynamic-labs/types": "4.9.5",
26
+ "@dynamic-labs/utils": "4.9.5",
27
+ "@dynamic-labs/wallet-book": "4.9.5",
28
+ "@dynamic-labs/wallet-connector-core": "4.9.5"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "viem": "^2.21.55"
@@ -76,23 +76,28 @@ class EthereumWallet extends walletConnectorCore.Wallet {
76
76
  */
77
77
  getWalletClient(chainId) {
78
78
  return _tslib.__awaiter(this, void 0, void 0, function* () {
79
+ var _a;
80
+ // Set active account if connector supports it, not AA atm
81
+ if ('setActiveAccount' in this._connector) {
82
+ this._connector.setActiveAccount(this.address);
83
+ }
79
84
  const walletClient = this._connector.getWalletClient(chainId);
80
85
  if (!walletClient) {
81
86
  throw new Error('Unable to retrieve WalletClient');
82
87
  }
83
88
  return viem.createWalletClient({
84
- account: this.address,
89
+ account: (_a = walletClient.account) !== null && _a !== void 0 ? _a : this.address,
85
90
  chain: walletClient.chain,
86
91
  transport: interceptTransport.interceptTransport({
87
- onPersonalSign: (_a) => _tslib.__awaiter(this, [_a], void 0, function* ({ provider, args }) {
92
+ onPersonalSign: (_b) => _tslib.__awaiter(this, [_b], void 0, function* ({ provider, args }) {
88
93
  yield this.sync();
89
94
  return provider.request(args);
90
95
  }),
91
- onSendTransaction: (_b) => _tslib.__awaiter(this, [_b], void 0, function* ({ provider, args }) {
96
+ onSendTransaction: (_c) => _tslib.__awaiter(this, [_c], void 0, function* ({ provider, args }) {
92
97
  yield this.sync();
93
98
  return provider.request(args);
94
99
  }),
95
- onSignTypedData: (_c) => _tslib.__awaiter(this, [_c], void 0, function* ({ provider, args }) {
100
+ onSignTypedData: (_d) => _tslib.__awaiter(this, [_d], void 0, function* ({ provider, args }) {
96
101
  yield this.sync();
97
102
  return provider.request(args);
98
103
  }),
@@ -72,23 +72,28 @@ class EthereumWallet extends Wallet {
72
72
  */
73
73
  getWalletClient(chainId) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
+ var _a;
76
+ // Set active account if connector supports it, not AA atm
77
+ if ('setActiveAccount' in this._connector) {
78
+ this._connector.setActiveAccount(this.address);
79
+ }
75
80
  const walletClient = this._connector.getWalletClient(chainId);
76
81
  if (!walletClient) {
77
82
  throw new Error('Unable to retrieve WalletClient');
78
83
  }
79
84
  return createWalletClient({
80
- account: this.address,
85
+ account: (_a = walletClient.account) !== null && _a !== void 0 ? _a : this.address,
81
86
  chain: walletClient.chain,
82
87
  transport: interceptTransport({
83
- onPersonalSign: (_a) => __awaiter(this, [_a], void 0, function* ({ provider, args }) {
88
+ onPersonalSign: (_b) => __awaiter(this, [_b], void 0, function* ({ provider, args }) {
84
89
  yield this.sync();
85
90
  return provider.request(args);
86
91
  }),
87
- onSendTransaction: (_b) => __awaiter(this, [_b], void 0, function* ({ provider, args }) {
92
+ onSendTransaction: (_c) => __awaiter(this, [_c], void 0, function* ({ provider, args }) {
88
93
  yield this.sync();
89
94
  return provider.request(args);
90
95
  }),
91
- onSignTypedData: (_c) => __awaiter(this, [_c], void 0, function* ({ provider, args }) {
96
+ onSignTypedData: (_d) => __awaiter(this, [_d], void 0, function* ({ provider, args }) {
92
97
  yield this.sync();
93
98
  return provider.request(args);
94
99
  }),