Skip to content

Commit

Permalink
chore: update pyth-price-store dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche committed Sep 10, 2024
1 parent 4909cd9 commit 4f8bb5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ once_cell = "1.12.0"
ouroboros = "0.15.0"
pyth-oracle = { git = "https://github.com/pyth-network/pyth-client", rev = "256b57", features = ["library"] }
pythnet-sdk = { git = "https://github.com/pyth-network/pyth-crosschain", version = "1.13.6", rev = "33f901aa45f4f0005aa5a84a1479b78ca9033074" }
pyth-price-publisher = { git = "https://github.com/pyth-network/pyth-crosschain", branch = "add-publisher-program" }
pyth-price-store = "0.1.0"
rand = "0.7.0"
rayon = "1.5.3"
regex = "1.5.6"
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/bank/pyth/batch_publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use {
find_publisher_index, get_status_for_conf_price_ratio, solana_program::pubkey::Pubkey,
OracleError, PriceAccount,
},
pyth_price_publisher::accounts::buffer,
pyth_price_store::accounts::buffer,
solana_sdk::{account::ReadableAccount, clock::Slot},
std::collections::HashMap,
thiserror::Error,
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/bank/pyth/tests/batch_publish_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use {
pyth_oracle::{
solana_program::account_info::AccountInfo, PriceAccount, PriceAccountFlags, PythAccount,
},
pyth_price_publisher::{
pyth_price_store::{
accounts::{
buffer::{self, BufferedPrice},
publisher_config,
Expand Down Expand Up @@ -74,7 +74,7 @@ fn test_batch_publish() {
publisher_key.pubkey().to_bytes(),
)
.unwrap();
buffer::extend(header, prices, cast_slice(new_prices)).unwrap();
buffer::update(header, prices, bank.slot(), cast_slice(new_prices)).unwrap();
}
bank.store_account(&publisher_buffer_key, &publisher_buffer_account);

Expand Down

0 comments on commit 4f8bb5f

Please sign in to comment.