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 mapping for Kleros registry recipient address and metadata #477

Open
yuetloo opened this issue Mar 10, 2022 · 0 comments
Open

Subgraph mapping for Kleros registry recipient address and metadata #477

yuetloo opened this issue Mar 10, 2022 · 0 comments
Assignees

Comments

@yuetloo
Copy link
Collaborator

yuetloo commented Mar 10, 2022

This issue was introduced by PR (#473).

The issue is to add mapping rule for recipientAddress and recipientMetadata In KlerosRecipientRegistryMapping.ts, the function handleRecipientAdded(event: RecipientAdded). Currently, they are commented out. The challenge is to parse the metadata field and to retrieve data from external contract, the TCR contract, see https://kleros.io/curation/ for more details.

Because the UI currently retrieves the recipient information from the contract directly (not from subgraph), I'll leave this issue to be tackled at another time to keep the scope of the original PR small.

This is how the UI currently gets the recipient information from the contract.
https://github.com/clrfund/monorepo/blob/develop/vue-app/src/api/recipient-registry-kleros.ts#L70

@yuetloo yuetloo self-assigned this Mar 10, 2022
yuetloo pushed a commit that referenced this issue Apr 28, 2022
@auryn-macmillan auryn-macmillan added this to the Current milestone Jun 23, 2022
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