@dynamic-labs/embedded-wallet-evm 4.9.4 → 4.9.6

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,32 @@
1
1
 
2
+ ### [4.9.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.5...v4.9.6) (2025-03-21)
3
+
4
+
5
+ ### Features
6
+
7
+ * add initial sui support ([#8317](https://github.com/dynamic-labs/dynamic-auth/issues/8317)) ([88c0234](https://github.com/dynamic-labs/dynamic-auth/commit/88c023483bad5736f38cb313b035279460f6e256))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * allow metmask sdk to retry connection ([#8322](https://github.com/dynamic-labs/dynamic-auth/issues/8322)) ([603ed99](https://github.com/dynamic-labs/dynamic-auth/commit/603ed99de3b5d90ac4f5eabcdcd3b2e90863298f))
13
+ * css for profile page without embedded wallets ([#8339](https://github.com/dynamic-labs/dynamic-auth/issues/8339)) ([7f696e9](https://github.com/dynamic-labs/dynamic-auth/commit/7f696e9986ddd899d140640f9af7cfd2dcd7c37a))
14
+ * ensure metamask connector can get display uri for multiple connections ([#8324](https://github.com/dynamic-labs/dynamic-auth/issues/8324)) ([1d95f08](https://github.com/dynamic-labs/dynamic-auth/commit/1d95f089589779e8ef078b80bd84fa0754179696))
15
+ * pass HttpTransportConfig to WalletClient, not just PublicClient ([#8333](https://github.com/dynamic-labs/dynamic-auth/issues/8333)) ([a0ddd10](https://github.com/dynamic-labs/dynamic-auth/commit/a0ddd10f1df57555cf0a3ed777f5d354eb140582))
16
+
17
+ ### [4.9.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.4...v4.9.5) (2025-03-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * 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))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * 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))
28
+ * 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))
29
+
2
30
  ### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
3
31
 
4
32
 
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.6";
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.6";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/embedded-wallet-evm",
3
- "version": "4.9.4",
3
+ "version": "4.9.6",
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",
@@ -18,19 +18,19 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.642",
21
+ "@dynamic-labs/sdk-api-core": "0.0.644",
22
22
  "@turnkey/api-key-stamper": "0.4.3",
23
23
  "@turnkey/iframe-stamper": "2.0.0",
24
24
  "@turnkey/viem": "0.6.2",
25
25
  "@turnkey/webauthn-stamper": "0.5.0",
26
- "@dynamic-labs/assert-package-version": "4.9.4",
27
- "@dynamic-labs/embedded-wallet": "4.9.4",
28
- "@dynamic-labs/ethereum-core": "4.9.4",
29
- "@dynamic-labs/types": "4.9.4",
30
- "@dynamic-labs/utils": "4.9.4",
31
- "@dynamic-labs/wallet-book": "4.9.4",
32
- "@dynamic-labs/wallet-connector-core": "4.9.4",
33
- "@dynamic-labs/webauthn": "4.9.4"
26
+ "@dynamic-labs/assert-package-version": "4.9.6",
27
+ "@dynamic-labs/embedded-wallet": "4.9.6",
28
+ "@dynamic-labs/ethereum-core": "4.9.6",
29
+ "@dynamic-labs/types": "4.9.6",
30
+ "@dynamic-labs/utils": "4.9.6",
31
+ "@dynamic-labs/wallet-book": "4.9.6",
32
+ "@dynamic-labs/wallet-connector-core": "4.9.6",
33
+ "@dynamic-labs/webauthn": "4.9.6"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "viem": "^2.21.55"
@@ -18,7 +18,7 @@ var embeddedWallet = require('@dynamic-labs/embedded-wallet');
18
18
 
19
19
  class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBase {
20
20
  constructor(nameAndKey, props) {
21
- var _a, _b;
21
+ var _a, _b, _c;
22
22
  super(nameAndKey, props);
23
23
  this.walletFallback = {
24
24
  brand: {
@@ -36,8 +36,9 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
36
36
  this.walletUiUtils = props.walletUiUtils;
37
37
  this._turnkeyAccount = undefined;
38
38
  this._selectedChainId = this.getLastUsedChainId();
39
+ this.providersConfig = (_a = props.providersConfig) !== null && _a !== void 0 ? _a : {};
39
40
  this.chainRpcProviders = props.chainRpcProviders;
40
- (_a = this.chainRpcProviders) === null || _a === void 0 ? void 0 : _a.registerEvmProviders((_b = props.providersConfig) !== null && _b !== void 0 ? _b : {});
41
+ (_b = this.chainRpcProviders) === null || _b === void 0 ? void 0 : _b.registerEvmProviders((_c = this.providersConfig) !== null && _c !== void 0 ? _c : {});
41
42
  this.__turnkeyClient = this.getTurnkeyClient();
42
43
  }
43
44
  getLastUsedChainId() {
@@ -218,7 +219,7 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
218
219
  account: this.getAccount.bind(this),
219
220
  address: this.turnkeyAddress,
220
221
  chain: ethereumCore.getOrMapViemChain(evmNetwork),
221
- transport: viem.http(rpcUrl),
222
+ transport: viem.http(rpcUrl, this.providersConfig.httpTransportConfig),
222
223
  // TODO: remove this. We should not be passing references to wallet connectors
223
224
  walletConnector: this,
224
225
  walletUiUtils: this.walletUiUtils,
@@ -26,6 +26,7 @@ export declare class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBas
26
26
  supportedChains: Chain[];
27
27
  evmNetworks: EvmNetwork[];
28
28
  verifiedCredentialChain: string;
29
+ providersConfig: RegisterEvmProvidersConfig;
29
30
  private walletUiUtils;
30
31
  private _turnkeyAccount;
31
32
  static lastUsedChainIdStorageKey: string;
@@ -14,7 +14,7 @@ import { TurnkeyWalletConnectorBase, findTurnkeyVerifiedCredentialsWithSmartWall
14
14
 
15
15
  class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
16
16
  constructor(nameAndKey, props) {
17
- var _a, _b;
17
+ var _a, _b, _c;
18
18
  super(nameAndKey, props);
19
19
  this.walletFallback = {
20
20
  brand: {
@@ -32,8 +32,9 @@ class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
32
32
  this.walletUiUtils = props.walletUiUtils;
33
33
  this._turnkeyAccount = undefined;
34
34
  this._selectedChainId = this.getLastUsedChainId();
35
+ this.providersConfig = (_a = props.providersConfig) !== null && _a !== void 0 ? _a : {};
35
36
  this.chainRpcProviders = props.chainRpcProviders;
36
- (_a = this.chainRpcProviders) === null || _a === void 0 ? void 0 : _a.registerEvmProviders((_b = props.providersConfig) !== null && _b !== void 0 ? _b : {});
37
+ (_b = this.chainRpcProviders) === null || _b === void 0 ? void 0 : _b.registerEvmProviders((_c = this.providersConfig) !== null && _c !== void 0 ? _c : {});
37
38
  this.__turnkeyClient = this.getTurnkeyClient();
38
39
  }
39
40
  getLastUsedChainId() {
@@ -214,7 +215,7 @@ class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
214
215
  account: this.getAccount.bind(this),
215
216
  address: this.turnkeyAddress,
216
217
  chain: getOrMapViemChain(evmNetwork),
217
- transport: http(rpcUrl),
218
+ transport: http(rpcUrl, this.providersConfig.httpTransportConfig),
218
219
  // TODO: remove this. We should not be passing references to wallet connectors
219
220
  walletConnector: this,
220
221
  walletUiUtils: this.walletUiUtils,