feat: bump to v0.6.11 with dependency updates
- Update solana-streamer-sdk to 0.4.9 - Increase transaction confirmation timeout to 10s - Update documentation version references
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sol-trade-sdk"
|
name = "sol-trade-sdk"
|
||||||
version = "0.6.10"
|
version = "0.6.11"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [
|
authors = [
|
||||||
"William <byteblock6@gmail.com>",
|
"William <byteblock6@gmail.com>",
|
||||||
@@ -37,7 +37,7 @@ members = [
|
|||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
solana-streamer-sdk = "0.4.8"
|
solana-streamer-sdk = "0.4.9"
|
||||||
solana-sdk = "2.3.0"
|
solana-sdk = "2.3.0"
|
||||||
solana-client = "2.3.6"
|
solana-client = "2.3.6"
|
||||||
solana-program = "2.3.0"
|
solana-program = "2.3.0"
|
||||||
|
|||||||
@@ -90,14 +90,14 @@ Add the dependency to your `Cargo.toml`:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Add to your Cargo.toml
|
# Add to your Cargo.toml
|
||||||
sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.10" }
|
sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.11" }
|
||||||
```
|
```
|
||||||
|
|
||||||
### Use crates.io
|
### Use crates.io
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Add to your Cargo.toml
|
# Add to your Cargo.toml
|
||||||
sol-trade-sdk = "0.6.10"
|
sol-trade-sdk = "0.6.11"
|
||||||
```
|
```
|
||||||
|
|
||||||
## 🛠️ Usage Examples
|
## 🛠️ Usage Examples
|
||||||
|
|||||||
+2
-2
@@ -89,14 +89,14 @@ git clone https://github.com/0xfnzero/sol-trade-sdk
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# 添加到您的 Cargo.toml
|
# 添加到您的 Cargo.toml
|
||||||
sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.10" }
|
sol-trade-sdk = { path = "./sol-trade-sdk", version = "0.6.11" }
|
||||||
```
|
```
|
||||||
|
|
||||||
### 使用 crates.io
|
### 使用 crates.io
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# 添加到您的 Cargo.toml
|
# 添加到您的 Cargo.toml
|
||||||
sol-trade-sdk = "0.6.10"
|
sol-trade-sdk = "0.6.11"
|
||||||
```
|
```
|
||||||
|
|
||||||
## 🛠️ 使用示例
|
## 🛠️ 使用示例
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ impl FormatBase64VersionedTransaction for VersionedTransaction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn poll_transaction_confirmation(rpc: &SolanaRpcClient, txt_sig: Signature) -> Result<Signature> {
|
pub async fn poll_transaction_confirmation(rpc: &SolanaRpcClient, txt_sig: Signature) -> Result<Signature> {
|
||||||
let timeout: Duration = Duration::from_secs(5);
|
let timeout: Duration = Duration::from_secs(10);
|
||||||
let interval: Duration = Duration::from_millis(1000);
|
let interval: Duration = Duration::from_millis(1000);
|
||||||
let start: Instant = Instant::now();
|
let start: Instant = Instant::now();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user