diff --git a/pyasic/miners/btc/_types/antminer/X9/S9j.py b/pyasic/miners/btc/_types/antminer/X9/S9j.py new file mode 100644 index 00000000..e786a5cb --- /dev/null +++ b/pyasic/miners/btc/_types/antminer/X9/S9j.py @@ -0,0 +1,26 @@ +# ------------------------------------------------------------------------------ +# Copyright 2022 Upstream Data Inc - +# - +# Licensed under the Apache License, Version 2.0 (the "License"); - +# you may not use this file except in compliance with the License. - +# You may obtain a copy of the License at - +# - +# http://www.apache.org/licenses/LICENSE-2.0 - +# - +# Unless required by applicable law or agreed to in writing, software - +# distributed under the License is distributed on an "AS IS" BASIS, - +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - +# See the License for the specific language governing permissions and - +# limitations under the License. - +# ------------------------------------------------------------------------------ + +from pyasic.miners.makes import AntMiner + + +class S9j(AntMiner): # noqa - ignore ABC method implementation + def __init__(self, ip: str, api_ver: str = "0.0.0"): + super().__init__(ip, api_ver) + self.ip = ip + self.model = "S9j" + self.nominal_chips = 63 + self.fan_count = 2 diff --git a/pyasic/miners/btc/_types/antminer/X9/__init__.py b/pyasic/miners/btc/_types/antminer/X9/__init__.py index a1d7da2b..2e8359f0 100644 --- a/pyasic/miners/btc/_types/antminer/X9/__init__.py +++ b/pyasic/miners/btc/_types/antminer/X9/__init__.py @@ -16,4 +16,5 @@ from .S9 import S9 from .S9i import S9i +from .S9j import S9j from .T9 import T9 diff --git a/pyasic/miners/btc/antminer/bmminer/X9/S9j.py b/pyasic/miners/btc/antminer/bmminer/X9/S9j.py new file mode 100644 index 00000000..561745a0 --- /dev/null +++ b/pyasic/miners/btc/antminer/bmminer/X9/S9j.py @@ -0,0 +1,22 @@ +# ------------------------------------------------------------------------------ +# Copyright 2022 Upstream Data Inc - +# - +# Licensed under the Apache License, Version 2.0 (the "License"); - +# you may not use this file except in compliance with the License. - +# You may obtain a copy of the License at - +# - +# http://www.apache.org/licenses/LICENSE-2.0 - +# - +# Unless required by applicable law or agreed to in writing, software - +# distributed under the License is distributed on an "AS IS" BASIS, - +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - +# See the License for the specific language governing permissions and - +# limitations under the License. - +# ------------------------------------------------------------------------------ + +from pyasic.miners.backends import BMMiner +from pyasic.miners.btc._types import S9j # noqa - Ignore access to _module + + +class BMMinerS9j(BMMiner, S9j): + pass diff --git a/pyasic/miners/btc/antminer/bmminer/X9/__init__.py b/pyasic/miners/btc/antminer/bmminer/X9/__init__.py index 06736761..d738505b 100644 --- a/pyasic/miners/btc/antminer/bmminer/X9/__init__.py +++ b/pyasic/miners/btc/antminer/bmminer/X9/__init__.py @@ -16,4 +16,5 @@ from .S9 import BMMinerS9 from .S9i import BMMinerS9i +from .S9j import BMMinerS9j from .T9 import BMMinerT9 diff --git a/pyasic/miners/miner_factory.py b/pyasic/miners/miner_factory.py index 04ba1d67..1dcde5f8 100644 --- a/pyasic/miners/miner_factory.py +++ b/pyasic/miners/miner_factory.py @@ -83,6 +83,10 @@ MINER_CLASSES = { "Default": BMMinerS9i, "BMMiner": BMMinerS9i, }, + "ANTMINER S9J": { + "Default": BMMinerS9j, + "BMMiner": BMMinerS9j, + }, "ANTMINER T9": { "Default": BMMinerT9, "BMMiner": BMMinerT9,