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

Add call traces as an event source #867

Merged
merged 99 commits into from
May 16, 2024
Merged

Add call traces as an event source #867

merged 99 commits into from
May 16, 2024

Conversation

kyscott18
Copy link
Collaborator

@kyscott18 kyscott18 commented May 8, 2024

Use the trace_ namespace JSON RPC methods to allow for indexing call traces.

ponder.on("Erc20.transfer()", async ({ event, context }) => {
  console.log(event.args); // ["0x1234...", 100000...]
  console.log(event.result); // true
})

Closes #113

@kristofgazso
Copy link

hey Kyle!

Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vercel ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 6:52pm

@kyscott18 kyscott18 merged commit e5498ad into main May 16, 2024
11 of 13 checks passed
@kyscott18 kyscott18 deleted the kjs/fn-call branch May 16, 2024 14:59
@github-actions github-actions bot mentioned this pull request May 16, 2024
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.

[Feature] Transaction call indexing
3 participants