0.3.0 • Published 5 years ago

evm-assembler v0.3.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

evm-assembler

Assembler for Ethereum Virtual Machine

Simple and lightweight EVM assembler. It does not import any additional dependencies

Install

npm i --save evm-assembler

example

function assemble is exported

assemble([
  ['PUSH1', '69'],
  ['SUB'],
  ['STOP']
])

assemble expects an array of arrays. Every element of the array is an array containing [opcode, argument] Only PUSH opcodes can have an argument

would return: 60690300

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago