@dynamic-labs/ethereum 4.53.1 → 4.54.0
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 +25 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/walletConnect/EvmWalletConnectConnectors.cjs +1 -0
- package/src/walletConnect/EvmWalletConnectConnectors.js +1 -0
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.cjs +2 -0
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.d.ts +2 -0
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.js +2 -0
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.cjs +10 -0
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.d.ts +2 -0
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.js +10 -0
- package/src/walletConnect/utils/fetchWalletConnectWallets.cjs +6 -1
- package/src/walletConnect/utils/fetchWalletConnectWallets.d.ts +7 -2
- package/src/walletConnect/utils/fetchWalletConnectWallets.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.54.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.2...v4.54.0) (2026-01-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add iCloud backup method for wallet backup ([#10221](https://github.com/dynamic-labs/dynamic-auth/issues/10221)) ([36f5b8a](https://github.com/dynamic-labs/dynamic-auth/commit/36f5b8a0df50139fabbc6d6256f396a6d40313f4))
|
|
8
|
+
* add iCloud backup support for wallet key shares ([#10220](https://github.com/dynamic-labs/dynamic-auth/issues/10220)) ([f5f8135](https://github.com/dynamic-labs/dynamic-auth/commit/f5f813593d6ec834fc94f873fd7151b1f3e1a0ca))
|
|
9
|
+
* add legacyWalletId parameter to importPrivateKey ([#10244](https://github.com/dynamic-labs/dynamic-auth/issues/10244)) ([d281dd7](https://github.com/dynamic-labs/dynamic-auth/commit/d281dd7128ac1211e8ca0b72818e109ece7b9837))
|
|
10
|
+
|
|
11
|
+
### [4.53.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.1...v4.53.2) (2026-01-16)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add iCloud backup functionality ([#10219](https://github.com/dynamic-labs/dynamic-auth/issues/10219)) ([44e95e5](https://github.com/dynamic-labs/dynamic-auth/commit/44e95e5a5dc99f83918a382ab1c69d452359c346))
|
|
17
|
+
* 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))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 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))
|
|
23
|
+
* 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))
|
|
24
|
+
* 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))
|
|
25
|
+
* **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))
|
|
26
|
+
|
|
2
27
|
### [4.53.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.0...v4.53.1) (2026-01-14)
|
|
3
28
|
|
|
4
29
|
## [4.53.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.5...v4.53.0) (2026-01-13)
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.54.0",
|
|
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.
|
|
28
|
-
"@dynamic-labs/embedded-wallet-evm": "4.
|
|
29
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
30
|
-
"@dynamic-labs/logger": "4.
|
|
31
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
32
|
-
"@dynamic-labs/types": "4.
|
|
33
|
-
"@dynamic-labs/utils": "4.
|
|
34
|
-
"@dynamic-labs/waas-evm": "4.
|
|
35
|
-
"@dynamic-labs/wallet-book": "4.
|
|
36
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.54.0",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.54.0",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.54.0",
|
|
30
|
+
"@dynamic-labs/logger": "4.54.0",
|
|
31
|
+
"@dynamic-labs/rpc-providers": "4.54.0",
|
|
32
|
+
"@dynamic-labs/types": "4.54.0",
|
|
33
|
+
"@dynamic-labs/utils": "4.54.0",
|
|
34
|
+
"@dynamic-labs/waas-evm": "4.54.0",
|
|
35
|
+
"@dynamic-labs/wallet-book": "4.54.0",
|
|
36
|
+
"@dynamic-labs/wallet-connector-core": "4.54.0"
|
|
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
|
|
|
@@ -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
|
|
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;
|