Skip to content

eth::EthReceiptSourceBridge

Connects a transport-neutral receipt source to the existing EthWatchService path.

#include <eth_receipt_source.hpp>

Public Functions

Name
EthReceiptSourceBridge(EthWatchService & service, IEthReceiptSource & source)
EventWatchId watch_event(const codec::Address & contract_address, const std::string & event_signature, const std::vector< abi::AbiParam > & params, DecodedEventCallback callback, std::optional< uint64_t > from_block =std::nullopt, std::optional< uint64_t > to_block =std::nullopt)
void unwatch(EventWatchId id)
void process_receipt_batch(const ReceiptBatch & batch)

Public Functions Documentation

function EthReceiptSourceBridge

EthReceiptSourceBridge(
    EthWatchService & service,
    IEthReceiptSource & source
)

function watch_event

EventWatchId watch_event(
    const codec::Address & contract_address,
    const std::string & event_signature,
    const std::vector< abi::AbiParam > & params,
    DecodedEventCallback callback,
    std::optional< uint64_t > from_block =std::nullopt,
    std::optional< uint64_t > to_block =std::nullopt
)

function unwatch

void unwatch(
    EventWatchId id
)

function process_receipt_batch

void process_receipt_batch(
    const ReceiptBatch & batch
)

Updated on 2026-06-05 at 17:22:18 -0700