Skip to content

Commit 36c22e7

Browse files
committed
feat: add token approval type
1 parent 1152c00 commit 36c22e7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/keyring-api/src/api/transaction.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ export enum TransactionType {
165165
*/
166166
StakeWithdraw = 'stake:withdraw',
167167

168+
/**
169+
* Represents a token approval transaction.
170+
*/
171+
Approve = 'token:approve',
172+
168173
/**
169174
* The transaction type is unknown. It's not possible to determine the
170175
* transaction type based on the information available.
@@ -355,6 +360,7 @@ export const TransactionStruct = object({
355360
`${TransactionType.BridgeReceive}`,
356361
`${TransactionType.StakeDeposit}`,
357362
`${TransactionType.StakeWithdraw}`,
363+
`${TransactionType.Approve}`,
358364
`${TransactionType.Unknown}`,
359365
]),
360366

0 commit comments

Comments
 (0)