@metamask-previews/transaction-controller 52.3.0-preview-6cc620a → 53.0.0-preview-ded32bd
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 +23 -1
- package/dist/TransactionController.cjs +3 -0
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +3 -0
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs +4 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +4 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +4 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +4 -0
- package/dist/types.mjs.map +1 -1
- package/dist/utils/feature-flags.cjs +21 -1
- package/dist/utils/feature-flags.cjs.map +1 -1
- package/dist/utils/feature-flags.d.cts +35 -0
- package/dist/utils/feature-flags.d.cts.map +1 -1
- package/dist/utils/feature-flags.d.mts +35 -0
- package/dist/utils/feature-flags.d.mts.map +1 -1
- package/dist/utils/feature-flags.mjs +19 -0
- package/dist/utils/feature-flags.mjs.map +1 -1
- package/dist/utils/gas.cjs +10 -4
- package/dist/utils/gas.cjs.map +1 -1
- package/dist/utils/gas.d.cts +5 -2
- package/dist/utils/gas.d.cts.map +1 -1
- package/dist/utils/gas.d.mts +5 -2
- package/dist/utils/gas.d.mts.map +1 -1
- package/dist/utils/gas.mjs +10 -4
- package/dist/utils/gas.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,10 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [53.0.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `gasPayment` to `TransactionType` enum ([#5584](https://github.com/MetaMask/core/pull/5584))
|
|
15
|
+
- Add `TransactionControllerUpdateCustodialTransactionAction` messenger action ([#5045](https://github.com/MetaMask/core/pull/5045))
|
|
16
|
+
|
|
10
17
|
### Changed
|
|
11
18
|
|
|
19
|
+
- **BREAKING:** Return `Promise` from `beforePublish` and `beforeCheckPendingTransaction` hooks ([#5045](https://github.com/MetaMask/core/pull/5045))
|
|
20
|
+
- Support additional parameters in `updateCustodialTransaction` method ([#5045](https://github.com/MetaMask/core/pull/5045))
|
|
21
|
+
- `gasLimit`
|
|
22
|
+
- `gasPrice`
|
|
23
|
+
- `maxFeePerGas`
|
|
24
|
+
- `maxPriorityFeePerGas`
|
|
25
|
+
- `nonce`
|
|
26
|
+
- `type`
|
|
27
|
+
- Configure gas estimation fallback using remote feature flags ([#5556](https://github.com/MetaMask/core/pull/5556))
|
|
12
28
|
- Throw if `chainId` in `TransactionParams` does not match `networkClientId` when calling `addTransaction` ([#5511](https://github.com/MetaMask/core/pull/5569))
|
|
13
29
|
- Mark `chainId` in `TransactionParams` as deprecated.
|
|
30
|
+
- Bump `@metamask/controller-utils` to `^11.7.0` ([#5583](https://github.com/MetaMask/core/pull/5583))
|
|
31
|
+
|
|
32
|
+
### Removed
|
|
33
|
+
|
|
34
|
+
- **BREAKING:** Remove `custodyId` and `custodyStatus` properties from `TransactionMeta` ([#5045](https://github.com/MetaMask/core/pull/5045))
|
|
14
35
|
|
|
15
36
|
## [52.3.0]
|
|
16
37
|
|
|
@@ -1463,7 +1484,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1463
1484
|
|
|
1464
1485
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1465
1486
|
|
|
1466
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@
|
|
1487
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@53.0.0...HEAD
|
|
1488
|
+
[53.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.3.0...@metamask/transaction-controller@53.0.0
|
|
1467
1489
|
[52.3.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.2.0...@metamask/transaction-controller@52.3.0
|
|
1468
1490
|
[52.2.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.1.0...@metamask/transaction-controller@52.2.0
|
|
1469
1491
|
[52.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.0.0...@metamask/transaction-controller@52.1.0
|
|
@@ -568,6 +568,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
568
568
|
chainId: __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getChainId).call(this, networkClientId),
|
|
569
569
|
ethQuery,
|
|
570
570
|
isSimulationEnabled: __classPrivateFieldGet(this, _TransactionController_isSimulationEnabled, "f").call(this),
|
|
571
|
+
messenger: this.messagingSystem,
|
|
571
572
|
txParams: transaction,
|
|
572
573
|
});
|
|
573
574
|
return { gas: estimatedGas, simulationFails };
|
|
@@ -588,6 +589,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
588
589
|
chainId: __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getChainId).call(this, networkClientId),
|
|
589
590
|
ethQuery,
|
|
590
591
|
isSimulationEnabled: __classPrivateFieldGet(this, _TransactionController_isSimulationEnabled, "f").call(this),
|
|
592
|
+
messenger: this.messagingSystem,
|
|
591
593
|
txParams: transaction,
|
|
592
594
|
});
|
|
593
595
|
const gas = (0, gas_1.addGasBuffer)(estimatedGas, blockGasLimit, multiplier);
|
|
@@ -2194,6 +2196,7 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
|
|
|
2194
2196
|
ethQuery,
|
|
2195
2197
|
isCustomNetwork,
|
|
2196
2198
|
isSimulationEnabled: __classPrivateFieldGet(this, _TransactionController_isSimulationEnabled, "f").call(this),
|
|
2199
|
+
messenger: this.messagingSystem,
|
|
2197
2200
|
txMeta: transactionMeta,
|
|
2198
2201
|
});
|
|
2199
2202
|
}, _TransactionController_registerActionHandlers = function _TransactionController_registerActionHandlers() {
|