Skip to content

Practical examples of the Rust Ethereum Virtual Machine

Notifications You must be signed in to change notification settings

Cionn3/revm-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revm by Example

Practical examples of the Rust Ethereum Virtual Machine (REVM)

For usage with alloy see branch feat-alloy

Getting Started

Clone the Repository:

git clone https://github.com/Cionn3/revm-by-example.git

Usage

To run an example, cargo run by the module name: cargo run --bin simulate-call

Available Examples

  • simulate_call.rs: Simulates interactions with the WETH contract.

  • simulate_swap.rs: Demonstrates a token swap on a Uniswap pool, interacting with a custom Solidity contract, and withdrawing ERC20 tokens to the caller's account.

  • simple_trace.rs: An example of how you may trace pending transactions.

About

Practical examples of the Rust Ethereum Virtual Machine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published