diff --git a/Cargo.toml b/Cargo.toml index 5d8d0f1..8b26654 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "solana-streamer" +name = "solana-streamer-sdk" version = "0.1.0" edition = "2021" authors = ["William ", "sgxiang ", "wei <1415121722@qq.com>"] diff --git a/README.md b/README.md index 42f2001..7671249 100755 --- a/README.md +++ b/README.md @@ -31,13 +31,13 @@ Add the dependency to your `Cargo.toml`: ```toml # Add to your Cargo.toml -solana-streamer = { path = "./solana-streamer", version = "0.1.0" } +solana-streamer-sdk = { path = "./solana-streamer", version = "0.1.0" } ``` ## Usage Examples ```rust -use solana_streamer::{ +use solana_streamer_sdk::{ match_event, streaming::{ event_parser::{ @@ -96,7 +96,7 @@ async fn test_shreds() -> Result<(), Box> { Protocol::RaydiumCpmm, Protocol::RaydiumClmm, ]; - + println!("Listening for events, press Ctrl+C to stop..."); shred_stream .shredstream_subscribe(protocols, None, callback) diff --git a/README_CN.md b/README_CN.md index df373fa..42633b2 100644 --- a/README_CN.md +++ b/README_CN.md @@ -31,13 +31,13 @@ git clone https://github.com/0xfnzero/solana-streamer ```toml # 添加到您的 Cargo.toml -solana-streamer = { path = "./solana-streamer", version = "0.1.0" } +solana-streamer-sdk = { path = "./solana-streamer", version = "0.1.0" } ``` ## 使用示例 ```rust -use solana_streamer::{ +use solana_streamer_sdk::{ match_event, streaming::{ event_parser::{ @@ -96,7 +96,7 @@ async fn test_shreds() -> Result<(), Box> { Protocol::RaydiumCpmm, Protocol::RaydiumClmm, ]; - + println!("开始监听事件,按 Ctrl+C 停止..."); shred_stream .shredstream_subscribe(protocols, None, callback) diff --git a/src/main.rs b/src/main.rs index 101a7fc..2c02bf5 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use solana_streamer::{ +use solana_streamer_sdk::{ match_event, streaming::{ event_parser::{