feature: add mara miner models.
This commit is contained in:
@@ -20,4 +20,5 @@ from .cgminer import *
|
|||||||
from .epic import *
|
from .epic import *
|
||||||
from .hiveon import *
|
from .hiveon import *
|
||||||
from .luxos import *
|
from .luxos import *
|
||||||
|
from .marathon import *
|
||||||
from .vnish import *
|
from .vnish import *
|
||||||
|
|||||||
46
pyasic/miners/antminer/marathon/X19/S19.py
Normal file
46
pyasic/miners/antminer/marathon/X19/S19.py
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# 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 MaraMiner
|
||||||
|
from pyasic.miners.models import S19, S19XP, S19j, S19jNoPIC, S19jPro, S19KPro, S19Pro
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19(MaraMiner, S19):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19Pro(MaraMiner, S19Pro):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19XP(MaraMiner, S19XP):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19j(MaraMiner, S19j):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19jNoPIC(MaraMiner, S19jNoPIC):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19jPro(MaraMiner, S19jPro):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS19KPro(MaraMiner, S19KPro):
|
||||||
|
pass
|
||||||
9
pyasic/miners/antminer/marathon/X19/__init__.py
Normal file
9
pyasic/miners/antminer/marathon/X19/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from .S19 import (
|
||||||
|
MaraS19,
|
||||||
|
MaraS19j,
|
||||||
|
MaraS19jNoPIC,
|
||||||
|
MaraS19jPro,
|
||||||
|
MaraS19KPro,
|
||||||
|
MaraS19Pro,
|
||||||
|
MaraS19XP,
|
||||||
|
)
|
||||||
22
pyasic/miners/antminer/marathon/X21/S21.py
Normal file
22
pyasic/miners/antminer/marathon/X21/S21.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Copyright 2022 Upstream Data Inc -
|
||||||
|
# -
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
|
# you may not use this file except in compliance with the License. -
|
||||||
|
# You may obtain a copy of the License at -
|
||||||
|
# -
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 -
|
||||||
|
# -
|
||||||
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from pyasic.miners.backends import MaraMiner
|
||||||
|
from pyasic.miners.models import S21
|
||||||
|
|
||||||
|
|
||||||
|
class MaraS21(MaraMiner, S21):
|
||||||
|
pass
|
||||||
22
pyasic/miners/antminer/marathon/X21/T21.py
Normal file
22
pyasic/miners/antminer/marathon/X21/T21.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Copyright 2022 Upstream Data Inc -
|
||||||
|
# -
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
|
# you may not use this file except in compliance with the License. -
|
||||||
|
# You may obtain a copy of the License at -
|
||||||
|
# -
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 -
|
||||||
|
# -
|
||||||
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from pyasic.miners.backends import MaraMiner
|
||||||
|
from pyasic.miners.models import T21
|
||||||
|
|
||||||
|
|
||||||
|
class MaraT21(MaraMiner, T21):
|
||||||
|
pass
|
||||||
2
pyasic/miners/antminer/marathon/X21/__init__.py
Normal file
2
pyasic/miners/antminer/marathon/X21/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from .S21 import MaraS21
|
||||||
|
from .T21 import MaraT21
|
||||||
2
pyasic/miners/antminer/marathon/__init__.py
Normal file
2
pyasic/miners/antminer/marathon/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from .X19 import *
|
||||||
|
from .X21 import *
|
||||||
@@ -424,6 +424,15 @@ MINER_CLASSES = {
|
|||||||
},
|
},
|
||||||
MinerTypes.MARATHON: {
|
MinerTypes.MARATHON: {
|
||||||
None: MaraMiner,
|
None: MaraMiner,
|
||||||
|
"ANTMINER S19": MaraS19,
|
||||||
|
"ANTMINER S19 PRO": MaraS19Pro,
|
||||||
|
"ANTMINER S19J": MaraS19j,
|
||||||
|
"ANTMINER S19J88NOPIC": MaraS19jNoPIC,
|
||||||
|
"ANTMINER S19J PRO": MaraS19jPro,
|
||||||
|
"ANTMINER S19 XP": MaraS19XP,
|
||||||
|
"ANTMINER S19K PRO": MaraS19KPro,
|
||||||
|
"ANTMINER S21": MaraS21,
|
||||||
|
"ANTMINER T21": MaraT21,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user