@metamask/gas-fee-controller 26.0.0 → 26.0.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
|
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [26.0.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
|
|
15
|
+
- Move peer dependencies for controller and service packages to direct dependencies ([#7209](https://github.com/MetaMask/core/pull/7209), [#7258](https://github.com/MetaMask/core/pull/7258), [#7534](https://github.com/MetaMask/core/pull/7534), [#7583](https://github.com/MetaMask/core/pull/7583), [#7604](https://github.com/MetaMask/core/pull/7604))
|
|
16
|
+
- The dependencies moved are:
|
|
17
|
+
- `@metamask/network-controller` (^28.0.0)
|
|
18
|
+
- In clients, it is now possible for multiple versions of these packages to exist in the dependency tree.
|
|
19
|
+
- For example, this scenario would be valid: a client relies on `@metamask/controller-a` 1.0.0 and `@metamask/controller-b` 1.0.0, and `@metamask/controller-b` depends on `@metamask/controller-a` 1.1.0.
|
|
20
|
+
- Note, however, that the versions specified in the client's `package.json` always "win", and you are expected to keep them up to date so as not to break controller and service intercommunication.
|
|
21
|
+
- Bump `@metamask/controller-utils` from `^11.16.0` to `^11.18.0` ([#7534](https://github.com/MetaMask/core/pull/7534), [#7583](https://github.com/MetaMask/core/pull/7583))
|
|
22
|
+
- Bump `@metamask/polling-controller` from `^16.0.0` to `^16.0.1` ([#7604](https://github.com/MetaMask/core/pull/7604))
|
|
23
|
+
|
|
10
24
|
## [26.0.0]
|
|
11
25
|
|
|
12
26
|
### Changed
|
|
@@ -467,7 +481,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
467
481
|
|
|
468
482
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
469
483
|
|
|
470
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@26.0.
|
|
484
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@26.0.1...HEAD
|
|
485
|
+
[26.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@26.0.0...@metamask/gas-fee-controller@26.0.1
|
|
471
486
|
[26.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@25.0.0...@metamask/gas-fee-controller@26.0.0
|
|
472
487
|
[25.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@24.1.1...@metamask/gas-fee-controller@25.0.0
|
|
473
488
|
[24.1.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@24.1.0...@metamask/gas-fee-controller@24.1.1
|
|
@@ -157,8 +157,8 @@ type GasFeePollingInput = {
|
|
|
157
157
|
networkClientId: NetworkClientId;
|
|
158
158
|
};
|
|
159
159
|
declare const GasFeeController_base: (abstract new (...args: any[]) => {
|
|
160
|
-
readonly "__#
|
|
161
|
-
"__#
|
|
160
|
+
readonly "__#14@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
161
|
+
"__#14@#intervalLength": number | undefined;
|
|
162
162
|
setIntervalLength(intervalLength: number): void;
|
|
163
163
|
getIntervalLength(): number | undefined;
|
|
164
164
|
_startPolling(input: GasFeePollingInput): void;
|
|
@@ -157,8 +157,8 @@ type GasFeePollingInput = {
|
|
|
157
157
|
networkClientId: NetworkClientId;
|
|
158
158
|
};
|
|
159
159
|
declare const GasFeeController_base: (abstract new (...args: any[]) => {
|
|
160
|
-
readonly "__#
|
|
161
|
-
"__#
|
|
160
|
+
readonly "__#14@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
161
|
+
"__#14@#intervalLength": number | undefined;
|
|
162
162
|
setIntervalLength(intervalLength: number): void;
|
|
163
163
|
getIntervalLength(): number | undefined;
|
|
164
164
|
_startPolling(input: GasFeePollingInput): void;
|
package/dist/gas-util.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import type { GasFeeEstimates, EthGasPriceEstimate, EstimatedGasFeeTimeBounds, L
|
|
|
6
6
|
* @param n - The input GWEI amount, as a decimal string or a number.
|
|
7
7
|
* @returns The decimal string GWEI amount.
|
|
8
8
|
*/
|
|
9
|
-
export declare function normalizeGWEIDecimalNumbers(n: string | number):
|
|
9
|
+
export declare function normalizeGWEIDecimalNumbers(n: string | number): string;
|
|
10
10
|
/**
|
|
11
11
|
* Fetch gas estimates from the given URL.
|
|
12
12
|
*
|
package/dist/gas-util.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gas-util.d.cts","sourceRoot":"","sources":["../src/gas-util.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,QAAQ,4BAA4B;AAGhD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,sBAAsB,EACvB,+BAA2B;AAI5B;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"gas-util.d.cts","sourceRoot":"","sources":["../src/gas-util.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,QAAQ,4BAA4B;AAGhD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,sBAAsB,EACvB,+BAA2B;AAI5B;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,UAI7D;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,CAyC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,sBAAsB,CAAC,CAgBjC;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAK9B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,oBAAoB,EAAE,MAAM,EAC5B,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,eAAe,GAC/B,yBAAyB,CAoD3B"}
|
package/dist/gas-util.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import type { GasFeeEstimates, EthGasPriceEstimate, EstimatedGasFeeTimeBounds, L
|
|
|
6
6
|
* @param n - The input GWEI amount, as a decimal string or a number.
|
|
7
7
|
* @returns The decimal string GWEI amount.
|
|
8
8
|
*/
|
|
9
|
-
export declare function normalizeGWEIDecimalNumbers(n: string | number):
|
|
9
|
+
export declare function normalizeGWEIDecimalNumbers(n: string | number): string;
|
|
10
10
|
/**
|
|
11
11
|
* Fetch gas estimates from the given URL.
|
|
12
12
|
*
|
package/dist/gas-util.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gas-util.d.mts","sourceRoot":"","sources":["../src/gas-util.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,QAAQ,4BAA4B;AAGhD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,sBAAsB,EACvB,+BAA2B;AAI5B;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"gas-util.d.mts","sourceRoot":"","sources":["../src/gas-util.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,QAAQ,4BAA4B;AAGhD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,sBAAsB,EACvB,+BAA2B;AAI5B;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,UAI7D;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,CAyC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,sBAAsB,CAAC,CAgBjC;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAK9B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,oBAAoB,EAAE,MAAM,EAC5B,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,eAAe,GAC/B,yBAAyB,CAoD3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/gas-fee-controller",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.1",
|
|
4
4
|
"description": "Periodically calculates gas fee estimates based on various gas limits as well as other data displayed on transaction confirm screens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -49,11 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@metamask/base-controller": "^9.0.0",
|
|
52
|
-
"@metamask/controller-utils": "^11.
|
|
52
|
+
"@metamask/controller-utils": "^11.18.0",
|
|
53
53
|
"@metamask/eth-query": "^4.0.0",
|
|
54
54
|
"@metamask/ethjs-unit": "^0.3.0",
|
|
55
|
-
"@metamask/
|
|
56
|
-
"@metamask/
|
|
55
|
+
"@metamask/network-controller": "^28.0.0",
|
|
56
|
+
"@metamask/polling-controller": "^16.0.1",
|
|
57
|
+
"@metamask/utils": "^11.9.0",
|
|
57
58
|
"@types/bn.js": "^5.1.5",
|
|
58
59
|
"@types/uuid": "^8.3.0",
|
|
59
60
|
"bn.js": "^5.2.1",
|
|
@@ -62,7 +63,6 @@
|
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@babel/runtime": "^7.23.9",
|
|
64
65
|
"@metamask/auto-changelog": "^3.4.4",
|
|
65
|
-
"@metamask/network-controller": "^26.0.0",
|
|
66
66
|
"@ts-bridge/cli": "^0.6.4",
|
|
67
67
|
"@types/jest": "^27.4.1",
|
|
68
68
|
"@types/jest-when": "^2.7.3",
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
"typescript": "~5.3.3"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@babel/runtime": "^7.0.0"
|
|
81
|
-
"@metamask/network-controller": "^26.0.0"
|
|
80
|
+
"@babel/runtime": "^7.0.0"
|
|
82
81
|
},
|
|
83
82
|
"engines": {
|
|
84
83
|
"node": "^18.18 || >=20"
|