feat: rename farmer to resource provider across codebase and update terminology
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="/dashboard/farmer" class="btn btn-outline-info w-100 mb-2">
|
||||
<a href="/dashboard/resource_provider" class="btn btn-outline-info w-100 mb-2">
|
||||
<i class="bi bi-hdd-rack me-2"></i> Add a Mycelium Node
|
||||
</a>
|
||||
</div>
|
||||
@@ -117,11 +117,11 @@
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-3 mb-4">
|
||||
<div class="dashboard-card">
|
||||
<span class="badge bg-success badge-role">FARMER</span>
|
||||
<h4>Farmer Dashboard</h4>
|
||||
<span class="badge bg-success badge-role">RESOURCE PROVIDER</span>
|
||||
<h4>Resource Provider Dashboard</h4>
|
||||
<p>Manage your nodes, create slices, set pricing, and track earnings.</p>
|
||||
<div class="d-grid">
|
||||
<a href="/dashboard/farmer" class="btn btn-sm btn-outline-success">Access Farmer Dashboard</a>
|
||||
<a href="/dashboard/resource_provider" class="btn btn-sm btn-outline-success">Access Resource Provider Dashboard</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if active_section == 'farmer' %}active{% endif %}" href="/dashboard/farmer">
|
||||
<a class="nav-link {% if active_section == 'resource_provider' %}active{% endif %}" href="/dashboard/resource_provider">
|
||||
<i class="bi bi-hdd-rack me-1"></i>
|
||||
Farmer
|
||||
Resource Provider
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{% extends "dashboard/layout.html" %}
|
||||
|
||||
{% block title %}ThreeFold Dashboard - Farmer{% endblock %}
|
||||
{% block title %}ThreeFold Dashboard - Resource Provider{% endblock %}
|
||||
|
||||
{% block dashboard_content %}
|
||||
<div class="my-4">
|
||||
<h1>Farmer Dashboard</h1>
|
||||
<h1>Resource Provider Dashboard</h1>
|
||||
<p class="lead">Manage your nodes, configure slices, and monitor earnings</p>
|
||||
|
||||
<!-- Status Summary -->
|
||||
@@ -13,8 +13,8 @@
|
||||
<div class="stats-card success">
|
||||
<h5 class="card-title">Active Nodes</h5>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h2 class="mb-0" id="active-nodes-count">{{ farmer_stats.online_nodes }}</h2>
|
||||
<small class="text-muted">of {{ farmer_stats.total_nodes }} total</small>
|
||||
<h2 class="mb-0" id="active-nodes-count">{{ resource provider_stats.online_nodes }}</h2>
|
||||
<small class="text-muted">of {{ resource provider_stats.total_nodes }} total</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -22,8 +22,8 @@
|
||||
<div class="stats-card primary">
|
||||
<h5 class="card-title">Allocated Slices</h5>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h2 class="mb-0" id="active-slices-count">{{ farmer_stats.allocated_base_slices }}</h2>
|
||||
<small class="text-muted">of {{ farmer_stats.total_base_slices }} total</small>
|
||||
<h2 class="mb-0" id="active-slices-count">{{ resource provider_stats.allocated_base_slices }}</h2>
|
||||
<small class="text-muted">of {{ resource provider_stats.total_base_slices }} total</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
<div class="stats-card warning">
|
||||
<h5 class="card-title">Monthly Earnings</h5>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h2 class="mb-0" id="monthly-earnings">{{ farmer_stats.monthly_earnings }}</h2>
|
||||
<h2 class="mb-0" id="monthly-earnings">{{ resource provider_stats.monthly_earnings }}</h2>
|
||||
<small class="text-muted">$/month</small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -187,7 +187,7 @@
|
||||
<div class="stats-card primary">
|
||||
<h6 class="card-title">Total Base Slices</h6>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h3 class="mb-0" id="total-base-slices">{{ farmer_stats.total_base_slices }}</h3>
|
||||
<h3 class="mb-0" id="total-base-slices">{{ resource provider_stats.total_base_slices }}</h3>
|
||||
<small class="text-muted">Available</small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -196,7 +196,7 @@
|
||||
<div class="stats-card success">
|
||||
<h6 class="card-title">Allocated Slices</h6>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h3 class="mb-0" id="allocated-base-slices">{{ farmer_stats.allocated_base_slices }}</h3>
|
||||
<h3 class="mb-0" id="allocated-base-slices">{{ resource provider_stats.allocated_base_slices }}</h3>
|
||||
<small class="text-muted">Rented</small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -205,7 +205,7 @@
|
||||
<div class="stats-card info">
|
||||
<h6 class="card-title">Available Slices</h6>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h3 class="mb-0" id="available-base-slices">{{ farmer_stats.available_base_slices }}</h3>
|
||||
<h3 class="mb-0" id="available-base-slices">{{ resource provider_stats.available_base_slices }}</h3>
|
||||
<small class="text-muted">For Rent</small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -214,7 +214,7 @@
|
||||
<div class="stats-card warning">
|
||||
<h6 class="card-title">Utilization</h6>
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
<h3 class="mb-0" id="slice-utilization">{{ farmer_stats.slice_utilization_percentage }}%</h3>
|
||||
<h3 class="mb-0" id="slice-utilization">{{ resource provider_stats.slice_utilization_percentage }}%</h3>
|
||||
<small class="text-muted">Capacity</small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -238,8 +238,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="node-slices-table">
|
||||
{% if farmer_nodes %}
|
||||
{% for node in farmer_nodes %}
|
||||
{% if resource provider_nodes %}
|
||||
{% for node in resource provider_nodes %}
|
||||
<tr>
|
||||
<td>
|
||||
<div class="d-flex align-items-center">
|
||||
@@ -396,8 +396,8 @@
|
||||
{{ super() }}
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.7.1/dist/chart.min.js"></script>
|
||||
|
||||
<!-- Load farmer dashboard JavaScript -->
|
||||
<script src="/static/js/dashboard-farmer.js"></script>
|
||||
<!-- Load resource provider dashboard JavaScript -->
|
||||
<script src="/static/js/dashboard-resource_provider.js"></script>
|
||||
|
||||
<style>
|
||||
/* Ensure charts have consistent sizes */
|
||||
@@ -55,7 +55,7 @@
|
||||
<div class="display-4 mb-3 text-success">
|
||||
<i class="bi bi-hdd-rack"></i>
|
||||
</div>
|
||||
<h5>As a Farmer</h5>
|
||||
<h5>As a Resource Provider</h5>
|
||||
<p>Manage nodes, configure slices, set pricing</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><i class="bi bi-people me-2 text-success"></i>Community Building</h5>
|
||||
<p class="card-text">Connects hardware providers with potential farmers</p>
|
||||
<p class="card-text">Connects hardware providers with potential resource providers</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<div class="col-md-6">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><i class="bi bi-hdd-rack me-2"></i>Farmers</h5>
|
||||
<h5 class="card-title"><i class="bi bi-hdd-rack me-2"></i>Resource Providers</h5>
|
||||
<p class="card-text">Contribute compute capacity to the ThreeFold Grid and earn through the platform's ecosystem.</p>
|
||||
<a href="/docs" class="btn btn-outline-primary">Learn More</a>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Farmers Terms and Conditions - Project Mycelium{% endblock %}
|
||||
{% block title %}Resource Providers Terms and Conditions - Project Mycelium{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container my-5">
|
||||
@@ -9,25 +9,25 @@
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="/terms">Terms and Conditions</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Farmers</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Resource Providers</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="d-flex align-items-center mb-4">
|
||||
<i class="bi bi-hdd-rack fs-1 me-3 text-primary"></i>
|
||||
<h1>Farmers Terms and Conditions</h1>
|
||||
<h1>Resource Providers Terms and Conditions</h1>
|
||||
</div>
|
||||
<p class="lead mb-4">Last updated: May 22, 2025</p>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<p class="mb-0">These terms specifically apply to Farmers (Resource Providers) on the Project Mycelium who contribute capacity to the Mycelium Grid.</p>
|
||||
<p class="mb-0">These terms specifically apply to Resource Providers (Resource Providers) on the Project Mycelium who contribute capacity to the Mycelium Grid.</p>
|
||||
</div>
|
||||
|
||||
<h2>1. Definition of a Farmer</h2>
|
||||
<p>A "Farmer" refers to any individual or entity that connects hardware resources to the Mycelium Grid, including but not limited to compute nodes (Mycelium Nodes), storage capacity, network infrastructure, or other compatible devices that contribute to the Mycelium Grid's capacity.</p>
|
||||
<h2>1. Definition of a Resource Provider</h2>
|
||||
<p>A "Resource Provider" refers to any individual or entity that connects hardware resources to the Mycelium Grid, including but not limited to compute nodes (Mycelium Nodes), storage capacity, network infrastructure, or other compatible devices that contribute to the Mycelium Grid's capacity.</p>
|
||||
|
||||
<h2>2. Farmer Responsibilities</h2>
|
||||
<p>As a Farmer on the Project Mycelium, you agree to:</p>
|
||||
<h2>2. Resource Provider Responsibilities</h2>
|
||||
<p>As a Resource Provider on the Project Mycelium, you agree to:</p>
|
||||
<ul>
|
||||
<li>Maintain your connected hardware in good working condition with adequate internet connectivity</li>
|
||||
<li>Ensure your hardware meets the minimum technical requirements specified in the Farming documentation</li>
|
||||
@@ -37,7 +37,7 @@
|
||||
</ul>
|
||||
|
||||
<h2>3. Reputation System and Staking</h2>
|
||||
<p>The Project Mycelium employs a reputation system that affects farmer visibility and rewards:</p>
|
||||
<p>The Project Mycelium employs a reputation system that affects resource provider visibility and rewards:</p>
|
||||
<ul>
|
||||
<li>Your reputation score is calculated based on multiple factors including uptime, staked Credits, and performance metrics</li>
|
||||
<li>Staking Credits increases your reputation score and may qualify you for additional benefits</li>
|
||||
@@ -48,10 +48,10 @@
|
||||
<h2>4. Rewards and Credits</h2>
|
||||
<p>Compensation for resource contribution is governed by the following principles:</p>
|
||||
<ul>
|
||||
<li>Farmers receive USD Credits based on the resources utilized from their contributed capacity</li>
|
||||
<li>Resource Providers receive USD Credits based on the resources utilized from their contributed capacity</li>
|
||||
<li>Credits have a fixed value of 1.0 USD per Credit</li>
|
||||
<li>Earned Credits can be exchanged for fiat currencies or other supported tokens through the available liquidity pools</li>
|
||||
<li>Payment schedules and minimum thresholds are detailed in the Farmer dashboard</li>
|
||||
<li>Payment schedules and minimum thresholds are detailed in the Resource Provider dashboard</li>
|
||||
</ul>
|
||||
|
||||
<h2>5. Hardware and Capacity</h2>
|
||||
@@ -72,8 +72,8 @@
|
||||
<li>Slashing penalties may include reputation reduction, temporary suspension, or in severe cases, permanent removal from the marketplace</li>
|
||||
</ul>
|
||||
|
||||
<h2>7. Termination of Farmer Status</h2>
|
||||
<p>You may cease being a Farmer by:</p>
|
||||
<h2>7. Termination of Resource Provider Status</h2>
|
||||
<p>You may cease being a Resource Provider by:</p>
|
||||
<ul>
|
||||
<li>Disconnecting your hardware from the Mycelium Grid</li>
|
||||
<li>Providing notice through your dashboard at least 30 days prior to complete disconnection</li>
|
||||
@@ -81,7 +81,7 @@
|
||||
</ul>
|
||||
|
||||
<h2>8. Liability Limitation</h2>
|
||||
<p>As a Farmer, you acknowledge that:</p>
|
||||
<p>As a Resource Provider, you acknowledge that:</p>
|
||||
<ul>
|
||||
<li>ThreeFold is not responsible for any damage to your hardware resulting from normal operation</li>
|
||||
<li>ThreeFold does not guarantee minimum income or utilization rates for your contributed capacity</li>
|
||||
@@ -90,7 +90,7 @@
|
||||
|
||||
<div class="alert alert-warning mt-5">
|
||||
<h5 class="alert-heading">Important Note</h5>
|
||||
<p class="mb-0">These Farmer-specific terms are in addition to the <a href="/terms">General Terms and Conditions</a> that apply to all users of the Project Mycelium. Please ensure you have reviewed both documents.</p>
|
||||
<p class="mb-0">These Resource Provider-specific terms are in addition to the <a href="/terms">General Terms and Conditions</a> that apply to all users of the Project Mycelium. Please ensure you have reviewed both documents.</p>
|
||||
</div>
|
||||
|
||||
<div class="text-center mt-5 mb-3">
|
||||
@@ -18,9 +18,9 @@
|
||||
<div class="card h-100 shadow-sm">
|
||||
<div class="card-body text-center">
|
||||
<i class="bi bi-hdd-rack fs-1 mb-3 text-primary"></i>
|
||||
<h5 class="card-title">Farmers</h5>
|
||||
<h5 class="card-title">Resource Providers</h5>
|
||||
<p class="card-text">Resource Providers contributing capacity to the ThreeFold Grid</p>
|
||||
<a href="/terms/farmers" class="btn btn-outline-primary mt-3">View Terms</a>
|
||||
<a href="/terms/resource providers" class="btn btn-outline-primary mt-3">View Terms</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -129,8 +129,8 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="provider-name">
|
||||
{% if product_data.product.attributes.farmer_email %}
|
||||
{{ product_data.product.attributes.farmer_email.value | truncate(length=15) }}
|
||||
{% if product_data.product.attributes.resource provider_email %}
|
||||
{{ product_data.product.attributes.resource provider_email.value | truncate(length=15) }}
|
||||
{% else %}
|
||||
{% if product_data.product.provider %}{{ product_data.product.provider }}{% else %}Unknown{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<h5 class="alert-heading">What are Mycelium Nodes?</h5>
|
||||
<p>Mycelium Nodes are the physical hardware units that make up the Mycelium Grid. These certified servers provide compute, storage, and network capacity to the decentralized internet infrastructure.</p>
|
||||
<hr>
|
||||
<p class="mb-0">By purchasing a Mycelium Node, you become a farmer in the Mycelium ecosystem, earning MC rewards while contributing to the decentralized internet.</p>
|
||||
<p class="mb-0">By purchasing a Mycelium Node, you become a resource provider in the Mycelium ecosystem, earning MC rewards while contributing to the decentralized internet.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -302,7 +302,7 @@
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title">Become a Mycelium Farmer</h3>
|
||||
<h3 class="card-title">Become a Mycelium Resource Provider</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h5>1. Purchase Your Mycelium Node</h5>
|
||||
@@ -322,7 +322,7 @@
|
||||
|
||||
<div class="alert alert-info mt-3">
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
<strong>ROI Potential:</strong> Mycelium Node farmers typically see return on investment within 2-4 years, depending on grid utilization and MC price.
|
||||
<strong>ROI Potential:</strong> Mycelium Node resource providers typically see return on investment within 2-4 years, depending on grid utilization and MC price.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<strong>Node:</strong> {{ slice.node_id }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<strong>Farmer:</strong> {{ slice.farmer_email }}
|
||||
<strong>Resource Provider:</strong> {{ slice.resource provider_email }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<strong>Specifications:</strong>
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="card-body">
|
||||
<form id="sliceRentalForm" method="POST" action="/marketplace/slice/rent">
|
||||
<!-- Hidden fields -->
|
||||
<input type="hidden" name="farmer_email" value="{{ farmer_email }}">
|
||||
<input type="hidden" name="resource provider_email" value="{{ resource provider_email }}">
|
||||
<input type="hidden" name="node_id" value="{{ node_id }}">
|
||||
<input type="hidden" name="combination_id" value="{{ combination_id }}">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user