@dynamic-labs/ethereum 4.53.1 → 4.53.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,4 +1,20 @@
1
1
 
2
+ ### [4.53.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.1...v4.53.2) (2026-01-16)
3
+
4
+
5
+ ### Features
6
+
7
+ * add iCloud backup functionality ([#10219](https://github.com/dynamic-labs/dynamic-auth/issues/10219)) ([44e95e5](https://github.com/dynamic-labs/dynamic-auth/commit/44e95e5a5dc99f83918a382ab1c69d452359c346))
8
+ * update PSBT building with Largest-First UTXO selection and fee priorities (high/medium/low) ([#10227](https://github.com/dynamic-labs/dynamic-auth/issues/10227)) ([94c5f5c](https://github.com/dynamic-labs/dynamic-auth/commit/94c5f5cb97432bb97374b754cb95bc23290dd184))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * allow late registered solana wallets to appear in the wallet list ([#10224](https://github.com/dynamic-labs/dynamic-auth/issues/10224)) ([2f418d4](https://github.com/dynamic-labs/dynamic-auth/commit/2f418d4f3e0543bdd829a45807329f89da1e41a7))
14
+ * correctly show app name in wallet app for wallet connect evm connections ([#10218](https://github.com/dynamic-labs/dynamic-auth/issues/10218)) ([fec0009](https://github.com/dynamic-labs/dynamic-auth/commit/fec0009177439baa67015050b4ad799119615f4f))
15
+ * destructure wallets from getWalletStandardWallets before calling find ([#10234](https://github.com/dynamic-labs/dynamic-auth/issues/10234)) ([b59617a](https://github.com/dynamic-labs/dynamic-auth/commit/b59617a8579b9c7d8a5f744a2ea9363ccb4aee58))
16
+ * **react-native:** filter connectors by enabled chains and add chain parameter to connectWallet ([#10230](https://github.com/dynamic-labs/dynamic-auth/issues/10230)) ([a2bbd03](https://github.com/dynamic-labs/dynamic-auth/commit/a2bbd03ece52950711d2eda18cb2345df15710dd))
17
+
2
18
  ### [4.53.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.0...v4.53.1) (2026-01-14)
3
19
 
4
20
  ## [4.53.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.5...v4.53.0) (2026-01-13)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.53.1";
6
+ var version = "4.53.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.53.1";
2
+ var version = "4.53.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.53.1",
3
+ "version": "4.53.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",
@@ -24,16 +24,16 @@
24
24
  "eventemitter3": "5.0.1",
25
25
  "buffer": "6.0.3",
26
26
  "@metamask/sdk": "0.33.0",
27
- "@dynamic-labs/assert-package-version": "4.53.1",
28
- "@dynamic-labs/embedded-wallet-evm": "4.53.1",
29
- "@dynamic-labs/ethereum-core": "4.53.1",
30
- "@dynamic-labs/logger": "4.53.1",
31
- "@dynamic-labs/rpc-providers": "4.53.1",
32
- "@dynamic-labs/types": "4.53.1",
33
- "@dynamic-labs/utils": "4.53.1",
34
- "@dynamic-labs/waas-evm": "4.53.1",
35
- "@dynamic-labs/wallet-book": "4.53.1",
36
- "@dynamic-labs/wallet-connector-core": "4.53.1"
27
+ "@dynamic-labs/assert-package-version": "4.53.2",
28
+ "@dynamic-labs/embedded-wallet-evm": "4.53.2",
29
+ "@dynamic-labs/ethereum-core": "4.53.2",
30
+ "@dynamic-labs/logger": "4.53.2",
31
+ "@dynamic-labs/rpc-providers": "4.53.2",
32
+ "@dynamic-labs/types": "4.53.2",
33
+ "@dynamic-labs/utils": "4.53.2",
34
+ "@dynamic-labs/waas-evm": "4.53.2",
35
+ "@dynamic-labs/wallet-book": "4.53.2",
36
+ "@dynamic-labs/wallet-connector-core": "4.53.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "viem": "^2.28.4"
@@ -18,6 +18,7 @@ const EvmWalletConnectConnectors = (
18
18
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
19
  props) => fetchWalletConnectWallets.fetchWalletConnectWallets({
20
20
  applyFilterFromWalletConnect: false,
21
+ evmNetworks: props.evmNetworks,
21
22
  walletBook: props.walletBook,
22
23
  });
23
24
 
@@ -14,6 +14,7 @@ const EvmWalletConnectConnectors = (
14
14
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
15
  props) => fetchWalletConnectWallets({
16
16
  applyFilterFromWalletConnect: false,
17
+ evmNetworks: props.evmNetworks,
17
18
  walletBook: props.walletBook,
18
19
  });
19
20
 
@@ -33,6 +33,8 @@ class WalletConnectConnector extends ethereumCore.EthereumWalletConnector {
33
33
  WalletConnectProvider.WalletConnectProvider.preferredChains =
34
34
  opts.walletConnectPreferredChains || [];
35
35
  WalletConnectProvider.WalletConnectProvider.evmNetworkRpcMap = this.evmNetworkRpcMap();
36
+ WalletConnectProvider.WalletConnectProvider.appName = opts.appName || '';
37
+ WalletConnectProvider.WalletConnectProvider.appLogoUrl = opts.appLogoUrl || '';
36
38
  }
37
39
  init() {
38
40
  return _tslib.__awaiter(this, void 0, void 0, function* () {
@@ -3,6 +3,8 @@ import { EthereumWalletConnector, EthereumWalletConnectorOpts } from '@dynamic-l
3
3
  import { EvmNetwork } from '@dynamic-labs/types';
4
4
  import { DeepLinkVariant, GetAddressOpts, IWalletConnectConnector } from '@dynamic-labs/wallet-connector-core';
5
5
  export type WalletConnectConnectorOpts = EthereumWalletConnectorOpts & {
6
+ appLogoUrl?: string;
7
+ appName?: string;
6
8
  projectId?: string;
7
9
  walletName: string;
8
10
  deepLinkPreference?: DeepLinkVariant;
@@ -29,6 +29,8 @@ class WalletConnectConnector extends EthereumWalletConnector {
29
29
  WalletConnectProvider.preferredChains =
30
30
  opts.walletConnectPreferredChains || [];
31
31
  WalletConnectProvider.evmNetworkRpcMap = this.evmNetworkRpcMap();
32
+ WalletConnectProvider.appName = opts.appName || '';
33
+ WalletConnectProvider.appLogoUrl = opts.appLogoUrl || '';
32
34
  }
33
35
  init() {
34
36
  return __awaiter(this, void 0, void 0, function* () {
@@ -31,6 +31,8 @@ WalletConnectProvider.isInitialized = false;
31
31
  WalletConnectProvider.enabledNetworks = [];
32
32
  WalletConnectProvider.preferredChains = [];
33
33
  WalletConnectProvider.evmNetworkRpcMap = {};
34
+ WalletConnectProvider.appName = '';
35
+ WalletConnectProvider.appLogoUrl = '';
34
36
  WalletConnectProvider.eventListenersSetup = false;
35
37
  WalletConnectProvider.accountChangedHandler = () => { };
36
38
  WalletConnectProvider.chainChangedHandler = () => { };
@@ -53,6 +55,14 @@ WalletConnectProvider.init = (...args_1) => _tslib.__awaiter(void 0, [...args_1]
53
55
  _a.providerInitPromise = EthereumProvider__default["default"].init({
54
56
  customStoragePrefix: storePrefix,
55
57
  disableProviderPing: true,
58
+ metadata: {
59
+ description: '',
60
+ icons: _a.appLogoUrl
61
+ ? [_a.appLogoUrl]
62
+ : [],
63
+ name: _a.appName || 'Unknown App',
64
+ url: '',
65
+ },
56
66
  optionalChains: _a.getMappedChainsByPreferredOrder(),
57
67
  optionalEvents: ['chainChanged', 'accountsChanged'],
58
68
  optionalMethods: [
@@ -12,6 +12,8 @@ export declare class WalletConnectProvider {
12
12
  static enabledNetworks: GenericNetwork[];
13
13
  static preferredChains: `eip155:${number}`[];
14
14
  static evmNetworkRpcMap: Record<string, string>;
15
+ static appName: string;
16
+ static appLogoUrl: string;
15
17
  private static providerInitPromise;
16
18
  private static provider;
17
19
  /**
@@ -23,6 +23,8 @@ WalletConnectProvider.isInitialized = false;
23
23
  WalletConnectProvider.enabledNetworks = [];
24
24
  WalletConnectProvider.preferredChains = [];
25
25
  WalletConnectProvider.evmNetworkRpcMap = {};
26
+ WalletConnectProvider.appName = '';
27
+ WalletConnectProvider.appLogoUrl = '';
26
28
  WalletConnectProvider.eventListenersSetup = false;
27
29
  WalletConnectProvider.accountChangedHandler = () => { };
28
30
  WalletConnectProvider.chainChangedHandler = () => { };
@@ -45,6 +47,14 @@ WalletConnectProvider.init = (...args_1) => __awaiter(void 0, [...args_1], void
45
47
  _a.providerInitPromise = EthereumProvider.init({
46
48
  customStoragePrefix: storePrefix,
47
49
  disableProviderPing: true,
50
+ metadata: {
51
+ description: '',
52
+ icons: _a.appLogoUrl
53
+ ? [_a.appLogoUrl]
54
+ : [],
55
+ name: _a.appName || 'Unknown App',
56
+ url: '',
57
+ },
48
58
  optionalChains: _a.getMappedChainsByPreferredOrder(),
49
59
  optionalEvents: ['chainChanged', 'accountsChanged'],
50
60
  optionalMethods: [
@@ -5,8 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var WalletConnectConnector = require('../WalletConnectConnector/WalletConnectConnector.cjs');
7
7
 
8
- const fetchWalletConnectWallets = ({ walletBook, applyFilterFromWalletConnect = true, }) => {
8
+ const fetchWalletConnectWallets = ({ walletBook, applyFilterFromWalletConnect = true, evmNetworks, }) => {
9
9
  var _a;
10
+ // Don't create EVM WalletConnect connectors if EVM networks are not configured
11
+ const hasEvmNetworks = evmNetworks && evmNetworks.length > 0;
12
+ if (!hasEvmNetworks) {
13
+ return [];
14
+ }
10
15
  return Object.entries((_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _a !== void 0 ? _a : {})
11
16
  .filter(([, wallet]) => {
12
17
  var _a;
@@ -12,7 +12,12 @@ type FetchWalletConnectWalletsProps = {
12
12
  *
13
13
  * By default, we will apply the filter from WalletConnect to avoid this issue.
14
14
  */
15
- applyFilterFromWalletConnect: boolean;
15
+ applyFilterFromWalletConnect?: boolean;
16
+ /**
17
+ * EVM networks configuration. If not provided or empty, no WalletConnect connectors will be created.
18
+ * Can also be passed via props.evmNetworks for backward compatibility.
19
+ */
20
+ evmNetworks: unknown[];
16
21
  };
17
- export declare const fetchWalletConnectWallets: ({ walletBook, applyFilterFromWalletConnect, }: FetchWalletConnectWalletsProps) => Array<WalletConnectorConstructor>;
22
+ export declare const fetchWalletConnectWallets: ({ walletBook, applyFilterFromWalletConnect, evmNetworks, }: FetchWalletConnectWalletsProps) => Array<WalletConnectorConstructor>;
18
23
  export {};
@@ -1,8 +1,13 @@
1
1
  'use client'
2
2
  import { WalletConnectConnector } from '../WalletConnectConnector/WalletConnectConnector.js';
3
3
 
4
- const fetchWalletConnectWallets = ({ walletBook, applyFilterFromWalletConnect = true, }) => {
4
+ const fetchWalletConnectWallets = ({ walletBook, applyFilterFromWalletConnect = true, evmNetworks, }) => {
5
5
  var _a;
6
+ // Don't create EVM WalletConnect connectors if EVM networks are not configured
7
+ const hasEvmNetworks = evmNetworks && evmNetworks.length > 0;
8
+ if (!hasEvmNetworks) {
9
+ return [];
10
+ }
6
11
  return Object.entries((_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _a !== void 0 ? _a : {})
7
12
  .filter(([, wallet]) => {
8
13
  var _a;