minor: reformat a bunch of files to try to make backends more cohesive, add static dict for get_data instead of using inspect, refactored graphql into a bosminer web API, and added supports_autotuning and supports_shutdown attributes to miners.

This commit is contained in:
UpstreamData
2023-03-28 11:39:03 -06:00
parent 63c8fe6868
commit aa6dc74471
239 changed files with 2106 additions and 4833 deletions

View File

@@ -46,6 +46,12 @@ class BaseWebAPI(ABC):
) -> dict:
pass
@abstractmethod
async def multicommand(
self, *commands: str, ignore_errors: bool = False, allow_warning: bool = True
) -> dict:
pass
def _check_commands(self, *commands):
allowed_commands = self.get_commands()
return_commands = []