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 packages/api-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stakekit/api-hooks",
"description": "React hooks for StakeKit API",
"version": "0.0.106",
"version": "0.0.107",
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/api-hooks/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const useReportProjectGetRewards = <
};

export const reportProjectGetDailyRevenues = (
params?: ReportProjectGetDailyRevenuesParams,
params: ReportProjectGetDailyRevenuesParams,
signal?: AbortSignal,
) => {
return customFetch<ReportProjectGetDailyRevenues200>({
Expand All @@ -320,7 +320,7 @@ export const reportProjectGetDailyRevenues = (
};

export const getReportProjectGetDailyRevenuesQueryKey = (
params?: ReportProjectGetDailyRevenuesParams,
params: ReportProjectGetDailyRevenuesParams,
) => {
return [`/v1/reporting/revenue`, ...(params ? [params] : [])] as const;
};
Expand All @@ -329,7 +329,7 @@ export const getReportProjectGetDailyRevenuesQueryOptions = <
TData = Awaited<ReturnType<typeof reportProjectGetDailyRevenues>>,
TError = unknown,
>(
params?: ReportProjectGetDailyRevenuesParams,
params: ReportProjectGetDailyRevenuesParams,
options?: {
query?: Partial<
UseQueryOptions<
Expand Down Expand Up @@ -365,7 +365,7 @@ export const useReportProjectGetDailyRevenues = <
TData = Awaited<ReturnType<typeof reportProjectGetDailyRevenues>>,
TError = unknown,
>(
params?: ReportProjectGetDailyRevenuesParams,
params: ReportProjectGetDailyRevenuesParams,
options?: {
query?: Partial<
UseQueryOptions<
Expand Down
1 change: 1 addition & 0 deletions packages/api-hooks/src/api/schemas/dailyPerformanceDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface DailyPerformanceDto {
totalEnteredAmountWei: string | null;
totalExitedAmountWei: string | null;
totalRevenueAmountWei: string;
totalTvlAmountWei: string | null;
}
1 change: 1 addition & 0 deletions packages/api-hooks/src/api/schemas/evmNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ export const EvmNetworks = {
viction: 'viction',
core: 'core',
sonic: 'sonic',
katana: 'katana',
} as const;
1 change: 1 addition & 0 deletions packages/api-hooks/src/api/schemas/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const Networks = {
viction: 'viction',
core: 'core',
sonic: 'sonic',
katana: 'katana',
agoric: 'agoric',
akash: 'akash',
axelar: 'axelar',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ export type ReportProjectGetDailyRevenuesParams = {
/**
* Filter rewards from this date (e.g. "2023-01-01")
*/
from?: string;
from: string;
/**
* Filter rewards until this date (e.g. "2023-01-01")
*/
to?: string;
to: string;
/**
* Filter rewards from this integrationId
*/
Expand Down
1 change: 1 addition & 0 deletions packages/api-hooks/src/api/schemas/yieldV2YieldsNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const YieldV2YieldsNetwork = {
viction: 'viction',
core: 'core',
sonic: 'sonic',
katana: 'katana',
agoric: 'agoric',
akash: 'akash',
axelar: 'axelar',
Expand Down
Loading