@metamask-previews/transaction-controller 68.0.0-preview-1a8241c → 68.0.0-preview-a3e0ef7eb
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 +2 -3
- package/dist/TransactionController.cjs +1 -14
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +4 -27
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +4 -27
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +1 -14
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +3 -5
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +3 -5
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/gas-fees.cjs +10 -36
- 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 +11 -37
- package/dist/utils/gas-fees.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,6 @@ 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))
|
|
15
14
|
- Bump `@metamask/utils` from `^11.9.0` to `^11.11.0` ([#9074](https://github.com/MetaMask/core/pull/9074))
|
|
16
15
|
- Bump `@metamask/controller-utils` from `^12.1.1` to `^12.2.0` ([#9083](https://github.com/MetaMask/core/pull/9083))
|
|
17
16
|
- `TransactionController` can now be constructed before `NetworkController` is registered on the messenger ([#9012](https://github.com/MetaMask/core/pull/9012))
|
|
@@ -21,8 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
20
|
### Removed
|
|
22
21
|
|
|
23
22
|
- **BREAKING:** Remove incoming transaction support from `TransactionController` ([#9012](https://github.com/MetaMask/core/pull/9012))
|
|
24
|
-
-
|
|
25
|
-
- Removed public
|
|
23
|
+
- Removed constructor option `incomingTransactions`.
|
|
24
|
+
- Removed public methods `startIncomingTransactionPolling`, `stopIncomingTransactionPolling`, `updateIncomingTransactions`.
|
|
26
25
|
- Removed event `TransactionController:incomingTransactionsReceived`.
|
|
27
26
|
- Removed exported constant `INCOMING_TRANSACTIONS_SUPPORTED_CHAIN_IDS`.
|
|
28
27
|
- Removed exported types `TransactionControllerIncomingTransactionsReceivedEvent`, `TransactionControllerStartIncomingTransactionPollingAction`, `TransactionControllerStopIncomingTransactionPollingAction`, `TransactionControllerUpdateIncomingTransactionsAction`, `TransactionResponse`, `GetAccountTransactionsRequest`, `GetAccountTransactionsResponse`.
|
|
@@ -223,8 +223,7 @@ 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 ??
|
|
227
|
-
((_transactionMeta) => undefined), "f");
|
|
226
|
+
__classPrivateFieldSet(this, _TransactionController_getSavedGasFees, getSavedGasFees ?? ((_chainId) => undefined), "f");
|
|
228
227
|
__classPrivateFieldSet(this, _TransactionController_getSimulationConfig, getSimulationConfig ??
|
|
229
228
|
(() => Promise.resolve({})), "f");
|
|
230
229
|
__classPrivateFieldSet(this, _TransactionController_isAutomaticGasFeeUpdateEnabled, isAutomaticGasFeeUpdateEnabled ??
|
|
@@ -305,18 +304,6 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
305
304
|
destroy() {
|
|
306
305
|
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_stopAllTracking).call(this);
|
|
307
306
|
}
|
|
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
|
-
}
|
|
320
307
|
/**
|
|
321
308
|
* Handle new method data request.
|
|
322
309
|
*
|