@dynamic-labs/ethereum-core 4.30.4 → 4.31.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 CHANGED
@@ -1,4 +1,22 @@
1
1
 
2
+ ### [4.31.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.31.0...v4.31.1) (2025-09-10)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * convert y parity to number instead of bigint ([#9476](https://github.com/dynamic-labs/dynamic-auth/issues/9476)) ([1e779ef](https://github.com/dynamic-labs/dynamic-auth/commit/1e779ef4217877b15857e6f8cd4e02da5d7830df))
8
+
9
+ ## [4.31.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.4...v4.31.0) (2025-09-09)
10
+
11
+ ### Features
12
+
13
+ * adds evmNetworks prop for the react native client ([#9429](https://github.com/dynamic-labs/dynamic-auth/pull/9429))
14
+ * allow creating a mfaToken on authenticateRecoveryCode ([#9459](https://github.com/dynamic-labs/dynamic-auth/pull/9459))
15
+
16
+ ### Bug Fixes
17
+
18
+ * fixed the yParity conversion in unFormatTransaction ([#9457](https://github.com/dynamic-labs/dynamic-auth/pull/9457))
19
+
2
20
  ### [4.30.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.3...v4.30.4) (2025-09-09)
3
21
 
4
22
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.30.4";
6
+ var version = "4.31.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.30.4";
2
+ var version = "4.31.1";
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.30.4",
3
+ "version": "4.31.1",
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.762",
22
- "@dynamic-labs/assert-package-version": "4.30.4",
23
- "@dynamic-labs/logger": "4.30.4",
24
- "@dynamic-labs/rpc-providers": "4.30.4",
25
- "@dynamic-labs/types": "4.30.4",
26
- "@dynamic-labs/utils": "4.30.4",
27
- "@dynamic-labs/wallet-book": "4.30.4",
28
- "@dynamic-labs/wallet-connector-core": "4.30.4"
22
+ "@dynamic-labs/assert-package-version": "4.31.1",
23
+ "@dynamic-labs/logger": "4.31.1",
24
+ "@dynamic-labs/rpc-providers": "4.31.1",
25
+ "@dynamic-labs/types": "4.31.1",
26
+ "@dynamic-labs/utils": "4.31.1",
27
+ "@dynamic-labs/wallet-book": "4.31.1",
28
+ "@dynamic-labs/wallet-connector-core": "4.31.1"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "viem": "^2.28.4"
@@ -26,6 +26,9 @@ function _interopNamespace(e) {
26
26
  var viemChains__namespace = /*#__PURE__*/_interopNamespace(viemChains);
27
27
 
28
28
  // eslint-disable-next-line import/no-namespace
29
- const chainsMap = Object.values(viemChains__namespace).reduce((acc, chain) => (Object.assign(Object.assign({}, acc), { [chain.id]: chain })), {});
29
+ const chainsMap = Object.values(viemChains__namespace).reduce((acc, chain) => {
30
+ acc[chain.id] = chain;
31
+ return acc;
32
+ }, {});
30
33
 
31
34
  exports.chainsMap = chainsMap;
@@ -2,6 +2,9 @@
2
2
  import * as viemChains from 'viem/chains';
3
3
 
4
4
  // eslint-disable-next-line import/no-namespace
5
- const chainsMap = Object.values(viemChains).reduce((acc, chain) => (Object.assign(Object.assign({}, acc), { [chain.id]: chain })), {});
5
+ const chainsMap = Object.values(viemChains).reduce((acc, chain) => {
6
+ acc[chain.id] = chain;
7
+ return acc;
8
+ }, {});
6
9
 
7
10
  export { chainsMap };
@@ -14,7 +14,7 @@ var viem = require('viem');
14
14
  * https://github.com/wagmi-dev/viem/blob/0977829160effbe7dac5a69f43d263605544fa19/src/actions/wallet/sendTransaction.ts#L206
15
15
  */
16
16
  const unFormatTransaction = (transactionRequest) => (Object.assign(Object.assign({}, transactionRequest), { authorizationList: typeof transactionRequest.authorizationList !== 'undefined'
17
- ? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: viem.hexToBigInt(authorization.chainId), nonce: viem.hexToBigInt(authorization.nonce), yParity: viem.hexToBigInt(authorization.yParity) })))
17
+ ? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: viem.hexToBigInt(authorization.chainId), nonce: viem.hexToBigInt(authorization.nonce), yParity: viem.hexToNumber(authorization.yParity, { size: 1 }) })))
18
18
  : undefined, gas: typeof transactionRequest.gas !== 'undefined'
19
19
  ? viem.hexToBigInt(transactionRequest.gas)
20
20
  : undefined, gasPrice: typeof transactionRequest.gasPrice !== 'undefined'
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- import { hexToBigInt } from 'viem';
2
+ import { hexToBigInt, hexToNumber } from 'viem';
3
3
 
4
4
  /* eslint-disable max-len */
5
5
  /**
@@ -10,7 +10,7 @@ import { hexToBigInt } from 'viem';
10
10
  * https://github.com/wagmi-dev/viem/blob/0977829160effbe7dac5a69f43d263605544fa19/src/actions/wallet/sendTransaction.ts#L206
11
11
  */
12
12
  const unFormatTransaction = (transactionRequest) => (Object.assign(Object.assign({}, transactionRequest), { authorizationList: typeof transactionRequest.authorizationList !== 'undefined'
13
- ? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: hexToBigInt(authorization.chainId), nonce: hexToBigInt(authorization.nonce), yParity: hexToBigInt(authorization.yParity) })))
13
+ ? transactionRequest.authorizationList.map((authorization) => (Object.assign(Object.assign({}, authorization), { chainId: hexToBigInt(authorization.chainId), nonce: hexToBigInt(authorization.nonce), yParity: hexToNumber(authorization.yParity, { size: 1 }) })))
14
14
  : undefined, gas: typeof transactionRequest.gas !== 'undefined'
15
15
  ? hexToBigInt(transactionRequest.gas)
16
16
  : undefined, gasPrice: typeof transactionRequest.gasPrice !== 'undefined'