feature: add support for hammer D10 and hammer discovery
This commit is contained in:
@@ -52,3 +52,7 @@ class BitAxeMake(BaseMiner):
|
||||
|
||||
class IceRiverMake(BaseMiner):
|
||||
make = MinerMake.ICERIVER
|
||||
|
||||
|
||||
class HammerMake(BaseMiner):
|
||||
make = MinerMake.HAMMER
|
||||
|
||||
@@ -19,6 +19,7 @@ from .auradine import *
|
||||
from .avalonminer import *
|
||||
from .epic import *
|
||||
from .goldshell import *
|
||||
from .hammer import *
|
||||
from .iceriver import *
|
||||
from .innosilicon import *
|
||||
from .whatsminer import *
|
||||
|
||||
21
pyasic/miners/device/models/hammer/DX/D10.py
Normal file
21
pyasic/miners/device/models/hammer/DX/D10.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright 2024 Upstream Data Inc -
|
||||
# -
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||
# you may not use this file except in compliance with the License. -
|
||||
# You may obtain a copy of the License at -
|
||||
# -
|
||||
# http://www.apache.org/licenses/LICENSE-2.0 -
|
||||
# -
|
||||
# Unless required by applicable law or agreed to in writing, software -
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||
# See the License for the specific language governing permissions and -
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
from pyasic.device.models import MinerModel
|
||||
from pyasic.miners.device.makes import HammerMake
|
||||
|
||||
|
||||
class D10(HammerMake):
|
||||
raw_model = MinerModel.HAMMER.D10
|
||||
1
pyasic/miners/device/models/hammer/DX/__init__.py
Normal file
1
pyasic/miners/device/models/hammer/DX/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .D10 import D10
|
||||
1
pyasic/miners/device/models/hammer/__init__.py
Normal file
1
pyasic/miners/device/models/hammer/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .DX import *
|
||||
Reference in New Issue
Block a user