Skip to content

Commit

Permalink
chore: update publisher program dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche committed Sep 10, 2024
1 parent 801b902 commit 7fea315
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tracing-opentelemetry = "0.24.0"
opentelemetry = "0.23.0"
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"]}
opentelemetry-otlp = { version = "0.16.0" }
pyth-price-publisher = { git = "https://github.com/pyth-network/pyth-crosschain", rev = "4df7172b" }
pyth-price-store = "0.1.0"
bytemuck = "1.13.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/agent/state/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use {
},
chrono::Utc,
futures_util::future::join_all,
pyth_price_publisher::accounts::buffer::BufferedPrice,
pyth_price_store::accounts::buffer::BufferedPrice,
pyth_sdk::Identifier,
pyth_sdk_solana::state::PriceStatus,
serde::Serialize,
Expand Down Expand Up @@ -822,7 +822,7 @@ fn create_instruction_with_publish_program(
publisher_buffer_key: Pubkey,
prices: Vec<PermissionedUpdate>,
) -> Result<Instruction> {
use pyth_price_publisher::instruction::{
use pyth_price_store::instruction::{
Instruction as PublishInstruction,
SubmitPricesArgsHeader,
PUBLISHER_CONFIG_SEED,
Expand Down
4 changes: 2 additions & 2 deletions src/agent/state/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use {
Context,
Result,
},
pyth_price_publisher::instruction::PUBLISHER_CONFIG_SEED,
pyth_price_store::instruction::PUBLISHER_CONFIG_SEED,
pyth_sdk_solana::state::{
load_mapping_account,
load_product_account,
Expand Down Expand Up @@ -407,7 +407,7 @@ async fn fetch_publisher_buffer_key(
&publish_program_key,
);
let data = rpc_client.get_account_data(&publisher_config_key).await?;
let config = pyth_price_publisher::accounts::publisher_config::read(&data)?;
let config = pyth_price_store::accounts::publisher_config::read(&data)?;
Ok(config.buffer_account.into())
}

Expand Down

0 comments on commit 7fea315

Please sign in to comment.