@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.
30 lines • 1.55 kB
TypeScript
import { Edge, WeightedEdge, Profit, AggregatedEdge, AggregatedEdgeProfit } from "../items/ttr_defs";
import { PushPopModel } from './push_pop';
declare class TTR extends PushPopModel {
alpha: number;
beta: number;
epsilon: number;
p: Record<string, number>;
r: Map<string, Profit[]>;
weighted_edges: WeightedEdge[];
constructor(source: string, alpha?: number, beta?: number, epsilon?: number);
push(node: any, edges: Edge[], ...kwargs: any[]): void;
pop(): [any, Record<string, any>];
get_context_snapshot(): Record<string, any>;
get_node_rank(): Record<string, number>;
}
declare class TTRRedirect extends TTR {
_vis: Set<string>;
_added_edges_hash: Set<string>;
constructor(source: string, alpha?: number, beta?: number, epsilon?: number);
push(node: string, edges: Edge[]): void;
_self_push(node: string, r: Profit[]): void;
_forward_push(node: string, aggregated_edges: AggregatedEdge[], r: Profit[]): void;
_backward_push(node: string, aggregated_edges: AggregatedEdge[], r: Profit[]): void;
pop(): [string | null, Record<string, any>];
get_context_snapshot(): Record<string, any>;
_get_distributing_profit(direction: number, symbol: string, index: number, aggregated_edges: AggregatedEdge[], distributing_index: Map<string, number[]>, symbol_agg_es_idx: Map<string, number[]>, chip_value: number): AggregatedEdgeProfit[];
_get_aggregated_edges(node: string, edges: Edge[]): AggregatedEdge[];
}
export { TTR, TTRRedirect, };
//# sourceMappingURL=ttr.d.ts.map