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

@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from pyasic.miners.backends import BFGMinerGoldshell
from pyasic.miners.backends import GoldshellMiner
from pyasic.miners.types import CK5
class BFGMinerCK5(BFGMinerGoldshell, CK5):
class GoldshellCK5(GoldshellMiner, CK5):
pass

View File

@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from pyasic.miners.backends import BFGMinerGoldshell
from pyasic.miners.backends import GoldshellMiner
from pyasic.miners.types import HS5
class BFGMinerHS5(BFGMinerGoldshell, HS5):
class GoldshellHS5(GoldshellMiner, HS5):
pass

View File

@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from pyasic.miners.backends import BFGMinerGoldshell
from pyasic.miners.backends import GoldshellMiner
from pyasic.miners.types import KD5
class BFGMinerKD5(BFGMinerGoldshell, KD5):
class GoldshellKD5(GoldshellMiner, KD5):
pass

View File

@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from .CK5 import BFGMinerCK5
from .HS5 import BFGMinerHS5
from .KD5 import BFGMinerKD5
from .CK5 import GoldshellCK5
from .HS5 import GoldshellHS5
from .KD5 import GoldshellKD5

View File

@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from pyasic.miners.backends import BFGMinerGoldshell
from pyasic.miners.backends import GoldshellMiner
from pyasic.miners.types import KDMax
class BFGMinerKDMax(BFGMinerGoldshell, KDMax):
class BFGMinerGoldshellKDMax(GoldshellMiner, KDMax):
pass

View File

@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from .KDMax import BFGMinerKDMax
from .KDMax import BFGMinerGoldshellKDMax