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

[SUBGRAPH] Investigate issues with Approval event mapping #1834

Closed
kasparkallas opened this issue Feb 20, 2024 · 2 comments · Fixed by #1878
Closed

[SUBGRAPH] Investigate issues with Approval event mapping #1834

kasparkallas opened this issue Feb 20, 2024 · 2 comments · Fixed by #1878
Assignees
Labels
Project: SUBGRAPH Superfluid protocol subgraph Severity: Low

Comments

@kasparkallas
Copy link
Contributor

What?

The ERC-20 Approval event should be mapped to the subgraph. The addresses field should contain the relevant addresses for the user products to show the event in activity history views.

Currently, the event doesn't show up. At a quick glance, there is something off with the mapping. There seems to be two events with the same name:

  • approval for ERC-20 allowance
  • approval for FlowNFT

The mapping for FlowNFT approval event definitely has addresses missing.

I didn't find the mapping for ERC-20 approval event. I could only find it being handled for the FlowOperator entity:

export function handleApproval(event: Approval): void {

When querying from Mumbai, this error shows up:
image.png

Why?

The ERC-20 approval event is important and should be properly mapped to the subgraph.

@0xdavinchee
Copy link
Contributor

0xdavinchee commented Feb 20, 2024

Thoughts on the TODOS? @kasparkallas

  • Add mapping for missing addresses property
  • handle SuperToken Approval event in superToken.ts
  • Add a new field indicating whether it is Approval event for ERC-721 or ERC-20

@vmichalik vmichalik changed the title [subgraph] Investigate issues with Approval event mapping [SUBGRAPH] Investigate issues with Approval event mapping Feb 21, 2024
@0xdavinchee
Copy link
Contributor

resolved with #1878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project: SUBGRAPH Superfluid protocol subgraph Severity: Low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants