Skip to content

Commit

Permalink
feat(pindexer): add dex candlestick support to schema (#4894)
Browse files Browse the repository at this point in the history
## Describe your changes

Closes #4869.

This implementation isn't as fast as it could probably be, but more than
enough to be real time, which is all that really matters.

(Maintaining the summary is annoying and kind of tricky, especially if
you want to correctly handle a "frozen price" for pairs where no
activity is happening)

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > indexing only
  • Loading branch information
cronokirby authored Oct 11, 2024
1 parent 6508c03 commit 783db09
Show file tree
Hide file tree
Showing 8 changed files with 644 additions and 12 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/bin/pindexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ publish = false
[dependencies]
anyhow = {workspace = true}
clap = {workspace = true}
chrono = {workspace = true}
cometindex = {workspace = true}
num-bigint = { version = "0.4" }
penumbra-shielded-pool = {workspace = true, default-features = false}
Expand All @@ -26,6 +27,8 @@ penumbra-governance = {workspace = true, default-features = false}
penumbra-num = {workspace = true, default-features = false}
penumbra-asset = {workspace = true, default-features = false}
penumbra-proto = {workspace = true, default-features = false}
penumbra-sct = {workspace = true, default-features = false}
prost = {workspace = true}
tracing = {workspace = true}
tokio = {workspace = true, features = ["full"]}
serde_json = {workspace = true}
Expand Down
Loading

0 comments on commit 783db09

Please sign in to comment.