Skip to content

fergarrui/evm-assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evm-assembler

npm version

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', '66'],
  ['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: 60660300

About

Assembler for Ethereum Virtual Machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published