@metamask-previews/transaction-controller 68.0.0-preview-fe651cdb3 → 68.0.0-preview-1a8241c
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 +3 -2
- package/dist/TransactionController.cjs +14 -1
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +27 -4
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +27 -4
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +14 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +5 -3
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +5 -3
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/gas-fees.cjs +36 -10
- package/dist/utils/gas-fees.cjs.map +1 -1
- package/dist/utils/gas-fees.d.cts +1 -1
- package/dist/utils/gas-fees.d.cts.map +1 -1
- package/dist/utils/gas-fees.d.mts +1 -1
- package/dist/utils/gas-fees.d.mts.map +1 -1
- package/dist/utils/gas-fees.mjs +37 -11
- package/dist/utils/gas-fees.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
### Changed
|
|
13
13
|
|
|
14
|
+
- **BREAKING:** Expand saved gas fee support to allow transaction-scoped lookup, saved gas fee estimate levels, and legacy gas price values. Consumers that provide `getSavedGasFees` must now accept `TransactionMeta` instead of a chain ID. ([#8993](https://github.com/MetaMask/core/pull/8993))
|
|
14
15
|
- Bump `@metamask/utils` from `^11.9.0` to `^11.11.0` ([#9074](https://github.com/MetaMask/core/pull/9074))
|
|
15
16
|
- Bump `@metamask/controller-utils` from `^12.1.1` to `^12.2.0` ([#9083](https://github.com/MetaMask/core/pull/9083))
|
|
16
17
|
- `TransactionController` can now be constructed before `NetworkController` is registered on the messenger ([#9012](https://github.com/MetaMask/core/pull/9012))
|
|
@@ -20,8 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
20
21
|
### Removed
|
|
21
22
|
|
|
22
23
|
- **BREAKING:** Remove incoming transaction support from `TransactionController` ([#9012](https://github.com/MetaMask/core/pull/9012))
|
|
23
|
-
-
|
|
24
|
-
- Removed public
|
|
24
|
+
- The constructor option `incomingTransactions` is ignored for backwards compatibility.
|
|
25
|
+
- Removed public method `updateIncomingTransactions`; `startIncomingTransactionPolling` and `stopIncomingTransactionPolling` are retained as no-ops for backwards compatibility.
|
|
25
26
|
- Removed event `TransactionController:incomingTransactionsReceived`.
|
|
26
27
|
- Removed exported constant `INCOMING_TRANSACTIONS_SUPPORTED_CHAIN_IDS`.
|
|
27
28
|
- Removed exported types `TransactionControllerIncomingTransactionsReceivedEvent`, `TransactionControllerStartIncomingTransactionPollingAction`, `TransactionControllerStopIncomingTransactionPollingAction`, `TransactionControllerUpdateIncomingTransactionsAction`, `TransactionResponse`, `GetAccountTransactionsRequest`, `GetAccountTransactionsResponse`.
|
|
@@ -223,7 +223,8 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
223
223
|
__classPrivateFieldSet(this, _TransactionController_beforeSign, hooks?.beforeSign ??
|
|
224
224
|
(() => Promise.resolve({})), "f");
|
|
225
225
|
__classPrivateFieldSet(this, _TransactionController_getPermittedAccounts, getPermittedAccounts, "f");
|
|
226
|
-
__classPrivateFieldSet(this, _TransactionController_getSavedGasFees, getSavedGasFees ??
|
|
226
|
+
__classPrivateFieldSet(this, _TransactionController_getSavedGasFees, getSavedGasFees ??
|
|
227
|
+
((_transactionMeta) => undefined), "f");
|
|
227
228
|
__classPrivateFieldSet(this, _TransactionController_getSimulationConfig, getSimulationConfig ??
|
|
228
229
|
(() => Promise.resolve({})), "f");
|
|
229
230
|
__classPrivateFieldSet(this, _TransactionController_isAutomaticGasFeeUpdateEnabled, isAutomaticGasFeeUpdateEnabled ??
|
|
@@ -304,6 +305,18 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
304
305
|
destroy() {
|
|
305
306
|
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_stopAllTracking).call(this);
|
|
306
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* @deprecated Incoming transaction support has been removed. This method is retained as a no-op for backwards compatibility.
|
|
310
|
+
*/
|
|
311
|
+
startIncomingTransactionPolling() {
|
|
312
|
+
(0, lodash_1.noop)();
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* @deprecated Incoming transaction support has been removed. This method is retained as a no-op for backwards compatibility.
|
|
316
|
+
*/
|
|
317
|
+
stopIncomingTransactionPolling() {
|
|
318
|
+
(0, lodash_1.noop)();
|
|
319
|
+
}
|
|
307
320
|
/**
|
|
308
321
|
* Handle new method data request.
|
|
309
322
|
*
|