changed the way antminers and whatsminers are handled in the factory to allow for more precision on chip counts
This commit is contained in:
12
miners/antminer/cgminer/X19/S19.py
Normal file
12
miners/antminer/cgminer/X19/S19.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS19(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S19"
|
||||
self.nominal_chips = 114
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS19: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X19/S19_Pro.py
Normal file
12
miners/antminer/cgminer/X19/S19_Pro.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS19Pro(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S19 Pro"
|
||||
self.nominal_chips = 114
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS19Pro: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X19/S19j.py
Normal file
12
miners/antminer/cgminer/X19/S19j.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS19j(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S19j"
|
||||
self.nominal_chips = 114
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS19j: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X19/S19j_Pro.py
Normal file
12
miners/antminer/cgminer/X19/S19j_Pro.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS19jPro(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S19j Pro"
|
||||
self.nominal_chips = 114
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS19jPro: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X19/T19.py
Normal file
12
miners/antminer/cgminer/X19/T19.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerT19(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "T19"
|
||||
self.nominal_chips = 114
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerT19: {str(self.ip)}"
|
||||
7
miners/antminer/cgminer/X19/__init__.py
Normal file
7
miners/antminer/cgminer/X19/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from .S19 import CGMinerS19
|
||||
from .S19_Pro import CGMinerS19Pro
|
||||
|
||||
from .S19j import CGMinerS19j
|
||||
from .S19j_Pro import CGMinerS19jPro
|
||||
|
||||
from .T19 import CGMinerT19
|
||||
Reference in New Issue
Block a user