feature: finish support for most whatsminer subtypes.

This commit is contained in:
UpstreamData
2023-11-23 11:52:44 -07:00
parent 06bad1bbe0
commit 475054fbe0
11 changed files with 110 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
# ------------------------------------------------------------------------------
# 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 M3X
from pyasic.miners.types import M30KV10
class BTMinerM30KV10(M3X, M30KV10):
pass

View File

@@ -0,0 +1,22 @@
# ------------------------------------------------------------------------------
# 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 M3X
from pyasic.miners.types import M30LV10
class BTMinerM30LV10(M3X, M30LV10):
pass

View File

@@ -36,6 +36,7 @@ from pyasic.miners.types import (
M30SPlusVE100,
M30SPlusVF20,
M30SPlusVF30,
M30SPlusVG20,
M30SPlusVG30,
M30SPlusVG40,
M30SPlusVG50,
@@ -46,7 +47,6 @@ from pyasic.miners.types import (
M30SPlusVH40,
M30SPlusVH50,
M30SPlusVH60,
M36SPlusVG30,
)
@@ -130,7 +130,7 @@ class BTMinerM30SPlusVF30(M3X, M30SPlusVF30):
pass
class BTMinerM36SPlusVG30(M3X, M36SPlusVG30):
class BTMinerM30SPlusVG20(M3X, M30SPlusVG20):
pass

View File

@@ -15,7 +15,11 @@
# ------------------------------------------------------------------------------
from pyasic.miners.backends import M3X
from pyasic.miners.types import M31HV40
from pyasic.miners.types import M31HV10, M31HV40
class BTMinerM31HV10(M3X, M31HV10):
pass
class BTMinerM31HV40(M3X, M31HV40):

View File

@@ -0,0 +1,22 @@
# ------------------------------------------------------------------------------
# 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 M3X
from pyasic.miners.types import M30LV10
class BTMinerM31LV10(M3X, M30LV10):
pass

View File

@@ -15,7 +15,11 @@
# ------------------------------------------------------------------------------
from pyasic.miners.backends import M3X
from pyasic.miners.types import M33SPlusVH20, M33SPlusVH30
from pyasic.miners.types import M33SPlusVG20, M33SPlusVH20, M33SPlusVH30
class BTMinerM33SPlusVG20(M3X, M33SPlusVG20):
pass
class BTMinerM33SPlusVH20(M3X, M33SPlusVH20):

View File

@@ -15,8 +15,16 @@
# ------------------------------------------------------------------------------
from pyasic.miners.backends import M3X
from pyasic.miners.types import M39V20
from pyasic.miners.types import M39V10, M39V20, M39V30
class BTMinerM39V10(M3X, M39V10):
pass
class BTMinerM39V20(M3X, M39V20):
pass
class BTMinerM39V30(M3X, M39V30):
pass

View File

@@ -15,6 +15,8 @@
# ------------------------------------------------------------------------------
from .M30 import BTMinerM30V10, BTMinerM30V20
from .M30K import BTMinerM30KV10
from .M30L import BTMinerM30LV10
from .M30S import (
BTMinerM30SV10,
BTMinerM30SV20,
@@ -67,6 +69,7 @@ from .M30S_Plus import (
BTMinerM30SPlusVE100,
BTMinerM30SPlusVF20,
BTMinerM30SPlusVF30,
BTMinerM30SPlusVG20,
BTMinerM30SPlusVG30,
BTMinerM30SPlusVG40,
BTMinerM30SPlusVG50,
@@ -77,7 +80,6 @@ from .M30S_Plus import (
BTMinerM30SPlusVH40,
BTMinerM30SPlusVH50,
BTMinerM30SPlusVH60,
BTMinerM36SPlusVG30,
)
from .M30S_Plus_Plus import (
BTMinerM30SPlusPlusV10,
@@ -103,7 +105,8 @@ from .M30S_Plus_Plus import (
BTMinerM30SPlusPlusVJ30,
)
from .M31 import BTMinerM31V10, BTMinerM31V20
from .M31H import BTMinerM31HV40
from .M31H import BTMinerM31HV10, BTMinerM31HV40
from .M31L import BTMinerM31LV10
from .M31S import (
BTMinerM31SV10,
BTMinerM31SV20,
@@ -145,7 +148,7 @@ from .M32 import BTMinerM32V10, BTMinerM32V20
from .M32S import BTMinerM32S
from .M33 import BTMinerM33V10, BTMinerM33V20, BTMinerM33V30
from .M33S import BTMinerM33SVG30
from .M33S_Plus import BTMinerM33SPlusVH20, BTMinerM33SPlusVH30
from .M33S_Plus import BTMinerM33SPlusVG20, BTMinerM33SPlusVH20, BTMinerM33SPlusVH30
from .M33S_Plus_Plus import (
BTMinerM33SPlusPlusVG40,
BTMinerM33SPlusPlusVH20,
@@ -155,4 +158,4 @@ from .M34S_Plus import BTMinerM34SPlusVE10
from .M36S import BTMinerM36SVE10
from .M36S_Plus import BTMinerM36SPlusVG30
from .M36S_Plus_Plus import BTMinerM36SPlusPlusVH30
from .M39 import BTMinerM39V20
from .M39 import BTMinerM39V10, BTMinerM39V20, BTMinerM39V30

View File

@@ -16,6 +16,7 @@
from pyasic.miners.backends import M5X
from pyasic.miners.types import (
M50VE30,
M50VG30,
M50VH10,
M50VH20,
@@ -31,6 +32,10 @@ from pyasic.miners.types import (
)
class BTMinerM50VE30(M5X, M50VE30):
pass
class BTMinerM50VG30(M5X, M50VG30):
pass

View File

@@ -15,6 +15,7 @@
# ------------------------------------------------------------------------------
from .M50 import (
BTMinerM50VE30,
BTMinerM50VG30,
BTMinerM50VH10,
BTMinerM50VH20,