Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
Loading...
Searching...
No Matches
dcn::events::IHotEventStore Class Referenceabstract

#include <events_store.hpp>

Inheritance diagram for dcn::events::IHotEventStore:
dcn::events::SQLiteHotStore

Public Member Functions

virtual ~IHotEventStore ()=default
virtual std::optional< std::int64_t > loadNextFromBlock (int chain_id)=0
virtual bool ingestBatch (int chain_id, const std::vector< RawChainLog > &raw_events, const std::vector< DecodedEvent > &decoded_events, const std::vector< ChainBlockInfo > &block_infos, std::int64_t next_from_block, std::int64_t now_ms, std::optional< std::uint64_t > next_local_seq=std::nullopt)=0
virtual bool applyFinality (int chain_id, const FinalityHeights &heights, std::int64_t now_ms, std::size_t reorg_window_blocks)=0

Constructor & Destructor Documentation

◆ ~IHotEventStore()

virtual dcn::events::IHotEventStore::~IHotEventStore ( )
virtualdefault

Member Function Documentation

◆ applyFinality()

virtual bool dcn::events::IHotEventStore::applyFinality ( int chain_id,
const FinalityHeights & heights,
std::int64_t now_ms,
std::size_t reorg_window_blocks )
pure virtual

Implemented in dcn::events::SQLiteHotStore.

◆ ingestBatch()

virtual bool dcn::events::IHotEventStore::ingestBatch ( int chain_id,
const std::vector< RawChainLog > & raw_events,
const std::vector< DecodedEvent > & decoded_events,
const std::vector< ChainBlockInfo > & block_infos,
std::int64_t next_from_block,
std::int64_t now_ms,
std::optional< std::uint64_t > next_local_seq = std::nullopt )
pure virtual

Implemented in dcn::events::SQLiteHotStore.

◆ loadNextFromBlock()

virtual std::optional< std::int64_t > dcn::events::IHotEventStore::loadNextFromBlock ( int chain_id)
pure virtual

Implemented in dcn::events::SQLiteHotStore.


The documentation for this class was generated from the following file: