Skip to content

Commit

Permalink
feat: trusted history transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Dec 11, 2023
1 parent 97b29c0 commit a303d09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,12 @@ export function getTransactionHistory(
chainId: string,
address: string,
pageUrl?: string,
trusted?: boolean,
): Promise<TransactionListPage> {
return getEndpoint(
baseUrl,
'/v1/chains/{chainId}/safes/{safe_address}/transactions/history',
{ path: { chainId, safe_address: address }, query: {} },
{ path: { chainId, safe_address: address }, query: { trusted } },
pageUrl,
)
}
Expand Down
1 change: 1 addition & 0 deletions src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ export interface operations {
query: {
/** Taken from the Page['next'] or Page['previous'] */
page_url?: string
trusted?: boolean
}
}
responses: {
Expand Down
1 change: 1 addition & 0 deletions src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export type Erc20Transfer = {
logoUri?: string
decimals?: number
value: string
trusted: boolean | null

Check failure on line 99 in src/types/transactions.ts

View workflow job for this annotation

GitHub Actions / ESLint Results

prettier/prettier

Replace ` ` with `·`
}

export type Erc721Transfer = {
Expand Down

0 comments on commit a303d09

Please sign in to comment.