2024-12-17 20:17:21 -06:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <HTTPClient.h>
|
2024-12-20 01:08:03 +01:00
|
|
|
#include "mining_pool/pool_factory.hpp"
|
2024-12-17 20:17:21 -06:00
|
|
|
|
|
|
|
#include "lib/config.hpp"
|
|
|
|
#include "lib/shared.hpp"
|
|
|
|
|
|
|
|
extern TaskHandle_t miningPoolStatsFetchTaskHandle;
|
|
|
|
|
|
|
|
void setupMiningPoolStatsFetchTask();
|
|
|
|
void taskMiningPoolStatsFetch(void *pvParameters);
|
|
|
|
|
|
|
|
std::string getMiningPoolStatsHashRate();
|
2024-12-18 15:58:12 -06:00
|
|
|
int getMiningPoolStatsDailyEarnings();
|
2024-12-20 01:08:03 +01:00
|
|
|
|
|
|
|
std::unique_ptr<MiningPoolInterface>& getMiningPool();
|
|
|
|
LogoData getMiningPoolLogo();
|