@nxfi/ton-opcode
TypeScript icon, indicating that this package has built-in type declarations

0.0.15-0 • Public • Published

TON Opcodes

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 @tact-lang/opcode

Usage

import { decompile } from "@tact-lang/opcode";

// Decompile a single cell sequence into opcode list. Useful for interpretators or for debugging.
const sourceCode = Buffer.from('....', 'base64');
const decompiledOpcodes = decompile({ src: sourceCode });

// Decompile a whole contract. Useful for contract developers and explorers.
const decompiledCode = decompileAll({ src: sourceCode });

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @nxfi/ton-opcode

Weekly Downloads

1

Version

0.0.15-0

License

MIT

Unpacked Size

6.11 MB

Total Files

69

Last publish

Collaborators

  • nxfi