Skip to content

Commit a7c8f43

Browse files
committed
feat: add stake transaction types
1 parent 384c186 commit a7c8f43

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ export enum TransactionType {
155155
*/
156156
BridgeReceive = 'bridge:receive',
157157

158+
/**
159+
* Represents a stake deposit transaction.
160+
*/
161+
StakeDeposit = 'stake:deposit',
162+
163+
/**
164+
* Represents a stake withdrawal transaction.
165+
*/
166+
StakeWithdraw = 'stake:withdraw',
158167
/**
159168
* The transaction type is unknown. It's not possible to determine the
160169
* transaction type based on the information available.
@@ -282,6 +291,8 @@ export const TransactionStruct = object({
282291
`${TransactionType.Swap}`,
283292
`${TransactionType.BridgeSend}`,
284293
`${TransactionType.BridgeReceive}`,
294+
`${TransactionType.StakeDeposit}`,
295+
`${TransactionType.StakeWithdraw}`,
285296
`${TransactionType.Unknown}`,
286297
]),
287298

0 commit comments

Comments
 (0)