Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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/keyring-api/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

- Add `TransactionType.Approve` for token approval transactions ([#537](https://github.com/MetaMask/accounts/pull/537))

## [23.0.1]

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions packages/keyring-api/src/api/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ export enum TransactionType {
*/
StakeWithdraw = 'stake:withdraw',

/**
* Represents a token approval transaction.
*/
Approve = 'token:approve',
Comment thread
hmalik88 marked this conversation as resolved.
Outdated

/**
* The transaction type is unknown. It's not possible to determine the
* transaction type based on the information available.
Expand Down Expand Up @@ -355,6 +360,7 @@ export const TransactionStruct = object({
`${TransactionType.BridgeReceive}`,
`${TransactionType.StakeDeposit}`,
`${TransactionType.StakeWithdraw}`,
`${TransactionType.Approve}`,
`${TransactionType.Unknown}`,
]),

Expand Down
Loading