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

Summary data for pairs #123

Merged
merged 4 commits into from
Nov 1, 2024
Merged

Summary data for pairs #123

merged 4 commits into from
Nov 1, 2024

Conversation

grod220
Copy link
Contributor

@grod220 grod220 commented Nov 1, 2024

Screenshot 2024-11-01 at 2 22 01 PM

Relates to: #107

  • Deletes a ton of old code related to the old indexer we should not be querying anymore
  • Adds support for kysely library for DB queries of the new indexer. It's typesafe, yay! 🥳
  • Adds 24 hour summary data to UI (api route + frontend hook). It is not styled though.

Copy link
Contributor

@cronokirby cronokirby left a comment

Choose a reason for hiding this comment

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

I'd strongly advocate in favor of only having a schema for the specific tables we need here, i.e. the dex_ex tables. In particular, internal tables to pindexer should not be present here, and unrelated tables invite depending on them, whereas we instead want the app view for the dex_ex tables to be complete for this frontend.

Comment on lines 232 to 235
_dex_ex_queue: _DexExQueue;
_dex_ex_summary_backing: _DexExSummaryBacking;
_insights_shielded_pool_depositors: _InsightsShieldedPoolDepositors;
_insights_validators: _InsightsValidators;
Copy link
Contributor

Choose a reason for hiding this comment

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

These are internal tables which should not be depended on, since the format changes ; I'd recommend just depending on the dex_ex_... tables here, to not have to upgrade all of these in case of changes to unrelated app views.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure that's fair. It would be nice if the maintenance of this schema was automated. But can pare down for now.

@grod220 grod220 merged commit 2f19c2a into main Nov 1, 2024
2 checks passed
@grod220 grod220 deleted the summary-data branch November 1, 2024 23:23
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

Successfully merging this pull request may close these issues.

2 participants