diff --git a/Cargo.toml b/Cargo.toml index 50db23f..7f24c81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyth-client" -version = "0.5.0" +version = "0.5.1" authors = ["Pyth Data Foundation"] edition = "2018" license = "Apache-2.0" @@ -10,6 +10,9 @@ description = "pyth price oracle data structures and example usage" keywords = [ "pyth", "solana", "oracle" ] readme = "README.md" +[badges] +maintenance = { status = "deprecated" } + [features] test-bpf = [] no-entrypoint = [] diff --git a/README.md b/README.md index fb1e4fa..faf7bc8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Pyth Client +**This crate has been deprecated. Please use [pyth-sdk-solana](https://github.com/pyth-network/pyth-sdk-rs/tree/main/pyth-sdk-solana) instead. pyth-sdk-solana provides identical functionalities with an easier interface.** + This crate provides utilities for reading price feeds from the [pyth.network](https://pyth.network/) oracle on the Solana network. The crate includes a library for on-chain programs and an off-chain example program. diff --git a/src/lib.rs b/src/lib.rs index 01454a8..7a56f5b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,7 @@ //! A Rust library for consuming price feeds from the [pyth.network](https://pyth.network/) oracle on the Solana network. //! //! Please see the [crates.io page](https://crates.io/crates/pyth-client/) for documentation and example usage. +#![deprecated = "This crate has been deprecated. Please use pyth-sdk-solana instead."] pub use self::price_conf::PriceConf; pub use self::error::PythError; diff --git a/tests/common.rs b/tests/common.rs index 6d98755..40e3b85 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -3,7 +3,7 @@ use { pyth_client::processor::process_instruction, solana_program::instruction::Instruction, solana_program_test::*, - solana_sdk::{signature::Signer, transaction::Transaction}, + solana_sdk::{signature::Signer, transaction::Transaction, pubkey::Pubkey}, }; // Panics if running instruction fails