Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TA-2361] [VAN] Add event info to events #12

Conversation

AgustinMJ
Copy link
Collaborator

[VAN] Add event info to events

Changes

  • Add EventInfo
  • Add Indexer.emitEvent to emit EventInfo when emitting events

Copy link

🔗Pullpo.io Slack channel

@AgustinMJ AgustinMJ changed the title [VAN] Add event info to events [TA-2361] [VAN] Add event info to events Mar 12, 2024
Copy link

Add event info to events

`${event.event} ${event.transactionHash} ${event.logIndex} ${event.blockNumber} ${JSON.stringify(event)}\n`,
);
indexer.eventDone("AddClaimAttestation", event.transactionHash, event.logIndex);
await appendFile("./bridge-events.txt", `${eventKey} ${hash} ${i} ${block} ${JSON.stringify(event)}\n`);

Choose a reason for hiding this comment

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

Una mica out of context xo si q el codi es repeteix tota la estona no? Podries fer una funció..
Només canvia el primer parametre del indexer.eventDone("name", ...).

Copy link
Contributor

@AdriaCarrera AdriaCarrera left a comment

Choose a reason for hiding this comment

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

LGTM

@AdriaCarrera AdriaCarrera merged commit 150b0da into vanilla/feat/escape/sanitize-sql-queries Mar 13, 2024
2 checks passed
@AdriaCarrera AdriaCarrera deleted the vanilla/feat/add-event-info branch March 13, 2024 08:28
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.

3 participants