Skip to content

Commit

Permalink
Add humanDescription to TransactionInfo type (#127)
Browse files Browse the repository at this point in the history
* Add humanDescription to TransactionInfo type

* chore: Update version
  • Loading branch information
usame-algan authored Aug 14, 2023
1 parent f046a87 commit 32042e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/safe-gateway-typescript-sdk",
"version": "3.8.1",
"version": "3.9.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down
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
humanDescription?: string
}

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

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

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

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

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

0 comments on commit 32042e3

Please sign in to comment.