Skip to content

A POC of building a UI purely with solidity compiled to evm bytecode that runs in browser

Notifications You must be signed in to change notification settings

evmts/solidity-ui

Repository files navigation

Tevm Getting Started

This repo demonstrates the Tevm Getting Started Guide. Every step of the guide is it's own commit.

Features demonstrated

There are also commits showing the boilerplate needed to run Tevm in the browser and set up the automatic solidity contract imports.

Main files

  • src/main.ts demonstrates the most basic tevm features such as modifying accounts deploying and calling contracts and using the viem api.
  • src/counter.spec.ts demonstrates more advanced tevm features such as solidity scripting and running javascript in solidity.

Stack blitz

This repo is available as a stackblitz here. You will have to enable the local version of typescript after starting the stakblitz. More information is in a comment at the top of src/main.ts.

Advanced NEXT.js example

For a more advanced example using Tevm and NEXT.js to build a robust transaction simulator app see the NEXT.js example

image

Shout out to polarzero who originally built this. See his live version here

About

A POC of building a UI purely with solidity compiled to evm bytecode that runs in browser

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published