@dynamic-labs/ethereum-core 4.85.0 → 4.86.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
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.86.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.85.0...v4.86.0) (2026-06-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support to new MetaMask SDK ([#11056](https://github.com/dynamic-labs/dynamic-auth/issues/11056)) ([8a6c973](https://github.com/dynamic-labs/dynamic-auth/commit/8a6c973876207256c06b04f6a16454f07446393d))
|
|
8
|
+
* **ethereum-gasless:** expose optional nonce on sign/send/relay ([#11422](https://github.com/dynamic-labs/dynamic-auth/issues/11422)) ([d2d074e](https://github.com/dynamic-labs/dynamic-auth/commit/d2d074ebe82452990281eba14a73f52a0af1e98b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **sdk-react-core:** retry auto wallet creation on transient failures before erroring ([#11408](https://github.com/dynamic-labs/dynamic-auth/issues/11408)) ([8175460](https://github.com/dynamic-labs/dynamic-auth/commit/8175460bdee6f041ead0ea3f020cfd2168683239)), closes [#11399](https://github.com/dynamic-labs/dynamic-auth/issues/11399) [forward-mpc-client#286](https://github.com/dynamic-labs/forward-mpc-client/issues/286) [#11396](https://github.com/dynamic-labs/dynamic-auth/issues/11396)
|
|
14
|
+
|
|
2
15
|
## [4.85.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.84.1...v4.85.0) (2026-05-29)
|
|
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-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.86.0",
|
|
4
4
|
"description": "Core package for utilities and types for viem",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.985",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.86.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.86.0",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.86.0",
|
|
25
|
+
"@dynamic-labs/types": "4.86.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.86.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.86.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.86.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"viem": "^2.45.3"
|
|
@@ -203,7 +203,7 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
203
203
|
}
|
|
204
204
|
providerSwitchNetwork(_a) {
|
|
205
205
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ network, provider, }) {
|
|
206
|
-
var _b, _c, _d, _e, _f;
|
|
206
|
+
var _b, _c, _d, _e, _f, _g;
|
|
207
207
|
const { chainId } = network;
|
|
208
208
|
const currentNetworkId = yield this.getNetwork();
|
|
209
209
|
if (currentNetworkId && currentNetworkId === chainId) {
|
|
@@ -231,13 +231,14 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
231
231
|
// we need to check for unrecognized chain error first because it also contains 'rejected' in message
|
|
232
232
|
if (error.code === 4902 ||
|
|
233
233
|
((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('Unrecognized chain')) ||
|
|
234
|
+
((_d = error.message) === null || _d === void 0 ? void 0 : _d.includes('No chain configuration found')) ||
|
|
234
235
|
// https://github.com/MetaMask/metamask-mobile/issues/3312#issuecomment-1065923294
|
|
235
|
-
((
|
|
236
|
+
((_f = (_e = error.data) === null || _e === void 0 ? void 0 : _e.orginalError) === null || _f === void 0 ? void 0 : _f.code) === 4902) {
|
|
236
237
|
// error code indicates the chain has not been added yet
|
|
237
238
|
// https://docs.metamask.io/guide/rpc-api.html#usage-with-wallet-switchethereumchain
|
|
238
239
|
return this.providerAddNetwork({ network, provider });
|
|
239
240
|
}
|
|
240
|
-
else if (((
|
|
241
|
+
else if (((_g = error.message) === null || _g === void 0 ? void 0 : _g.includes('rejected')) ||
|
|
241
242
|
(typeof error === 'string' && error.includes('rejected'))) {
|
|
242
243
|
throw new utils.DynamicError("User rejected the wallet's request to switch network");
|
|
243
244
|
}
|
|
@@ -199,7 +199,7 @@ class EthereumWalletConnector extends WalletConnectorBase {
|
|
|
199
199
|
}
|
|
200
200
|
providerSwitchNetwork(_a) {
|
|
201
201
|
return __awaiter(this, arguments, void 0, function* ({ network, provider, }) {
|
|
202
|
-
var _b, _c, _d, _e, _f;
|
|
202
|
+
var _b, _c, _d, _e, _f, _g;
|
|
203
203
|
const { chainId } = network;
|
|
204
204
|
const currentNetworkId = yield this.getNetwork();
|
|
205
205
|
if (currentNetworkId && currentNetworkId === chainId) {
|
|
@@ -227,13 +227,14 @@ class EthereumWalletConnector extends WalletConnectorBase {
|
|
|
227
227
|
// we need to check for unrecognized chain error first because it also contains 'rejected' in message
|
|
228
228
|
if (error.code === 4902 ||
|
|
229
229
|
((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('Unrecognized chain')) ||
|
|
230
|
+
((_d = error.message) === null || _d === void 0 ? void 0 : _d.includes('No chain configuration found')) ||
|
|
230
231
|
// https://github.com/MetaMask/metamask-mobile/issues/3312#issuecomment-1065923294
|
|
231
|
-
((
|
|
232
|
+
((_f = (_e = error.data) === null || _e === void 0 ? void 0 : _e.orginalError) === null || _f === void 0 ? void 0 : _f.code) === 4902) {
|
|
232
233
|
// error code indicates the chain has not been added yet
|
|
233
234
|
// https://docs.metamask.io/guide/rpc-api.html#usage-with-wallet-switchethereumchain
|
|
234
235
|
return this.providerAddNetwork({ network, provider });
|
|
235
236
|
}
|
|
236
|
-
else if (((
|
|
237
|
+
else if (((_g = error.message) === null || _g === void 0 ? void 0 : _g.includes('rejected')) ||
|
|
237
238
|
(typeof error === 'string' && error.includes('rejected'))) {
|
|
238
239
|
throw new DynamicError("User rejected the wallet's request to switch network");
|
|
239
240
|
}
|