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/X17/S17.py
Normal file
12
miners/antminer/cgminer/X17/S17.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS17(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S17"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS17: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X17/S17_Plus.py
Normal file
12
miners/antminer/cgminer/X17/S17_Plus.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS17Plus(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S17+"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS17+: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X17/S17_Pro.py
Normal file
12
miners/antminer/cgminer/X17/S17_Pro.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS17Pro(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S17 Pro"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS17Pro: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X17/S17e.py
Normal file
12
miners/antminer/cgminer/X17/S17e.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS17e(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "S17e"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS17e: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X17/T17.py
Normal file
12
miners/antminer/cgminer/X17/T17.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerT17(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "T17"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerT17: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X17/T17_Plus.py
Normal file
12
miners/antminer/cgminer/X17/T17_Plus.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerT17Plus(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "T17+"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerT17+: {str(self.ip)}"
|
||||
12
miners/antminer/cgminer/X17/T17e.py
Normal file
12
miners/antminer/cgminer/X17/T17e.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerT17e(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "CGMiner"
|
||||
self.model = "T17e"
|
||||
self.nominal_chips = 65
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerT17e: {str(self.ip)}"
|
||||
8
miners/antminer/cgminer/X17/__init__.py
Normal file
8
miners/antminer/cgminer/X17/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from .S17 import CGMinerS17
|
||||
from .S17_Plus import CGMinerS17Plus
|
||||
from .S17_Pro import CGMinerS17Pro
|
||||
from .S17e import CGMinerS17e
|
||||
|
||||
from .T17 import CGMinerT17
|
||||
from .T17_Plus import CGMinerT17Plus
|
||||
from .T17e import CGMinerT17e
|
||||
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
|
||||
11
miners/antminer/cgminer/X9/S9.py
Normal file
11
miners/antminer/cgminer/X9/S9.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerS9(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.model = "S9"
|
||||
self.api_type = "CGMiner"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerS9: {str(self.ip)}"
|
||||
11
miners/antminer/cgminer/X9/T9.py
Normal file
11
miners/antminer/cgminer/X9/T9.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from miners.cgminer import CGMiner
|
||||
|
||||
|
||||
class CGMinerT9(CGMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.model = "T9"
|
||||
self.api_type = "CGMiner"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"CGMinerT9: {str(self.ip)}"
|
||||
2
miners/antminer/cgminer/X9/__init__.py
Normal file
2
miners/antminer/cgminer/X9/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .S9 import CGMinerS9
|
||||
from .T9 import CGMinerT9
|
||||
3
miners/antminer/cgminer/__init__.py
Normal file
3
miners/antminer/cgminer/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .X9 import *
|
||||
from .X17 import *
|
||||
from .X19 import *
|
||||
Reference in New Issue
Block a user