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
4 changes: 2 additions & 2 deletions src/hooks/adapter/requests/useAccountRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const useAccountRequests = () => {
}
}),

getAccountsCount: ({ timeout, signal, ...params }: GetAccountsType) =>
getAccountsCount: ({ timeout, signal, ...params }: GetAccountsType = {}) =>
provider({ url: '/accounts/c', timeout, signal, params }),

getAccountTransfers: ({
Expand All @@ -86,7 +86,7 @@ export const useAccountRequests = () => {
timeout,
signal,
...params
}: GetTransactionsType) =>
}: GetTransactionsType = {}) =>
provider({
url: `/accounts/${address}/transfers/c`,
timeout,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/adapter/requests/useBlockRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const useBlockRequests = () => {
params: getBlocksParams(params)
}),

getBlocksCount: ({ signal, timeout, ...params }: GetBlocksType) =>
getBlocksCount: ({ signal, timeout, ...params }: GetBlocksType = {}) =>
provider({
url: '/blocks/c',
signal,
Expand Down
6 changes: 5 additions & 1 deletion src/hooks/adapter/requests/useCollectionRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export const useCollectionRequests = () => {
params: getCollectionsParams(params)
}),

getCollectionsCount: ({ signal, timeout, ...params }: GetCollectionsType) =>
getCollectionsCount: ({
signal,
timeout,
...params
}: GetCollectionsType = {}) =>
provider({
url: '/collections/c',
signal,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/adapter/requests/useNftRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useNftRequests = () => {
params: getNftsParams({ ...params, includeFlagged: true })
}),

getNftsCount: ({ signal, timeout, ...params }: GetNftsType) =>
getNftsCount: ({ signal, timeout, ...params }: GetNftsType = {}) =>
provider({
url: '/nfts/c',
signal,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/adapter/requests/useTokenRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const useTokenRequests = () => {
params: getTokensParams(params)
}),

getTokensCount: ({ signal, timeout, ...params }: GetTokensType) =>
getTokensCount: ({ signal, timeout, ...params }: GetTokensType = {}) =>
provider({
url: '/tokens/c',
signal,
Expand Down
12 changes: 8 additions & 4 deletions src/hooks/adapter/requests/useTransactionRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useTransactionRequests = () => {
signal,
timeout,
...params
}: GetTransactionsType) =>
}: GetTransactionsType = {}) =>
provider({
url: '/transactions/c',
signal,
Expand All @@ -71,7 +71,11 @@ export const useTransactionRequests = () => {
params: getTransactionsParams(params)
}),

getTransfersCount: ({ signal, timeout, ...params }: GetTransactionsType) =>
getTransfersCount: ({
signal,
timeout,
...params
}: GetTransactionsType = {}) =>
provider({
url: '/transfers/c',
signal,
Expand Down Expand Up @@ -108,7 +112,7 @@ export const useTransactionRequests = () => {
params: getEventsParams(params)
}),

getEventsCount: ({ signal, timeout, ...params }: GetEventsType) =>
getEventsCount: ({ signal, timeout, ...params }: GetEventsType = {}) =>
provider({
url: '/events/count',
signal,
Expand Down Expand Up @@ -139,7 +143,7 @@ export const useTransactionRequests = () => {
signal,
timeout,
...params
}: GetTransactionsInPoolType) =>
}: GetTransactionsInPoolType = {}) =>
provider({
url: '/pool/c',
signal,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/adapter/requests/useValidatorRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const useValidatorRequests = () => {
params: getNodeParams(params)
}),

getNodesCount: ({ signal, timeout, ...params }: GetNodesType) =>
getNodesCount: ({ signal, timeout, ...params }: GetNodesType = {}) =>
provider({
url: '/nodes/c',
signal,
Expand Down
Loading