UNPKG

clvm_tools

Version:

Javascript implementation of clvm_tools

32 lines (31 loc) 1.18 kB
export * from "./clvm_tools/binutils"; export * from "./clvm_tools/clvmc"; export * from "./clvm_tools/cmds"; export * from "./clvm_tools/curry"; export * from "./clvm_tools/debug"; export * from "./clvm_tools/NodePath"; export * from "./clvm_tools/pattern_match"; export * from "./clvm_tools/sha256tree"; import { TPrinter } from "./platform/print"; import { TInitOption as TInitClvmRsOption } from "./platform/clvm_rs"; /** * Dispatch cli command. * - `go("run", "(mod ARGUMENT (+ ARGUMENT 3))")` * - `go("brun", "(+ 1 (q . 3))", "--time")` * * @param {...string[]} args */ export declare function go(...args: string[]): unknown; /** * Change print function. Default is `console.log`. * If you want to print messages to file, variable or something, you need to change printer function by this function. * @param {(...msg: string[]) => void} printer */ export declare function setPrintFunction(printer: TPrinter): void; export declare type TInitOption = { initClvmRsOption: TInitClvmRsOption; }; /** * Wait wasm files to be loaded before you call any of `clvm_tools` functions. */ export declare function initialize(option?: Partial<TInitOption>): Promise<void>;