#pragma once #include #include #include #include #include #include #include #include "lib/led_handler.hpp" #include "lib/screen_handler.hpp" #include "lib/shared.hpp" // using namespace websockets; void setupBlockNotify(); void onWebsocketEvent(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data); void onWebsocketMessage(esp_websocket_event_data_t *event_data); void setBlockHeight(uint newBlockHeight); uint getBlockHeight(); void setBlockMedianFee(uint blockMedianFee); uint getBlockMedianFee(); bool isBlockNotifyConnected(); void stopBlockNotify(); void restartBlockNotify(); bool getBlockNotifyInit(); uint getLastBlockUpdate(); int getBlockFetch(); void setLastBlockUpdate(uint lastUpdate);