@metamask/transaction-controller 42.1.0 → 44.0.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 +21 -1
- package/dist/TransactionController.cjs +1 -2
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +2 -62
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +2 -62
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +1 -2
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/helpers/GasFeePoller.cjs +1 -1
- package/dist/helpers/GasFeePoller.cjs.map +1 -1
- package/dist/helpers/GasFeePoller.mjs +1 -1
- package/dist/helpers/GasFeePoller.mjs.map +1 -1
- package/dist/helpers/IncomingTransactionHelper.cjs +1 -1
- package/dist/helpers/IncomingTransactionHelper.cjs.map +1 -1
- package/dist/helpers/IncomingTransactionHelper.mjs +1 -1
- package/dist/helpers/IncomingTransactionHelper.mjs.map +1 -1
- package/dist/helpers/MethodDataHelper.cjs +1 -1
- package/dist/helpers/MethodDataHelper.cjs.map +1 -1
- package/dist/helpers/MethodDataHelper.mjs +1 -1
- package/dist/helpers/MethodDataHelper.mjs.map +1 -1
- package/dist/helpers/PendingTransactionTracker.cjs +1 -1
- package/dist/helpers/PendingTransactionTracker.cjs.map +1 -1
- package/dist/helpers/PendingTransactionTracker.mjs +1 -1
- package/dist/helpers/PendingTransactionTracker.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +4 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +4 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/gas.cjs +6 -5
- package/dist/utils/gas.cjs.map +1 -1
- package/dist/utils/gas.d.cts.map +1 -1
- package/dist/utils/gas.d.mts.map +1 -1
- package/dist/utils/gas.mjs +6 -5
- package/dist/utils/gas.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [44.0.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **BREAKING:** Bump `@metamask/accounts-controller` peer dependency from `^21.0.0` to `^22.0.0` ([#5218](https://github.com/MetaMask/core/pull/5218))
|
|
15
|
+
|
|
16
|
+
## [43.0.0]
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Add `gasLimitNoBuffer` property to `TransactionMeta` type ([#5113](https://github.com/MetaMask/core/pull/5113))
|
|
21
|
+
- `gasLimitNoBuffer` is the estimated gas for the transaction without any buffer applied.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **BREAKING:** Bump `@metamask/accounts-controller` peer dependency from `^20.0.0` to `^21.0.0` ([#5140](https://github.com/MetaMask/core/pull/5140))
|
|
26
|
+
- Bump `@metamask/base-controller` from `7.1.0` to `^7.1.1` ([#5135](https://github.com/MetaMask/core/pull/5135))
|
|
27
|
+
|
|
10
28
|
## [42.1.0]
|
|
11
29
|
|
|
12
30
|
### Added
|
|
@@ -1226,7 +1244,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1226
1244
|
|
|
1227
1245
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1228
1246
|
|
|
1229
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@
|
|
1247
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@44.0.0...HEAD
|
|
1248
|
+
[44.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@43.0.0...@metamask/transaction-controller@44.0.0
|
|
1249
|
+
[43.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@42.1.0...@metamask/transaction-controller@43.0.0
|
|
1230
1250
|
[42.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@42.0.0...@metamask/transaction-controller@42.1.0
|
|
1231
1251
|
[42.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@41.1.0...@metamask/transaction-controller@42.0.0
|
|
1232
1252
|
[41.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@41.0.0...@metamask/transaction-controller@41.1.0
|
|
@@ -28,7 +28,7 @@ const rpc_errors_1 = require("@metamask/rpc-errors");
|
|
|
28
28
|
const utils_1 = require("@metamask/utils");
|
|
29
29
|
const async_mutex_1 = require("async-mutex");
|
|
30
30
|
// This package purposefully relies on Node's EventEmitter module.
|
|
31
|
-
// eslint-disable-next-line import/no-nodejs-modules
|
|
31
|
+
// eslint-disable-next-line import-x/no-nodejs-modules
|
|
32
32
|
const events_1 = require("events");
|
|
33
33
|
const lodash_1 = require("lodash");
|
|
34
34
|
const uuid_1 = require("uuid");
|
|
@@ -1863,7 +1863,6 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
|
|
|
1863
1863
|
const index = state.transactions.findIndex(({ id }) => id === transactionId);
|
|
1864
1864
|
let transactionMeta = state.transactions[index];
|
|
1865
1865
|
const originalTransactionMeta = (0, lodash_1.cloneDeep)(transactionMeta);
|
|
1866
|
-
// eslint-disable-next-line n/callback-return
|
|
1867
1866
|
transactionMeta = callback(transactionMeta) ?? transactionMeta;
|
|
1868
1867
|
if (skipValidation !== true) {
|
|
1869
1868
|
transactionMeta.txParams = (0, utils_2.normalizeTransactionParams)(transactionMeta.txParams);
|