-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add publisher caps to the validator (#412)
* feat(program): match version with pythnet * feat: validator access point (wip) * feat: add price account flags * feat(program): fill out validator aggregation code * feat: don't aggregate on v2, clear message buffer, report validator aggregation errors * feat: return price feed messages from validator aggregation * test: enable v2 aggregation * test: test aggregation toggle * fix: don't aggregate in validator if already aggregated in this slot * chore: reexport solana_program and add derive debug * chore: add comments * fix: don't revert if c_upd_aggregate returns false * fix: make update_price_cumulative infallible; don't generate v2 messages until v1 buffer is cleared * chore: remove publisher sorting hack * chore: remove AggregationOutcome * fix: remove debug_assert * fix: allow clearing message buffers regardless of message_sent_ flag * test: add test_upd_price_with_validator * checkpoint * fix import * go * try this * go * try again * Checkpoint * go * rename * add test * cargo lock * go * go * format * rename * bump again * add z * go * chore: add missing imports and fix warnings * add m * Clippy * Update program/rust/src/accounts/price.rs Co-authored-by: Pavel Strakhov <ri@idzaaus.org> * Update program/rust/src/accounts/price.rs Co-authored-by: Pavel Strakhov <ri@idzaaus.org> * Remove vector * fix: remove unwrap * add comments * fix: undo this * another comment * add comment * use checked indexing * fix: use crates version of pythnet-sdk --------- Co-authored-by: Reisen <reisen@morphism.org> Co-authored-by: Pavel Strakhov <ri@idzaaus.org>
- Loading branch information
1 parent
0f6a651
commit 1de3dd4
Showing
6 changed files
with
205 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.