UNPKG

@hirosystems/chainhook-client

Version:
14 lines (13 loc) 1.11 kB
import { Predicate } from './schemas/predicate'; import { ChainhookNodeOptions, EventObserverOptions, EventObserverPredicate } from '.'; /** * Looks on disk and returns a map of registered Predicates, where the key is the predicate `name` * as defined by the user. */ export declare function recallPersistedPredicatesFromDisk(basePath: string): Promise<Map<string, Predicate>>; export declare function savePredicateToDisk(basePath: string, predicate: Predicate): Promise<void>; /** Registers predicates with the Chainhook server when our event observer is booting up */ export declare function registerAllPredicatesOnObserverReady(predicates: EventObserverPredicate[], observer: EventObserverOptions, chainhook: ChainhookNodeOptions): Promise<void>; /** Removes predicates from the Chainhook server when our event observer is being closed */ export declare function removeAllPredicatesOnObserverClose(observer: EventObserverOptions, chainhook: ChainhookNodeOptions): Promise<void>; export declare function predicateHealthCheck(observer: EventObserverOptions, chainhook: ChainhookNodeOptions): Promise<void>;