From c0386d9e221c66d916c65fab593edfa2162077b2 Mon Sep 17 00:00:00 2001 From: Douglas Chimento Date: Sun, 22 Sep 2024 12:28:02 +0300 Subject: [PATCH 1/3] upgrade to 2.0.10 --- Cargo.toml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9a2f72d..38aa407 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] From e66c4e3d3ae67a2c1168c0a488900f2f1a9f4cdd Mon Sep 17 00:00:00 2001 From: Douglas Chimento Date: Sun, 22 Sep 2024 18:45:46 +0300 Subject: [PATCH 2/3] use api.helius-rpc.xyz --- src/types/types.rs | 4 ++-- tests/test_factory.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types/types.rs b/src/types/types.rs index 062ef13..8c5c70b 100644 --- a/src/types/types.rs +++ b/src/types/types.rs @@ -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.helius-rpc.xyz/".to_string(), rpc: "https://mainnet.helius-rpc.com/".to_string(), }, Cluster::StakedMainnetBeta => HeliusEndpoints { - api: "https://api.helius-rpc.com/".to_string(), + api: "https://api.helius-rpc.xyz/".to_string(), rpc: "https://staked.helius-rpc.com/".to_string(), }, } diff --git a/tests/test_factory.rs b/tests/test_factory.rs index 62a3ec0..b55af7e 100644 --- a/tests/test_factory.rs +++ b/tests/test_factory.rs @@ -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.helius-rpc.xyz/"); assert_eq!(helius.config.endpoints.rpc, "https://mainnet.helius-rpc.com/"); } @@ -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.helius-rpc.xyz/"); assert_eq!(helius.config.endpoints.rpc, "https://staked.helius-rpc.com/"); } @@ -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.helius-rpc.xyz/"); assert_eq!(helius.config.endpoints.rpc, "https://mainnet.helius-rpc.com/"); } From ff610c4a3a7518d0ba3dadc977c3b614ed3d5e46 Mon Sep 17 00:00:00 2001 From: Douglas Chimento Date: Sun, 22 Sep 2024 18:54:50 +0300 Subject: [PATCH 3/3] api-mainnet.helius-rpc.com --- Cargo.toml | 2 +- src/types/types.rs | 4 ++-- tests/test_factory.rs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 38aa407..a886aae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/types/types.rs b/src/types/types.rs index 8c5c70b..e63af21 100644 --- a/src/types/types.rs +++ b/src/types/types.rs @@ -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(), }, } diff --git a/tests/test_factory.rs b/tests/test_factory.rs index b55af7e..55826eb 100644 --- a/tests/test_factory.rs +++ b/tests/test_factory.rs @@ -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/"); } @@ -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/"); } @@ -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/"); }