From f6f0ff07c8fa07ef18b67e9b888cd1f72cd6c5a2 Mon Sep 17 00:00:00 2001 From: Sophie Dankel <47993817+sdankel@users.noreply.github.com> Date: Sat, 11 Jan 2025 16:37:18 -0800 Subject: [PATCH] chore: remove beta networks (#229) Closes https://github.com/FuelLabs/forc-wallet/issues/228 --- src/account.rs | 20 -------------------- src/lib.rs | 12 ------------ 2 files changed, 32 deletions(-) diff --git a/src/account.rs b/src/account.rs index 46b3f49..f6fcb99 100644 --- a/src/account.rs +++ b/src/account.rs @@ -264,17 +264,9 @@ pub(crate) fn verify_address_and_update_cache( } pub(crate) fn print_balance_empty(node_url: &Url) { - let beta_2_url = crate::network::BETA_2.parse::().unwrap(); - let beta_3_url = crate::network::BETA_3.parse::().unwrap(); - let beta_4_url = crate::network::BETA_4.parse::().unwrap(); - let beta_5_url = crate::network::BETA_5.parse::().unwrap(); let testnet_url = crate::network::TESTNET.parse::().unwrap(); let faucet_url = match node_url.host_str() { - host if host == beta_2_url.host_str() => crate::network::BETA_2_FAUCET, - host if host == beta_3_url.host_str() => crate::network::BETA_3_FAUCET, - host if host == beta_4_url.host_str() => crate::network::BETA_4_FAUCET, - host if host == beta_5_url.host_str() => crate::network::BETA_5_FAUCET, host if host == testnet_url.host_str() => crate::network::TESTNET_FAUCET, _ => return println!(" Account empty."), }; @@ -575,18 +567,6 @@ pub(crate) async fn transfer_cli( host if host == crate::network::TESTNET.parse::().unwrap().host_str() => { crate::explorer::TESTNET } - host if host == crate::network::BETA_5.parse::().unwrap().host_str() => { - crate::explorer::BETA_5 - } - host if host == crate::network::BETA_4.parse::().unwrap().host_str() => { - crate::explorer::BETA_4 - } - host if host == crate::network::BETA_3.parse::().unwrap().host_str() => { - crate::explorer::BETA_3 - } - host if host == crate::network::BETA_2.parse::().unwrap().host_str() => { - crate::explorer::BETA_2 - } _ => "", }; diff --git a/src/lib.rs b/src/lib.rs index 89ac734..23a564e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,14 +12,6 @@ pub const DEFAULT_CACHE_ACCOUNTS: usize = 1; /// The default network used in the case that none is specified. pub mod network { pub const DEFAULT: &str = MAINNET; - pub const BETA_2: &str = "https://node-beta-2.fuel.network"; - pub const BETA_2_FAUCET: &str = "https://faucet-beta-2.fuel.network"; - pub const BETA_3: &str = "https://beta-3.fuel.network/"; - pub const BETA_3_FAUCET: &str = "https://faucet-beta-3.fuel.network/"; - pub const BETA_4: &str = "https://beta-4.fuel.network/"; - pub const BETA_4_FAUCET: &str = "https://faucet-beta-4.fuel.network/"; - pub const BETA_5: &str = "https://beta-5.fuel.network/"; - pub const BETA_5_FAUCET: &str = "https://faucet-beta-5.fuel.network/"; pub const TESTNET: &str = "https://testnet.fuel.network/"; pub const TESTNET_FAUCET: &str = "https://faucet-testnet.fuel.network/"; pub const MAINNET: &str = "https://mainnet.fuel.network/"; @@ -28,10 +20,6 @@ pub mod network { /// Contains definitions of URLs to the block explorer for each network. pub mod explorer { pub const DEFAULT: &str = MAINNET; - pub const BETA_2: &str = "https://fuellabs.github.io/block-explorer-v2/beta-2"; - pub const BETA_3: &str = "https://fuellabs.github.io/block-explorer-v2/beta-3"; - pub const BETA_4: &str = "https://fuellabs.github.io/block-explorer-v2/beta-4"; - pub const BETA_5: &str = "https://fuellabs.github.io/block-explorer-v2/beta-5"; pub const TESTNET: &str = "https://app-testnet.fuel.network"; pub const MAINNET: &str = "https://app.fuel.network"; }