add support for some new whatsminers types, M31S+ v40 and v80, and improve documentation of supported types.

This commit is contained in:
UpstreamData
2022-09-26 11:32:55 -06:00
parent e94c81ce44
commit eda9804dea
8 changed files with 263 additions and 97 deletions

View File

@@ -16,6 +16,8 @@ from pyasic.miners._backends import BTMiner # noqa - Ignore access to _module
from pyasic.miners._types import (
M31SPlus,
M31SPlusVE20,
M31SPlusV40,
M31SPlusV80,
) # noqa - Ignore access to _module
@@ -29,3 +31,15 @@ class BTMinerM31SPlusVE20(BTMiner, M31SPlusVE20):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip
class BTMinerM31SPlusV40(BTMiner, M31SPlusV40):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip
class BTMinerM31SPlusV80(BTMiner, M31SPlusV80):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip