Skip to content

Commit 75bd824

Browse files
gregfromstlclaude
andcommitted
[Dashboard] Update insight events API to use chain_id instead of deprecated chain param
Updated all insight /v1/events endpoint calls to use chain_id parameter as chain is deprecated. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 2512e5f commit 75bd824

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/utils/contract-event-breakdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function getContractEventBreakdown(params: {
2727
endDate?: Date;
2828
}): Promise<EventBreakdownEntry[]> {
2929
const queryParams = [
30-
`chain=${params.chainId}`,
30+
`chain_id=${params.chainId}`,
3131
"group_by=block_timestamp",
3232
"group_by=topic_0 as event_signature",
3333
"aggregate=toStartOfDay(toDate(block_timestamp)) as time",

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/utils/contract-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function getContractEventAnalytics(params: {
3131
endDate?: Date;
3232
}): Promise<AnalyticsEntry[]> {
3333
const queryParams = [
34-
`chain=${params.chainId}`,
34+
`chain_id=${params.chainId}`,
3535
"group_by=block_timestamp",
3636
"aggregate=toStartOfDay(toDate(block_timestamp)) as time",
3737
"aggregate=count(block_timestamp) as count",

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/utils/total-contract-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function getTotalContractEvents(params: {
2020
chainId: number;
2121
}): Promise<{ count: number }> {
2222
const queryParams = [
23-
`chain=${params.chainId}`,
23+
`chain_id=${params.chainId}`,
2424
"aggregate=count(block_number) as total",
2525
].join("&");
2626

0 commit comments

Comments
 (0)