Skip to content

Commit 7fea315

Browse files
committed
chore: update publisher program dependency
1 parent 801b902 commit 7fea315

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tracing-opentelemetry = "0.24.0"
5656
opentelemetry = "0.23.0"
5757
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"]}
5858
opentelemetry-otlp = { version = "0.16.0" }
59-
pyth-price-publisher = { git = "https://github.com/pyth-network/pyth-crosschain", rev = "4df7172b" }
59+
pyth-price-store = "0.1.0"
6060
bytemuck = "1.13.0"
6161

6262
[dev-dependencies]

src/agent/state/exporter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use {
2727
},
2828
chrono::Utc,
2929
futures_util::future::join_all,
30-
pyth_price_publisher::accounts::buffer::BufferedPrice,
30+
pyth_price_store::accounts::buffer::BufferedPrice,
3131
pyth_sdk::Identifier,
3232
pyth_sdk_solana::state::PriceStatus,
3333
serde::Serialize,
@@ -822,7 +822,7 @@ fn create_instruction_with_publish_program(
822822
publisher_buffer_key: Pubkey,
823823
prices: Vec<PermissionedUpdate>,
824824
) -> Result<Instruction> {
825-
use pyth_price_publisher::instruction::{
825+
use pyth_price_store::instruction::{
826826
Instruction as PublishInstruction,
827827
SubmitPricesArgsHeader,
828828
PUBLISHER_CONFIG_SEED,

src/agent/state/oracle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use {
1818
Context,
1919
Result,
2020
},
21-
pyth_price_publisher::instruction::PUBLISHER_CONFIG_SEED,
21+
pyth_price_store::instruction::PUBLISHER_CONFIG_SEED,
2222
pyth_sdk_solana::state::{
2323
load_mapping_account,
2424
load_product_account,
@@ -407,7 +407,7 @@ async fn fetch_publisher_buffer_key(
407407
&publish_program_key,
408408
);
409409
let data = rpc_client.get_account_data(&publisher_config_key).await?;
410-
let config = pyth_price_publisher::accounts::publisher_config::read(&data)?;
410+
let config = pyth_price_store::accounts::publisher_config::read(&data)?;
411411
Ok(config.buffer_account.into())
412412
}
413413

0 commit comments

Comments
 (0)