@metamask/transaction-controller 37.1.0 → 37.3.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 +28 -1
- package/dist/TransactionController.cjs +1 -1
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +4 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +4 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +1 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/gas-flows/LineaGasFeeFlow.cjs +0 -2
- package/dist/gas-flows/LineaGasFeeFlow.cjs.map +1 -1
- package/dist/gas-flows/LineaGasFeeFlow.d.cts.map +1 -1
- package/dist/gas-flows/LineaGasFeeFlow.d.mts.map +1 -1
- package/dist/gas-flows/LineaGasFeeFlow.mjs +0 -2
- package/dist/gas-flows/LineaGasFeeFlow.mjs.map +1 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.cjs +12 -4
- package/dist/helpers/EtherscanRemoteTransactionSource.cjs.map +1 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.d.cts +2 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.d.cts.map +1 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.d.mts +2 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.d.mts.map +1 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.mjs +12 -4
- package/dist/helpers/EtherscanRemoteTransactionSource.mjs.map +1 -1
- package/dist/types.cjs +15 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +11 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +11 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +15 -0
- package/dist/types.mjs.map +1 -1
- package/dist/utils/etherscan.cjs +9 -5
- package/dist/utils/etherscan.cjs.map +1 -1
- package/dist/utils/etherscan.d.cts +5 -2
- package/dist/utils/etherscan.d.cts.map +1 -1
- package/dist/utils/etherscan.d.mts +5 -2
- package/dist/utils/etherscan.d.mts.map +1 -1
- package/dist/utils/etherscan.mjs +9 -5
- package/dist/utils/etherscan.mjs.map +1 -1
- package/dist/utils/gas.cjs +7 -4
- package/dist/utils/gas.cjs.map +1 -1
- package/dist/utils/gas.d.cts +1 -0
- package/dist/utils/gas.d.cts.map +1 -1
- package/dist/utils/gas.d.mts +1 -0
- package/dist/utils/gas.d.mts.map +1 -1
- package/dist/utils/gas.mjs +7 -4
- package/dist/utils/gas.mjs.map +1 -1
- package/dist/utils/simulation.cjs +37 -27
- package/dist/utils/simulation.cjs.map +1 -1
- package/dist/utils/simulation.mjs +37 -27
- package/dist/utils/simulation.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [37.3.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add types for bridge transactions ([#4714](https://github.com/MetaMask/core/pull/4714))
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Reduce gas limit fallback from 95% to 35% of the block gas limit on failed gas limit estimations ([#4739](https://github.com/MetaMask/core/pull/4739))
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Use contract ABIs to decode the token balance responses ([#4775](https://github.com/MetaMask/core/pull/4775))
|
|
23
|
+
|
|
24
|
+
## [37.2.0]
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Add optional `incomingTransactions.etherscanApiKeysByChainId` constructor property to support API keys in requests to Etherscan ([#4748](https://github.com/MetaMask/core/pull/4748))
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Cleanup transactions only during initialisation ([#4753](https://github.com/MetaMask/core/pull/4753))
|
|
33
|
+
- Remove `gasPrice` from requests to `linea_estimateGas` ([#4737](https://github.com/MetaMask/core/pull/4737))
|
|
34
|
+
|
|
10
35
|
## [37.1.0]
|
|
11
36
|
|
|
12
37
|
### Added
|
|
@@ -1037,7 +1062,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1037
1062
|
|
|
1038
1063
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1039
1064
|
|
|
1040
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.
|
|
1065
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.3.0...HEAD
|
|
1066
|
+
[37.3.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.2.0...@metamask/transaction-controller@37.3.0
|
|
1067
|
+
[37.2.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.1.0...@metamask/transaction-controller@37.2.0
|
|
1041
1068
|
[37.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@37.0.0...@metamask/transaction-controller@37.1.0
|
|
1042
1069
|
[37.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@36.1.0...@metamask/transaction-controller@37.0.0
|
|
1043
1070
|
[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);
|