feat: rename ThreeFold to Mycelium in copyright, docs, specs, and UI across codebase

This commit is contained in:
mik-tf
2025-09-08 13:45:02 -04:00
parent 8d66810688
commit c054ceb24d
22 changed files with 146 additions and 146 deletions

View File

@@ -238,7 +238,7 @@ impl ResourceProviderService {
Ok(node)
}
/// Add a new node from ThreeFold Grid (automatic creation with real data)
/// Add a new node from Mycelium Grid (automatic creation with real data)
pub async fn add_node_from_grid(&self, user_email: &str, grid_node_id: u32) -> Result<FarmNode, String> {
// Load existing data and check for duplicates more thoroughly
let mut persistent_data = UserPersistence::load_user_data(user_email)
@@ -1285,7 +1285,7 @@ impl ResourceProviderService {
// GRID NODE MANAGEMENT
// =============================================================================
/// Add a node from ThreeFold Grid by node ID
/// Add a node from Mycelium Grid by node ID
pub async fn add_grid_node(&self, user_email: &str, grid_node_id: u32, _slice_format: Option<String>, _slice_price: Option<Decimal>) -> Result<FarmNode, String> {
// Check for duplicate grid node IDs first
let existing_nodes = self.get_resource_provider_nodes(user_email);
@@ -1295,7 +1295,7 @@ impl ResourceProviderService {
// Validate node exists on grid
if !self.grid_service.validate_node_exists(grid_node_id).await? {
return Err(format!("Node {} does not exist on ThreeFold Grid", grid_node_id));
return Err(format!("Node {} does not exist on Mycelium Grid", grid_node_id));
}
// Fetch node data from grid
@@ -1352,7 +1352,7 @@ impl ResourceProviderService {
// Validate and fetch grid data
if !self.grid_service.validate_node_exists(grid_node_id).await.map_err(|e| e.to_string())? {
return Err(format!("Node {} does not exist on ThreeFold Grid", grid_node_id));
return Err(format!("Node {} does not exist on Mycelium Grid", grid_node_id));
}
let grid_data = self.grid_service.fetch_node_data(grid_node_id).await.map_err(|e| e.to_string())?;
@@ -2314,7 +2314,7 @@ impl ResourceProviderService {
Ok(())
}
/// Sync all nodes with ThreeFold Grid
/// Sync all nodes with Mycelium Grid
pub fn sync_all_nodes_with_grid(&self, user_email: &str) -> Result<u32, String> {
let mut persistent_data = UserPersistence::load_user_data(user_email)
.ok_or("User data not found")?;
@@ -2479,7 +2479,7 @@ impl ResourceProviderService {
pub async fn fetch_and_validate_grid_node(&self, grid_node_id: u32) -> Result<crate::models::user::GridNodeData, String> {
// Validate node exists on grid
if !self.grid_service.validate_node_exists(grid_node_id).await? {
return Err(format!("Node {} does not exist on ThreeFold Grid", grid_node_id));
return Err(format!("Node {} does not exist on Mycelium Grid", grid_node_id));
}
// Fetch node data from grid
@@ -2852,7 +2852,7 @@ impl ResourceProviderService {
Ok(updated_count)
}
/// Sync all nodes with ThreeFold Grid (async version)
/// Sync all nodes with Mycelium Grid (async version)
pub async fn sync_all_nodes_with_grid_async(&self, user_email: &str) -> Result<u32, String> {
let mut persistent_data = UserPersistence::load_user_data(user_email)
.ok_or("User data not found")?;