clvm
Version:
Javascript implementation of chia lisp
17 lines (16 loc) • 906 B
TypeScript
import { None } from "./__python_types__";
import { SExp } from "./SExp";
import { TToSexpF } from "./as_javascript";
import { CLVMType } from "./CLVMObject";
import { Tuple } from "./__type_compatibility__";
import { TOperatorDict } from "./operators";
export type OpCallable = (opStack: OpStackType, valStack: ValStackType) => number;
export type ValStackType = SExp[];
export type OpStackType = OpCallable[];
export type TPreEvalF = (v1: SExp, v2: SExp) => unknown;
export declare function to_pre_eval_op(pre_eval_f: TPreEvalF, to_sexp_f: TToSexpF): (op_stack: OpStackType, value_stack: ValStackType) => void;
export declare function msb_mask(byte: number): number;
/**
* @deprecated Use `run_chia_program` instead.
*/
export declare function run_program(program: SExp, args: CLVMType, operator_lookup: TOperatorDict, max_cost?: number | None, pre_eval_f?: TPreEvalF | None): Tuple<number, CLVMType>;