diff --git a/.gitignore b/.gitignore index d0bf4a6..0016389 100755 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,5 @@ tmp_*.rs tmp_*.log +.claude/ .serena/ \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 6b6f98c..4ba7ae5 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sol-trade-sdk" -version = "0.6.6" +version = "0.6.7" edition = "2021" authors = [ "William ", diff --git a/README.md b/README.md index d723a96..0e709a8 100644 --- a/README.md +++ b/README.md @@ -89,14 +89,14 @@ Add the dependency to your `Cargo.toml`: ```toml # Add to your Cargo.toml -sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.6" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.7" } ``` ### Use crates.io ```toml # Add to your Cargo.toml -sol-trade-sdk = "0.6.6" +sol-trade-sdk = "0.6.7" ``` ## 🛠️ Usage Examples diff --git a/README_CN.md b/README_CN.md index 99b0433..7b892cc 100755 --- a/README_CN.md +++ b/README_CN.md @@ -89,14 +89,14 @@ git clone https://github.com/0xfnzero/sol-trade-sdk ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.6" } +sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.7" } ``` ### 使用 crates.io ```toml # 添加到您的 Cargo.toml -sol-trade-sdk = "0.6.6" +sol-trade-sdk = "0.6.7" ``` ## 🛠️ 使用示例 diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 4387c27..184fd35 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -60,11 +60,13 @@ impl SolanaTrade { // -------------------------------- PumpFun -------------------------------- + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub fn get_pumpfun_token_buy_price(&self, amount: u64, trade_info: &PumpFunTradeEvent) -> u64 { crate::instruction::utils::pumpfun::get_buy_price(amount, trade_info) } + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub async fn get_pumpfun_token_current_price( &self, @@ -80,6 +82,7 @@ impl SolanaTrade { Ok(price::pumpfun::price_token_in_sol(virtual_sol_reserves, virtual_token_reserves)) } + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub async fn get_pumpfun_token_real_sol_reserves( &self, @@ -94,6 +97,7 @@ impl SolanaTrade { Ok(actual_sol_reserves) } + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub async fn get_pumpfun_token_creator(&self, mint: &Pubkey) -> Result { let (bonding_curve, _) = @@ -107,6 +111,7 @@ impl SolanaTrade { // -------------------------------- PumpSwap -------------------------------- + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub async fn get_pumpswap_token_current_price( &self, @@ -128,6 +133,7 @@ impl SolanaTrade { Ok(price) } + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub async fn get_pumpswap_token_real_sol_reserves( &self, @@ -141,6 +147,7 @@ impl SolanaTrade { Ok(quote_amount) } + #[deprecated(since = "0.6.7", note = "This function is deprecated and will be removed in a future version")] #[inline] pub async fn get_pumpswap_payer_token_balance( &self,