@dynamic-labs/ethereum 4.4.2-preview.0 → 4.4.2

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,13 +1,19 @@
1
1
 
2
- ### [4.4.2-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.1...v4.4.2-preview.0) (2025-01-28)
2
+ ### [4.4.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.1...v4.4.2) (2025-01-30)
3
3
 
4
4
 
5
5
  ### Features
6
6
 
7
- * add support for 7702 on ZeroDevConnector ([a8c850a](https://github.com/dynamic-labs/dynamic-auth/commit/a8c850ab192d6113ad55a01a594d5d90ab0fbfa6))
8
- * implement experimental_signAuthorization method in TurnkeyEVMWalletConnector ([#7866](https://github.com/dynamic-labs/dynamic-auth/issues/7866)) ([96853fa](https://github.com/dynamic-labs/dynamic-auth/commit/96853fae170ca2f81cc01ccd6d9886446876412b))
9
- * implement experimental_signAuthorization method in TurnkeyEVMWalletConnector ([#7866](https://github.com/dynamic-labs/dynamic-auth/issues/7866)) ([d988e88](https://github.com/dynamic-labs/dynamic-auth/commit/d988e88eccd0b04ba5710c8aa437f5dfffeb1d74))
10
- * implement experimental_signAuthorization method in TurnkeyEVMWalletConnector ([#7866](https://github.com/dynamic-labs/dynamic-auth/issues/7866)) ([597f837](https://github.com/dynamic-labs/dynamic-auth/commit/597f8375bacef1e6a9a064604074c6920955a3e2))
7
+ * add support for Bitget BTC ([#7915](https://github.com/dynamic-labs/dynamic-auth/issues/7915)) ([3fe23f7](https://github.com/dynamic-labs/dynamic-auth/commit/3fe23f739818ef0f5d504c34f237d1d115e4f50c))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * add backpackeclipse to walletbook fallbacks ([#7932](https://github.com/dynamic-labs/dynamic-auth/issues/7932)) ([eeaa7da](https://github.com/dynamic-labs/dynamic-auth/commit/eeaa7da629cb06ffc856f2e7f99beefcb8553bbd))
13
+ * otp verified should always be true ([#7921](https://github.com/dynamic-labs/dynamic-auth/issues/7921)) ([ac884d6](https://github.com/dynamic-labs/dynamic-auth/commit/ac884d6475152778aabd72d2c923b3c0b7745b00))
14
+ * **qntm-2814:** return checksum address from coinbase and metamask ([#7927](https://github.com/dynamic-labs/dynamic-auth/issues/7927)) ([3169d4d](https://github.com/dynamic-labs/dynamic-auth/commit/3169d4dd717b840c3654d15bacb20780d515269b))
15
+ * fix: creation of embedded wallet sessions with external auth
16
+
11
17
 
12
18
  ### [4.4.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.0...v4.4.1) (2025-01-27)
13
19
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.4.2-preview.0";
6
+ var version = "4.4.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.4.2-preview.0";
2
+ var version = "4.4.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "4.4.2-preview.0",
3
+ "version": "4.4.2",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -20,18 +20,18 @@
20
20
  "dependencies": {
21
21
  "@coinbase/wallet-sdk": "4.0.4",
22
22
  "@walletconnect/ethereum-provider": "2.11.2",
23
- "@walletconnect/types": "2.10.6",
23
+ "@walletconnect/types": "2.17.3",
24
24
  "eventemitter3": "5.0.1",
25
25
  "buffer": "6.0.3",
26
26
  "@metamask/sdk": "0.30.1",
27
- "@dynamic-labs/assert-package-version": "4.4.2-preview.0",
28
- "@dynamic-labs/embedded-wallet-evm": "4.4.2-preview.0",
29
- "@dynamic-labs/ethereum-core": "4.4.2-preview.0",
30
- "@dynamic-labs/logger": "4.4.2-preview.0",
31
- "@dynamic-labs/types": "4.4.2-preview.0",
32
- "@dynamic-labs/utils": "4.4.2-preview.0",
33
- "@dynamic-labs/wallet-book": "4.4.2-preview.0",
34
- "@dynamic-labs/wallet-connector-core": "4.4.2-preview.0"
27
+ "@dynamic-labs/assert-package-version": "4.4.2",
28
+ "@dynamic-labs/embedded-wallet-evm": "4.4.2",
29
+ "@dynamic-labs/ethereum-core": "4.4.2",
30
+ "@dynamic-labs/logger": "4.4.2",
31
+ "@dynamic-labs/types": "4.4.2",
32
+ "@dynamic-labs/utils": "4.4.2",
33
+ "@dynamic-labs/wallet-book": "4.4.2",
34
+ "@dynamic-labs/wallet-connector-core": "4.4.2"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "viem": "^2.21.55"
@@ -34,9 +34,9 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
34
34
  method: 'eth_accounts',
35
35
  });
36
36
  if (accounts[0]) {
37
- this.setActiveAccount(accounts[0]);
37
+ this.setActiveAccount(this.parseAddress(accounts[0]));
38
38
  }
39
- return accounts;
39
+ return accounts.map(this.parseAddress);
40
40
  }
41
41
  catch (error) {
42
42
  return [];
@@ -52,8 +52,9 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
52
52
  const [address] = yield this.coinbaseProvider.request({
53
53
  method: 'eth_requestAccounts',
54
54
  });
55
- this.setActiveAccount(address);
56
- return address;
55
+ const parsedAddress = this.parseAddress(address);
56
+ this.setActiveAccount(parsedAddress);
57
+ return parsedAddress;
57
58
  });
58
59
  }
59
60
  signMessage(messageToSign) {
@@ -61,10 +62,11 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
61
62
  const [address] = yield this.coinbaseProvider.request({
62
63
  method: 'eth_requestAccounts',
63
64
  });
65
+ const parsedAddress = this.parseAddress(address);
64
66
  try {
65
67
  return yield this.coinbaseProvider.request({
66
68
  method: 'personal_sign',
67
- params: [viem.toHex(viem.toBytes(messageToSign)), address.toLowerCase()],
69
+ params: [viem.toHex(viem.toBytes(messageToSign)), parsedAddress],
68
70
  });
69
71
  }
70
72
  catch (err) {
@@ -30,9 +30,9 @@ class Coinbase extends EthereumWalletConnector {
30
30
  method: 'eth_accounts',
31
31
  });
32
32
  if (accounts[0]) {
33
- this.setActiveAccount(accounts[0]);
33
+ this.setActiveAccount(this.parseAddress(accounts[0]));
34
34
  }
35
- return accounts;
35
+ return accounts.map(this.parseAddress);
36
36
  }
37
37
  catch (error) {
38
38
  return [];
@@ -48,8 +48,9 @@ class Coinbase extends EthereumWalletConnector {
48
48
  const [address] = yield this.coinbaseProvider.request({
49
49
  method: 'eth_requestAccounts',
50
50
  });
51
- this.setActiveAccount(address);
52
- return address;
51
+ const parsedAddress = this.parseAddress(address);
52
+ this.setActiveAccount(parsedAddress);
53
+ return parsedAddress;
53
54
  });
54
55
  }
55
56
  signMessage(messageToSign) {
@@ -57,10 +58,11 @@ class Coinbase extends EthereumWalletConnector {
57
58
  const [address] = yield this.coinbaseProvider.request({
58
59
  method: 'eth_requestAccounts',
59
60
  });
61
+ const parsedAddress = this.parseAddress(address);
60
62
  try {
61
63
  return yield this.coinbaseProvider.request({
62
64
  method: 'personal_sign',
63
- params: [toHex(toBytes(messageToSign)), address.toLowerCase()],
65
+ params: [toHex(toBytes(messageToSign)), parsedAddress],
64
66
  });
65
67
  }
66
68
  catch (err) {
@@ -140,7 +140,7 @@ class MetaMaskConnector extends InjectedWalletBase.InjectedWalletBase {
140
140
  // Connect to MetaMask
141
141
  this.getConnectedAccountsSafely().then((initialConnectedAccounts) => _tslib.__awaiter(this, void 0, void 0, function* () {
142
142
  if (initialConnectedAccounts.length) {
143
- resolve(initialConnectedAccounts[0]);
143
+ resolve(this.parseAddress(initialConnectedAccounts[0]));
144
144
  return;
145
145
  }
146
146
  try {
@@ -196,7 +196,7 @@ class MetaMaskConnector extends InjectedWalletBase.InjectedWalletBase {
196
196
  if (!(accounts === null || accounts === void 0 ? void 0 : accounts.length)) {
197
197
  return [];
198
198
  }
199
- return accounts;
199
+ return accounts.map(this.parseAddress);
200
200
  });
201
201
  }
202
202
  signMessage(messageToSign) {
@@ -136,7 +136,7 @@ class MetaMaskConnector extends InjectedWalletBase {
136
136
  // Connect to MetaMask
137
137
  this.getConnectedAccountsSafely().then((initialConnectedAccounts) => __awaiter(this, void 0, void 0, function* () {
138
138
  if (initialConnectedAccounts.length) {
139
- resolve(initialConnectedAccounts[0]);
139
+ resolve(this.parseAddress(initialConnectedAccounts[0]));
140
140
  return;
141
141
  }
142
142
  try {
@@ -192,7 +192,7 @@ class MetaMaskConnector extends InjectedWalletBase {
192
192
  if (!(accounts === null || accounts === void 0 ? void 0 : accounts.length)) {
193
193
  return [];
194
194
  }
195
- return accounts;
195
+ return accounts.map(this.parseAddress);
196
196
  });
197
197
  }
198
198
  signMessage(messageToSign) {