Skip to content
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.3",
"version": "3.14.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ export function getCollectiblesPage(
export function getTransactionHistory(
chainId: string,
address: string,
query: operations['history_transactions']['parameters']['query'] = {},
pageUrl?: string,
trusted?: boolean,
): Promise<TransactionListPage> {
return getEndpoint(
baseUrl,
'/v1/chains/{chainId}/safes/{safe_address}/transactions/history',
{ path: { chainId, safe_address: address }, query: { trusted } },
{ path: { chainId, safe_address: address }, query },
pageUrl,
)
}
Expand All @@ -197,13 +197,13 @@ export function getTransactionHistory(
export function getTransactionQueue(
chainId: string,
address: string,
query: operations['queued_transactions']['parameters']['query'] = {},
pageUrl?: string,
trusted?: boolean,
): Promise<TransactionListPage> {
return getEndpoint(
baseUrl,
'/v1/chains/{chainId}/safes/{safe_address}/transactions/queued',
{ path: { chainId, safe_address: address }, query: { trusted } },
{ path: { chainId, safe_address: address }, query },
pageUrl,
)
}
Expand Down
5 changes: 5 additions & 0 deletions src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ export interface operations {
to?: string
token_address?: string
value?: string
timezone_offset?: number
}
}
responses: {
Expand All @@ -398,6 +399,7 @@ export interface operations {
query?: {
module?: string
to?: string
timezone_offset?: number
}
}
responses: {
Expand All @@ -424,6 +426,7 @@ export interface operations {
value?: string
nonce?: string
executed?: string
timezone_offset?: number
}
}
responses: {
Expand Down Expand Up @@ -501,6 +504,7 @@ export interface operations {
/** Taken from the Page['next'] or Page['previous'] */
page_url?: string
trusted?: boolean
timezone_offset?: number
}
}
responses: {
Expand All @@ -519,6 +523,7 @@ export interface operations {
/** Taken from the Page['next'] or Page['previous'] */
page_url?: string
trusted?: boolean
timezone_offset?: number
}
}
responses: {
Expand Down