@metamask-previews/transaction-controller 59.0.0-preview-bd86fa14 → 59.0.0-preview-3f5f144a

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +1 -7
  2. package/dist/TransactionController.cjs +1 -3
  3. package/dist/TransactionController.cjs.map +1 -1
  4. package/dist/TransactionController.d.cts +1 -3
  5. package/dist/TransactionController.d.cts.map +1 -1
  6. package/dist/TransactionController.d.mts +1 -3
  7. package/dist/TransactionController.d.mts.map +1 -1
  8. package/dist/TransactionController.mjs +1 -3
  9. package/dist/TransactionController.mjs.map +1 -1
  10. package/dist/hooks/ExtraTransactionsPublishHook.cjs +3 -7
  11. package/dist/hooks/ExtraTransactionsPublishHook.cjs.map +1 -1
  12. package/dist/hooks/ExtraTransactionsPublishHook.d.cts +2 -2
  13. package/dist/hooks/ExtraTransactionsPublishHook.d.cts.map +1 -1
  14. package/dist/hooks/ExtraTransactionsPublishHook.d.mts +2 -2
  15. package/dist/hooks/ExtraTransactionsPublishHook.d.mts.map +1 -1
  16. package/dist/hooks/ExtraTransactionsPublishHook.mjs +3 -7
  17. package/dist/hooks/ExtraTransactionsPublishHook.mjs.map +1 -1
  18. package/dist/types.cjs.map +1 -1
  19. package/dist/types.d.cts +2 -21
  20. package/dist/types.d.cts.map +1 -1
  21. package/dist/types.d.mts +2 -21
  22. package/dist/types.d.mts.map +1 -1
  23. package/dist/types.mjs.map +1 -1
  24. package/dist/utils/batch.cjs +3 -9
  25. package/dist/utils/batch.cjs.map +1 -1
  26. package/dist/utils/batch.mjs +3 -9
  27. package/dist/utils/batch.mjs.map +1 -1
  28. package/dist/utils/transaction-type.cjs +15 -10
  29. package/dist/utils/transaction-type.cjs.map +1 -1
  30. package/dist/utils/transaction-type.d.cts.map +1 -1
  31. package/dist/utils/transaction-type.d.mts.map +1 -1
  32. package/dist/utils/transaction-type.mjs +15 -10
  33. package/dist/utils/transaction-type.mjs.map +1 -1
  34. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,15 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ### Added
11
-
12
- - Add `assetsFiatValues` property on `addTransaction` options ([#6178](https://github.com/MetaMask/core/pull/6178))
13
- - `assetsFiatValues.sending` is total fiat value of sent assets
14
- - `assetsFiatValues.receiving` is total fiat value of recieved assets
15
-
16
10
  ### Fixed
17
11
 
18
- - Preserve provided `origin` in `transactions` when calling `addTransactionBatch` ([#6178](https://github.com/MetaMask/core/pull/6178))
12
+ - Prevent incorrect `simpleSend` classification when contract code lookup fails ([#6206](https://github.com/MetaMask/core/pull/6206))
19
13
 
20
14
  ## [59.0.0]
21
15
 
@@ -360,7 +360,6 @@ class TransactionController extends base_controller_1.BaseController {
360
360
  * @param txParams - Standard parameters for an Ethereum transaction.
361
361
  * @param options - Additional options to control how the transaction is added.
362
362
  * @param options.actionId - Unique ID to prevent duplicate requests.
363
- * @param options.assetsFiatValues - The fiat values of the assets in the transaction.
364
363
  * @param options.batchId - A custom ID for the batch this transaction belongs to.
365
364
  * @param options.deviceConfirmedOn - An enum to indicate what device confirmed the transaction.
366
365
  * @param options.disableGasBuffer - Whether to disable the gas estimation buffer.
@@ -381,7 +380,7 @@ class TransactionController extends base_controller_1.BaseController {
381
380
  */
382
381
  async addTransaction(txParams, options) {
383
382
  (0, logger_1.projectLogger)('Adding transaction', txParams, options);
384
- const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, method, nestedTransactions, networkClientId, origin, publishHook, requireApproval, securityAlertResponse, sendFlowHistory, swaps = {}, traceContext, type, } = options;
383
+ const { actionId, batchId, deviceConfirmedOn, disableGasBuffer, method, nestedTransactions, networkClientId, origin, publishHook, requireApproval, securityAlertResponse, sendFlowHistory, swaps = {}, traceContext, type, } = options;
385
384
  txParams = (0, utils_2.normalizeTransactionParams)(txParams);
386
385
  if (!__classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").has(networkClientId)) {
387
386
  throw new Error(`Network client not found - ${networkClientId}`);
@@ -425,7 +424,6 @@ class TransactionController extends base_controller_1.BaseController {
425
424
  : {
426
425
  // Add actionId to txMeta to check if same actionId is seen again
427
426
  actionId,
428
- assetsFiatValues,
429
427
  batchId,
430
428
  chainId,
431
429
  dappSuggestedGasFees,