btclock_v3/src/lib/nostr_notify.hpp

26 lines
No EOL
692 B
C++

#pragma once
#include "shared.hpp"
#include <ArduinoJson.h>
#include <nostrdisplay_handler.hpp>
#include <string>
#include "esp32/ESP32Platform.h"
#include "NostrEvent.h"
#include "NostrPool.h"
#include "price_notify.hpp"
#include "block_notify.hpp"
void setupNostrNotify(bool asDatasource, bool zapNotify);
void nostrTask(void *pvParameters);
void setupNostrTask();
boolean nostrConnected();
void handleNostrEventCallback(const String &subId, nostr::SignedNostrEvent *event);
void handleNostrZapCallback(const String &subId, nostr::SignedNostrEvent *event);
void onNostrSubscriptionClosed(const String &subId, const String &reason);
void onNostrSubscriptionEose(const String &subId);