Skip to content

Commit

Permalink
feature: add support for antminer D7
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed Nov 18, 2024
1 parent cb3c50d commit 3fa1cb1
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyasic/device/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AntminerModels(str, Enum):
KS5 = "KS5"
L7 = "L7"
K7 = "K7"
D7 = "D7"
E9Pro = "E9Pro"
S9 = "S9"
S9i = "S9i"
Expand Down
21 changes: 21 additions & 0 deletions pyasic/miners/antminer/bmminer/X7/D7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ------------------------------------------------------------------------------
# Copyright 2022 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.miners.backends import AntminerModern
from pyasic.miners.device.models import D7


class BMMinerD7(AntminerModern, D7):
pass
1 change: 1 addition & 0 deletions pyasic/miners/antminer/bmminer/X7/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from .D7 import BMMinerD7
from .K7 import BMMinerK7
from .L7 import BMMinerL7
24 changes: 24 additions & 0 deletions pyasic/miners/device/models/antminer/X7/D7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ------------------------------------------------------------------------------
# Copyright 2022 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 AntMinerMake


class D7(AntMinerMake):
raw_model = MinerModel.ANTMINER.D7

expected_fans = 4
expected_chips = 70
1 change: 1 addition & 0 deletions pyasic/miners/device/models/antminer/X7/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from .D7 import D7
from .K7 import K7
from .L7 import L7
1 change: 1 addition & 0 deletions pyasic/miners/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class MinerTypes(enum.Enum):
"ANTMINER KS5": BMMinerKS5,
"ANTMINER L7": BMMinerL7,
"ANTMINER K7": BMMinerK7,
"ANTMINER D7": BMMinerD7,
"ANTMINER E9 PRO": BMMinerE9Pro,
"ANTMINER D9": BMMinerD9,
"ANTMINER S9": BMMinerS9,
Expand Down

0 comments on commit 3fa1cb1

Please sign in to comment.