Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0f7629607 | ||
|
|
6e50f1f769 | ||
|
|
708b506f6f | ||
|
|
673d63daf0 | ||
|
|
ea55fed8d1 | ||
|
|
f5fd539eba | ||
|
|
51a56f441c | ||
|
|
54310b1d79 | ||
|
|
cb30b761dc | ||
|
|
cb50a7cac8 | ||
|
|
738af245cb | ||
|
|
71e9af1b91 | ||
|
|
1cd2566d0a | ||
|
|
1f1e5f23a2 | ||
|
|
3394234e4f | ||
|
|
e9882124ff | ||
|
|
1e5b19c149 | ||
|
|
c9339fec2f | ||
|
|
018c09e84f | ||
|
|
46e7f9a569 | ||
|
|
996ab58252 | ||
|
|
04974d5287 | ||
|
|
1a8a5ccb0e | ||
|
|
4c61c4c345 | ||
|
|
a6d6bfe73d | ||
|
|
f159e9ccb4 | ||
|
|
8ae2932274 | ||
|
|
52786ba954 | ||
|
|
f5cc526e8a | ||
|
|
a616aaba04 | ||
|
|
15b4177ce4 |
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import ipaddress
|
import ipaddress
|
||||||
@@ -171,9 +173,14 @@ If you are sure you want to use this command please use API.send_command("{comma
|
|||||||
writer.write(data)
|
writer.write(data)
|
||||||
logging.debug(f"{self} - ([Hidden] Send Bytes) - Draining")
|
logging.debug(f"{self} - ([Hidden] Send Bytes) - Draining")
|
||||||
await writer.drain()
|
await writer.drain()
|
||||||
|
ret_data = await asyncio.wait_for(reader.read(4096), timeout=timeout)
|
||||||
# instantiate data
|
try:
|
||||||
ret_data = b""
|
# Fix for stupid whatsminer bug, reboot/restart seem to not load properly in the loop
|
||||||
|
# have to receive, save the data, check if there is more data by reading with a short timeout
|
||||||
|
# append that data if there is more, and then onto the main loop.
|
||||||
|
ret_data += await asyncio.wait_for(reader.read(1), timeout=1)
|
||||||
|
except asyncio.TimeoutError:
|
||||||
|
return ret_data
|
||||||
|
|
||||||
# loop to receive all the data
|
# loop to receive all the data
|
||||||
logging.debug(f"{self} - ([Hidden] Send Bytes) - Receiving")
|
logging.debug(f"{self} - ([Hidden] Send Bytes) - Receiving")
|
||||||
@@ -242,6 +249,8 @@ If you are sure you want to use this command please use API.send_command("{comma
|
|||||||
str_data = str_data.replace("}{", "},{")
|
str_data = str_data.replace("}{", "},{")
|
||||||
# fix an error with a bmminer return having a specific comma that breaks json.loads()
|
# fix an error with a bmminer return having a specific comma that breaks json.loads()
|
||||||
str_data = str_data.replace("[,{", "[{")
|
str_data = str_data.replace("[,{", "[{")
|
||||||
|
# fix an error with a btminer return having a missing comma. (2023-01-06 version)
|
||||||
|
str_data = str_data.replace('""temp0', '","temp0')
|
||||||
# fix an error with Avalonminers returning inf and nan
|
# fix an error with Avalonminers returning inf and nan
|
||||||
str_data = str_data.replace("info", "1nfo")
|
str_data = str_data.replace("info", "1nfo")
|
||||||
str_data = str_data.replace("inf", "0")
|
str_data = str_data.replace("inf", "0")
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from pyasic.API import APIError, BaseMinerAPI
|
from pyasic.API import APIError, BaseMinerAPI
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.API import BaseMinerAPI
|
from pyasic.API import BaseMinerAPI
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import base64
|
import base64
|
||||||
@@ -245,21 +247,9 @@ class BTMinerAPI(BaseMinerAPI):
|
|||||||
try:
|
try:
|
||||||
data = await self._send_bytes(enc_command, timeout)
|
data = await self._send_bytes(enc_command, timeout)
|
||||||
except (asyncio.CancelledError, asyncio.TimeoutError) as e:
|
except (asyncio.CancelledError, asyncio.TimeoutError) as e:
|
||||||
if command["cmd"] in ["reboot", "restart_btminer", "power_on", "power_off"]:
|
if ignore_errors:
|
||||||
logging.info(
|
return {}
|
||||||
f"{self} - (reboot/restart_btminer/power_on/power_off) - Whatsminers currently break this. "
|
raise APIError("No data was returned from the API.")
|
||||||
f"Ignoring exception. Command probably worked."
|
|
||||||
)
|
|
||||||
# FAKING IT HERE
|
|
||||||
data = (
|
|
||||||
b'{"STATUS": "S", "When": 1670966423, "Code": 131, "Msg": "API command OK", "Description": "'
|
|
||||||
+ command["cmd"].encode("utf-8")
|
|
||||||
+ b'"}'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
if ignore_errors:
|
|
||||||
return {}
|
|
||||||
raise APIError("No data was returned from the API.")
|
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
if ignore_errors:
|
if ignore_errors:
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.API import BaseMinerAPI
|
from pyasic.API import BaseMinerAPI
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
from pyasic.API.bmminer import BMMinerAPI
|
from pyasic.API.bmminer import BMMinerAPI
|
||||||
from pyasic.API.bosminer import BOSMinerAPI
|
from pyasic.API.bosminer import BOSMinerAPI
|
||||||
from pyasic.API.btminer import BTMinerAPI
|
from pyasic.API.btminer import BTMinerAPI
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
@@ -243,7 +245,9 @@ class MinerConfig:
|
|||||||
fan_speed: Manual fan speed to run the fan at (only if temp_mode == "manual").
|
fan_speed: Manual fan speed to run the fan at (only if temp_mode == "manual").
|
||||||
asicboost: Whether or not to enable asicboost.
|
asicboost: Whether or not to enable asicboost.
|
||||||
autotuning_enabled: Whether or not to enable autotuning.
|
autotuning_enabled: Whether or not to enable autotuning.
|
||||||
|
autotuning_mode: Autotuning mode, either "wattage" or "hashrate".
|
||||||
autotuning_wattage: The wattage to use when autotuning.
|
autotuning_wattage: The wattage to use when autotuning.
|
||||||
|
autotuning_hashrate: The hashrate to use when autotuning.
|
||||||
dps_enabled: Whether or not to enable dynamic power scaling.
|
dps_enabled: Whether or not to enable dynamic power scaling.
|
||||||
dps_power_step: The amount of power to reduce autotuning by when the miner reaches dangerous temp.
|
dps_power_step: The amount of power to reduce autotuning by when the miner reaches dangerous temp.
|
||||||
dps_min_power: The minimum power to reduce autotuning to.
|
dps_min_power: The minimum power to reduce autotuning to.
|
||||||
@@ -264,7 +268,9 @@ class MinerConfig:
|
|||||||
asicboost: bool = None
|
asicboost: bool = None
|
||||||
|
|
||||||
autotuning_enabled: bool = True
|
autotuning_enabled: bool = True
|
||||||
autotuning_wattage: int = 900
|
autotuning_mode: Literal["power", "hashrate"] = None
|
||||||
|
autotuning_wattage: int = None
|
||||||
|
autotuning_hashrate: int = None
|
||||||
|
|
||||||
dps_enabled: bool = None
|
dps_enabled: bool = None
|
||||||
dps_power_step: int = None
|
dps_power_step: int = None
|
||||||
@@ -347,14 +353,20 @@ class MinerConfig:
|
|||||||
self.autotuning_enabled = data[key][_key]
|
self.autotuning_enabled = data[key][_key]
|
||||||
elif _key == "psu_power_limit":
|
elif _key == "psu_power_limit":
|
||||||
self.autotuning_wattage = data[key][_key]
|
self.autotuning_wattage = data[key][_key]
|
||||||
|
elif _key == "power_target":
|
||||||
|
self.autotuning_wattage = data[key][_key]
|
||||||
|
elif _key == "hashrate_target":
|
||||||
|
self.autotuning_hashrate = data[key][_key]
|
||||||
|
elif _key == "mode":
|
||||||
|
self.autotuning_mode = data[key][_key].replace("_target", "")
|
||||||
|
|
||||||
if key == "power_scaling":
|
if key in ["power_scaling", "performance_scaling"]:
|
||||||
for _key in data[key].keys():
|
for _key in data[key].keys():
|
||||||
if _key == "enabled":
|
if _key == "enabled":
|
||||||
self.dps_enabled = data[key][_key]
|
self.dps_enabled = data[key][_key]
|
||||||
elif _key == "power_step":
|
elif _key == "power_step":
|
||||||
self.dps_power_step = data[key][_key]
|
self.dps_power_step = data[key][_key]
|
||||||
elif _key == "min_psu_power_limit":
|
elif _key in ["min_psu_power_limit", "min_power_target"]:
|
||||||
self.dps_min_power = data[key][_key]
|
self.dps_min_power = data[key][_key]
|
||||||
elif _key == "shutdown_enabled":
|
elif _key == "shutdown_enabled":
|
||||||
self.dps_shutdown_enabled = data[key][_key]
|
self.dps_shutdown_enabled = data[key][_key]
|
||||||
@@ -389,8 +401,8 @@ class MinerConfig:
|
|||||||
pool_groups = []
|
pool_groups = []
|
||||||
for group in data["pool_groups"]:
|
for group in data["pool_groups"]:
|
||||||
pool_groups.append(_PoolGroup().from_dict(group))
|
pool_groups.append(_PoolGroup().from_dict(group))
|
||||||
for key in data.keys():
|
for key in data:
|
||||||
if getattr(self, key) and not key == "pool_groups":
|
if hasattr(self, key) and not key == "pool_groups":
|
||||||
setattr(self, key, data[key])
|
setattr(self, key, data[key])
|
||||||
self.pool_groups = pool_groups
|
self.pool_groups = pool_groups
|
||||||
return self
|
return self
|
||||||
@@ -479,8 +491,8 @@ class MinerConfig:
|
|||||||
cfg = {
|
cfg = {
|
||||||
"format": {
|
"format": {
|
||||||
"version": "1.2+",
|
"version": "1.2+",
|
||||||
"model": f"Antminer {model}",
|
"model": f"Antminer {model.replace('j', 'J')}",
|
||||||
"generator": "Upstream Config Utility",
|
"generator": "pyasic",
|
||||||
"timestamp": int(time.time()),
|
"timestamp": int(time.time()),
|
||||||
},
|
},
|
||||||
"group": [
|
"group": [
|
||||||
@@ -497,9 +509,19 @@ class MinerConfig:
|
|||||||
if self.autotuning_enabled or self.autotuning_wattage:
|
if self.autotuning_enabled or self.autotuning_wattage:
|
||||||
cfg["autotuning"] = {}
|
cfg["autotuning"] = {}
|
||||||
if self.autotuning_enabled:
|
if self.autotuning_enabled:
|
||||||
cfg["autotuning"]["enabled"] = self.autotuning_enabled
|
cfg["autotuning"]["enabled"] = True
|
||||||
if self.autotuning_wattage:
|
else:
|
||||||
cfg["autotuning"]["psu_power_limit"] = self.autotuning_wattage
|
cfg["autotuning"]["enabled"] = False
|
||||||
|
if self.autotuning_mode:
|
||||||
|
cfg["format"]["version"] = "2.0"
|
||||||
|
cfg["autotuning"]["mode"] = self.autotuning_mode + "_target"
|
||||||
|
if self.autotuning_wattage:
|
||||||
|
cfg["autotuning"]["power_target"] = self.autotuning_wattage
|
||||||
|
elif self.autotuning_hashrate:
|
||||||
|
cfg["autotuning"]["hashrate_target"] = self.autotuning_hashrate
|
||||||
|
else:
|
||||||
|
if self.autotuning_wattage:
|
||||||
|
cfg["autotuning"]["psu_power_limit"] = self.autotuning_wattage
|
||||||
|
|
||||||
if self.asicboost:
|
if self.asicboost:
|
||||||
cfg["hash_chain_global"] = {}
|
cfg["hash_chain_global"] = {}
|
||||||
@@ -523,7 +545,10 @@ class MinerConfig:
|
|||||||
if self.dps_power_step:
|
if self.dps_power_step:
|
||||||
cfg["power_scaling"]["power_step"] = self.dps_power_step
|
cfg["power_scaling"]["power_step"] = self.dps_power_step
|
||||||
if self.dps_min_power:
|
if self.dps_min_power:
|
||||||
cfg["power_scaling"]["min_psu_power_limit"] = self.dps_min_power
|
if cfg["format"]["version"] == "2.0":
|
||||||
|
cfg["power_scaling"]["min_power_target"] = self.dps_min_power
|
||||||
|
else:
|
||||||
|
cfg["power_scaling"]["min_psu_power_limit"] = self.dps_min_power
|
||||||
if self.dps_shutdown_enabled:
|
if self.dps_shutdown_enabled:
|
||||||
cfg["power_scaling"]["shutdown_enabled"] = self.dps_shutdown_enabled
|
cfg["power_scaling"]["shutdown_enabled"] = self.dps_shutdown_enabled
|
||||||
if self.dps_shutdown_duration:
|
if self.dps_shutdown_duration:
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from dataclasses import asdict, dataclass, fields
|
from dataclasses import asdict, dataclass, fields
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from typing import TypeVar
|
from typing import TypeVar
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from dataclasses import asdict, dataclass, fields
|
from dataclasses import asdict, dataclass, fields
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from dataclasses import asdict, dataclass, field, fields
|
from dataclasses import asdict, dataclass, field, fields
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from dataclasses import asdict, dataclass, field, fields
|
from dataclasses import asdict, dataclass, field, fields
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
class APIError(Exception):
|
class APIError(Exception):
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
@@ -25,7 +27,7 @@ from pyasic.miners._backends import BMMiner # noqa - Ignore access to _module
|
|||||||
from pyasic.settings import PyasicSettings
|
from pyasic.settings import PyasicSettings
|
||||||
|
|
||||||
|
|
||||||
class BMMinerX19(BMMiner):
|
class X19(BMMiner):
|
||||||
def __init__(self, ip: str, api_ver: str = "0.0.0") -> None:
|
def __init__(self, ip: str, api_ver: str = "0.0.0") -> None:
|
||||||
super().__init__(ip, api_ver=api_ver)
|
super().__init__(ip, api_ver=api_ver)
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
@@ -124,6 +126,13 @@ class BMMinerX19(BMMiner):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
data = await self.send_web_command("get_network_info")
|
||||||
|
if data:
|
||||||
|
return data["macaddr"]
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
async def get_errors(self) -> List[MinerErrorData]:
|
async def get_errors(self) -> List[MinerErrorData]:
|
||||||
errors = []
|
errors = []
|
||||||
data = await self.send_web_command("summary")
|
data = await self.send_web_command("summary")
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .bmminer import BMMiner
|
from .bmminer import BMMiner
|
||||||
from .bosminer import BOSMiner
|
from .bosminer import BOSMiner
|
||||||
@@ -18,3 +20,5 @@ from .btminer import BTMiner
|
|||||||
from .cgminer import CGMiner
|
from .cgminer import CGMiner
|
||||||
from .cgminer_avalon import CGMinerAvalon
|
from .cgminer_avalon import CGMinerAvalon
|
||||||
from .hiveon import Hiveon
|
from .hiveon import Hiveon
|
||||||
|
from .vnish import VNish
|
||||||
|
from .X19 import X19
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import json
|
import json
|
||||||
@@ -196,11 +198,8 @@ class BOSMiner(BaseMiner):
|
|||||||
return self.config
|
return self.config
|
||||||
if conn:
|
if conn:
|
||||||
async with conn:
|
async with conn:
|
||||||
logging.debug(f"{self}: Opening SFTP connection.")
|
# good ol' BBB compatibility :/
|
||||||
async with conn.start_sftp_client() as sftp:
|
toml_data = toml.loads((await conn.run("cat /etc/bosminer.toml")).stdout)
|
||||||
logging.debug(f"{self}: Reading config file.")
|
|
||||||
async with sftp.open("/etc/bosminer.toml") as file:
|
|
||||||
toml_data = toml.loads(await file.read())
|
|
||||||
logging.debug(f"{self}: Converting config file.")
|
logging.debug(f"{self}: Converting config file.")
|
||||||
cfg = MinerConfig().from_raw(toml_data)
|
cfg = MinerConfig().from_raw(toml_data)
|
||||||
self.config = cfg
|
self.config = cfg
|
||||||
@@ -217,14 +216,28 @@ class BOSMiner(BaseMiner):
|
|||||||
except (asyncssh.Error, OSError):
|
except (asyncssh.Error, OSError):
|
||||||
return None
|
return None
|
||||||
async with conn:
|
async with conn:
|
||||||
await conn.run("/etc/init.d/bosminer stop")
|
# BBB check because bitmain suxx
|
||||||
logging.debug(f"{self}: Opening SFTP connection.")
|
bbb_check = await conn.run("if [ ! -f /etc/init.d/bosminer ]; then echo '1'; else echo '0'; fi;")
|
||||||
async with conn.start_sftp_client() as sftp:
|
|
||||||
logging.debug(f"{self}: Opening config file.")
|
bbb = bbb_check.stdout.strip() == "1"
|
||||||
async with sftp.open("/etc/bosminer.toml", "w+") as file:
|
|
||||||
await file.write(toml_conf)
|
if not bbb:
|
||||||
logging.debug(f"{self}: Restarting BOSMiner")
|
await conn.run("/etc/init.d/bosminer stop")
|
||||||
await conn.run("/etc/init.d/bosminer start")
|
logging.debug(f"{self}: Opening SFTP connection.")
|
||||||
|
async with conn.start_sftp_client() as sftp:
|
||||||
|
logging.debug(f"{self}: Opening config file.")
|
||||||
|
async with sftp.open("/etc/bosminer.toml", "w+") as file:
|
||||||
|
await file.write(toml_conf)
|
||||||
|
logging.debug(f"{self}: Restarting BOSMiner")
|
||||||
|
await conn.run("/etc/init.d/bosminer start")
|
||||||
|
|
||||||
|
# I really hate BBB, please get rid of it if you have it
|
||||||
|
else:
|
||||||
|
await conn.run("/etc/init.d/S99bosminer stop")
|
||||||
|
logging.debug(f"{self}: BBB sending config")
|
||||||
|
await conn.run("echo '" + toml_conf + "' > /etc/bosminer.toml")
|
||||||
|
logging.debug(f"{self}: BBB restarting bosminer.")
|
||||||
|
await conn.run("/etc/init.d/S99bosminer start")
|
||||||
|
|
||||||
async def set_power_limit(self, wattage: int) -> bool:
|
async def set_power_limit(self, wattage: int) -> bool:
|
||||||
try:
|
try:
|
||||||
@@ -481,10 +494,9 @@ class BOSMiner(BaseMiner):
|
|||||||
api_devs = d["devs"][0]
|
api_devs = d["devs"][0]
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
api_devs = None
|
api_devs = None
|
||||||
|
|
||||||
if api_temps:
|
if api_temps:
|
||||||
try:
|
try:
|
||||||
offset = 6 if api_temps["TEMPS"][0]["ID"] in [6, 7, 8] else 0
|
offset = 6 if api_temps["TEMPS"][0]["ID"] in [6, 7, 8] else 1
|
||||||
|
|
||||||
for board in api_temps["TEMPS"]:
|
for board in api_temps["TEMPS"]:
|
||||||
_id = board["ID"] - offset
|
_id = board["ID"] - offset
|
||||||
@@ -497,7 +509,7 @@ class BOSMiner(BaseMiner):
|
|||||||
|
|
||||||
if api_devdetails:
|
if api_devdetails:
|
||||||
try:
|
try:
|
||||||
offset = 6 if api_devdetails["DEVDETAILS"][0]["ID"] in [6, 7, 8] else 0
|
offset = 6 if api_devdetails["DEVDETAILS"][0]["ID"] in [6, 7, 8] else 1
|
||||||
|
|
||||||
for board in api_devdetails["DEVDETAILS"]:
|
for board in api_devdetails["DEVDETAILS"]:
|
||||||
_id = board["ID"] - offset
|
_id = board["ID"] - offset
|
||||||
@@ -509,7 +521,7 @@ class BOSMiner(BaseMiner):
|
|||||||
|
|
||||||
if api_devs:
|
if api_devs:
|
||||||
try:
|
try:
|
||||||
offset = 6 if api_devs["DEVS"][0]["ID"] in [6, 7, 8] else 0
|
offset = 6 if api_devs["DEVS"][0]["ID"] in [6, 7, 8] else 1
|
||||||
|
|
||||||
for board in api_devs["DEVS"]:
|
for board in api_devs["DEVS"]:
|
||||||
_id = board["ID"] - offset
|
_id = board["ID"] - offset
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
|
|
||||||
|
|||||||
218
pyasic/miners/_backends/vnish.py
Normal file
218
pyasic/miners/_backends/vnish.py
Normal file
@@ -0,0 +1,218 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# 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. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
import json
|
||||||
|
import logging
|
||||||
|
import warnings
|
||||||
|
from typing import Optional, Union
|
||||||
|
|
||||||
|
import httpx
|
||||||
|
|
||||||
|
from pyasic.errors import APIError
|
||||||
|
from pyasic.miners._backends.bmminer import BMMiner
|
||||||
|
from pyasic.settings import PyasicSettings
|
||||||
|
|
||||||
|
|
||||||
|
class VNish(BMMiner):
|
||||||
|
def __init__(self, ip: str, api_ver: str = "0.0.0") -> None:
|
||||||
|
super().__init__(ip, api_ver)
|
||||||
|
self.api_type = "VNish"
|
||||||
|
self.uname = "root"
|
||||||
|
self.pwd = PyasicSettings().global_vnish_password
|
||||||
|
self.jwt = None
|
||||||
|
|
||||||
|
async def auth(self):
|
||||||
|
async with httpx.AsyncClient() as client:
|
||||||
|
try:
|
||||||
|
auth = await client.post(
|
||||||
|
f"http://{self.ip}/api/v1/unlock",
|
||||||
|
json={"pw": self.pwd},
|
||||||
|
)
|
||||||
|
except httpx.HTTPError:
|
||||||
|
warnings.warn(f"Could not authenticate web token with miner: {self}")
|
||||||
|
else:
|
||||||
|
if not auth.status_code == 200:
|
||||||
|
warnings.warn(
|
||||||
|
f"Could not authenticate web token with miner: {self}"
|
||||||
|
)
|
||||||
|
return None
|
||||||
|
json_auth = auth.json()
|
||||||
|
self.jwt = json_auth["token"]
|
||||||
|
return self.jwt
|
||||||
|
|
||||||
|
async def send_web_command(
|
||||||
|
self, command: str, data: Union[dict, None] = None, method: str = "GET"
|
||||||
|
):
|
||||||
|
if not self.jwt:
|
||||||
|
await self.auth()
|
||||||
|
if not data:
|
||||||
|
data = {}
|
||||||
|
async with httpx.AsyncClient() as client:
|
||||||
|
for i in range(PyasicSettings().miner_get_data_retries):
|
||||||
|
try:
|
||||||
|
auth = self.jwt
|
||||||
|
if command.startswith("system"):
|
||||||
|
auth = "Bearer " + self.jwt
|
||||||
|
if method == "GET":
|
||||||
|
response = await client.get(
|
||||||
|
f"http://{self.ip}/api/v1/{command}",
|
||||||
|
headers={"Authorization": auth},
|
||||||
|
timeout=5,
|
||||||
|
)
|
||||||
|
elif method == "POST":
|
||||||
|
if data:
|
||||||
|
response = await client.post(
|
||||||
|
f"http://{self.ip}/api/v1/{command}",
|
||||||
|
headers={"Authorization": auth},
|
||||||
|
timeout=5,
|
||||||
|
json=data,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
response = await client.post(
|
||||||
|
f"http://{self.ip}/api/v1/{command}",
|
||||||
|
headers={"Authorization": auth},
|
||||||
|
timeout=5,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
raise APIError("Bad method type.")
|
||||||
|
if not response.status_code == 200:
|
||||||
|
# refresh the token, retry
|
||||||
|
await self.auth()
|
||||||
|
continue
|
||||||
|
json_data = response.json()
|
||||||
|
if json_data:
|
||||||
|
return json_data
|
||||||
|
return True
|
||||||
|
except httpx.HTTPError:
|
||||||
|
pass
|
||||||
|
except json.JSONDecodeError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def get_model(self, api_stats: dict = None) -> Optional[str]:
|
||||||
|
# check if model is cached
|
||||||
|
if self.model:
|
||||||
|
logging.debug(f"Found model for {self.ip}: {self.model} (VNish)")
|
||||||
|
return self.model + " (VNish)"
|
||||||
|
|
||||||
|
if not api_stats:
|
||||||
|
try:
|
||||||
|
api_stats = await self.api.stats()
|
||||||
|
except APIError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
if api_stats:
|
||||||
|
try:
|
||||||
|
m_type = api_stats["STATS"][0]["Type"]
|
||||||
|
self.model = m_type.split(" ")[1]
|
||||||
|
return self.model
|
||||||
|
except (KeyError, IndexError):
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def restart_backend(self) -> bool:
|
||||||
|
data = await self.send_web_command("mining/restart", method="POST")
|
||||||
|
return data
|
||||||
|
|
||||||
|
async def reboot(self) -> bool:
|
||||||
|
data = await self.send_web_command("system/reboot", method="POST")
|
||||||
|
return data
|
||||||
|
|
||||||
|
async def get_mac(self, web_summary: dict = None) -> str:
|
||||||
|
if not web_summary:
|
||||||
|
web_info = await self.send_web_command("info")
|
||||||
|
|
||||||
|
if web_info:
|
||||||
|
try:
|
||||||
|
mac = web_info["system"]["network_status"]["mac"]
|
||||||
|
return mac
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
if web_summary:
|
||||||
|
try:
|
||||||
|
mac = web_summary["system"]["network_status"]["mac"]
|
||||||
|
return mac
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def get_hostname(self, web_summary: dict = None) -> str:
|
||||||
|
if not web_summary:
|
||||||
|
web_info = await self.send_web_command("info")
|
||||||
|
|
||||||
|
if web_info:
|
||||||
|
try:
|
||||||
|
hostname = web_info["system"]["network_status"]["hostname"]
|
||||||
|
return hostname
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
if web_summary:
|
||||||
|
try:
|
||||||
|
hostname = web_summary["system"]["network_status"]["hostname"]
|
||||||
|
return hostname
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def get_wattage(self, web_summary: dict = None) -> Optional[int]:
|
||||||
|
if not web_summary:
|
||||||
|
web_summary = await self.send_web_command("summary")
|
||||||
|
|
||||||
|
if web_summary:
|
||||||
|
try:
|
||||||
|
wattage = web_summary["miner"]["power_usage"]
|
||||||
|
wattage = round(wattage * 1000)
|
||||||
|
return wattage
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def get_hashrate(self, api_summary: dict = None) -> Optional[float]:
|
||||||
|
# get hr from API
|
||||||
|
if not api_summary:
|
||||||
|
try:
|
||||||
|
api_summary = await self.api.summary()
|
||||||
|
except APIError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
if api_summary:
|
||||||
|
try:
|
||||||
|
return round(
|
||||||
|
float(float(api_summary["SUMMARY"][0]["GHS 5s"]) / 1000), 2
|
||||||
|
)
|
||||||
|
except (IndexError, KeyError, ValueError, TypeError) as e:
|
||||||
|
print(e)
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def get_wattage_limit(self, web_settings: dict = None) -> Optional[int]:
|
||||||
|
if not web_settings:
|
||||||
|
web_settings = await self.send_web_command("summary")
|
||||||
|
|
||||||
|
if web_settings:
|
||||||
|
try:
|
||||||
|
wattage_limit = web_settings["miner"]["overclock"]["preset"]
|
||||||
|
return int(wattage_limit)
|
||||||
|
except (KeyError, TypeError):
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def get_fw_ver(self, web_summary: dict = None) -> Optional[str]:
|
||||||
|
if not web_summary:
|
||||||
|
web_summary = await self.send_web_command("summary")
|
||||||
|
|
||||||
|
if web_summary:
|
||||||
|
try:
|
||||||
|
fw_ver = web_summary["miner"]["miner_type"]
|
||||||
|
fw_ver = fw_ver.split("(Vnish ")[1].replace(")", "")
|
||||||
|
return fw_ver
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .antminer import *
|
from .antminer import *
|
||||||
from .avalonminer import *
|
from .avalonminer import *
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S17 import S17
|
from .S17 import S17
|
||||||
from .S17_Plus import S17Plus
|
from .S17_Plus import S17Plus
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S19 import S19
|
from .S19 import S19
|
||||||
from .S19_Pro import S19Pro
|
from .S19_Pro import S19Pro
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AntMiner
|
from pyasic.miners._types.makes import AntMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S9 import S9
|
from .S9 import S9
|
||||||
from .S9i import S9i
|
from .S9i import S9i
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .X9 import *
|
from .X9 import *
|
||||||
from .X17 import *
|
from .X17 import *
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .A1026 import Avalon1026
|
from .A1026 import Avalon1026
|
||||||
from .A1047 import Avalon1047
|
from .A1047 import Avalon1047
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .A721 import Avalon721
|
from .A721 import Avalon721
|
||||||
from .A741 import Avalon741
|
from .A741 import Avalon741
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .A821 import Avalon821
|
from .A821 import Avalon821
|
||||||
from .A841 import Avalon841
|
from .A841 import Avalon841
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import AvalonMiner
|
from pyasic.miners._types.makes import AvalonMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .A921 import Avalon921
|
from .A921 import Avalon921
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .A7X import *
|
from .A7X import *
|
||||||
from .A8X import *
|
from .A8X import *
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import InnosiliconMiner
|
from pyasic.miners._types.makes import InnosiliconMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .T3H_Plus import InnosiliconT3HPlus
|
from .T3H_Plus import InnosiliconT3HPlus
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .T3X import *
|
from .T3X import *
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners.base import BaseMiner
|
from pyasic.miners.base import BaseMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import WhatsMiner
|
from pyasic.miners._types.makes import WhatsMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .M20 import M20V10
|
from .M20 import M20V10
|
||||||
from .M20S import M20SV10, M20SV20, M20SV30
|
from .M20S import M20SV10, M20SV20, M20SV30
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
@@ -172,10 +174,7 @@ class M30SPlusPlusVH50(WhatsMiner): # noqa - ignore ABC method implementation
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
self.model = "M30S++ VH50"
|
self.model = "M30S++ VH50"
|
||||||
self.nominal_chips = 0
|
self.nominal_chips = 74
|
||||||
warnings.warn(
|
|
||||||
"Unknown chip count for miner type M30S++ VH50, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)."
|
|
||||||
)
|
|
||||||
self.fan_count = 2
|
self.fan_count = 2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import WhatsMiner
|
from pyasic.miners._types.makes import WhatsMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners._types.makes import WhatsMiner
|
from pyasic.miners._types.makes import WhatsMiner
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .M30 import M30V10, M30V20
|
from .M30 import M30V10, M30V20
|
||||||
from .M30S import (
|
from .M30S import (
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
# Copyright 2022 Upstream Data Inc
|
# ------------------------------------------------------------------------------
|
||||||
#
|
# 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.
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
# You may obtain a copy of the License at
|
# 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
|
# -
|
||||||
#
|
# 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,
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
# See the License for the specific language governing permissions and
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
# limitations under the License.
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user