UNPKG

ton-assembly

Version:

TON assembler and disassembler

30 lines 1.13 kB
import type { InstructionInfo, Loc, MappingInfo } from "./mapping"; import type { LogEntry, StackElement } from "./logs"; import type { FuncSourceLoc, FuncMapping } from "./func-mapping"; /** * 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 funcLoc: undefined | FuncSourceLoc; }; /** * 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: MappingInfo, funcMapping: undefined | FuncMapping) => TraceInfo; export declare const createTraceInfoPerTransaction: (logs: string, mapping: MappingInfo, funcMapping: undefined | FuncMapping) => TraceInfo[]; /** * Finds the instruction in the mapping. */ export declare const findInstructionInfo: (info: MappingInfo, stepInfo: LogEntry) => undefined | [readonly InstructionInfo[], number]; //# sourceMappingURL=trace.d.ts.map