Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
018c09e84f | ||
|
|
46e7f9a569 | ||
|
|
996ab58252 | ||
|
|
04974d5287 | ||
|
|
1a8a5ccb0e | ||
|
|
4c61c4c345 | ||
|
|
a6d6bfe73d | ||
|
|
f159e9ccb4 | ||
|
|
8ae2932274 | ||
|
|
52786ba954 | ||
|
|
f5cc526e8a | ||
|
|
a616aaba04 | ||
|
|
15b4177ce4 | ||
|
|
5b382cdb0b | ||
|
|
16622099c8 | ||
|
|
a75434fe7b | ||
|
|
020558ed4d | ||
|
|
39a82d03bc | ||
|
|
41ecb5dbc6 | ||
|
|
2d057ca9f6 | ||
|
|
b71b23d2a0 | ||
|
|
b32649435d | ||
|
|
c0096126df | ||
|
|
d632360932 |
@@ -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,17 +247,13 @@ 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"]:
|
if ignore_errors:
|
||||||
logging.info(
|
return {}
|
||||||
f"{self} - (reboot/restart) - 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": "Reboot"}'
|
|
||||||
else:
|
|
||||||
raise APIError("No data was returned from the API.")
|
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
|
if ignore_errors:
|
||||||
|
return {}
|
||||||
raise APIError("No data was returned from the API.")
|
raise APIError("No data was returned from the API.")
|
||||||
data = self._load_api_data(data)
|
data = self._load_api_data(data)
|
||||||
|
|
||||||
@@ -542,6 +540,23 @@ class BTMinerAPI(BaseMinerAPI):
|
|||||||
self.pwd = new_pwd
|
self.pwd = new_pwd
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
async def net_config(
|
||||||
|
self,
|
||||||
|
ip: str = None,
|
||||||
|
mask: str = None,
|
||||||
|
gate: str = None,
|
||||||
|
dns: str = None,
|
||||||
|
host: str = None,
|
||||||
|
dhcp: bool = True,
|
||||||
|
):
|
||||||
|
if dhcp:
|
||||||
|
return await self.send_privileged_command("net_config", param="dhcp")
|
||||||
|
if None in [ip, mask, gate, dns, host]:
|
||||||
|
raise APIError("Incorrect parameters.")
|
||||||
|
return await self.send_privileged_command(
|
||||||
|
"net_config", ip=ip, mask=mask, gate=gate, dns=dns, host=host
|
||||||
|
)
|
||||||
|
|
||||||
async def set_target_freq(self, percent: int) -> dict:
|
async def set_target_freq(self, percent: int) -> dict:
|
||||||
"""Update the target frequency.
|
"""Update the target frequency.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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")
|
||||||
@@ -172,3 +181,53 @@ class BMMinerX19(BMMiner):
|
|||||||
return round(ideal_rate, 2)
|
return round(ideal_rate, 2)
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
async def set_static_ip(
|
||||||
|
self,
|
||||||
|
ip: str,
|
||||||
|
dns: str,
|
||||||
|
gateway: str,
|
||||||
|
subnet_mask: str = "255.255.255.0",
|
||||||
|
hostname: str = None,
|
||||||
|
):
|
||||||
|
if not hostname:
|
||||||
|
hostname = await self.get_hostname()
|
||||||
|
payload = {
|
||||||
|
"ipAddress": ip,
|
||||||
|
"ipDns": dns,
|
||||||
|
"ipGateway": gateway,
|
||||||
|
"ipHost": hostname,
|
||||||
|
"ipPro": 2, # static
|
||||||
|
"ipSub": subnet_mask,
|
||||||
|
}
|
||||||
|
await self.send_web_command("set_network_conf", params=payload)
|
||||||
|
|
||||||
|
async def set_dhcp(self, hostname: str = None):
|
||||||
|
if not hostname:
|
||||||
|
hostname = await self.get_hostname()
|
||||||
|
payload = {
|
||||||
|
"ipAddress": "",
|
||||||
|
"ipDns": "",
|
||||||
|
"ipGateway": "",
|
||||||
|
"ipHost": hostname,
|
||||||
|
"ipPro": 1, # DHCP
|
||||||
|
"ipSub": "",
|
||||||
|
}
|
||||||
|
await self.send_web_command("set_network_conf", params=payload)
|
||||||
|
|
||||||
|
async def set_hostname(self, hostname: str):
|
||||||
|
cfg = await self.send_web_command("get_network_info")
|
||||||
|
dns = cfg["conf_dnsservers"]
|
||||||
|
gateway = cfg["conf_gateway"]
|
||||||
|
ip = cfg["conf_ipaddress"]
|
||||||
|
subnet_mask = cfg["conf_netmask"]
|
||||||
|
protocol = 1 if cfg["conf_nettype"] == "DHCP" else 2
|
||||||
|
payload = {
|
||||||
|
"ipAddress": ip,
|
||||||
|
"ipDns": dns,
|
||||||
|
"ipGateway": gateway,
|
||||||
|
"ipHost": hostname,
|
||||||
|
"ipPro": protocol,
|
||||||
|
"ipSub": subnet_mask,
|
||||||
|
}
|
||||||
|
await self.send_web_command("set_network_conf", params=payload)
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -172,17 +174,17 @@ class BTMiner(BaseMiner):
|
|||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
async def get_mac(
|
async def get_mac(
|
||||||
self, api_summary: dict = None, api_miner_info: dict = None
|
self, api_summary: dict = None, api_get_miner_info: dict = None
|
||||||
) -> Optional[str]:
|
) -> Optional[str]:
|
||||||
if not api_miner_info:
|
if not api_get_miner_info:
|
||||||
try:
|
try:
|
||||||
api_miner_info = await self.api.get_miner_info()
|
api_get_miner_info = await self.api.get_miner_info()
|
||||||
except APIError:
|
except APIError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if api_miner_info:
|
if api_get_miner_info:
|
||||||
try:
|
try:
|
||||||
mac = api_miner_info["Msg"]["mac"]
|
mac = api_get_miner_info["Msg"]["mac"]
|
||||||
return str(mac).upper()
|
return str(mac).upper()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
@@ -223,29 +225,31 @@ class BTMiner(BaseMiner):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
async def get_version(
|
async def get_version(
|
||||||
self, api_version: dict = None, api_summary: dict = None
|
self, api_get_version: dict = None, api_summary: dict = None
|
||||||
) -> Tuple[Optional[str], Optional[str]]:
|
) -> Tuple[Optional[str], Optional[str]]:
|
||||||
miner_version = namedtuple("MinerVersion", "api_ver fw_ver")
|
miner_version = namedtuple("MinerVersion", "api_ver fw_ver")
|
||||||
api_ver = await self.get_api_ver(api_version=api_version)
|
api_ver = await self.get_api_ver(api_get_version=api_get_version)
|
||||||
fw_ver = await self.get_fw_ver(api_version=api_version, api_summary=api_summary)
|
fw_ver = await self.get_fw_ver(
|
||||||
|
api_get_version=api_get_version, api_summary=api_summary
|
||||||
|
)
|
||||||
return miner_version(api_ver, fw_ver)
|
return miner_version(api_ver, fw_ver)
|
||||||
|
|
||||||
async def get_api_ver(self, api_version: dict = None) -> Optional[str]:
|
async def get_api_ver(self, api_get_version: dict = None) -> Optional[str]:
|
||||||
# Check to see if the version info is already cached
|
# Check to see if the version info is already cached
|
||||||
if self.api_ver:
|
if self.api_ver:
|
||||||
return self.api_ver
|
return self.api_ver
|
||||||
|
|
||||||
if not api_version:
|
if not api_get_version:
|
||||||
try:
|
try:
|
||||||
api_version = await self.api.get_version()
|
api_get_version = await self.api.get_version()
|
||||||
except APIError:
|
except APIError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if api_version:
|
if api_get_version:
|
||||||
if "Code" in api_version.keys():
|
if "Code" in api_get_version.keys():
|
||||||
if api_version["Code"] == 131:
|
if api_get_version["Code"] == 131:
|
||||||
try:
|
try:
|
||||||
api_ver = api_version["Msg"]
|
api_ver = api_get_version["Msg"]
|
||||||
if not isinstance(api_ver, str):
|
if not isinstance(api_ver, str):
|
||||||
api_ver = api_ver["api_ver"]
|
api_ver = api_ver["api_ver"]
|
||||||
self.api_ver = api_ver.replace("whatsminer v", "")
|
self.api_ver = api_ver.replace("whatsminer v", "")
|
||||||
@@ -258,23 +262,23 @@ class BTMiner(BaseMiner):
|
|||||||
return self.api_ver
|
return self.api_ver
|
||||||
|
|
||||||
async def get_fw_ver(
|
async def get_fw_ver(
|
||||||
self, api_version: dict = None, api_summary: dict = None
|
self, api_get_version: dict = None, api_summary: dict = None
|
||||||
) -> Optional[str]:
|
) -> Optional[str]:
|
||||||
# Check to see if the version info is already cached
|
# Check to see if the version info is already cached
|
||||||
if self.fw_ver:
|
if self.fw_ver:
|
||||||
return self.fw_ver
|
return self.fw_ver
|
||||||
|
|
||||||
if not api_version:
|
if not api_get_version:
|
||||||
try:
|
try:
|
||||||
api_version = await self.api.get_version()
|
api_get_version = await self.api.get_version()
|
||||||
except APIError:
|
except APIError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if api_version:
|
if api_get_version:
|
||||||
if "Code" in api_version.keys():
|
if "Code" in api_get_version.keys():
|
||||||
if api_version["Code"] == 131:
|
if api_get_version["Code"] == 131:
|
||||||
try:
|
try:
|
||||||
self.fw_ver = api_version["Msg"]["fw_ver"]
|
self.fw_ver = api_get_version["Msg"]["fw_ver"]
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
@@ -296,19 +300,19 @@ class BTMiner(BaseMiner):
|
|||||||
|
|
||||||
return self.fw_ver
|
return self.fw_ver
|
||||||
|
|
||||||
async def get_hostname(self, api_miner_info: dict = None) -> Optional[str]:
|
async def get_hostname(self, api_get_miner_info: dict = None) -> Optional[str]:
|
||||||
if self.hostname:
|
if self.hostname:
|
||||||
return self.hostname
|
return self.hostname
|
||||||
|
|
||||||
if not api_miner_info:
|
if not api_get_miner_info:
|
||||||
try:
|
try:
|
||||||
api_miner_info = await self.api.get_miner_info()
|
api_get_miner_info = await self.api.get_miner_info()
|
||||||
except APIError:
|
except APIError:
|
||||||
return None # only one way to get this
|
return None # only one way to get this
|
||||||
|
|
||||||
if api_miner_info:
|
if api_get_miner_info:
|
||||||
try:
|
try:
|
||||||
self.hostname = api_miner_info["Msg"]["hostname"]
|
self.hostname = api_get_miner_info["Msg"]["hostname"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@@ -403,7 +407,7 @@ class BTMiner(BaseMiner):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def get_fans(
|
async def get_fans(
|
||||||
self, api_summary: dict = None, api_psu: dict = None
|
self, api_summary: dict = None, api_get_psu: dict = None
|
||||||
) -> List[Fan]:
|
) -> List[Fan]:
|
||||||
if not api_summary:
|
if not api_summary:
|
||||||
try:
|
try:
|
||||||
@@ -427,7 +431,7 @@ class BTMiner(BaseMiner):
|
|||||||
return fans
|
return fans
|
||||||
|
|
||||||
async def get_fan_psu(
|
async def get_fan_psu(
|
||||||
self, api_summary: dict = None, api_psu: dict = None
|
self, api_summary: dict = None, api_get_psu: dict = None
|
||||||
) -> Optional[int]:
|
) -> Optional[int]:
|
||||||
if not api_summary:
|
if not api_summary:
|
||||||
try:
|
try:
|
||||||
@@ -441,15 +445,15 @@ class BTMiner(BaseMiner):
|
|||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not api_psu:
|
if not api_get_psu:
|
||||||
try:
|
try:
|
||||||
api_psu = await self.api.get_psu()
|
api_get_psu = await self.api.get_psu()
|
||||||
except APIError:
|
except APIError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if api_psu:
|
if api_get_psu:
|
||||||
try:
|
try:
|
||||||
return int(api_psu["Msg"]["fan_speed"])
|
return int(api_get_psu["Msg"]["fan_speed"])
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -480,10 +484,10 @@ class BTMiner(BaseMiner):
|
|||||||
return groups
|
return groups
|
||||||
|
|
||||||
async def get_errors(
|
async def get_errors(
|
||||||
self, api_summary: dict = None, api_error_codes: dict = None
|
self, api_summary: dict = None, api_get_error_code: dict = None
|
||||||
) -> List[MinerErrorData]:
|
) -> List[MinerErrorData]:
|
||||||
errors = []
|
errors = []
|
||||||
if not api_summary and not api_error_codes:
|
if not api_summary and not api_get_error_code:
|
||||||
try:
|
try:
|
||||||
api_summary = await self.api.summary()
|
api_summary = await self.api.summary()
|
||||||
except APIError:
|
except APIError:
|
||||||
@@ -498,14 +502,14 @@ class BTMiner(BaseMiner):
|
|||||||
except (KeyError, IndexError, ValueError, TypeError):
|
except (KeyError, IndexError, ValueError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not api_error_codes:
|
if not api_get_error_code:
|
||||||
try:
|
try:
|
||||||
api_error_codes = await self.api.get_error_code()
|
api_get_error_code = await self.api.get_error_code()
|
||||||
except APIError:
|
except APIError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if api_error_codes:
|
if api_get_error_code:
|
||||||
for err in api_error_codes["Msg"]["error_code"]:
|
for err in api_get_error_code["Msg"]["error_code"]:
|
||||||
if isinstance(err, dict):
|
if isinstance(err, dict):
|
||||||
for code in err:
|
for code in err:
|
||||||
errors.append(WhatsminerError(error_code=int(code)))
|
errors.append(WhatsminerError(error_code=int(code)))
|
||||||
@@ -529,20 +533,42 @@ class BTMiner(BaseMiner):
|
|||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def get_fault_light(self, api_miner_info: dict = None) -> bool:
|
async def get_fault_light(self, api_get_miner_info: dict = None) -> bool:
|
||||||
data = None
|
data = None
|
||||||
|
|
||||||
if not api_miner_info:
|
if not api_get_miner_info:
|
||||||
try:
|
try:
|
||||||
api_miner_info = await self.api.get_miner_info()
|
api_get_miner_info = await self.api.get_miner_info()
|
||||||
except APIError:
|
except APIError:
|
||||||
if not self.light:
|
if not self.light:
|
||||||
self.light = False
|
self.light = False
|
||||||
|
|
||||||
if api_miner_info:
|
if api_get_miner_info:
|
||||||
try:
|
try:
|
||||||
self.light = api_miner_info["Msg"]["ledstat"] == "auto"
|
self.light = not (api_get_miner_info["Msg"]["ledstat"] == "auto")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return self.light if self.light else False
|
return self.light if self.light else False
|
||||||
|
|
||||||
|
async def set_static_ip(
|
||||||
|
self,
|
||||||
|
ip: str,
|
||||||
|
dns: str,
|
||||||
|
gateway: str,
|
||||||
|
subnet_mask: str = "255.255.255.0",
|
||||||
|
hostname: str = None,
|
||||||
|
):
|
||||||
|
if not hostname:
|
||||||
|
hostname = await self.get_hostname()
|
||||||
|
await self.api.net_config(
|
||||||
|
ip=ip, mask=subnet_mask, dns=dns, gate=gateway, host=hostname, dhcp=False
|
||||||
|
)
|
||||||
|
|
||||||
|
async def set_dhcp(self, hostname: str = None):
|
||||||
|
if hostname:
|
||||||
|
await self.set_hostname(hostname)
|
||||||
|
await self.api.net_config()
|
||||||
|
|
||||||
|
async def set_hostname(self, hostname: str):
|
||||||
|
await self.api.set_hostname(hostname)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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