Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Mislabeled field in graph #19

Open
jmoggr opened this issue Jan 17, 2023 · 3 comments
Open

Mislabeled field in graph #19

jmoggr opened this issue Jan 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jmoggr
Copy link

jmoggr commented Jan 17, 2023

claimID is mislabeled as tokenID in the graph. Etherscan shows the same value in the correctly labeled field.

2023-01-16-191005_887x396_scrot
2023-01-16-191020_1604x531_scrot

@jmoggr jmoggr added the bug Something isn't working label Jan 17, 2023
@bitbeckers
Copy link
Collaborator

bitbeckers commented Jan 17, 2023

Good catch. But I don't view this as a bug.

This is something we specifically added to the Graph. The subgraph has Claims, which have an ID, so ClaimIDs, that consists of the contract address + the tokenID of the claim. This is because if we have multiple hypercert contracts you can have similar tokenIDs representing different claims in different contracts, but unique combinations of contract + tokenID. Having a claim with an ID and claimID seemed more confusing to me.

So this tokenID is the actual token in the contract. Both claims and fractions relate to a tokenID in the contract. @ryscheng any thoughts?

@jmoggr
Copy link
Author

jmoggr commented Jan 17, 2023

That makes sense. Maybe the tokenID of the claim can be labeled typeID? That is how it is often referred to in the contract code.

This is something that could be cleared up in future documentation. As a complete novice it took me a while to differentiate the different tokenIDs because they only 1 apart after minting.

@ryscheng
Copy link
Member

For my own understanding right now, I think this is the current lingo. @bitbeckers can you correct me if I'm wrong?

tokenID = typeID + fractionID
claimID = contractAddress + tokenID

That seems reasonable for now, though it might be nice to make things really explicit somewhere, so we don't have to rely on client-side parsing?
i.e.

{
  contractAddress: "",
  typeID: "",
  fractionID: "",
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants