@metamask/transaction-controller 37.1.0 → 37.2.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/TransactionController.cjs +1 -1
  3. package/dist/TransactionController.cjs.map +1 -1
  4. package/dist/TransactionController.d.cts +4 -1
  5. package/dist/TransactionController.d.cts.map +1 -1
  6. package/dist/TransactionController.d.mts +4 -1
  7. package/dist/TransactionController.d.mts.map +1 -1
  8. package/dist/TransactionController.mjs +1 -1
  9. package/dist/TransactionController.mjs.map +1 -1
  10. package/dist/gas-flows/LineaGasFeeFlow.cjs +0 -2
  11. package/dist/gas-flows/LineaGasFeeFlow.cjs.map +1 -1
  12. package/dist/gas-flows/LineaGasFeeFlow.d.cts.map +1 -1
  13. package/dist/gas-flows/LineaGasFeeFlow.d.mts.map +1 -1
  14. package/dist/gas-flows/LineaGasFeeFlow.mjs +0 -2
  15. package/dist/gas-flows/LineaGasFeeFlow.mjs.map +1 -1
  16. package/dist/helpers/EtherscanRemoteTransactionSource.cjs +12 -4
  17. package/dist/helpers/EtherscanRemoteTransactionSource.cjs.map +1 -1
  18. package/dist/helpers/EtherscanRemoteTransactionSource.d.cts +2 -1
  19. package/dist/helpers/EtherscanRemoteTransactionSource.d.cts.map +1 -1
  20. package/dist/helpers/EtherscanRemoteTransactionSource.d.mts +2 -1
  21. package/dist/helpers/EtherscanRemoteTransactionSource.d.mts.map +1 -1
  22. package/dist/helpers/EtherscanRemoteTransactionSource.mjs +12 -4
  23. package/dist/helpers/EtherscanRemoteTransactionSource.mjs.map +1 -1
  24. package/dist/utils/etherscan.cjs +9 -5
  25. package/dist/utils/etherscan.cjs.map +1 -1
  26. package/dist/utils/etherscan.d.cts +5 -2
  27. package/dist/utils/etherscan.d.cts.map +1 -1
  28. package/dist/utils/etherscan.d.mts +5 -2
  29. package/dist/utils/etherscan.d.mts.map +1 -1
  30. package/dist/utils/etherscan.mjs +9 -5
  31. package/dist/utils/etherscan.mjs.map +1 -1
  32. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [37.2.0]
11
+
12
+ ### Added
13
+
14
+ - Add optional `incomingTransactions.etherscanApiKeysByChainId` constructor property to support API keys in requests to Etherscan ([#4748](https://github.com/MetaMask/core/pull/4748))
15
+
16
+ ### Fixed
17
+
18
+ - Cleanup transactions only during initialisation ([#4753](https://github.com/MetaMask/core/pull/4753))
19
+ - Remove `gasPrice` from requests to `linea_estimateGas` ([#4737](https://github.com/MetaMask/core/pull/4737))
20
+
10
21
  ## [37.1.0]
11
22
 
12
23
  ### Added
@@ -1037,7 +1048,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1037
1048
 
1038
1049
  All changes listed after this point were applied to this package following the monorepo conversion.
1039
1050
 
1040
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.1.0...HEAD
1051
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.2.0...HEAD
1052
+ [37.2.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.1.0...@metamask/transaction-controller@37.2.0
1041
1053
  [37.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.0.0...@metamask/transaction-controller@37.1.0
1042
1054
  [37.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@36.1.0...@metamask/transaction-controller@37.0.0
1043
1055
  [36.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@36.0.0...@metamask/transaction-controller@36.1.0
@@ -279,6 +279,7 @@ class TransactionController extends base_controller_1.BaseController {
279
279
  }), "f");
280
280
  __classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").initialize();
281
281
  const etherscanRemoteTransactionSource = new EtherscanRemoteTransactionSource_1.EtherscanRemoteTransactionSource({
282
+ apiKeysByChainId: incomingTransactions.etherscanApiKeysByChainId,
282
283
  includeTokenTransfers: incomingTransactions.includeTokenTransfers,
283
284
  });
284
285
  this.incomingTransactionHelper = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_createIncomingTransactionHelper).call(this, {
@@ -314,7 +315,6 @@ class TransactionController extends base_controller_1.BaseController {
314
315
  onNetworkStateChange(() => {
315
316
  (0, logger_1.projectLogger)('Detected network change', this.getChainId());
316
317
  this.pendingTransactionTracker.startIfPendingTransactions();
317
- this.onBootCleanup();
318
318
  });
319
319
  this.onBootCleanup();
320
320
  __classPrivateFieldGet(this, _TransactionController_checkForPendingTransactionAndStartPolling, "f").call(this);