Skip to content

Commit

Permalink
api-mainnet.helius-rpc.com
Browse files Browse the repository at this point in the history
  • Loading branch information
dougEfresh committed Oct 12, 2024
1 parent e66c4e3 commit ff610c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 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"
edition = "2021"
description = "An asynchronous Helius Rust SDK for building the future of Solana"
keywords = ["helius", "solana", "asynchronous-sdk", "das", "cryptocurrency"]
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.xyz/".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.xyz/".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.xyz/");
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.xyz/");
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.xyz/");
assert_eq!(helius.config.endpoints.api, "https://api-mainnet.helius-rpc.com/");
assert_eq!(helius.config.endpoints.rpc, "https://mainnet.helius-rpc.com/");
}

0 comments on commit ff610c4

Please sign in to comment.