@dynamic-labs/viem-extension 4.88.3 → 4.88.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 +35 -1
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/ViemExtension/createWalletClientForDynamic/createWalletClientForDynamic.cjs +8 -5
- package/src/ViemExtension/createWalletClientForDynamic/createWalletClientForDynamic.d.ts +1 -1
- package/src/ViemExtension/createWalletClientForDynamic/createWalletClientForDynamic.js +8 -5
- package/src/types.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.88.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.5...v4.88.6) (2026-06-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **DynamicBridgeWidget:** prevent bridge chain sync from reverting manual wallet switches ([#11560](https://github.com/dynamic-labs/dynamic-auth/issues/11560)) ([40c4973](https://github.com/dynamic-labs/dynamic-auth/commit/40c4973761b3e887577664f72f89d1d6ba285ea3))
|
|
8
|
+
* resolve EOA wallet client on the correct chain for EIP-7702 smart wallets ([#11564](https://github.com/dynamic-labs/dynamic-auth/issues/11564)) ([893b083](https://github.com/dynamic-labs/dynamic-auth/commit/893b0837a450ec683ccd09f2bb54204b77b6bd50))
|
|
9
|
+
|
|
10
|
+
### [4.88.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.4...v4.88.5) (2026-06-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **fix(webview):** fix issue where stepupauth is enabled and after it's completed the export private key window doesn't show up automatically
|
|
16
|
+
* **fix(global-wallet):** correctly sign ethereum messages ([#11548](https://github.com/dynamic-labs/dynamic-auth/issues/11548))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### [4.88.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.3...v4.88.4) (2026-06-10)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **wagmi-connector:** instrument ConnectorAlreadyConnectedError to quantify SyncDynamicWagmi race DYNT-549 ([#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513)) ([00a3278](https://github.com/dynamic-labs/dynamic-auth/commit/00a3278197fc8d8442e64af7373fc4f20e4e5a69)), closes [#11131](https://github.com/dynamic-labs/dynamic-auth/issues/11131) [#11496](https://github.com/dynamic-labs/dynamic-auth/issues/11496)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **ci:** show unreleased changes in bump-version release review summary ([#11484](https://github.com/dynamic-labs/dynamic-auth/issues/11484)) ([3e1c3d1](https://github.com/dynamic-labs/dynamic-auth/commit/3e1c3d12d66e0d94cb430d66ccfbffe3abdbd6ba))
|
|
30
|
+
* **release:** surface perf and revert commits in generated changelog ([#11507](https://github.com/dynamic-labs/dynamic-auth/issues/11507)) ([8efa0d9](https://github.com/dynamic-labs/dynamic-auth/commit/8efa0d95ab320480fcaf970a24bba35892b0fc99))
|
|
31
|
+
* remediate critical shell-quote vulnerability (CVE-2026-9277) + bump @dynamic-labs-sdk/client to 1.8.1 ([#11527](https://github.com/dynamic-labs/dynamic-auth/issues/11527)) ([c056df6](https://github.com/dynamic-labs/dynamic-auth/commit/c056df653f99992c9b333078ba13651e61826ab5))
|
|
32
|
+
* remediate high-severity vite vulnerability (CVE-2024-52011) ([#11509](https://github.com/dynamic-labs/dynamic-auth/issues/11509)) ([7c43b4e](https://github.com/dynamic-labs/dynamic-auth/commit/7c43b4e736c68da7de8789f1d44964778306abbf))
|
|
33
|
+
* support plain EOA transactions for 7702 smart wallets via viem extension ([#11525](https://github.com/dynamic-labs/dynamic-auth/issues/11525)) ([ce8542f](https://github.com/dynamic-labs/dynamic-auth/commit/ce8542fa40b4227759bcf2ca243b4bc313018b50))
|
|
34
|
+
* **wagmi-connector:** propagate external wagmi disconnect to Dynamic via handleLogOut ([#11496](https://github.com/dynamic-labs/dynamic-auth/issues/11496)) ([1b19565](https://github.com/dynamic-labs/dynamic-auth/commit/1b195657b9210da233480dda143fb92b39998962))
|
|
35
|
+
|
|
2
36
|
### [4.88.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.2...v4.88.3) (2026-06-09)
|
|
3
37
|
|
|
4
38
|
|
|
@@ -6476,4 +6510,4 @@ Enjoy!
|
|
|
6476
6510
|
### Bug Fixes
|
|
6477
6511
|
|
|
6478
6512
|
* **view-context:** refactor view context to have initial view ([#2268](https://github.com/dynamic-labs/DynamicAuth/issues/2268)) ([0afe6ae](https://github.com/dynamic-labs/DynamicAuth/commit/0afe6ae469f62fd16fd8471322f9295957f607f6))
|
|
6479
|
-
* **wcv2:** upgrade universal p
|
|
6513
|
+
* **wcv2:** upgrade universal p
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/viem-extension",
|
|
3
|
-
"version": "4.88.
|
|
3
|
+
"version": "4.88.6",
|
|
4
4
|
"main": "./src/index.cjs",
|
|
5
5
|
"module": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"viem": "^2.45.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.88.
|
|
21
|
-
"@dynamic-labs/client": "4.88.
|
|
22
|
-
"@dynamic-labs/message-transport": "4.88.
|
|
23
|
-
"@dynamic-labs/types": "4.88.
|
|
24
|
-
"@dynamic-labs/webview-messages": "4.88.
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.88.6",
|
|
21
|
+
"@dynamic-labs/client": "4.88.6",
|
|
22
|
+
"@dynamic-labs/message-transport": "4.88.6",
|
|
23
|
+
"@dynamic-labs/types": "4.88.6",
|
|
24
|
+
"@dynamic-labs/webview-messages": "4.88.6"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -35,23 +35,26 @@ const getChainFromId = (chainId) => {
|
|
|
35
35
|
};
|
|
36
36
|
const createWalletClientForDynamic = (messageTransport$1, _a) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
37
37
|
var _b;
|
|
38
|
-
var { wallet } = _a, params = _tslib.__rest(_a, ["wallet"]);
|
|
38
|
+
var { wallet, useEoaWallet } = _a, params = _tslib.__rest(_a, ["wallet", "useEoaWallet"]);
|
|
39
39
|
const ethRequestChannel = messageTransport.createRequestChannel(messageTransport$1);
|
|
40
40
|
const walletRequestChannel = messageTransport.createRequestChannel(messageTransport$1);
|
|
41
|
+
const { network } = yield walletRequestChannel.request('getNetwork', {
|
|
42
|
+
wallet,
|
|
43
|
+
});
|
|
44
|
+
const chain = (_b = params.chain) !== null && _b !== void 0 ? _b : getChainFromId(network);
|
|
41
45
|
const providerProxy = {
|
|
42
46
|
request: (requestArguments) => ethRequestChannel.request('ethRequest', {
|
|
43
47
|
address: wallet.address,
|
|
48
|
+
chainId: chain === null || chain === void 0 ? void 0 : chain.id,
|
|
44
49
|
method: requestArguments.method,
|
|
45
50
|
params: requestArguments.params,
|
|
51
|
+
useEoaWallet,
|
|
46
52
|
}),
|
|
47
53
|
};
|
|
48
|
-
const { network } = yield walletRequestChannel.request('getNetwork', {
|
|
49
|
-
wallet,
|
|
50
|
-
});
|
|
51
54
|
const account = wallet.key === 'dynamicwaas'
|
|
52
55
|
? createAccountFromWallet.createAccountFromWallet(messageTransport$1, wallet)
|
|
53
56
|
: wallet.address;
|
|
54
|
-
return viem.createWalletClient(Object.assign(Object.assign({ account }, params), { chain
|
|
57
|
+
return viem.createWalletClient(Object.assign(Object.assign({ account }, params), { chain, transport: viem.custom(providerProxy, {
|
|
55
58
|
key: 'dynamic-client-transport',
|
|
56
59
|
name: 'Dynamic Client Transport',
|
|
57
60
|
retryCount: 3,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Account, Chain, CustomTransport, WalletClient } from 'viem';
|
|
2
2
|
import { MessageTransportWithDefaultOrigin } from '@dynamic-labs/message-transport';
|
|
3
3
|
import { WalletClientConfigDynamic } from '../../types';
|
|
4
|
-
export declare const createWalletClientForDynamic: <C extends Chain = Chain>(messageTransport: MessageTransportWithDefaultOrigin, { wallet, ...params }: WalletClientConfigDynamic<C>) => Promise<WalletClient<CustomTransport, C, Account>>;
|
|
4
|
+
export declare const createWalletClientForDynamic: <C extends Chain = Chain>(messageTransport: MessageTransportWithDefaultOrigin, { wallet, useEoaWallet, ...params }: WalletClientConfigDynamic<C>) => Promise<WalletClient<CustomTransport, C, Account>>;
|
|
@@ -11,23 +11,26 @@ const getChainFromId = (chainId) => {
|
|
|
11
11
|
};
|
|
12
12
|
const createWalletClientForDynamic = (messageTransport, _a) => __awaiter(void 0, void 0, void 0, function* () {
|
|
13
13
|
var _b;
|
|
14
|
-
var { wallet } = _a, params = __rest(_a, ["wallet"]);
|
|
14
|
+
var { wallet, useEoaWallet } = _a, params = __rest(_a, ["wallet", "useEoaWallet"]);
|
|
15
15
|
const ethRequestChannel = createRequestChannel(messageTransport);
|
|
16
16
|
const walletRequestChannel = createRequestChannel(messageTransport);
|
|
17
|
+
const { network } = yield walletRequestChannel.request('getNetwork', {
|
|
18
|
+
wallet,
|
|
19
|
+
});
|
|
20
|
+
const chain = (_b = params.chain) !== null && _b !== void 0 ? _b : getChainFromId(network);
|
|
17
21
|
const providerProxy = {
|
|
18
22
|
request: (requestArguments) => ethRequestChannel.request('ethRequest', {
|
|
19
23
|
address: wallet.address,
|
|
24
|
+
chainId: chain === null || chain === void 0 ? void 0 : chain.id,
|
|
20
25
|
method: requestArguments.method,
|
|
21
26
|
params: requestArguments.params,
|
|
27
|
+
useEoaWallet,
|
|
22
28
|
}),
|
|
23
29
|
};
|
|
24
|
-
const { network } = yield walletRequestChannel.request('getNetwork', {
|
|
25
|
-
wallet,
|
|
26
|
-
});
|
|
27
30
|
const account = wallet.key === 'dynamicwaas'
|
|
28
31
|
? createAccountFromWallet(messageTransport, wallet)
|
|
29
32
|
: wallet.address;
|
|
30
|
-
return createWalletClient(Object.assign(Object.assign({ account }, params), { chain
|
|
33
|
+
return createWalletClient(Object.assign(Object.assign({ account }, params), { chain, transport: custom(providerProxy, {
|
|
31
34
|
key: 'dynamic-client-transport',
|
|
32
35
|
name: 'Dynamic Client Transport',
|
|
33
36
|
retryCount: 3,
|
package/src/types.d.ts
CHANGED
|
@@ -11,6 +11,13 @@ export type PublicClientConfigDynamic<C extends Chain | undefined> = Omit<Public
|
|
|
11
11
|
*/
|
|
12
12
|
export type WalletClientConfigDynamic<C extends Chain | undefined> = Omit<WalletClientConfig<CustomTransport, C>, 'transport'> & {
|
|
13
13
|
wallet: BaseWallet;
|
|
14
|
+
/**
|
|
15
|
+
* When the wallet is a smart wallet sharing its address with an EOA
|
|
16
|
+
* (e.g. ZeroDev EIP-7702), route requests to the underlying EOA wallet
|
|
17
|
+
* so transactions are sent as plain EOA transactions instead of
|
|
18
|
+
* user operations.
|
|
19
|
+
*/
|
|
20
|
+
useEoaWallet?: boolean;
|
|
14
21
|
};
|
|
15
22
|
export type IViemExtension = {
|
|
16
23
|
viem: {
|