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

1.3.0-dune.2 • Public • Published

@dune-network/code-utils

Utilities for parsing and managing EVM-compatible bytecode

Usage

const { parseCode } = require("@dune-network/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);

Readme

Keywords

none

Package Sidebar

Install

npm i @dune-network/code-utils

Weekly Downloads

16

Version

1.3.0-dune.2

License

MIT

Unpacked Size

26.6 kB

Total Files

18

Last publish

Collaborators

  • lefessan