@metamask/transaction-controller 62.3.0 → 62.4.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 +20 -1
- package/dist/TransactionController.cjs +12 -1
- 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 +12 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +2 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +2 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/batch.cjs +7 -2
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.mjs +7 -2
- package/dist/utils/batch.mjs.map +1 -1
- package/dist/utils/gas-fee-tokens.cjs +4 -1
- package/dist/utils/gas-fee-tokens.cjs.map +1 -1
- package/dist/utils/gas-fee-tokens.d.cts.map +1 -1
- package/dist/utils/gas-fee-tokens.d.mts.map +1 -1
- package/dist/utils/gas-fee-tokens.mjs +4 -1
- package/dist/utils/gas-fee-tokens.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [62.4.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `overwriteUpgrade` option to `TransactionBatchRequest` to allow overwriting existing EIP-7702 delegations ([#7282](https://github.com/MetaMask/core/pull/7282))
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Bump `@metamask/network-controller` from `^26.0.0` to `^27.0.0` ([#7258](https://github.com/MetaMask/core/pull/7258))
|
|
19
|
+
|
|
20
|
+
## [62.3.1]
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Fail required transactions of any approved and signed transactions during initialisation ([#7251](https://github.com/MetaMask/core/pull/7251))
|
|
25
|
+
- Include `isExternalSign` when fetching gas fee tokens in messenger action or before publish check.
|
|
26
|
+
|
|
10
27
|
## [62.3.0]
|
|
11
28
|
|
|
12
29
|
### Changed
|
|
@@ -1985,7 +2002,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1985
2002
|
|
|
1986
2003
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1987
2004
|
|
|
1988
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.
|
|
2005
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.4.0...HEAD
|
|
2006
|
+
[62.4.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.3.1...@metamask/transaction-controller@62.4.0
|
|
2007
|
+
[62.3.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.3.0...@metamask/transaction-controller@62.3.1
|
|
1989
2008
|
[62.3.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.2.0...@metamask/transaction-controller@62.3.0
|
|
1990
2009
|
[62.2.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.1.0...@metamask/transaction-controller@62.2.0
|
|
1991
2010
|
[62.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.0.0...@metamask/transaction-controller@62.1.0
|
|
@@ -1509,6 +1509,15 @@ _TransactionController_afterAdd = new WeakMap(), _TransactionController_afterSig
|
|
|
1509
1509
|
const incompleteTransactions = this.state.transactions.filter((transaction) => [types_1.TransactionStatus.approved, types_1.TransactionStatus.signed].includes(transaction.status));
|
|
1510
1510
|
for (const transactionMeta of incompleteTransactions) {
|
|
1511
1511
|
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_failTransaction).call(this, transactionMeta, new Error('Transaction incomplete at startup'));
|
|
1512
|
+
const requiredTransactionIds = transactionMeta.requiredTransactionIds ?? [];
|
|
1513
|
+
for (const requiredTransactionId of requiredTransactionIds) {
|
|
1514
|
+
const requiredTransactionMeta = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getTransaction).call(this, requiredTransactionId);
|
|
1515
|
+
if (!requiredTransactionMeta ||
|
|
1516
|
+
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_isFinalState).call(this, requiredTransactionMeta.status)) {
|
|
1517
|
+
continue;
|
|
1518
|
+
}
|
|
1519
|
+
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_failTransaction).call(this, requiredTransactionMeta, new Error('Parent transaction incomplete at startup'));
|
|
1520
|
+
}
|
|
1512
1521
|
}
|
|
1513
1522
|
}, _TransactionController_processApproval = async function _TransactionController_processApproval(transactionMeta, { actionId, isExisting = false, publishHook, requireApproval, shouldShowRequest = true, traceContext, }) {
|
|
1514
1523
|
const transactionId = transactionMeta.id;
|
|
@@ -1746,7 +1755,8 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
|
|
|
1746
1755
|
}, _TransactionController_isFinalState = function _TransactionController_isFinalState(status) {
|
|
1747
1756
|
return (status === types_1.TransactionStatus.rejected ||
|
|
1748
1757
|
status === types_1.TransactionStatus.confirmed ||
|
|
1749
|
-
status === types_1.TransactionStatus.failed
|
|
1758
|
+
status === types_1.TransactionStatus.failed ||
|
|
1759
|
+
status === types_1.TransactionStatus.dropped);
|
|
1750
1760
|
}, _TransactionController_isLocalFinalState = function _TransactionController_isLocalFinalState(status) {
|
|
1751
1761
|
return [
|
|
1752
1762
|
types_1.TransactionStatus.confirmed,
|
|
@@ -2407,6 +2417,7 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
|
|
|
2407
2417
|
const transaction = {
|
|
2408
2418
|
chainId,
|
|
2409
2419
|
delegationAddress,
|
|
2420
|
+
isExternalSign: true,
|
|
2410
2421
|
txParams: {
|
|
2411
2422
|
data,
|
|
2412
2423
|
from,
|