@dynamic-labs/ethereum-core 4.97.0 → 4.99.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 +27 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/utils/viem/ViemUiTransaction/ViemUiTransaction.cjs +2 -7
- package/src/utils/viem/ViemUiTransaction/ViemUiTransaction.d.ts +4 -4
- package/src/utils/viem/ViemUiTransaction/ViemUiTransaction.js +2 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.99.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.98.0...v4.99.0) (2026-09-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **solana-core:** standalone sponsored ATA creation [v4 backport] ([#12366](https://github.com/dynamic-labs/dynamic-auth/issues/12366)) ([46d86c9](https://github.com/dynamic-labs/dynamic-auth/commit/46d86c9a1a04c45bf045acc5c6df792dcd4b3590))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* do not report wallets installed from a provider selection router (v4) ([#12341](https://github.com/dynamic-labs/dynamic-auth/issues/12341)) ([6b02087](https://github.com/dynamic-labs/dynamic-auth/commit/6b02087685545bb6f672eb9040316d01489c82f4))
|
|
13
|
+
* **screening:** soften the blocked-wallet copy to be provider-neutral (v4) ([#12359](https://github.com/dynamic-labs/dynamic-auth/issues/12359)) ([d6772df](https://github.com/dynamic-labs/dynamic-auth/commit/d6772dfc1419811bfbc1d9cb1db58fe12274d397))
|
|
14
|
+
* **waas:** detach the superseded WaaS client from the iframe reverse channel (v4) ([#12349](https://github.com/dynamic-labs/dynamic-auth/issues/12349)) ([393253d](https://github.com/dynamic-labs/dynamic-auth/commit/393253d9e5934e039e21b85ed6ceded760e0f225)), closes [#11766](https://github.com/dynamic-labs/dynamic-auth/issues/11766) [#12348](https://github.com/dynamic-labs/dynamic-auth/issues/12348)
|
|
15
|
+
|
|
16
|
+
## [4.98.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.97.0...v4.98.0) (2026-09-02)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **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))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **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))
|
|
27
|
+
* **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)
|
|
28
|
+
|
|
2
29
|
## [4.97.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.96.4...v4.97.0) (2026-08-27)
|
|
3
30
|
|
|
4
31
|
|
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.99.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.
|
|
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.99.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.99.0",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.99.0",
|
|
25
|
+
"@dynamic-labs/types": "4.99.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.99.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.99.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.99.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
|
-
*
|
|
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;
|