refactor: use protocol for BaseMiner and update attributes to be part of the class rather than a __init__ method.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"):
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user