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

feat: trusted history transaction #141

Merged
merged 3 commits into from
Dec 11, 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.13.2",
"version": "3.13.3",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down
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
}

export type Erc721Transfer = {
Expand Down
Loading