UNPKG

clvm_tools

Version:

Javascript implementation of clvm_tools

7 lines (6 loc) 528 B
import { SExp, Bytes, Tuple } from "clvm"; export declare function assemble_from_ir(ir_sexp: SExp): SExp; export declare function type_for_atom(atom: Bytes): number; export declare function disassemble_to_ir<A extends boolean = false>(sexp: SExp, keyword_from_atom: Record<string, string>, allow_keyword?: A): A extends false | undefined ? SExp : SExp | Tuple<number, Bytes>; export declare function disassemble(sexp: SExp, keyword_from_atom?: Record<string, string>): string; export declare function assemble(s: string): SExp;