refactor: use protocol for BaseMiner and update attributes to be part of the class rather than a __init__ method.

This commit is contained in:
UpstreamData
2024-01-16 14:47:43 -07:00
parent 10293ae24a
commit 307926afbb
135 changed files with 1469 additions and 3262 deletions

View File

@@ -32,7 +32,6 @@ class BFGMinerRPCAPI(CGMinerRPCAPI):
Parameters:
ip: The IP of the miner to reference the API on.
port: The port to reference the API on. Default is 4028.
"""
async def procs(self) -> dict:

View File

@@ -32,5 +32,4 @@ class BMMinerRPCAPI(CGMinerRPCAPI):
Parameters:
ip: The IP of the miner to reference the API on.
port: The port to reference the API on. Default is 4028.
"""

View File

@@ -32,7 +32,6 @@ class BOSMinerRPCAPI(BaseMinerRPCAPI):
Parameters:
ip: The IP of the miner to reference the API on.
port: The port to reference the API on. Default is 4028.
"""
async def asccount(self) -> dict:

View File

@@ -183,8 +183,6 @@ class BTMinerRPCAPI(BaseMinerRPCAPI):
Parameters:
ip: The IP of the miner to reference the API on.
port: The port to reference the API on. Default is 4028.
pwd: The admin password of the miner. Default is admin.
"""
def __init__(self, ip: str, port: int = 4028, api_ver: str = "0.0.0"):

View File

@@ -34,8 +34,6 @@ class CGMinerRPCAPI(BaseMinerRPCAPI):
Parameters:
ip: The IP of the miner to reference the API on.
port: The port to reference the API on. Default is 4028.
api_ver: The version of the API if known.
"""
async def multicommand(self, *commands: str, allow_warning: bool = True) -> dict:

View File

@@ -33,7 +33,6 @@ class LUXMinerRPCAPI(BaseMinerRPCAPI):
Parameters:
ip: The IP of the miner to reference the API on.
port: The port to reference the API on. Default is 4028.
"""
async def addgroup(self, name: str, quota: int) -> dict: