@metamask-previews/gas-fee-controller 22.0.1-preview-57e6ab5d → 22.0.1-preview-a0b32c13
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,14 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
### Fixed
|
|
11
|
-
|
|
12
|
-
- Make implicit peer dependencies explicit ([#4974](https://github.com/MetaMask/core/pull/4974))
|
|
13
|
-
- Add the following packages as peer dependencies of this package to satisfy peer dependency requirements from other dependencies:
|
|
14
|
-
- `@babel/runtime@^7.0.0` (required by `@metamask/ethjs-unit`)
|
|
15
|
-
- These dependencies really should be present in projects that consume this package (e.g. MetaMask clients), and this change ensures that they now are.
|
|
16
|
-
- Furthermore, we are assuming that clients already use these dependencies, since otherwise it would be impossible to consume this package in its entirety or even create a working build. Hence, the addition of these peer dependencies is really a formality and should not be breaking.
|
|
17
|
-
|
|
18
10
|
## [22.0.1]
|
|
19
11
|
|
|
20
12
|
### Changed
|
|
@@ -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 "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
155
|
+
"__#787811@#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 "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
161
|
+
"__#787803@#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 "__#787811@#intervalIds": Record<string, NodeJS.Timeout>;
|
|
155
|
+
"__#787811@#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 "__#787803@#pollingTokenSets": Map<string, Set<string>>;
|
|
161
|
+
"__#787803@#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": "22.0.1-preview-
|
|
3
|
+
"version": "22.0.1-preview-a0b32c13",
|
|
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",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/runtime": "^7.23.9",
|
|
63
62
|
"@metamask/auto-changelog": "^3.4.4",
|
|
64
63
|
"@metamask/network-controller": "^22.0.2",
|
|
65
64
|
"@types/jest": "^27.4.1",
|
|
@@ -75,7 +74,6 @@
|
|
|
75
74
|
"typescript": "~5.2.2"
|
|
76
75
|
},
|
|
77
76
|
"peerDependencies": {
|
|
78
|
-
"@babel/runtime": "^7.0.0",
|
|
79
77
|
"@metamask/network-controller": "^22.0.0"
|
|
80
78
|
},
|
|
81
79
|
"engines": {
|