Skip to content

evmts/quick-start

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