@metamask/transaction-controller 62.14.0 → 62.15.0

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,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [62.15.0]
11
+
12
+ ### Added
13
+
14
+ - Add optional `requiredAssets` to `TransactionMeta` ([#7820](https://github.com/MetaMask/core/pull/7820))
15
+ - Provided by new options in `addTransaction` and `addTransactionBatch`.
16
+
17
+ ### Changed
18
+
19
+ - Lock `@metamask/core-backend` to `5.0.0` ([#7852](https://github.com/MetaMask/core/pull/7852))
20
+
10
21
  ## [62.14.0]
11
22
 
12
23
  ### Changed
@@ -2137,7 +2148,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2137
2148
 
2138
2149
  All changes listed after this point were applied to this package following the monorepo conversion.
2139
2150
 
2140
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.14.0...HEAD
2151
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.15.0...HEAD
2152
+ [62.15.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.14.0...@metamask/transaction-controller@62.15.0
2141
2153
  [62.14.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.13.0...@metamask/transaction-controller@62.14.0
2142
2154
  [62.13.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.12.0...@metamask/transaction-controller@62.13.0
2143
2155
  [62.12.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.11.0...@metamask/transaction-controller@62.12.0
@@ -384,7 +384,7 @@ class TransactionController extends base_controller_1.BaseController {
384
384
  */
385
385
  async addTransaction(txParams, options) {
386
386
  (0, logger_1.projectLogger)('Adding transaction', txParams, options);
387
- const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, gasFeeToken, isGasFeeIncluded, isGasFeeSponsored, isStateOnly, method, nestedTransactions, networkClientId, origin, publishHook, requestId, requireApproval, securityAlertResponse, skipInitialGasEstimate, swaps = {}, traceContext, type, } = options;
387
+ const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, gasFeeToken, isGasFeeIncluded, isGasFeeSponsored, isStateOnly, method, nestedTransactions, networkClientId, origin, publishHook, requestId, requiredAssets, requireApproval, securityAlertResponse, skipInitialGasEstimate, swaps = {}, traceContext, type, } = options;
388
388
  // eslint-disable-next-line no-param-reassign
389
389
  txParams = (0, utils_2.normalizeTransactionParams)(txParams);
390
390
  if (!__classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").has(networkClientId)) {
@@ -444,6 +444,7 @@ class TransactionController extends base_controller_1.BaseController {
444
444
  networkClientId,
445
445
  origin,
446
446
  requestId,
447
+ requiredAssets,
447
448
  securityAlertResponse,
448
449
  selectedGasFeeToken: gasFeeToken,
449
450
  status: types_1.TransactionStatus.unapproved,