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

Generate token ownership history from EIP721 event Transfer(from, to, tokenId) #342

Open
TimDaub opened this issue Oct 24, 2022 · 2 comments
Assignees

Comments

@TimDaub
Copy link
Collaborator

TimDaub commented Oct 24, 2022

  • in EPIC: Getting token holder information from neume data #321 @djfnd and @vaughnmck outline the necessity to understand a token's ownership history
  • with call-block-log-extraction we already download the entire ownership history of music NFTs and then we filter it down with call-block-logs-transformation into mint events
  • we do this by identifying events where from=address(0):
    log.topics[1] === emptyB32 &&
  • however, did we have a guarantee that call-block-logs-transformation is sorted (which for now btw we don't have) then we could construct an ownership history given the parameters of event Transfer(from, to, tokenId) by tracking the tokenId and from to to a token was transferred over time
@Kunkka0822
Copy link
Member

Regarding this issue, we maybe need one more strategy to generate fully detailed token ownership history.

Anyway, at first, we should filter all transfer events, not only mint events and also can arrange or group events by token address or platform name and token Id in call-block-logs-transformation.

@TimDaub
Copy link
Collaborator Author

TimDaub commented Oct 26, 2022

Regarding this issue, we maybe need one more strategy to generate fully detailed token ownership history.

sound good

Anyway, at first, we should filter all transfer events, not only mint events and also can arrange or group events by token address or platform name and token Id in call-block-logs-transformation.

sounds good.
btw. I'm also editing code on call-block-logs-transformation right now, but I'll probably rename mine later: https://github.com/neume-network/strategies/pull/349/files#diff-96184468d38721d52ae7b56b25d16dae851808696e4593d40e2dd1f9d4f3011e

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

No branches or pull requests

2 participants