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: add delegator to delegationEvents #822

Merged

Conversation

pedropregueiro
Copy link
Contributor

Trying to build a timeline of delegation events for camp where you can see which account delegated a certain noun, and previous and new delegate values. Today, there's no way to know which account held the noun during delegation, so this PR adds the field delegator (present in the original event) to the subgraph.

Using the delegationEvent {noun.owner} wouldn't work in this case, since the noun might've been transferred between accounts, and that field only references the latest holder's address.

@solimander solimander merged commit beb86c1 into nounsDAO:master Dec 15, 2023
3 checks passed
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