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

[api] Fix listings endpoint for ICR #2180

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

psparacino
Copy link
Collaborator

@psparacino psparacino commented Jan 24, 2024

Description

Fixes listings endpoint for ICR listings.

The core issue is that the listings endpoint queried the digital-carbon subgraph for the token symbol on Token entity. Currently no ICR tokens are listed in the subgraph as Tokens. Ideally, unless ICR token don't qualify as Tokens, these should be added so there is no conditional logic in the endpoint.

Related Ticket

Closes #2177

Test preview ICR listing

https://carbonmark-api-git-fix-listings-endpoint-fetche-c1b9ef-klimadao.vercel.app/listings/0xe2d23df10da8679d3a0af644a4778d66c7d78c5c9c1540805ae1b3c6bf208e09

Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
carbonmark ✅ Ready (Inspect) Visit Preview Jan 25, 2024 2:10pm
carbonmark-api ✅ Ready (Inspect) Visit Preview Jan 25, 2024 2:10pm
demo-integration ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2024 2:10pm
klimadao-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2024 2:10pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
carbon ⬜️ Ignored (Inspect) Visit Preview Jan 25, 2024 2:10pm

@psparacino psparacino changed the title Fix/listings endpoint fetches icr listings [API] Use ICR project id as token symbol as ICR does not exist as a Token in digital-carbon subgraph Jan 24, 2024
@psparacino psparacino changed the title [API] Use ICR project id as token symbol as ICR does not exist as a Token in digital-carbon subgraph [API] Fix listings endpoint as ICR does not exist as a Token in digital-carbon subgraph Jan 24, 2024
@psparacino psparacino changed the title [API] Fix listings endpoint as ICR does not exist as a Token in digital-carbon subgraph [api] Fix listings endpoint as ICR does not exist as a Token in digital-carbon subgraph Jan 24, 2024
@psparacino psparacino force-pushed the fix/listings-endpoint-fetches-ICR-listings branch from 5cf8e9d to 93b9e5c Compare January 24, 2024 15:42
@psparacino psparacino deployed to Preview – carbonmark-api January 24, 2024 15:42 — with GitHub Actions Active
@0xemc 0xemc deployed to Preview – carbonmark-api January 25, 2024 09:34 — with GitHub Actions Active
@psparacino psparacino changed the title [api] Fix listings endpoint as ICR does not exist as a Token in digital-carbon subgraph [api] Fix listings endpoint for ICR Jan 25, 2024
Copy link
Collaborator

@biwano biwano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTG

@biwano biwano merged commit 621f6d4 into staging Jan 25, 2024
10 checks passed
@biwano biwano deleted the fix/listings-endpoint-fetches-ICR-listings branch January 25, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[ICR] Listing endpoint is broken for ICR listings
4 participants