@guaritos/tracer-engine
Version:
A highly performant and scalable multi-hop, time-aware tracer for account-based blockchain transactions, designed for off-chain risk assessment and flow analysis.
26 lines • 905 B
TypeScript
import { PopItem, RankItem, StrategySnapshotItem } from "./items/subgraph";
import { Edge } from "./items/ttr_defs";
export interface TraceOptions {
max_depth?: number;
filters?: TraceFilters;
}
interface TraceFilters {
token_filters?: string[];
}
export declare class TraceResult {
strategy_snap_shot_items: Record<string, any>;
rank_items: Record<string, number>;
}
declare class TracerEngine {
private class_name;
private strategy;
private log;
private enable_log;
constructor(source: string, options?: {
enable_log?: boolean;
});
push_pop(node: string, edges: Edge[]): Generator<PopItem | StrategySnapshotItem | RankItem, void, unknown>;
startTrace(get_edges: (node: string, filter?: TraceFilters) => Promise<Edge[]>, trace_options?: TraceOptions): Promise<TraceResult>;
}
export { TracerEngine };
//# sourceMappingURL=tracer_engine.d.ts.map