Skip to content

Commit b1abffb

Browse files
committed
fix: add "trusted" parameter to the queue endpoint
1 parent a09c1cb commit b1abffb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gnosis.pm/safe-react-gateway-sdk",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"main": "dist/index.min.js",
55
"types": "dist/index.d.ts",
66
"files": [

src/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,16 @@ export function getTransactionHistory(
188188
/**
189189
* Get the list of pending transactions
190190
*/
191-
export function getTransactionQueue(chainId: string, address: string, pageUrl?: string): Promise<TransactionListPage> {
191+
export function getTransactionQueue(
192+
chainId: string,
193+
address: string,
194+
pageUrl?: string,
195+
trusted?: boolean,
196+
): Promise<TransactionListPage> {
192197
return callEndpoint(
193198
baseUrl,
194199
'/v1/chains/{chainId}/safes/{safe_address}/transactions/queued',
195-
{ path: { chainId, safe_address: address }, query: {} },
200+
{ path: { chainId, safe_address: address }, query: { trusted } },
196201
pageUrl,
197202
)
198203
}

src/types/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ export interface operations {
397397
query: {
398398
/** Taken from the Page['next'] or Page['previous'] */
399399
page_url?: string
400+
trusted?: boolean
400401
}
401402
}
402403
responses: {

0 commit comments

Comments
 (0)