Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/transaction-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Expose `TransactionController:wipeTransactions` method through `TransactionController` messenger ([#8592](https://github.com/MetaMask/core/pull/8592))

## [64.4.0]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@ export type TransactionControllerUpdateTransactionAction = {
handler: TransactionController['updateTransaction'];
};

/**
* Remove transactions from state.
*
* @param options - The options bag.
* @param options.address - Remove transactions from this account only. Defaults to all accounts.
* @param options.chainId - Remove transactions for the specified chain only. Defaults to all chains.
*/
export type TransactionControllerWipeTransactionsAction = {
type: `TransactionController:wipeTransactions`;
handler: TransactionController['wipeTransactions'];
};

/**
* Adds external provided transaction to state as confirmed transaction.
*
Expand Down Expand Up @@ -367,6 +379,7 @@ export type TransactionControllerMethodActions =
| TransactionControllerEstimateGasBatchAction
| TransactionControllerEstimateGasBufferedAction
| TransactionControllerUpdateTransactionAction
| TransactionControllerWipeTransactionsAction
| TransactionControllerConfirmExternalTransactionAction
| TransactionControllerGetNonceLockAction
| TransactionControllerUpdateEditableParamsAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ const MESSENGER_EXPOSED_METHODS = [
'updateEditableParams',
'updateIncomingTransactions',
'updateTransaction',
'wipeTransactions',
] as const;

/**
Expand Down
1 change: 1 addition & 0 deletions packages/transaction-controller/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type {
TransactionControllerClearUnapprovedTransactionsAction,
TransactionControllerAbortTransactionSigningAction,
TransactionControllerUpdateAtomicBatchDataAction,
TransactionControllerWipeTransactionsAction,
} from './TransactionController-method-action-types';
export {
CANCEL_RATE,
Expand Down
Loading