Skip to content

Don't query events without handlers - #425

Merged
DZakh merged 1 commit into
mainfrom
dz/ignore-events-without-handlers
Jan 20, 2025
Merged

Don't query events without handlers#425
DZakh merged 1 commit into
mainfrom
dz/ignore-events-without-handlers

Conversation

@DZakh

@DZakh DZakh commented Jan 17, 2025

Copy link
Copy Markdown
Member
image

@DZakh
DZakh requested a review from JonoPrest January 17, 2025 10:58
~enableRawEvents,
): t => {
let module(ChainWorker) = chainConfig.chainWorker
logger->Logging.childInfo("Initializing ChainFetcher with " ++ ChainWorker.name ++ " worker")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the log since I couldn't find any value in it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose the main value is to be able to see rpc vs hypersync for a given chain.

Comment on lines +231 to +237
// const burnSchema = S.object({
// subId: S.string,
// amount: SExtra.bigint,
// });
// AllEvents.Burn.handler(async ({ event }) => {
// burnSchema.assert(event.params)!;
// expectType<AssertSchemaType<typeof event.params, typeof burnSchema>>(true);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's happening with this test?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I wanted to show the case when a handler is missing. I'll add it back in a future PR

@JonoPrest JonoPrest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool looks good 👍🏼

@DZakh
DZakh merged commit 8832911 into main Jan 20, 2025
@DZakh
DZakh deleted the dz/ignore-events-without-handlers branch January 20, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants