You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is a series of very small tasks to add custom precompiles to a standard library of precompiles.
We have currently added one precompile, the FS precompile. We are keeping them private in the test folder for now. We want to add more so users of tevm can do useful things from within their tevm scripts.
Precompiles
Precompiles are JavaScript code deployed to a configurable address that can be executed via a call in the EVM in solidity code or sending to a tevm client.
callbacks - Execute a precompile passed in as a callback (not beginner friendly)
process
Comment if you want to add any node api not listed
Browser api precompiles
Browser apis would allow one to do wild things like create a simple frontend framework that runs fully in solidity
Storage
local storage
Dom manipulation
document.createElement (not beginner friendly)
document.appendElement (blocked by createElement)
Comment if you would like to add any api not listed
Anvil
Anvil cheat codes are the state of the art for scripting. Anything that has relative compatability to an existing anvil cheat code when added as a precompile would be great to add to Tevm
Activity
roninjin10 commentedon Dec 20, 2023
CHA-112
[-]Common library of precompiles[/-][+]Create common library of precompiles[/+]