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

    1.2.30 • 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);

    Keywords

    none

    Install

    npm i @truffle/code-utils

    DownloadsWeekly Downloads

    31,902

    Version

    1.2.30

    License

    MIT

    Unpacked Size

    29.8 kB

    Total Files

    19

    Last publish

    Collaborators

    • kevinbluer
    • tenthirtyone
    • lsqproduction
    • kevinweaver
    • leeftk
    • gnidan
    • haltman
    • eggplantzzz
    • fainashalts
    • rkalis
    • cds-amal