Build powerful TypeScript applications powered by the EVM, simplified
Tevm is an ethereum development toolkit that offers
Tevm runs in all environments
Tevm scripting is a simple yet powerful way to program.
HelloWorld.s.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.8.0;
contract HelloWorld {
function greet(string memory name) public pure returns (string memory) {
return string(abi.encodePacked("Hello ", name, "!"));
}
}
import { HelloWorld } from './HelloWorld.sol'
console.log(HelloWorld.abi)
console.log(HelloWorld.bytecode)
tevm.script
actionimport { HelloWorld } from './HelloWorld.sol'
import { createMemoryClient } from 'tevm'
const client = createMemoryClient()
const result = await tevm.script(
HelloWorld.read.greate('World')
)
console.log(result.data) // Hello world!
This is just a small subset of what Tevm offers. See docs for more information.
Contributions are encouraged, but please open an issue before doing any major changes to make sure your change will be accepted.
See CONTRIBUTING.md for contributing information
Author: evmts
Source: https://github.com/evmts/tevm-monorepo
License: MIT license