changed the way antminers and whatsminers are handled in the factory to allow for more precision on chip counts

This commit is contained in:
UpstreamData
2022-05-12 16:42:02 -06:00
parent 9d0d1a24d9
commit 06540efc98
81 changed files with 699 additions and 156 deletions

View File

@@ -0,0 +1,9 @@
from miners.btminer import BTMiner
class BTMinerM30S(BTMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
def __repr__(self) -> str:
return f"M30S - BTMiner: {str(self.ip)}"

View File

@@ -0,0 +1,9 @@
from miners.btminer import BTMiner
class BTMinerM30SPlus(BTMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
def __repr__(self) -> str:
return f"M30S+ - BTMiner: {str(self.ip)}"

View File

@@ -0,0 +1,9 @@
from miners.btminer import BTMiner
class BTMinerM30SPlusPlus(BTMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
def __repr__(self) -> str:
return f"M30S++ - BTMiner: {str(self.ip)}"

View File

@@ -0,0 +1,10 @@
from miners.btminer import BTMiner
class BTMinerM31S(BTMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.nominal_chips = 78
def __repr__(self) -> str:
return f"M31S - BTMiner: {str(self.ip)}"

View File

@@ -0,0 +1,10 @@
from miners.btminer import BTMiner
class BTMinerM31SPlus(BTMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.nominal_chips = 78
def __repr__(self) -> str:
return f"M31S+ - BTMiner: {str(self.ip)}"

View File

@@ -0,0 +1,10 @@
from miners.btminer import BTMiner
class BTMinerM32S(BTMiner):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.nominal_chips = 78
def __repr__(self) -> str:
return f"M32S - BTMiner: {str(self.ip)}"

View File

@@ -0,0 +1,8 @@
from .M30S import BTMinerM30S
from .M30S_Plus import BTMinerM30SPlus
from .M30S_Plus_Plus import BTMinerM30SPlusPlus
from .M31S import BTMinerM31S
from .M31S_Plus import BTMinerM31SPlus
from .M32S import BTMinerM32S