Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cionn3/revm-by-example
Practical examples of the Rust Ethereum Virtual Machine
https://github.com/cionn3/revm-by-example
ethereum ethereum-blockchain evm-blockchain revm
Last synced: about 9 hours ago
JSON representation
Practical examples of the Rust Ethereum Virtual Machine
- Host: GitHub
- URL: https://github.com/cionn3/revm-by-example
- Owner: Cionn3
- Created: 2024-02-29T12:20:10.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-25T08:54:07.000Z (about 2 months ago)
- Last Synced: 2024-11-09T10:17:18.507Z (7 days ago)
- Topics: ethereum, ethereum-blockchain, evm-blockchain, revm
- Language: Rust
- Homepage:
- Size: 190 KB
- Stars: 53
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Revm by Example
## Practical examples of the Rust Ethereum Virtual Machine ([REVM](https://github.com/bluealloy/revm))
## 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 transfer`### Available Examples
- **simulate_swap.rs**: Demonstrates a token swap on a Uniswap pool, interacting with a custom Solidity contract.
- **simple_trace.rs**: An example of how you may trace pending transactions.
- **transfer.rs**: Transfer ETH and ERC20 tokens.
- **revert_msg.rs**: Convert EVM output to a readable message.