@dynamic-labs/ethereum-core 4.30.3 → 4.31.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,23 @@
1
1
 
2
+ ## [4.31.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.4...v4.31.0) (2025-09-09)
3
+
4
+ ### Features
5
+
6
+ * adds evmNetworks prop for the react native client ([#9429](https://github.com/dynamic-labs/dynamic-auth/pull/9429))
7
+ * allow creating a mfaToken on authenticateRecoveryCode ([#9459](https://github.com/dynamic-labs/dynamic-auth/pull/9459))
8
+
9
+ ### Bug Fixes
10
+
11
+ * fixed the yParity conversion in unFormatTransaction ([#9457](https://github.com/dynamic-labs/dynamic-auth/pull/9457))
12
+
13
+ ### [4.30.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.3...v4.30.4) (2025-09-09)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * remove artifacts section to resolve error preventing the build ([#9456](https://github.com/dynamic-labs/dynamic-auth/issues/9456)) ([691a2e7](https://github.com/dynamic-labs/dynamic-auth/commit/691a2e78c9f395e2e3e27df89cc6520deabb1af7))
19
+ * use unique codebuild id for shard artifacts in batch build ([#9455](https://github.com/dynamic-labs/dynamic-auth/issues/9455)) ([69f0270](https://github.com/dynamic-labs/dynamic-auth/commit/69f0270b0a20be044617367178db2a375d0f359d))
20
+
2
21
  ### [4.30.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.30.2...v4.30.3) (2025-09-05)
3
22
 
4
23
 
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.3";
6
+ var version = "4.31.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.30.3";
2
+ var version = "4.31.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.30.3",
3
+ "version": "4.31.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.762",
22
- "@dynamic-labs/assert-package-version": "4.30.3",
23
- "@dynamic-labs/logger": "4.30.3",
24
- "@dynamic-labs/rpc-providers": "4.30.3",
25
- "@dynamic-labs/types": "4.30.3",
26
- "@dynamic-labs/utils": "4.30.3",
27
- "@dynamic-labs/wallet-book": "4.30.3",
28
- "@dynamic-labs/wallet-connector-core": "4.30.3"
22
+ "@dynamic-labs/assert-package-version": "4.31.0",
23
+ "@dynamic-labs/logger": "4.31.0",
24
+ "@dynamic-labs/rpc-providers": "4.31.0",
25
+ "@dynamic-labs/types": "4.31.0",
26
+ "@dynamic-labs/utils": "4.31.0",
27
+ "@dynamic-labs/wallet-book": "4.31.0",
28
+ "@dynamic-labs/wallet-connector-core": "4.31.0"
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.hexToBigInt(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'
@@ -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: hexToBigInt(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'