Skip to content
1 change: 1 addition & 0 deletions packages/transaction-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add support for enhanced transaction history retrieval via WebSocket events ([#7689](https://github.com/MetaMask/core/pull/7689))
- Add support for `submitHistoryLimit` feature flag to configure the maximum number of entries in the submit history ([#7648](https://github.com/MetaMask/core/pull/7648))
- Defaults to 100 if not provided.
- Add support for `transactionHistoryLimit` feature flag to configure the maximum number of transactions stored in state ([#7648](https://github.com/MetaMask/core/pull/7648))
Expand Down
1 change: 1 addition & 0 deletions packages/transaction-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@metamask/approval-controller": "^8.0.0",
"@metamask/base-controller": "^9.0.0",
"@metamask/controller-utils": "^11.18.0",
"@metamask/core-backend": "^5.0.0",
"@metamask/eth-query": "^4.0.0",
"@metamask/gas-fee-controller": "^26.0.2",
"@metamask/messenger": "^0.3.0",
Expand Down
11 changes: 10 additions & 1 deletion packages/transaction-controller/src/TransactionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
AccountsController,
AccountsControllerGetSelectedAccountAction,
AccountsControllerGetStateAction,
AccountsControllerSelectedAccountChangeEvent,
} from '@metamask/accounts-controller';
import type {
AcceptResultCallbacks,
Expand All @@ -22,6 +23,10 @@ import {
convertHexToDecimal,
} from '@metamask/controller-utils';
import type { TraceCallback, TraceContext } from '@metamask/controller-utils';
import type {
AccountActivityServiceTransactionUpdatedEvent,
BackendWebSocketServiceConnectionStateChangedEvent,
} from '@metamask/core-backend';
import EthQuery from '@metamask/eth-query';
import type {
FetchGasFeeEstimateOptions,
Expand Down Expand Up @@ -602,7 +607,11 @@ export type AllowedActions =
/**
* The external events available to the {@link TransactionController}.
*/
export type AllowedEvents = NetworkControllerStateChangeEvent;
export type AllowedEvents =
| AccountActivityServiceTransactionUpdatedEvent
| AccountsControllerSelectedAccountChangeEvent
| BackendWebSocketServiceConnectionStateChangedEvent
| NetworkControllerStateChangeEvent;

/**
* Represents the `TransactionController:stateChange` event.
Expand Down
Loading
Loading