Skip to content

Commit 83035a8

Browse files
authored
feature: Add Support for Avalon Nano 3s (#329)
1 parent 4c104a5 commit 83035a8

File tree

9 files changed

+35
-4
lines changed

9 files changed

+35
-4
lines changed

docs/miners/avalonminer/nano.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@
1414
show_root_heading: false
1515
heading_level: 0
1616

17+
## Avalon Nano 3s (Stock)
18+
19+
- [ ] Shutdowns
20+
- [ ] Power Modes
21+
- [ ] Setpoints
22+
- [ ] Presets
23+
24+
::: pyasic.miners.avalonminer.cgminer.nano.nano3.CGMinerAvalonNano3s
25+
handler: python
26+
options:
27+
show_root_heading: false
28+
heading_level: 0
29+

docs/miners/supported_types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ details {
554554
<ul>
555555
<li><a href="../avalonminer/nano#avalon-nano-3-stock">Avalon Nano 3 (Stock)</a></li>
556556
</ul>
557+
<ul>
558+
<li><a href="../avalonminer/nano#avalon-nano-3s-stock">Avalon Nano 3s (Stock)</a></li>
559+
</ul>
557560
</details>
558561
<details>
559562
<summary>A15X Series:</summary>

pyasic/device/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ class AvalonminerModels(MinerModelType):
451451
Avalon1246 = "Avalon 1246"
452452
Avalon1566 = "Avalon 1566"
453453
AvalonNano3 = "Avalon Nano 3"
454+
AvalonNano3s = "Avalon Nano 3s"
454455

455456
def __str__(self):
456457
return self.value

pyasic/miners/avalonminer/cgminer/nano/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# limitations under the License. -
1515
# ------------------------------------------------------------------------------
1616

17-
from .nano3 import CGMinerAvalonNano3
17+
from .nano3 import CGMinerAvalonNano3, CGMinerAvalonNano3s

pyasic/miners/avalonminer/cgminer/nano/nano3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
RPCAPICommand,
2525
WebAPICommand,
2626
)
27-
from pyasic.miners.device.models import AvalonNano3
27+
from pyasic.miners.device.models import AvalonNano3, AvalonNano3s
2828
from pyasic.web.avalonminer import AvalonMinerWebAPI
2929

3030
AVALON_NANO_DATA_LOC = DataLocations(
@@ -105,3 +105,7 @@ async def _get_mac(self, web_minerinfo: dict) -> Optional[dict]:
105105
return mac.upper()
106106
except (KeyError, ValueError):
107107
pass
108+
109+
110+
class CGMinerAvalonNano3s(AvalonMiner, AvalonNano3s):
111+
pass
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .nano3 import AvalonNano3
1+
from .nano3 import AvalonNano3, AvalonNano3s

pyasic/miners/device/models/avalonminer/nano/nano3.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ class AvalonNano3(AvalonMinerMake):
1010
expected_chips = 10
1111
expected_fans = 1
1212
algo = MinerAlgo.SHA256
13+
14+
15+
class AvalonNano3s(AvalonMinerMake):
16+
raw_model = MinerModel.AVALONMINER.AvalonNano3s
17+
18+
expected_hashboards = 1
19+
expected_chips = 12
20+
expected_fans = 1
21+
algo = MinerAlgo.SHA256

pyasic/miners/factory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ class MinerTypes(enum.Enum):
506506
"AVALONMINER 1166PRO": CGMinerAvalon1166Pro,
507507
"AVALONMINER 1246": CGMinerAvalon1246,
508508
"AVALONMINER NANO3": CGMinerAvalonNano3,
509+
"AVALON NANO3S": CGMinerAvalonNano3s,
509510
"AVALONMINER 15-194": CGMinerAvalon1566,
510511
},
511512
MinerTypes.INNOSILICON: {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyasic"
3-
version = "0.72.4"
3+
version = "0.72.5"
44

55
description = "A simplified and standardized interface for Bitcoin ASICs."
66
authors = [{name = "UpstreamData", email = "brett@upstreamdata.ca"}]

0 commit comments

Comments
 (0)