diff --git a/Cargo.lock b/Cargo.lock index d9aaec2..ed27413 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3424,7 +3424,7 @@ dependencies = [ "portpicker", "prometheus-client", "proptest", - "pyth-price-publisher", + "pyth-price-store", "pyth-sdk", "pyth-sdk-solana", "rand 0.8.5", @@ -3450,9 +3450,10 @@ dependencies = [ ] [[package]] -name = "pyth-price-publisher" +name = "pyth-price-store" version = "0.1.0" -source = "git+https://github.com/pyth-network/pyth-crosschain?rev=4df7172b#4df7172b85f9d1b65b117c58652e945a219f8b82" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbb76932606741e8b690d51d3e78df620df4a13474a2ca5f53ded5f70522cdc" dependencies = [ "bytemuck", "thiserror", diff --git a/Cargo.toml b/Cargo.toml index 293a7ef..d518c36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/agent/state/exporter.rs b/src/agent/state/exporter.rs index 05a9673..199b814 100644 --- a/src/agent/state/exporter.rs +++ b/src/agent/state/exporter.rs @@ -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, @@ -822,7 +822,7 @@ fn create_instruction_with_publish_program( publisher_buffer_key: Pubkey, prices: Vec, ) -> Result { - use pyth_price_publisher::instruction::{ + use pyth_price_store::instruction::{ Instruction as PublishInstruction, SubmitPricesArgsHeader, PUBLISHER_CONFIG_SEED, diff --git a/src/agent/state/oracle.rs b/src/agent/state/oracle.rs index e343658..c09a2ee 100644 --- a/src/agent/state/oracle.rs +++ b/src/agent/state/oracle.rs @@ -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, @@ -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()) }