smlxl / evm.codes Goto Github PK
View Code? Open in Web Editor NEWSource for evm.codes an Ethereum Virtual Machine Opcodes Interactive Reference
Home Page: https://evm.codes/
License: MIT License
Source for evm.codes an Ethereum Virtual Machine Opcodes Interactive Reference
Home Page: https://evm.codes/
License: MIT License
Gast usage pane:
Currently newest element always has index 0 in our examples
Connect to the real chain to be able to get data from it and do contracts calls, but run those locally.
Shortcuts:
Initial app layout:
Test on Safari/Chrome/Firefox
The Opcode table layout seems buggy on my browser with a massive gap between the input and output columns and issues with horizontal scroll
The bundled lib/solcWorker.js
worker code should be converted to TypeScript and removed from Eslint ignores.
A dropdown to choose the network and fork
I assume it has to do with the shortcuts.
Version: https://evm-codes-88qk7nyv2-comity.vercel.app/playground
When there is a compiler/code error, show it nicely and let users dismiss a flash message.
Page (or side panel) about EVM and its operation, with some links from the main page
Integrate demo code compilation to the app with the related worker/compiler.
A simple code editor with the support for plain -text and Solidity:
The table with EVM opcodes
at ethereum.min.js:1
at Array.map (<anonymous>)
at e.<anonymous> (ethereum.min.js:1)
at ethereum.min.js:1
at Object.next (ethereum.min.js:1)
at ethereum.min.js:1
at new Promise (<anonymous>)
at ____awaiter_13 (ethereum.min.js:1)
at e.cliqueUpdateSignerStates (ethereum.min.js:1)
at e.<anonymous> (ethereum.min.js:1)
For each opcode with a runtime component to the gas cost, add the editable formula so that the full cost can be obtained, and the different conditions changed.
For example:
BALANCE [] warm [] cold: x cost (exclusive checkbox)
EXP 10 + 50 * [byte_len_exponent]: x cost (input field)
The constants can be obtained from ethereum-js, to stay up to date with version changes.
When scrolling down, the table headers should stick under the nav bar for easier reference.
For example:
Would be great to let users resize the panes as they wish and remember their preferences.
Example opcodes to reproduce:
601060015700
A 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.