UNPKG

ton-assembly

Version:
29 lines 1.15 kB
import type { LogEntry, StackElement } from "./logs"; import type { AssemblyMapping, HighLevelMapping, HighLevelSourceMapEntry, InstructionInfo, Loc } from "ton-source-map"; /** * Describes a single step in the trace. */ export type Step = { readonly loc: Loc | undefined; readonly instructionName: string; readonly stack: readonly StackElement[]; readonly gas: number; readonly gasCost: number; readonly sourceMapEntries: readonly HighLevelSourceMapEntry[]; }; /** * Describes the entire trace. */ export type TraceInfo = { readonly steps: readonly Step[]; }; /** * Creates a trace from the logs and mapping. */ export declare const createTraceInfo: (logs: string, mapping: AssemblyMapping, sourceMap: undefined | HighLevelMapping) => TraceInfo; export declare const createTraceInfoPerTransaction: (logs: string, mapping: AssemblyMapping, sourceMap: undefined | HighLevelMapping) => TraceInfo[]; /** * Finds the instruction in the mapping. */ export declare const findInstructionInfo: (info: AssemblyMapping, stepInfo: LogEntry) => undefined | [readonly InstructionInfo[], number]; //# sourceMappingURL=trace.d.ts.map