Skip to content

Commit

Permalink
Add readableDescription to TransactionInfo type
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Aug 14, 2023
1 parent 1217b60 commit a8e48b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export type Transfer = {
recipient: AddressEx
direction: TransferDirection
transferInfo: TransferInfo
readableDescription?: string
}

export type SetFallbackHandler = {
Expand Down Expand Up @@ -194,6 +195,7 @@ export type SettingsChange = {
type: TransactionInfoType.SETTINGS_CHANGE
dataDecoded: DataDecoded
settingsInfo?: SettingsInfo
readableDescription?: string
}

export type Custom = {
Expand All @@ -204,6 +206,7 @@ export type Custom = {
methodName?: string
actionCount?: number
isCancellation: boolean
readableDescription?: string
}

export type MultiSend = {
Expand All @@ -214,6 +217,7 @@ export type MultiSend = {
methodName: 'multiSend'
actionCount: number
isCancellation: boolean
readableDescription?: string
}

export type Cancellation = Custom & {
Expand All @@ -226,6 +230,7 @@ export type Creation = {
transactionHash: string
implementation?: AddressEx
factory?: AddressEx
readableDescription?: string
}

export type TransactionInfo = Transfer | SettingsChange | Custom | MultiSend | Cancellation | Creation
Expand Down

0 comments on commit a8e48b8

Please sign in to comment.