@dynamic-labs/ethereum-core 4.97.0 → 4.98.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.98.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.97.0...v4.98.0) (2026-09-02)
3
+
4
+
5
+ ### Features
6
+
7
+ * **waas-evm:** route embedded EVM sends through gas sponsorship when enabled (V4) ([#12307](https://github.com/dynamic-labs/dynamic-auth/issues/12307)) ([d8e6b94](https://github.com/dynamic-labs/dynamic-auth/commit/d8e6b94dc86e1d48b66a246bf8bf0b857e7e69c4))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **sdk-react-core:** send a css overrides summary in sdkSettings telemetry (v4) ([#12330](https://github.com/dynamic-labs/dynamic-auth/issues/12330)) ([8547ee7](https://github.com/dynamic-labs/dynamic-auth/commit/8547ee7a7c3fef8de0ff384778f86542b809e7aa))
13
+ * **waas-svm:** apply overrideBlockhash before sponsorship [v4 backport] ([#12320](https://github.com/dynamic-labs/dynamic-auth/issues/12320)) ([0551f01](https://github.com/dynamic-labs/dynamic-auth/commit/0551f01953f5e623ac113b03e1b010d3dc58a81e)), closes [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599) [#10599](https://github.com/dynamic-labs/dynamic-auth/issues/10599)
14
+
2
15
  ## [4.97.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.96.4...v4.97.0) (2026-08-27)
3
16
 
4
17
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.97.0";
6
+ var version = "4.98.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.97.0";
2
+ var version = "4.98.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.97.0",
3
+ "version": "4.98.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.12.0",
22
- "@dynamic-labs/assert-package-version": "4.97.0",
23
- "@dynamic-labs/logger": "4.97.0",
24
- "@dynamic-labs/rpc-providers": "4.97.0",
25
- "@dynamic-labs/types": "4.97.0",
26
- "@dynamic-labs/utils": "4.97.0",
27
- "@dynamic-labs/wallet-book": "4.97.0",
28
- "@dynamic-labs/wallet-connector-core": "4.97.0"
22
+ "@dynamic-labs/assert-package-version": "4.98.0",
23
+ "@dynamic-labs/logger": "4.98.0",
24
+ "@dynamic-labs/rpc-providers": "4.98.0",
25
+ "@dynamic-labs/types": "4.98.0",
26
+ "@dynamic-labs/utils": "4.98.0",
27
+ "@dynamic-labs/wallet-book": "4.98.0",
28
+ "@dynamic-labs/wallet-connector-core": "4.98.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "viem": "^2.45.3"
@@ -14,7 +14,7 @@ var formatEther = require('../formatEther/formatEther.cjs');
14
14
  var getTransactionRecipient = require('../getTransactionRecipient.cjs');
15
15
 
16
16
  class ViemUiTransaction extends Eip1559FeeFeed.Eip1559FeeFeed {
17
- constructor({ transaction, onSubmit, publicClient, account, }) {
17
+ constructor({ transaction, onSubmit, publicClient, account, isGasSponsored = false, }) {
18
18
  super({
19
19
  initialGasLimit: transaction.gas,
20
20
  initialMaxFeePerGas: transaction.maxFeePerGas,
@@ -26,16 +26,11 @@ class ViemUiTransaction extends Eip1559FeeFeed.Eip1559FeeFeed {
26
26
  this.parseNonNativeToken = (amount, decimals) => viem.parseUnits(amount, decimals);
27
27
  this.format = formatEther.formatEther;
28
28
  this.formatNonNativeToken = (value, decimals) => viem.formatUnits(value, decimals);
29
- /**
30
- * Whether the transaction is gas sponsored.
31
- * Returns false by default for EVM transactions.
32
- * Can be overridden for chains like Tempo where fees are paid differently.
33
- */
34
- this.isGasSponsored = () => false;
35
29
  this.transaction = transaction;
36
30
  this.onSubmit = onSubmit;
37
31
  this.publicClient = publicClient;
38
32
  this.address = account;
33
+ this.isGasSponsored = () => isGasSponsored;
39
34
  }
40
35
  get to() {
41
36
  return this.transaction.to || undefined;
@@ -13,6 +13,7 @@ type ViemUiTransactionProps = {
13
13
  transaction: TransactionSerializable & NonNativeTransaction;
14
14
  onSubmit: (transaction: TransactionSerializable & NonNativeTransaction) => Promise<string>;
15
15
  publicClient: PublicClient<Transport, Chain>;
16
+ isGasSponsored?: boolean;
16
17
  };
17
18
  export interface IUIEvmTransaction {
18
19
  nonNativeValue: bigint | undefined;
@@ -28,7 +29,7 @@ export declare class ViemUiTransaction extends Eip1559FeeFeed implements IUITran
28
29
  private address;
29
30
  protected publicClient: PublicClient<Transport, Chain>;
30
31
  private onSubmit;
31
- constructor({ transaction, onSubmit, publicClient, account, }: ViemUiTransactionProps);
32
+ constructor({ transaction, onSubmit, publicClient, account, isGasSponsored, }: ViemUiTransactionProps);
32
33
  nativePrice?: number | undefined;
33
34
  validateAddressFormat: (address: string) => boolean;
34
35
  parse: (input: string) => bigint;
@@ -57,9 +58,8 @@ export declare class ViemUiTransaction extends Eip1559FeeFeed implements IUITran
57
58
  private convertBigIntToHex;
58
59
  getTransactionRecipient(): `0x${string}` | undefined;
59
60
  /**
60
- * Whether the transaction is gas sponsored.
61
- * Returns false by default for EVM transactions.
62
- * Can be overridden for chains like Tempo where fees are paid differently.
61
+ * Whether the transaction is gas sponsored. Sponsored transactions are
62
+ * excluded from the native balance checks in the confirmation UI.
63
63
  */
64
64
  isGasSponsored: () => boolean;
65
65
  estimateL1Fee(): Promise<bigint>;
@@ -10,7 +10,7 @@ import { formatEther } from '../formatEther/formatEther.js';
10
10
  import { getTransactionRecipient } from '../getTransactionRecipient.js';
11
11
 
12
12
  class ViemUiTransaction extends Eip1559FeeFeed {
13
- constructor({ transaction, onSubmit, publicClient, account, }) {
13
+ constructor({ transaction, onSubmit, publicClient, account, isGasSponsored = false, }) {
14
14
  super({
15
15
  initialGasLimit: transaction.gas,
16
16
  initialMaxFeePerGas: transaction.maxFeePerGas,
@@ -22,16 +22,11 @@ class ViemUiTransaction extends Eip1559FeeFeed {
22
22
  this.parseNonNativeToken = (amount, decimals) => parseUnits(amount, decimals);
23
23
  this.format = formatEther;
24
24
  this.formatNonNativeToken = (value, decimals) => formatUnits(value, decimals);
25
- /**
26
- * Whether the transaction is gas sponsored.
27
- * Returns false by default for EVM transactions.
28
- * Can be overridden for chains like Tempo where fees are paid differently.
29
- */
30
- this.isGasSponsored = () => false;
31
25
  this.transaction = transaction;
32
26
  this.onSubmit = onSubmit;
33
27
  this.publicClient = publicClient;
34
28
  this.address = account;
29
+ this.isGasSponsored = () => isGasSponsored;
35
30
  }
36
31
  get to() {
37
32
  return this.transaction.to || undefined;