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

feat: get token pairs list from indexer #476

Merged
merged 24 commits into from
Nov 25, 2023

Conversation

dib542
Copy link
Collaborator

@dib542 dib542 commented Nov 21, 2023

Using the new token pairs list from:

and the real-time SSE update mechanism from

This PR allows the token pairs list to be taken from the /liquidity/pairs endpoint of the indexer, instead of being derived from iterating through all existing ticks of the /cosmos/bank/v1beta1/supply of the LCD API (which will not be feasible in production, and is not possible after the backend change: duality-labs/duality#456 which is part of v0.4.1 of the Duality chain)

@dib542 dib542 linked an issue Nov 21, 2023 that may be closed by this pull request
    - they are small and not that helpful, they are just URL creators
    - it gets too complicated
    - these hooks should not be used for the purpose of queries
      where we expect the request to end. that is much better suited
      to the fetchDataFromIndexer abstraction (which can be used in
      a hook like useQuery or useSWR if desired)
@dib542 dib542 force-pushed the 451-get-tokenpairs-list-from-indexer branch from 25823b3 to ff88ea1 Compare November 21, 2023 14:10
@dib542 dib542 force-pushed the 451-get-tokenpairs-list-from-indexer branch from 9a6fbd2 to ea1e9a2 Compare November 23, 2023 05:19
@dib542 dib542 force-pushed the 451-get-tokenpairs-list-from-indexer branch from ea1e9a2 to d776ecb Compare November 23, 2023 09:58
dib542 added a commit that referenced this pull request Nov 24, 2023
@dib542 dib542 merged commit 59d2e0e into main Nov 25, 2023
1 check passed
@dib542 dib542 deleted the 451-get-tokenpairs-list-from-indexer branch November 25, 2023 13:07
dib542 pushed a commit that referenced this pull request Nov 25, 2023
## [0.3.35](v0.3.34...v0.3.35) (2023-11-25)

### Features

* get token pairs list from indexer ([#476](#476)) ([59d2e0e](59d2e0e))
@dib542
Copy link
Collaborator Author

dib542 commented Nov 25, 2023

🎉 This PR is included in version 0.3.35 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get TokenPairs list from indexer
1 participant