Skip to content

scaleton-labs/tvm-disassembler

 
 

Repository files navigation

TVM Disassembler

Evolution of tvm-disassembler library that is built to be used also as a library that returns structured code. Has a list of typed opcodes and ability to read individual opcode from a slice.

Installation

yarn add @scaleton/tvm-disassembler

Basic Usage

import { Cell } from '@ton/core';
import { decompileAll, AssemblerWriter } from '@scaleton/tvm-disassembler';

const code = Cell.fromBase64('...');
const ast = decompileAll(code); // Build AST
const assembler = AssemblerWriter.write(ast); // Generate assembler from AST

Authors

License

MIT License

Packages

No packages published

Languages

  • TypeScript 99.8%
  • JavaScript 0.2%