UNPKG

ton-assembly

Version:

TON assembler and disassembler

37 lines 908 B
export type Stack = StackElement[]; export type StackElement = { readonly $: "Null"; } | { readonly $: "NaN"; } | { readonly $: "Integer"; readonly value: bigint; } | { readonly $: "Cell"; readonly boc: string; } | { readonly $: "Slice"; readonly hex: string; readonly startBit: number; readonly endBit: number; readonly startRef: number; readonly endRef: number; } | { readonly $: "Builder"; readonly hex: string; } | { readonly $: "Continuation"; readonly name: string; } | { readonly $: "Address"; readonly value: string; } | { readonly $: "Tuple"; readonly elements: StackElement[]; } | { readonly $: "Unknown"; readonly value: string; }; export declare const serializeStack: (stack: Stack) => string; export declare const serializeStackElement: (element: StackElement) => string; //# sourceMappingURL=stack.d.ts.map