From e649d6744abc0fafd320378b16ba202881b7557a Mon Sep 17 00:00:00 2001 From: Thoralf-M Date: Mon, 11 Nov 2024 14:13:28 +0100 Subject: [PATCH 1/2] feat(iota): update testnet and devnet urls --- crates/iota-sdk/src/lib.rs | 4 ++-- crates/iota/src/client_commands.rs | 4 ++-- crates/iota/src/unit_tests/profiler_tests.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/iota-sdk/src/lib.rs b/crates/iota-sdk/src/lib.rs index b6f4e03b537..e35306a3824 100644 --- a/crates/iota-sdk/src/lib.rs +++ b/crates/iota-sdk/src/lib.rs @@ -118,8 +118,8 @@ pub const IOTA_COIN_TYPE: &str = "0x2::iota::IOTA"; pub const IOTA_LOCAL_NETWORK_URL: &str = "http://127.0.0.1:9000"; pub const IOTA_LOCAL_NETWORK_URL_0: &str = "http://0.0.0.0:9000"; pub const IOTA_LOCAL_NETWORK_GAS_URL: &str = "http://127.0.0.1:5003/gas"; -pub const IOTA_DEVNET_URL: &str = "https://fullnode.devnet.iota.io:443"; -pub const IOTA_TESTNET_URL: &str = "https://fullnode.testnet.iota.io:443"; +pub const IOTA_DEVNET_URL: &str = "https://api.devnet.iota.cafe"; +pub const IOTA_TESTNET_URL: &str = "https://api.testnet.iota.cafe"; /// Builder for creating an [IotaClient] for connecting to the Iota network. /// diff --git a/crates/iota/src/client_commands.rs b/crates/iota/src/client_commands.rs index 9c0f68f3b25..7e57bc5ff86 100644 --- a/crates/iota/src/client_commands.rs +++ b/crates/iota/src/client_commands.rs @@ -1541,8 +1541,8 @@ impl IotaClientCommands { if let Ok(env) = active_env { let network = match env.rpc().as_str() { - IOTA_DEVNET_URL => "https://faucet.devnet.iota.io/v1/gas", - IOTA_TESTNET_URL => "https://faucet.testnet.iota.io/v1/gas", + IOTA_DEVNET_URL => "https://faucet.devnet.iota.cafe/gas", + IOTA_TESTNET_URL => "https://faucet.testnet.iota.cafe/gas", IOTA_LOCAL_NETWORK_URL | IOTA_LOCAL_NETWORK_URL_0 => { "http://127.0.0.1:9123/gas" } diff --git a/crates/iota/src/unit_tests/profiler_tests.rs b/crates/iota/src/unit_tests/profiler_tests.rs index 75730d1762b..f9b6aadf208 100644 --- a/crates/iota/src/unit_tests/profiler_tests.rs +++ b/crates/iota/src/unit_tests/profiler_tests.rs @@ -48,7 +48,7 @@ async fn test_profiler() { let output_dir = tempdir().unwrap(); let profile_output = output_dir.path().join("profile.json"); - let testnet_url = "https://fullnode.testnet.iota.io:443".to_string(); + let testnet_url = "https://api.testnet.iota.cafe".to_string(); let tx_digest = "98KxVD14f2JgceKx4X27HaVAA2YGJ3Aazf6Y4tabpHa8".to_string(); let cmd = ReplayToolCommand::ProfileTransaction { From 44f425c92d6e91e4b18b1cd307cfab83528ad81f Mon Sep 17 00:00:00 2001 From: Thoralf-M Date: Mon, 11 Nov 2024 14:53:52 +0100 Subject: [PATCH 2/2] fix, use v1/gas urls --- crates/iota/src/client_commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/iota/src/client_commands.rs b/crates/iota/src/client_commands.rs index 7e57bc5ff86..3ddd783aac7 100644 --- a/crates/iota/src/client_commands.rs +++ b/crates/iota/src/client_commands.rs @@ -1541,8 +1541,8 @@ impl IotaClientCommands { if let Ok(env) = active_env { let network = match env.rpc().as_str() { - IOTA_DEVNET_URL => "https://faucet.devnet.iota.cafe/gas", - IOTA_TESTNET_URL => "https://faucet.testnet.iota.cafe/gas", + IOTA_DEVNET_URL => "https://faucet.devnet.iota.cafe/v1/gas", + IOTA_TESTNET_URL => "https://faucet.testnet.iota.cafe/v1/gas", IOTA_LOCAL_NETWORK_URL | IOTA_LOCAL_NETWORK_URL_0 => { "http://127.0.0.1:9123/gas" }