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