Real-Dev-Squad / website-crypto

RDS bank where you can view and manage your currency
https://crypto.realdevsquad.com/
MIT License
8 stars 64 forks source link

Miner design #195

Open ankushdharkar opened 3 years ago

ankushdharkar commented 3 years ago

Introduction

Miner efficiency matrix

Miner-1

Name Value
Name: Gold Thrust
Max Scraping capacity: 1 gold coin / 24 hours
Cost: 10000 Dinero
Annual Maintenance Contract: 500 Dinero
Life span: 10000 hours
Efficiency: value
Upto 5 hours: 100%
next 3 hours: 80%
next 2 hours: 60%
Over heat: After 10 hours
next 2 hours: 20%
Repair cost: 100 dineros
Burn out: After 12 hours
Repair cost: Replace

Miner-2

Name Value
Name: Silver Burst
Max Scraping capacity: 1 silver coin / 24 hours
Cost: 5000 Dinero
Annual Maintenance Contract: 150 Dinero
Life span: 15000 hours

Efficiency : value Upto 5 hours: | 100% next 3 hours: | 80% next 2 hours: | 60% Over heat: | After 10 hours next 2 hours: | 20% Repair cost: | 100 dineros Burn out: | After 12 hours Repair cost: | Replace

Application Program Interface

/users/miners/add?user=<userId>&payload=<minerDdata>
/users/miners/list?user=<userId>
/users/miners/list?user=<userId>&status=<active|repair|destroyed>
/users/miners/update?user=<userId>&miner=<minerId>&payload=<{currency:'neelam', quantity:20}>

/miners/add
/miners/update
/miners/list

/mining?operate=<start|stop|pause>&payload=<TransactionData>
rajakvk commented 3 years ago

Minting Screen Flow

Home page => Login => User Dashboard User Dashboard => Miner Market

User Dashboard

Visible elements

Features:

  1. Start, Restart, Pause individual miner
  2. Add Miner (redirect to [Miner Market])

Miner Market

A. For User Screen Flow Miner List view => Miner detailed view

Visible elements

  1. List of miners available to purchase

Features

  1. Sort
  2. Filter
  3. Purchase

B. For Admin Screen flow TBD Visible elements TBD

Features

  1. Add miner
  2. Revoke miner
  3. Offers
  4. Promotions
  5. Campaigns

Miner Pit Shop

  1. Job card
  2. Repair Estimate
  3. Invoice
  4. Delivery Challan

    @ankushdharkar for review