* feature: handle all hashrate algorithm conversions for antminers * feature: handle all hashrate algorithm conversions for auradine * feature: handle all hashrate algorithm conversions for avalonminers * feature: handle all hashrate algorithm conversions for bitaxe * feature: handle all hashrate algorithm conversions for epic * feature: handle all hashrate algorithm conversions for goldshell * refactor: clean up imports * feature: handle all hashrate algorithm conversions for hammer * feature: handle all hashrate algorithm conversions for iceriver * feature: handle all hashrate algorithm conversions for innosilicon * feature: handle all hashrate algorithm conversions for whatsminer * tests: update tests to check if miners have board, fan, and algo values * feature: finish updating all miners with boards, fans, and algos * feature: update algorithm default values * feature: add algorithm hashrate values * feature: improve hashrate types, and use `self.algo` inside miners --------- Co-authored-by: Upstream Data <brett@upstreamdata.ca>
18 lines
351 B
Python
18 lines
351 B
Python
from __future__ import annotations
|
|
|
|
from .base import MinerAlgoType
|
|
from .hashrate import EtHashHashRate
|
|
from .hashrate.unit import EtHashUnit
|
|
|
|
|
|
# make this json serializable
|
|
class _EtHashAlgo(MinerAlgoType):
|
|
hashrate = EtHashHashRate
|
|
unit = EtHashUnit
|
|
|
|
def __repr__(self):
|
|
return "EtHashAlgo"
|
|
|
|
|
|
EtHashAlgo = _EtHashAlgo("EtHash")
|