@metamask-previews/gas-fee-controller 20.0.1-preview-557a8fcb → 21.0.0-preview-b7ea5d52
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 +10 -1
- package/dist/GasFeeController.d.cts +4 -4
- package/dist/GasFeeController.d.mts +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [21.0.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **BREAKING:** `GasFeeController` now uses a new polling interface that accepts the generic parameter `PollingInput` ([#4752](https://github.com/MetaMask/core/pull/4752))
|
|
15
|
+
- **BREAKING:** The inherited `AbstractPollingController` method `startPollingByNetworkClientId` has been renamed to `startPolling` ([#4752](https://github.com/MetaMask/core/pull/4752))
|
|
16
|
+
- **BREAKING:** The inherited `AbstractPollingController` method `onPollingComplete` now returns the entire input object of type `PollingInput`, instead of a network client id ([#4752](https://github.com/MetaMask/core/pull/4752))
|
|
17
|
+
|
|
10
18
|
## [20.0.1]
|
|
11
19
|
|
|
12
20
|
### Fixed
|
|
@@ -351,7 +359,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
351
359
|
|
|
352
360
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
353
361
|
|
|
354
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@
|
|
362
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@21.0.0...HEAD
|
|
363
|
+
[21.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@20.0.1...@metamask/gas-fee-controller@21.0.0
|
|
355
364
|
[20.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@20.0.0...@metamask/gas-fee-controller@20.0.1
|
|
356
365
|
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@19.0.1...@metamask/gas-fee-controller@20.0.0
|
|
357
366
|
[19.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@19.0.0...@metamask/gas-fee-controller@19.0.1
|
|
@@ -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 "__#784842@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
155
|
+
"__#784842@#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 "__#784834@#pollingTokenSets": Map<string, Set<string>>;
|
|
161
|
+
"__#784834@#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 "__#784842@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
155
|
+
"__#784842@#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 "__#784834@#pollingTokenSets": Map<string, Set<string>>;
|
|
161
|
+
"__#784834@#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-previews/gas-fee-controller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-preview-b7ea5d52",
|
|
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",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@metamask/controller-utils": "^11.3.0",
|
|
52
52
|
"@metamask/eth-query": "^4.0.0",
|
|
53
53
|
"@metamask/ethjs-unit": "^0.3.0",
|
|
54
|
-
"@metamask/polling-controller": "^
|
|
54
|
+
"@metamask/polling-controller": "^11.0.0",
|
|
55
55
|
"@metamask/utils": "^9.1.0",
|
|
56
56
|
"@types/bn.js": "^5.1.5",
|
|
57
57
|
"@types/uuid": "^8.3.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@metamask/auto-changelog": "^3.4.4",
|
|
63
|
-
"@metamask/network-controller": "^21.0
|
|
63
|
+
"@metamask/network-controller": "^21.1.0",
|
|
64
64
|
"@types/jest": "^27.4.1",
|
|
65
65
|
"@types/jest-when": "^2.7.3",
|
|
66
66
|
"deepmerge": "^4.2.2",
|