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 ERC20TransferEvent and ERC721TransferEvent models #178

Closed
wants to merge 1 commit into from

Conversation

chaoyaji-cb
Copy link
Contributor

What changed? Why?

  • Add ERC20TransferEvent and ERC721TransferEvent models for webhook event parsing
  • Minor comment update on event filter

Qualified Impact

erc20 and erc721 event type
@alex-stone
Copy link
Contributor

Awesome! Can we add utilities to parse the events in the context of a Webhook Handler?

E.g. I am implementing a Webhook Handler, I have a payload, how to I parse this payload of unknown type into one of these?

event = Webhook::Event.from_payload(payload)

Or something like:

>event = Webhook::Event.build(payload)
>puts event.type
=> "erc20-transfer"

Here is an example handler example: https://docs.stripe.com/webhooks/quickstart?lang=ruby

We can add docs for how to build a simple handler in each language, but for the context of the SDK we'd like to be able to easily parse raw data into these models!

@alex-stone alex-stone deleted the branch release-v0.4.0 September 18, 2024 22:41
@alex-stone alex-stone closed this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants