@metamask-previews/transaction-controller 69.6.1-preview-878689a26 → 69.7.0-preview-64bce4b11

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,9 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [69.7.0]
11
+
10
12
  ### Added
11
13
 
12
- - Export `getSendRecipients`, which returns user-chosen send payees for a transaction (native `simpleSend` recipients, decoded ERC-20/721/1155 transfer payees, `swapAndSendRecipient`, and nested batch sends) and omits protocol addresses such as token, Permit2, and router contracts ([#9943](https://github.com/MetaMask/core/pull/9943))
14
+ - Add transient `batchTransactionCounts` state so clients can track how many TransactionController transactions an active batch requires ([#9897](https://github.com/MetaMask/core/pull/9897))
13
15
 
14
16
  ### Changed
15
17
 
@@ -2705,7 +2707,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2705
2707
 
2706
2708
  All changes listed after this point were applied to this package following the monorepo conversion.
2707
2709
 
2708
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@69.6.1...HEAD
2710
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@69.7.0...HEAD
2711
+ [69.7.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@69.6.1...@metamask/transaction-controller@69.7.0
2709
2712
  [69.6.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@69.6.0...@metamask/transaction-controller@69.6.1
2710
2713
  [69.6.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@69.5.2...@metamask/transaction-controller@69.6.0
2711
2714
  [69.5.2]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@69.5.1...@metamask/transaction-controller@69.5.2
@@ -63,6 +63,12 @@ const validation_js_1 = require("./utils/validation.cjs");
63
63
  * the state and which parts should be persisted.
64
64
  */
65
65
  const metadata = {
66
+ batchTransactionCounts: {
67
+ includeInStateLogs: true,
68
+ persist: false,
69
+ includeInDebugSnapshot: false,
70
+ usedInUi: true,
71
+ },
66
72
  transactions: {
67
73
  includeInStateLogs: true,
68
74
  persist: true,
@@ -122,6 +128,7 @@ var ApprovalState;
122
128
  */
123
129
  function getDefaultTransactionControllerState() {
124
130
  return {
131
+ batchTransactionCounts: {},
125
132
  methodData: {},
126
133
  transactions: [],
127
134
  transactionBatches: [],