Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add humanDescription to TransactionInfo type #127

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading