@metamask/gas-fee-controller 21.0.0 → 22.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 +19 -1
- package/dist/GasFeeController.d.cts +4 -4
- package/dist/GasFeeController.d.mts +4 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [22.0.1]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/polling-controller` from `^12.0.0` to `^12.0.1` ([#4870](https://github.com/MetaMask/core/pull/4870))
|
|
15
|
+
- Bump `@metamask/base-controller` from `^7.0.1` to `^7.0.2` ([#4862](https://github.com/MetaMask/core/pull/4862))
|
|
16
|
+
- Bump `@metamask/controller-utils` from `^11.4.0` to `^11.4.3` ([#4862](https://github.com/MetaMask/core/pull/4862), [#4870](https://github.com/MetaMask/core/pull/4870), [#4195](https://github.com/MetaMask/core/pull/4195))
|
|
17
|
+
|
|
18
|
+
## [22.0.0]
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **BREAKING:** Bump `@metamask/network-controller` peer dependency to `^22.0.0` ([#4841](https://github.com/MetaMask/core/pull/4841))
|
|
23
|
+
- Bump `@metamask/controller-utils` to `^11.4.0` ([#4834](https://github.com/MetaMask/core/pull/4834))
|
|
24
|
+
- Bump `@metamask/utils` to `^10.0.0` ([#4831](https://github.com/MetaMask/core/pull/4831))
|
|
25
|
+
|
|
10
26
|
## [21.0.0]
|
|
11
27
|
|
|
12
28
|
### Changed
|
|
@@ -359,7 +375,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
359
375
|
|
|
360
376
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
361
377
|
|
|
362
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@
|
|
378
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@22.0.1...HEAD
|
|
379
|
+
[22.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@22.0.0...@metamask/gas-fee-controller@22.0.1
|
|
380
|
+
[22.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@21.0.0...@metamask/gas-fee-controller@22.0.0
|
|
363
381
|
[21.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@20.0.1...@metamask/gas-fee-controller@21.0.0
|
|
364
382
|
[20.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@20.0.0...@metamask/gas-fee-controller@20.0.1
|
|
365
383
|
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@19.0.1...@metamask/gas-fee-controller@20.0.0
|
|
@@ -151,14 +151,14 @@ type GasFeePollingInput = {
|
|
|
151
151
|
networkClientId: NetworkClientId;
|
|
152
152
|
};
|
|
153
153
|
declare const GasFeeController_base: (abstract new (...args: any[]) => {
|
|
154
|
-
readonly "__#
|
|
155
|
-
"__#
|
|
154
|
+
readonly "__#787887@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
155
|
+
"__#787887@#intervalLength": number | undefined;
|
|
156
156
|
setIntervalLength(intervalLength: number): void;
|
|
157
157
|
getIntervalLength(): number | undefined;
|
|
158
158
|
_startPolling(input: GasFeePollingInput): void;
|
|
159
159
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
160
|
-
readonly "__#
|
|
161
|
-
"__#
|
|
160
|
+
readonly "__#787879@#pollingTokenSets": Map<string, Set<string>>;
|
|
161
|
+
"__#787879@#callbacks": Map<string, Set<(input: GasFeePollingInput) => void>>;
|
|
162
162
|
_executePoll(input: GasFeePollingInput): Promise<void>;
|
|
163
163
|
startPolling(input: GasFeePollingInput): string;
|
|
164
164
|
stopAllPolling(): void;
|
|
@@ -151,14 +151,14 @@ type GasFeePollingInput = {
|
|
|
151
151
|
networkClientId: NetworkClientId;
|
|
152
152
|
};
|
|
153
153
|
declare const GasFeeController_base: (abstract new (...args: any[]) => {
|
|
154
|
-
readonly "__#
|
|
155
|
-
"__#
|
|
154
|
+
readonly "__#787887@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
155
|
+
"__#787887@#intervalLength": number | undefined;
|
|
156
156
|
setIntervalLength(intervalLength: number): void;
|
|
157
157
|
getIntervalLength(): number | undefined;
|
|
158
158
|
_startPolling(input: GasFeePollingInput): void;
|
|
159
159
|
_stopPollingByPollingTokenSetId(key: string): void;
|
|
160
|
-
readonly "__#
|
|
161
|
-
"__#
|
|
160
|
+
readonly "__#787879@#pollingTokenSets": Map<string, Set<string>>;
|
|
161
|
+
"__#787879@#callbacks": Map<string, Set<(input: GasFeePollingInput) => void>>;
|
|
162
162
|
_executePoll(input: GasFeePollingInput): Promise<void>;
|
|
163
163
|
startPolling(input: GasFeePollingInput): string;
|
|
164
164
|
stopAllPolling(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/gas-fee-controller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.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",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@metamask/base-controller": "^7.0.
|
|
51
|
-
"@metamask/controller-utils": "^11.3
|
|
50
|
+
"@metamask/base-controller": "^7.0.2",
|
|
51
|
+
"@metamask/controller-utils": "^11.4.3",
|
|
52
52
|
"@metamask/eth-query": "^4.0.0",
|
|
53
53
|
"@metamask/ethjs-unit": "^0.3.0",
|
|
54
|
-
"@metamask/polling-controller": "^
|
|
55
|
-
"@metamask/utils": "^
|
|
54
|
+
"@metamask/polling-controller": "^12.0.1",
|
|
55
|
+
"@metamask/utils": "^10.0.0",
|
|
56
56
|
"@types/bn.js": "^5.1.5",
|
|
57
57
|
"@types/uuid": "^8.3.0",
|
|
58
58
|
"bn.js": "^5.2.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@metamask/auto-changelog": "^3.4.4",
|
|
63
|
-
"@metamask/network-controller": "^
|
|
63
|
+
"@metamask/network-controller": "^22.0.2",
|
|
64
64
|
"@types/jest": "^27.4.1",
|
|
65
65
|
"@types/jest-when": "^2.7.3",
|
|
66
66
|
"deepmerge": "^4.2.2",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "~5.2.2"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@metamask/network-controller": "^
|
|
77
|
+
"@metamask/network-controller": "^22.0.0"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": "^18.18 || >=20"
|