@dynamic-labs/ethereum-core 4.84.1 → 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,34 @@
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
+
15
+ ## [4.85.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.84.1...v4.85.0) (2026-05-29)
16
+
17
+
18
+ ### Features
19
+
20
+ * **moonpay:** add getMoonPayCurrencies API, MOONPAY_PROVIDER_ID, and chain enum fix ([#11362](https://github.com/dynamic-labs/dynamic-auth/issues/11362)) ([8f1c841](https://github.com/dynamic-labs/dynamic-auth/commit/8f1c841dcab3249e82a7152be373c0e0204a2f47))
21
+ * **sdk-react-core:** extend usePrivateTokenBalances with `accountAddress`, `tokenAddresses`, `includeNativeBalance`, `includeFiat` ([#11380](https://github.com/dynamic-labs/dynamic-auth/issues/11380)) ([ccb6d47](https://github.com/dynamic-labs/dynamic-auth/commit/ccb6d47b4683a12a13aaf8311ecffae3d46464a3))
22
+ * **sdk-react-core:** forward `chainName` + `networkId` through `usePrivateTokenBalances` ([#11383](https://github.com/dynamic-labs/dynamic-auth/issues/11383)) ([c2ad110](https://github.com/dynamic-labs/dynamic-auth/commit/c2ad1103d4d4fdba67fc9b50b60945a843adae99))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **aleo:** drop optimistically deducted unshielded rows when balance hits zero ([#11371](https://github.com/dynamic-labs/dynamic-auth/issues/11371)) ([a3bb8e8](https://github.com/dynamic-labs/dynamic-auth/commit/a3bb8e8fa7e877340c829c991ba31eeb8fa4fcf1)), closes [#11337](https://github.com/dynamic-labs/dynamic-auth/issues/11337)
28
+ * **aleo:** re-read gas sponsored flag after async fetchFee resolves ([#11375](https://github.com/dynamic-labs/dynamic-auth/issues/11375)) ([d27e74a](https://github.com/dynamic-labs/dynamic-auth/commit/d27e74a309aff18eb6b18046fe34e9e64363d331))
29
+ * remediate high-severity dependency vulnerabilities ([#11339](https://github.com/dynamic-labs/dynamic-auth/issues/11339)) ([f025b30](https://github.com/dynamic-labs/dynamic-auth/commit/f025b308e29153de49c88d91233139bb00caaf4e))
30
+ * **waas:** guard upgradeToDynamicWaas on the wallet arg, not primaryWallet ([#11324](https://github.com/dynamic-labs/dynamic-auth/issues/11324)) ([3e95eaf](https://github.com/dynamic-labs/dynamic-auth/commit/3e95eaf50afd2f49ff1cc416e5bf211ee04fbb23))
31
+
2
32
  ### [4.84.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.84.0...v4.84.1) (2026-05-28)
3
33
 
4
34
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.84.1";
6
+ var version = "4.86.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.84.1";
2
+ var version = "4.86.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-core",
3
- "version": "4.84.1",
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.84.1",
23
- "@dynamic-labs/logger": "4.84.1",
24
- "@dynamic-labs/rpc-providers": "4.84.1",
25
- "@dynamic-labs/types": "4.84.1",
26
- "@dynamic-labs/utils": "4.84.1",
27
- "@dynamic-labs/wallet-book": "4.84.1",
28
- "@dynamic-labs/wallet-connector-core": "4.84.1"
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
- ((_e = (_d = error.data) === null || _d === void 0 ? void 0 : _d.orginalError) === null || _e === void 0 ? void 0 : _e.code) === 4902) {
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 (((_f = error.message) === null || _f === void 0 ? void 0 : _f.includes('rejected')) ||
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
- ((_e = (_d = error.data) === null || _d === void 0 ? void 0 : _d.orginalError) === null || _e === void 0 ? void 0 : _e.code) === 4902) {
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 (((_f = error.message) === null || _f === void 0 ? void 0 : _f.includes('rejected')) ||
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
  }