@metamask-previews/transaction-controller 62.21.0-preview-6cb7e4bcf → 63.0.0-preview-3685bfb

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,10 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [63.0.0]
11
+
10
12
  ### Added
11
13
 
12
- - Add optional `sourceHash` field to `MetamaskPayMetadata` for tracking source chain transaction hashes when no local transaction exists ([#8133](https://github.com/MetaMask/core/pull/8133))
13
- - Add `predictDepositAndOrder` to `TransactionType` ([#8135](https://github.com/MetaMask/core/pull/8135))
14
14
  - New public `getGasFeeTokens()` controller method ([#8183](https://github.com/MetaMask/core/pull/8183))
15
15
  - Expose missing public `TransactionController` methods through its messenger ([#8183](https://github.com/MetaMask/core/pull/8183))
16
16
  - The following actions are now available:
@@ -34,9 +34,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
34
 
35
35
  ### Changed
36
36
 
37
+ - Bump `@metamask/approval-controller` from `^8.0.0` to `^9.0.0` ([#8225](https://github.com/MetaMask/core/pull/8225))
38
+ - Bump `@metamask/gas-fee-controller` from `^26.0.3` to `^26.1.0` ([#8225](https://github.com/MetaMask/core/pull/8225))
37
39
  - **BREAKING:** Standardize names of `TransactionController` messenger action types ([#8183](https://github.com/MetaMask/core/pull/8183))
38
40
  - All existing types for messenger actions have been renamed so they end in `Action` (e.g. `TransactionControllerEmulateNewTransaction` -> `TransactionControllerEmulateNewTransactionAction`). You will need to update imports appropriately.
39
41
  - This change only affects the types. The action type strings themselves have not changed, so you do not need to update the list of actions you pass when initializing `TransactionController` messenger.
42
+
43
+ ## [62.22.0]
44
+
45
+ ### Added
46
+
47
+ - Add optional `sourceHash` field to `MetamaskPayMetadata` for tracking source chain transaction hashes when no local transaction exists ([#8133](https://github.com/MetaMask/core/pull/8133))
48
+ - Add `predictDepositAndOrder` to `TransactionType` ([#8135](https://github.com/MetaMask/core/pull/8135))
49
+
50
+ ### Changed
51
+
52
+ - Use distinct error message when failing incomplete transactions at startup whose required transactions are all confirmed ([#8189](https://github.com/MetaMask/core/pull/8189))
40
53
  - Bump `@metamask/core-backend` from `^6.1.0` to `^6.1.1` ([#8162](https://github.com/MetaMask/core/pull/8162))
41
54
 
42
55
  ### Fixed
@@ -2241,7 +2254,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2241
2254
 
2242
2255
  All changes listed after this point were applied to this package following the monorepo conversion.
2243
2256
 
2244
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.21.0...HEAD
2257
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@63.0.0...HEAD
2258
+ [63.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.22.0...@metamask/transaction-controller@63.0.0
2259
+ [62.22.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.21.0...@metamask/transaction-controller@62.22.0
2245
2260
  [62.21.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.20.0...@metamask/transaction-controller@62.21.0
2246
2261
  [62.20.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.19.0...@metamask/transaction-controller@62.20.0
2247
2262
  [62.19.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.18.0...@metamask/transaction-controller@62.19.0
@@ -1592,8 +1592,16 @@ _TransactionController_afterAdd = new WeakMap(), _TransactionController_afterSig
1592
1592
  }, _TransactionController_failIncompleteTransactions = function _TransactionController_failIncompleteTransactions() {
1593
1593
  const incompleteTransactions = this.state.transactions.filter((transaction) => [types_1.TransactionStatus.approved, types_1.TransactionStatus.signed].includes(transaction.status));
1594
1594
  for (const transactionMeta of incompleteTransactions) {
1595
- __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_failTransaction).call(this, transactionMeta, new Error('Transaction incomplete at startup'));
1596
1595
  const requiredTransactionIds = transactionMeta.requiredTransactionIds ?? [];
1596
+ const allRequiredConfirmed = requiredTransactionIds.length > 0 &&
1597
+ requiredTransactionIds.every((id) => {
1598
+ const tx = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getTransaction).call(this, id);
1599
+ return tx?.status === types_1.TransactionStatus.confirmed;
1600
+ });
1601
+ const message = allRequiredConfirmed
1602
+ ? 'Transaction incomplete at startup with all required transactions confirmed'
1603
+ : 'Transaction incomplete at startup';
1604
+ __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_failTransaction).call(this, transactionMeta, new Error(message));
1597
1605
  for (const requiredTransactionId of requiredTransactionIds) {
1598
1606
  const requiredTransactionMeta = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getTransaction).call(this, requiredTransactionId);
1599
1607
  if (!requiredTransactionMeta ||