truffle-conflux-code-utils

0.0.2-alpha.0 • Public • Published

truffle-conflux-code-utils

Utilities for parsing and managing EVM-compatible bytecode

Usage

const { parseCode } = require("truffle-conflux-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 truffle-conflux-code-utils

Weekly Downloads

1

Version

0.0.2-alpha.0

License

MIT

Unpacked Size

10 kB

Total Files

8

Last publish

Collaborators

  • liuis