This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@truffle/code-utils
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

@truffle/code-utils

Utilities for parsing and managing EVM-compatible bytecode

Usage

const { parseCode } = require("@truffle/code-utils");

const contractHexCode = "0x608060...";

// parseCode returns an array of instructions
// Ex.
// [ { pc: 0, name: 'PUSH1', pushData: '0x80' },
//   { pc: 2, name: 'PUSH1', pushData: '0x40' },
//   ... ]
const parsedCode = parseCode(contractHexCode);

/@truffle/code-utils/

    Package Sidebar

    Install

    npm i @truffle/code-utils

    Weekly Downloads

    13,838

    Version

    3.0.4

    License

    MIT

    Unpacked Size

    39.4 kB

    Total Files

    19

    Last publish

    Collaborators

    • rizedr
    • kevinbluer
    • fainashalts
    • cds-amal