@dynamic-labs/multi-wallet 4.60.1 → 4.61.1
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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/utils/getEnabledWallets/getEnabledWallets.cjs +6 -1
- package/src/utils/getEnabledWallets/getEnabledWallets.js +6 -1
- package/src/utils/getSupportedChainsForWalletConnector/getSupportedChainsForWalletConnector.cjs +1 -0
- package/src/utils/getSupportedChainsForWalletConnector/getSupportedChainsForWalletConnector.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.61.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.0...v4.61.1) (2026-02-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* remove warning when SVM gas sponsorship enabled ([#10412](https://github.com/dynamic-labs/dynamic-auth/issues/10412)) ([dc1a615](https://github.com/dynamic-labs/dynamic-auth/commit/dc1a615a43c89942c9b17101bb1da4492df8140b))
|
|
8
|
+
|
|
9
|
+
## [4.61.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.1...v4.61.0) (2026-02-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add unlockWallet and getWalletRecoveryState to WaaS ([#10407](https://github.com/dynamic-labs/dynamic-auth/issues/10407)) ([e0d1a28](https://github.com/dynamic-labs/dynamic-auth/commit/e0d1a2830f36eee6c6e84737011e8cf59966122d))
|
|
15
|
+
* add useWalletPassword hook for waas wallet password management ([#10399](https://github.com/dynamic-labs/dynamic-auth/issues/10399)) ([508835f](https://github.com/dynamic-labs/dynamic-auth/commit/508835fb0f4f17b7353a4378f4c254e02f0a46ff))
|
|
16
|
+
* add WaaS unlock and recovery UI to mobile demo ([#10408](https://github.com/dynamic-labs/dynamic-auth/issues/10408)) ([94cdb88](https://github.com/dynamic-labs/dynamic-auth/commit/94cdb882fca3c34d157b42d5208f56812008c43b))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* bump axios to fix high vulnerability ([#10406](https://github.com/dynamic-labs/dynamic-auth/issues/10406)) ([303e2dc](https://github.com/dynamic-labs/dynamic-auth/commit/303e2dcf1e7e8ecad4caf2d74e805ee427c1d00e))
|
|
22
|
+
* patch node-forge CVE-2025-12816 in global-wallet ([#10401](https://github.com/dynamic-labs/dynamic-auth/issues/10401)) ([46e6eb2](https://github.com/dynamic-labs/dynamic-auth/commit/46e6eb28a0add0052299eaa4ac2dcbe8b1faa98c))
|
|
23
|
+
|
|
2
24
|
### [4.60.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.0...v4.60.1) (2026-02-09)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.61.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
6
6
|
"tslib": "2.4.1",
|
|
7
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
8
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
9
|
-
"@dynamic-labs/types": "4.
|
|
10
|
-
"@dynamic-labs/utils": "4.
|
|
11
|
-
"@dynamic-labs/wallet-book": "4.
|
|
12
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
7
|
+
"@dynamic-labs/assert-package-version": "4.61.1",
|
|
8
|
+
"@dynamic-labs/rpc-providers": "4.61.1",
|
|
9
|
+
"@dynamic-labs/types": "4.61.1",
|
|
10
|
+
"@dynamic-labs/utils": "4.61.1",
|
|
11
|
+
"@dynamic-labs/wallet-book": "4.61.1",
|
|
12
|
+
"@dynamic-labs/wallet-connector-core": "4.61.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@walletconnect/types": "2.21.5"
|
|
@@ -9,7 +9,12 @@ var getSupportedChainsForWalletConnector = require('../getSupportedChainsForWall
|
|
|
9
9
|
// this function will return a list of connectors that are enabled based on the chains that are enabled
|
|
10
10
|
const getEnabledWallets = (props) => {
|
|
11
11
|
const supportedWallets = getSupportedWallets.getSupportedWallets(props.getSupportedWalletOpts);
|
|
12
|
-
const allEnabledWallets = supportedWallets.filter((wallet) =>
|
|
12
|
+
const allEnabledWallets = supportedWallets.filter((wallet) => {
|
|
13
|
+
const supportedChains = getSupportedChainsForWalletConnector.getSupportedChainsForWalletConnector(props.getSupportedWalletOpts.walletBook, wallet);
|
|
14
|
+
const isEnabled = props.enabledChains.some((chain) => supportedChains.includes(chain)) ||
|
|
15
|
+
wallet.key === 'magiclink'; // magic is evm, but disabling evm shouldn't disable magic if we enable sign in with magic email
|
|
16
|
+
return isEnabled;
|
|
17
|
+
});
|
|
13
18
|
return allEnabledWallets;
|
|
14
19
|
};
|
|
15
20
|
|
|
@@ -5,7 +5,12 @@ import { getSupportedChainsForWalletConnector } from '../getSupportedChainsForWa
|
|
|
5
5
|
// this function will return a list of connectors that are enabled based on the chains that are enabled
|
|
6
6
|
const getEnabledWallets = (props) => {
|
|
7
7
|
const supportedWallets = getSupportedWallets(props.getSupportedWalletOpts);
|
|
8
|
-
const allEnabledWallets = supportedWallets.filter((wallet) =>
|
|
8
|
+
const allEnabledWallets = supportedWallets.filter((wallet) => {
|
|
9
|
+
const supportedChains = getSupportedChainsForWalletConnector(props.getSupportedWalletOpts.walletBook, wallet);
|
|
10
|
+
const isEnabled = props.enabledChains.some((chain) => supportedChains.includes(chain)) ||
|
|
11
|
+
wallet.key === 'magiclink'; // magic is evm, but disabling evm shouldn't disable magic if we enable sign in with magic email
|
|
12
|
+
return isEnabled;
|
|
13
|
+
});
|
|
9
14
|
return allEnabledWallets;
|
|
10
15
|
};
|
|
11
16
|
|
package/src/utils/getSupportedChainsForWalletConnector/getSupportedChainsForWalletConnector.cjs
CHANGED
|
@@ -8,6 +8,7 @@ var walletBook = require('@dynamic-labs/wallet-book');
|
|
|
8
8
|
const chainStringToChains = {
|
|
9
9
|
'eip155:1': ['ETH', 'EVM'],
|
|
10
10
|
'flow:mainnet': ['FLOW'],
|
|
11
|
+
'ton:mainnet': ['TON'],
|
|
11
12
|
};
|
|
12
13
|
const getSupportedChainsForWalletConnector = (walletBook$1, walletConnector) => {
|
|
13
14
|
var _a;
|
package/src/utils/getSupportedChainsForWalletConnector/getSupportedChainsForWalletConnector.js
CHANGED
|
@@ -4,6 +4,7 @@ import { findWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
|
4
4
|
const chainStringToChains = {
|
|
5
5
|
'eip155:1': ['ETH', 'EVM'],
|
|
6
6
|
'flow:mainnet': ['FLOW'],
|
|
7
|
+
'ton:mainnet': ['TON'],
|
|
7
8
|
};
|
|
8
9
|
const getSupportedChainsForWalletConnector = (walletBook, walletConnector) => {
|
|
9
10
|
var _a;
|