@dynamic-labs/ethereum-core 4.61.2 → 4.61.4
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 +16 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/utils/viem/Eip1559FeeFeed.cjs +26 -3
- package/src/utils/viem/Eip1559FeeFeed.js +26 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.61.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.3...v4.61.4) (2026-02-15)
|
|
3
|
+
|
|
4
|
+
### [4.61.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.2...v4.61.3) (2026-02-13)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add reset widget password flow for WaaS wallets ([#10437](https://github.com/dynamic-labs/dynamic-auth/issues/10437)) ([7490069](https://github.com/dynamic-labs/dynamic-auth/commit/7490069b70b04be5d70c472c17b132c6a5eddcd5))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add broken ton wallet mobile connection ([#10435](https://github.com/dynamic-labs/dynamic-auth/issues/10435)) ([a71cd88](https://github.com/dynamic-labs/dynamic-auth/commit/a71cd88fd4e80af6a8956cdb5cc389a34e4e00f1))
|
|
15
|
+
* infinite loop when rapidly entering phone number ([#10434](https://github.com/dynamic-labs/dynamic-auth/issues/10434)) ([39a57cc](https://github.com/dynamic-labs/dynamic-auth/commit/39a57cc51b879abbb63bd129a489adcd8522b261))
|
|
16
|
+
* invalidate non matching ton connect proof ([#10438](https://github.com/dynamic-labs/dynamic-auth/issues/10438)) ([406ba34](https://github.com/dynamic-labs/dynamic-auth/commit/406ba34ba9053953a4b5a5d6ead6d7e8a1718423))
|
|
17
|
+
|
|
2
18
|
### [4.61.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.1...v4.61.2) (2026-02-12)
|
|
3
19
|
|
|
4
20
|
|
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.61.
|
|
3
|
+
"version": "4.61.4",
|
|
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.864",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.61.
|
|
23
|
-
"@dynamic-labs/logger": "4.61.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.61.
|
|
25
|
-
"@dynamic-labs/types": "4.61.
|
|
26
|
-
"@dynamic-labs/utils": "4.61.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.61.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.61.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.61.4",
|
|
23
|
+
"@dynamic-labs/logger": "4.61.4",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.61.4",
|
|
25
|
+
"@dynamic-labs/types": "4.61.4",
|
|
26
|
+
"@dynamic-labs/utils": "4.61.4",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.61.4",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.61.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"viem": "^2.28.4"
|
|
@@ -19,6 +19,13 @@ class Eip1559FeeFeed {
|
|
|
19
19
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
try {
|
|
21
21
|
const l1Fee = yield this.estimateL1Fee();
|
|
22
|
+
// Handle the case where max fee per gas is explicitly set to 0
|
|
23
|
+
if (this.initialGasLimit && this.initialMaxFeePerGas === BigInt(0)) {
|
|
24
|
+
this.fee.gas = l1Fee;
|
|
25
|
+
this.maxPriorityFeePerGas = BigInt(0);
|
|
26
|
+
this.maxFeePerGas = BigInt(0);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
22
29
|
// Original transaction already defined the gas limit and max fee per gas
|
|
23
30
|
if (this.initialGasLimit && this.initialMaxFeePerGas) {
|
|
24
31
|
this.fee.gas = this.initialGasLimit * this.initialMaxFeePerGas + l1Fee;
|
|
@@ -26,9 +33,19 @@ class Eip1559FeeFeed {
|
|
|
26
33
|
}
|
|
27
34
|
// Estimate the gas limit
|
|
28
35
|
const gasLimit = yield this.estimateGas();
|
|
36
|
+
let overrideMaxFeePerGas = false;
|
|
37
|
+
//Special case: if a developer sets the max fee per gas to 0, we need to override the max fee per gas to 0
|
|
38
|
+
// So that it doesn't magically gets overriden later on.
|
|
39
|
+
if (this.initialMaxFeePerGas === BigInt(0)) {
|
|
40
|
+
overrideMaxFeePerGas = true;
|
|
41
|
+
}
|
|
29
42
|
// Original transaction defined the max fee per gas
|
|
30
|
-
if (this.initialMaxFeePerGas) {
|
|
43
|
+
if (this.initialMaxFeePerGas || overrideMaxFeePerGas) {
|
|
31
44
|
this.fee.gas = gasLimit * this.initialMaxFeePerGas + l1Fee;
|
|
45
|
+
if (overrideMaxFeePerGas) {
|
|
46
|
+
this.maxPriorityFeePerGas = BigInt(0);
|
|
47
|
+
this.maxFeePerGas = BigInt(0);
|
|
48
|
+
}
|
|
32
49
|
return;
|
|
33
50
|
}
|
|
34
51
|
// Estimate max fee per gas
|
|
@@ -37,8 +54,14 @@ class Eip1559FeeFeed {
|
|
|
37
54
|
return;
|
|
38
55
|
}
|
|
39
56
|
this.fee.gas = gasLimit * estimatedFeesPerGas.maxFeePerGas + l1Fee;
|
|
40
|
-
this.maxFeePerGas =
|
|
41
|
-
|
|
57
|
+
this.maxFeePerGas =
|
|
58
|
+
this.maxFeePerGas === BigInt(0)
|
|
59
|
+
? this.maxFeePerGas
|
|
60
|
+
: estimatedFeesPerGas.maxFeePerGas;
|
|
61
|
+
this.maxPriorityFeePerGas =
|
|
62
|
+
this.maxPriorityFeePerGas === BigInt(0)
|
|
63
|
+
? this.maxPriorityFeePerGas
|
|
64
|
+
: estimatedFeesPerGas.maxPriorityFeePerGas;
|
|
42
65
|
}
|
|
43
66
|
catch (error) {
|
|
44
67
|
logger.logger.debug(error);
|
|
@@ -15,6 +15,13 @@ class Eip1559FeeFeed {
|
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
try {
|
|
17
17
|
const l1Fee = yield this.estimateL1Fee();
|
|
18
|
+
// Handle the case where max fee per gas is explicitly set to 0
|
|
19
|
+
if (this.initialGasLimit && this.initialMaxFeePerGas === BigInt(0)) {
|
|
20
|
+
this.fee.gas = l1Fee;
|
|
21
|
+
this.maxPriorityFeePerGas = BigInt(0);
|
|
22
|
+
this.maxFeePerGas = BigInt(0);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
18
25
|
// Original transaction already defined the gas limit and max fee per gas
|
|
19
26
|
if (this.initialGasLimit && this.initialMaxFeePerGas) {
|
|
20
27
|
this.fee.gas = this.initialGasLimit * this.initialMaxFeePerGas + l1Fee;
|
|
@@ -22,9 +29,19 @@ class Eip1559FeeFeed {
|
|
|
22
29
|
}
|
|
23
30
|
// Estimate the gas limit
|
|
24
31
|
const gasLimit = yield this.estimateGas();
|
|
32
|
+
let overrideMaxFeePerGas = false;
|
|
33
|
+
//Special case: if a developer sets the max fee per gas to 0, we need to override the max fee per gas to 0
|
|
34
|
+
// So that it doesn't magically gets overriden later on.
|
|
35
|
+
if (this.initialMaxFeePerGas === BigInt(0)) {
|
|
36
|
+
overrideMaxFeePerGas = true;
|
|
37
|
+
}
|
|
25
38
|
// Original transaction defined the max fee per gas
|
|
26
|
-
if (this.initialMaxFeePerGas) {
|
|
39
|
+
if (this.initialMaxFeePerGas || overrideMaxFeePerGas) {
|
|
27
40
|
this.fee.gas = gasLimit * this.initialMaxFeePerGas + l1Fee;
|
|
41
|
+
if (overrideMaxFeePerGas) {
|
|
42
|
+
this.maxPriorityFeePerGas = BigInt(0);
|
|
43
|
+
this.maxFeePerGas = BigInt(0);
|
|
44
|
+
}
|
|
28
45
|
return;
|
|
29
46
|
}
|
|
30
47
|
// Estimate max fee per gas
|
|
@@ -33,8 +50,14 @@ class Eip1559FeeFeed {
|
|
|
33
50
|
return;
|
|
34
51
|
}
|
|
35
52
|
this.fee.gas = gasLimit * estimatedFeesPerGas.maxFeePerGas + l1Fee;
|
|
36
|
-
this.maxFeePerGas =
|
|
37
|
-
|
|
53
|
+
this.maxFeePerGas =
|
|
54
|
+
this.maxFeePerGas === BigInt(0)
|
|
55
|
+
? this.maxFeePerGas
|
|
56
|
+
: estimatedFeesPerGas.maxFeePerGas;
|
|
57
|
+
this.maxPriorityFeePerGas =
|
|
58
|
+
this.maxPriorityFeePerGas === BigInt(0)
|
|
59
|
+
? this.maxPriorityFeePerGas
|
|
60
|
+
: estimatedFeesPerGas.maxPriorityFeePerGas;
|
|
38
61
|
}
|
|
39
62
|
catch (error) {
|
|
40
63
|
logger.debug(error);
|