pocinnovation / evmjs Goto Github PK
View Code? Open in Web Editor NEWEVM simulator written in JS, lightweight and browser compatible.
License: MIT License
EVM simulator written in JS, lightweight and browser compatible.
License: MIT License
package.json
ts_sources
directorysources
directoryjest
The core class should take several arguments when built:
For V0.1, we will only take these arguments. When implementing the opcodes, you will see that you will need other variables (like block number, balances etc) Ignore them for the moment and set default values on them.
No gas for the moment, when you run a method, it either succeed, fail, or run infinitely.
Gas will be added in V1.
The final script should be able to take command line arguments and give them to the Core Class. Then it should run a simulation and output any result
This is how the command line script should work:
node script.js smart_contract.sol method_name arg1 arg2 ... argn
You should ouput as much informations as possible:
Create a encoder that takes as argument an ABI definition, a method name and a non-fixed amount of arguments, and returns an encoded output (an hexadecimal string).
This link might help you =>https://solidity.readthedocs.io/en/develop/abi-spec.html
The examples section is explaining very well how to encode.
Implement all the EVM OpCodes.
All of them should take the exact same arguments:
Also think of a smart way of retrieving internal errors (throws, stack underflows ...) and display them with the most possible informations.
README.md
fileA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.