From a303d092b457f18d323b1a8b7b2503ebebcb335e Mon Sep 17 00:00:00 2001 From: schmanu Date: Mon, 11 Dec 2023 12:23:56 +0100 Subject: [PATCH] feat: trusted history transaction --- src/index.ts | 3 ++- src/types/api.ts | 1 + src/types/transactions.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6cb34296..1d90cfdb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -181,11 +181,12 @@ export function getTransactionHistory( chainId: string, address: string, pageUrl?: string, + trusted?: boolean, ): Promise { 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, ) } diff --git a/src/types/api.ts b/src/types/api.ts index 2d2898d2..c3119659 100644 --- a/src/types/api.ts +++ b/src/types/api.ts @@ -500,6 +500,7 @@ export interface operations { query: { /** Taken from the Page['next'] or Page['previous'] */ page_url?: string + trusted?: boolean } } responses: { diff --git a/src/types/transactions.ts b/src/types/transactions.ts index 8420070d..b2e1d3f4 100644 --- a/src/types/transactions.ts +++ b/src/types/transactions.ts @@ -96,6 +96,7 @@ export type Erc20Transfer = { logoUri?: string decimals?: number value: string + trusted: boolean | null } export type Erc721Transfer = {