@dynamic-labs/ethereum 4.8.4 → 4.8.5
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 +13 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/EthereumWalletConnectors.cjs +3 -2
- package/src/EthereumWalletConnectors.js +2 -1
- package/src/metaMask/MetaMaskConnector.cjs +1 -1
- package/src/metaMask/MetaMaskConnector.js +2 -2
- package/src/walletConnect/index.d.ts +1 -1
- package/src/walletConnect/{fetchWalletConnectWallets.cjs → utils/fetchWalletConnectWallets.cjs} +1 -7
- package/src/walletConnect/{fetchWalletConnectWallets.d.ts → utils/fetchWalletConnectWallets.d.ts} +0 -1
- package/src/walletConnect/{fetchWalletConnectWallets.js → utils/fetchWalletConnectWallets.js} +2 -7
- package/src/walletConnect/utils/getWalletConnectConnector.cjs +14 -0
- package/src/walletConnect/utils/getWalletConnectConnector.d.ts +2 -0
- package/src/walletConnect/utils/getWalletConnectConnector.js +10 -0
- package/src/walletConnect/utils/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.8.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.4...v4.8.5) (2025-03-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* evm connector can sign arbitrary transactions ([#8217](https://github.com/dynamic-labs/dynamic-auth/issues/8217)) ([c5b227c](https://github.com/dynamic-labs/dynamic-auth/commit/c5b227c5a5d527f3fc74b8c1c9d0247eaf35a016))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* optimize shadow dom re-renders ([#8193](https://github.com/dynamic-labs/dynamic-auth/issues/8193)) ([c97310c](https://github.com/dynamic-labs/dynamic-auth/commit/c97310c9f3eb73b9f69b0b48a79e6bbd93d2e94a))
|
|
13
|
+
* show multichain wallets with zerodev ([#8220](https://github.com/dynamic-labs/dynamic-auth/issues/8220)) ([a48689d](https://github.com/dynamic-labs/dynamic-auth/commit/a48689da1303512551bdf8114de45493d33221a3))
|
|
14
|
+
|
|
2
15
|
### [4.8.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.3...v4.8.4) (2025-03-05)
|
|
3
16
|
|
|
4
17
|
|
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.8.
|
|
3
|
+
"version": "4.8.5",
|
|
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,14 +24,14 @@
|
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"buffer": "6.0.3",
|
|
26
26
|
"@metamask/sdk": "0.32.0",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.8.
|
|
28
|
-
"@dynamic-labs/embedded-wallet-evm": "4.8.
|
|
29
|
-
"@dynamic-labs/ethereum-core": "4.8.
|
|
30
|
-
"@dynamic-labs/logger": "4.8.
|
|
31
|
-
"@dynamic-labs/types": "4.8.
|
|
32
|
-
"@dynamic-labs/utils": "4.8.
|
|
33
|
-
"@dynamic-labs/wallet-book": "4.8.
|
|
34
|
-
"@dynamic-labs/wallet-connector-core": "4.8.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.8.5",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.8.5",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.8.5",
|
|
30
|
+
"@dynamic-labs/logger": "4.8.5",
|
|
31
|
+
"@dynamic-labs/types": "4.8.5",
|
|
32
|
+
"@dynamic-labs/utils": "4.8.5",
|
|
33
|
+
"@dynamic-labs/wallet-book": "4.8.5",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "4.8.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"viem": "^2.21.55"
|
|
@@ -11,7 +11,8 @@ require('viem');
|
|
|
11
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
12
|
require('@dynamic-labs/wallet-book');
|
|
13
13
|
require('./walletConnect/walletConnect.cjs');
|
|
14
|
-
var fetchWalletConnectWallets = require('./walletConnect/fetchWalletConnectWallets.cjs');
|
|
14
|
+
var fetchWalletConnectWallets = require('./walletConnect/utils/fetchWalletConnectWallets.cjs');
|
|
15
|
+
var getWalletConnectConnector = require('./walletConnect/utils/getWalletConnectConnector.cjs');
|
|
15
16
|
var FallbackEvmConnector = require('./injected/FallbackEvmConnector.cjs');
|
|
16
17
|
var fetchInjectedWalletConnectors = require('./injected/fetchInjectedWalletConnectors.cjs');
|
|
17
18
|
var coinbase = require('./coinbase/coinbase.cjs');
|
|
@@ -25,7 +26,7 @@ const EthereumWalletConnectors = (props) => [
|
|
|
25
26
|
MetaMaskConnector.MetaMaskConnector,
|
|
26
27
|
coinbase.Coinbase,
|
|
27
28
|
FallbackEvmConnector.FallbackEvmConnector,
|
|
28
|
-
|
|
29
|
+
getWalletConnectConnector.getWalletConnectConnector(),
|
|
29
30
|
];
|
|
30
31
|
|
|
31
32
|
exports.EthereumWalletConnectors = EthereumWalletConnectors;
|
|
@@ -7,7 +7,8 @@ import 'viem';
|
|
|
7
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import '@dynamic-labs/wallet-book';
|
|
9
9
|
import './walletConnect/walletConnect.js';
|
|
10
|
-
import { fetchWalletConnectWallets
|
|
10
|
+
import { fetchWalletConnectWallets } from './walletConnect/utils/fetchWalletConnectWallets.js';
|
|
11
|
+
import { getWalletConnectConnector } from './walletConnect/utils/getWalletConnectConnector.js';
|
|
11
12
|
import { FallbackEvmConnector } from './injected/FallbackEvmConnector.js';
|
|
12
13
|
import { injectedWalletOverrides, fetchInjectedWalletConnector } from './injected/fetchInjectedWalletConnectors.js';
|
|
13
14
|
import { Coinbase } from './coinbase/coinbase.js';
|
|
@@ -379,7 +379,7 @@ const getReadonlyRPCMap = (evmNetworkRpcMap) => Object.keys(evmNetworkRpcMap).re
|
|
|
379
379
|
* This is necessary to ensure the verify call will succeed
|
|
380
380
|
*/
|
|
381
381
|
const waitForFocusWindowEvent = () => new Promise((resolve) => {
|
|
382
|
-
|
|
382
|
+
utils.PlatformEventsService.once('appFocused', resolve);
|
|
383
383
|
}).then(() => new Promise((resolve) => setTimeout(resolve, 1000)));
|
|
384
384
|
|
|
385
385
|
exports.MetaMaskConnector = MetaMaskConnector;
|
|
@@ -4,7 +4,7 @@ import { MetaMaskSDK } from '@metamask/sdk';
|
|
|
4
4
|
import { createWalletClient, custom, isHex, toHex } from 'viem';
|
|
5
5
|
import { getOrMapViemChain } from '@dynamic-labs/ethereum-core';
|
|
6
6
|
import { eventListenerHandlers } from '@dynamic-labs/wallet-connector-core';
|
|
7
|
-
import { createEventTimeline, PlatformService, isMobile, MetaMaskError, retryableFn } from '@dynamic-labs/utils';
|
|
7
|
+
import { createEventTimeline, PlatformService, isMobile, MetaMaskError, retryableFn, PlatformEventsService } from '@dynamic-labs/utils';
|
|
8
8
|
import { logger } from '../utils/logger.js';
|
|
9
9
|
import { InjectedWalletBase } from '../injected/InjectedWalletBase.js';
|
|
10
10
|
import { createMetaMaskSDKDisplayUriState } from './utils/createMetaMaskSDKDisplayUriState.js';
|
|
@@ -375,7 +375,7 @@ const getReadonlyRPCMap = (evmNetworkRpcMap) => Object.keys(evmNetworkRpcMap).re
|
|
|
375
375
|
* This is necessary to ensure the verify call will succeed
|
|
376
376
|
*/
|
|
377
377
|
const waitForFocusWindowEvent = () => new Promise((resolve) => {
|
|
378
|
-
|
|
378
|
+
PlatformEventsService.once('appFocused', resolve);
|
|
379
379
|
}).then(() => new Promise((resolve) => setTimeout(resolve, 1000)));
|
|
380
380
|
|
|
381
381
|
export { MetaMaskConnector };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { WalletConnect } from './walletConnect';
|
|
2
|
-
export { fetchWalletConnectWallets } from './
|
|
2
|
+
export { fetchWalletConnectWallets, getWalletConnectConnector } from './utils';
|
package/src/walletConnect/{fetchWalletConnectWallets.cjs → utils/fetchWalletConnectWallets.cjs}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var walletConnect = require('
|
|
6
|
+
var walletConnect = require('../walletConnect.cjs');
|
|
7
7
|
|
|
8
8
|
const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
9
9
|
var _a;
|
|
@@ -20,11 +20,5 @@ const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
const getWalletConnectConnector = () => class extends walletConnect.WalletConnect {
|
|
24
|
-
constructor(props) {
|
|
25
|
-
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
23
|
|
|
29
24
|
exports.fetchWalletConnectWallets = fetchWalletConnectWallets;
|
|
30
|
-
exports.getWalletConnectConnector = getWalletConnectConnector;
|
package/src/walletConnect/{fetchWalletConnectWallets.d.ts → utils/fetchWalletConnectWallets.d.ts}
RENAMED
|
@@ -3,4 +3,3 @@ import { WalletConnectorConstructor } from '@dynamic-labs/wallet-connector-core'
|
|
|
3
3
|
export declare const fetchWalletConnectWallets: ({ walletBook, }: {
|
|
4
4
|
walletBook: WalletBookSchema;
|
|
5
5
|
}) => Array<WalletConnectorConstructor>;
|
|
6
|
-
export declare const getWalletConnectConnector: () => WalletConnectorConstructor;
|
package/src/walletConnect/{fetchWalletConnectWallets.js → utils/fetchWalletConnectWallets.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { WalletConnect } from '
|
|
2
|
+
import { WalletConnect } from '../walletConnect.js';
|
|
3
3
|
|
|
4
4
|
const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
5
5
|
var _a;
|
|
@@ -16,10 +16,5 @@ const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
const getWalletConnectConnector = () => class extends WalletConnect {
|
|
20
|
-
constructor(props) {
|
|
21
|
-
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
19
|
|
|
25
|
-
export { fetchWalletConnectWallets
|
|
20
|
+
export { fetchWalletConnectWallets };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var walletConnect = require('../walletConnect.cjs');
|
|
7
|
+
|
|
8
|
+
const getWalletConnectConnector = () => class extends walletConnect.WalletConnect {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.getWalletConnectConnector = getWalletConnectConnector;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { WalletConnect } from '../walletConnect.js';
|
|
3
|
+
|
|
4
|
+
const getWalletConnectConnector = () => class extends WalletConnect {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { getWalletConnectConnector };
|