-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all the currently known Whatsminer M6X machines (#77)
* Create new BTMiner M6X backend class to represent Whatsminer new M6X generation * Add all new known types of Whatsminer M6X * Ensure all new types are imported in their respective __init__.py * Create all BTMiner API class for known types of new M6X generation * Ensure all new BTMiner API class are imported in __init__.py * Fix erroneous M6X models data * Ensure M6X miners are imported and add them to their MinerTypes dictionary in miner_factory.py
- Loading branch information
Showing
19 changed files
with
673 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2023 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. - | ||
# ------------------------------------------------------------------------------ | ||
|
||
import warnings | ||
|
||
from pyasic.miners.makes import WhatsMiner | ||
|
||
class M60VK10(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60 VK10" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60 VK10, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 | ||
|
||
|
||
class M60VK20(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60 VK20" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60 VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 | ||
|
||
|
||
class M60VK30(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60 VK30" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60 VK30, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 | ||
|
||
|
||
class M60VK40(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60 VK40" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60 VK40, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2023 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. - | ||
# ------------------------------------------------------------------------------ | ||
|
||
import warnings | ||
|
||
from pyasic.miners.makes import WhatsMiner | ||
|
||
class M60SVK10(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60S VK10" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60S VK10, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 | ||
|
||
|
||
class M60SVK20(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60S VK20" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60S VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 | ||
|
||
|
||
class M60SVK30(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60S VK30" | ||
self.ideal_hashboards = 3 | ||
self.nominal_chips = 78 | ||
self.fan_count = 2 | ||
|
||
|
||
class M60SVK40(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M60S VK40" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M60S VK40, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2023 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. - | ||
# ------------------------------------------------------------------------------ | ||
|
||
import warnings | ||
|
||
from pyasic.miners.makes import WhatsMiner | ||
|
||
class M63VK10(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M63 VK10" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M63 VK10, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 | ||
|
||
|
||
class M63VK20(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M63 VK20" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M63 VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 | ||
|
||
|
||
class M63VK30(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M63 VK30" | ||
self.nominal_chips = 68 | ||
self.ideal_hashboards = 4 | ||
self.fan_count = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2023 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. - | ||
# ------------------------------------------------------------------------------ | ||
|
||
import warnings | ||
|
||
from pyasic.miners.makes import WhatsMiner | ||
|
||
class M63SVK10(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M63S VK10" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M63S VK10, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 | ||
|
||
|
||
class M63SVK20(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M63S VK20" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M63S VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 | ||
|
||
|
||
class M63SVK30(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M63S VK30" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M63S VK30, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2023 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. - | ||
# ------------------------------------------------------------------------------ | ||
|
||
import warnings | ||
|
||
from pyasic.miners.makes import WhatsMiner | ||
|
||
|
||
class M66VK20(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M66 VK20" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M66 VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 | ||
|
||
|
||
class M66VK30(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M66 VK30" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M66 VK30, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2023 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. - | ||
# ------------------------------------------------------------------------------ | ||
|
||
import warnings | ||
|
||
from pyasic.miners.makes import WhatsMiner | ||
|
||
|
||
class M66SVK20(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M66S VK20" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M66S VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 | ||
|
||
|
||
class M66SVK30(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M66S VK30" | ||
self.nominal_chips = 96 | ||
self.ideal_hashboards = 4 | ||
self.fan_count = 0 | ||
|
||
|
||
class M66SVK40(WhatsMiner): # noqa - ignore ABC method implementation | ||
def __init__(self, ip: str, api_ver: str = "0.0.0"): | ||
super().__init__(ip, api_ver) | ||
self.ip = ip | ||
self.model = "M66S VK40" | ||
self.nominal_chips = 0 | ||
warnings.warn( | ||
"Unknown chip count for miner type M66 VK30, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)." | ||
) | ||
self.fan_count = 0 |
Oops, something went wrong.