Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade solana-sdk to 2.x #74

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "helius"
version = "0.2.1"
version = "2.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To reflect that this uses 2.x of solana-sdk

edition = "2021"
description = "An asynchronous Helius Rust SDK for building the future of Solana"
keywords = ["helius", "solana", "asynchronous-sdk", "das", "cryptocurrency"]
Expand All @@ -20,20 +20,20 @@ futures-util = "0.3.30"
phf = { version = "0.11.2", features = ["macros"] }
rand = "0.8.5"
reqwest = { version = "0.11", features = ["json"], default-features = false }
semver = "1.0.23"
serde = "1.0.198"
semver = "1"
serde = "1"
serde-enum-str = "0.4.0"
serde_json = "1.0.116"
solana-account-decoder = "=1.17.0"
solana-client = "=1.17.0"
solana-program = "=1.17.0"
solana-rpc-client-api = "=1.17.0"
solana-sdk = "=1.17.0"
solana-transaction-status = "=1.17.0"
thiserror = "1.0.58"
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread", "net"] }
serde_json = "1"
solana-account-decoder = "2.0.10"
solana-client = "2.0.10"
solana-program = "2.0.10"
solana-rpc-client-api = "2.0.10"
solana-sdk = "2.0.10"
solana-transaction-status = "2.0.10"
thiserror = "1"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "net"] }
tokio-stream = "0.1.15"
tokio-tungstenite = { version = "0.21.0", features = ["native-tls", "handshake"] }
tokio-tungstenite = { version = "0.21", features = ["native-tls", "handshake"] }
url = "2.5.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/types/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ impl HeliusEndpoints {
rpc: "https://devnet.helius-rpc.com/".to_string(),
},
Cluster::MainnetBeta => HeliusEndpoints {
api: "https://api.helius-rpc.com/".to_string(),
api: "https://api-mainnet.helius-rpc.com/".to_string(),
rpc: "https://mainnet.helius-rpc.com/".to_string(),
},
Cluster::StakedMainnetBeta => HeliusEndpoints {
api: "https://api.helius-rpc.com/".to_string(),
api: "https://api-mainnet.helius-rpc.com/".to_string(),
rpc: "https://staked.helius-rpc.com/".to_string(),
},
}
Expand Down
6 changes: 3 additions & 3 deletions tests/test_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn test_factory_create_mainnet_instance() {
let helius: Helius = factory.create(Cluster::MainnetBeta).unwrap();

assert_eq!(helius.config.api_key, "valid_api_key");
assert_eq!(helius.config.endpoints.api, "https://api.helius-rpc.com/");
assert_eq!(helius.config.endpoints.api, "https://api-mainnet.helius-rpc.com/");
assert_eq!(helius.config.endpoints.rpc, "https://mainnet.helius-rpc.com/");
}

Expand All @@ -27,7 +27,7 @@ fn test_factory_create_staked_mainnet_instance() {
let helius: Helius = factory.create(Cluster::StakedMainnetBeta).unwrap();

assert_eq!(helius.config.api_key, "valid_api_key");
assert_eq!(helius.config.endpoints.api, "https://api.helius-rpc.com/");
assert_eq!(helius.config.endpoints.api, "https://api-mainnet.helius-rpc.com/");
assert_eq!(helius.config.endpoints.rpc, "https://staked.helius-rpc.com/");
}

Expand All @@ -40,6 +40,6 @@ fn test_factory_create_with_reqwest() {
.unwrap();

assert_eq!(helius.config.api_key, "valid_api_key");
assert_eq!(helius.config.endpoints.api, "https://api.helius-rpc.com/");
assert_eq!(helius.config.endpoints.api, "https://api-mainnet.helius-rpc.com/");
assert_eq!(helius.config.endpoints.rpc, "https://mainnet.helius-rpc.com/");
}
Loading