• Stars
    star
    321
  • Rank 130,752 (Top 3 %)
  • Language
  • Created over 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of EVM related information.

EVM-Book

A collection of EVM related information. This is a repo that I created for myself to keep track of all the useful links/information I have come across related to the EVM and put it in one place. I made it public in case anyone else wants to use it to explore specific EVM related topics. This document is a work in progess and will continually be updated.


Low Level EVM Info

Every EVM Opcode and cost

Solidity -> Bytecode -> Opcodes

Memory Deep Dive

The EVM chapter in the Ethereum Book

EVM Puzzles: Use calldata, calvalues and opcodes to solve EVM challenges

Huff's EVM Tutorial


Tooling / Testing

Foundry

Hardhat (for when the task is outside of the bounds of Foundry)

Tenderly: Block explorer that provides very detailed transaction info.

DethCode: While browsing smart contract code on Etherscan, change URL from .io to .deth.net. This will open Visual Studio Code instance and fetch the verified code using Etherscan API.


Security

Smart contract security - key principles

Comprehensive list of known attack vectors and common anti-patterns

Smart Contract Programmer's Hack Solidity Playlist

Smartbugs: A curated dataset of vulnerable solidity smart contracts

Use Slither AND Mythril together for automated vunerability testing. This does not replace an audit. This is like scanning a contract at a high level and only picks up ~37% of vunerabilities accurately

List of all up to date Solidity compiler bugs

Damn Vulnerabile Defi: Smart contract offensive security challenges (Or try the Foundry Version)

Solcurity: A security and code quality checklist


Gas Optimizations

Solmate: gas optimized building blocks for smart contract development.

How arithmetic with values less than 32bytes are handled and why it costs more gas

Patterns / Optimizations for gas savings

EVM Gas optimizations with gas benchmarks

Solstat: A static analyzer to find gas optimizations and contract vulnerabilities


Yul

Yul Docs

Yul+ Docs

Yul+ Walkthrough

Inlining Yul In Solidity

Accessing Memory Explanation

Vunerable Yul Patterns


General/Misc

Conventions in Solidity

ControlCPlusControlV's Yul (and Some Solidity) Optimizations and Tricks


More Repositories

1

solstat

A Solidity static analyzer to identify contract vulnerabilities and gas efficiencies.
Rust
423
star
2

cfmms-rs

The predecessor to `amms-rs`. CFMM lib built in Rust enabling pair syncing and swap simulation with pools on Ethereum.
Rust
274
star
3

uniswap-v3-math

Rust
242
star
4

Foundry-Vyper

A Foundry template to compile and test Vyper contracts.
Solidity
173
star
5

Ghost-Contract

A minimalistic contract to execute a payload and make the code size of the msg.sender appear to be 0.
Solidity
138
star
6

Tour-of-ethers-rs

A comprehensive walkthrough of all the nooks and crannies ethers-rs has to offer.
96
star
7

EVM-Gas-Optimizations

A collection of gas optimizations for the EVM.
90
star
8

sstan

Solidity static analyzer
Rust
80
star
9

Foundry-Huff

A Foundry template to compile and test Huff contracts.
Solidity
52
star
10

bid_ask_service

Rust
45
star
11

evm-mnemonic

A barebones framework for hand tuned smart contracts in pure opcodes.
Rust
45
star
12

EVM-Puzzles-Walkthrough

39
star
13

openai-rs

A simple and efficient wrapper around the OpenAI API
Rust
28
star
14

gas-lab

A quick and easy way to test gas optimizations.
Solidity
27
star
15

burn_operation

Securely wipe your computer at the speed of light.
Rust
26
star
16

Optimized-Merkle-Proof

Solidity
17
star
17

solstat-reports

Smart contract audit / optimization reports generated by solstat.
Solidity
14
star
18

discord-openai

Discord x OpenAI bot
Rust
14
star
19

magglob-rs

Modular aggregated order book for CeFi exchanges
Rust
14
star
20

Optimized-Patricia-Tree

A modern, optimized Merkle Patricia Trie implementation.
Solidity
10
star
21

HFT-Research

8
star
22

ethers-throttle

A lightweight wrapper for ethers providers to throttle requests.
Rust
6
star
23

A-Journey-To-The-Center-Of-The-Node

A detailed walkthrough into the black box of node clients.
5
star
24

Reproducible-Go-Binaries

Makefile
5
star
25

casol

A hyper optimized chess engine.
Rust
5
star
26

geth-ipc-rpc-bench

Benchmarks comparing Geth's IPC and RPC endpoints.
Go
4
star
27

world-id-relay

State bridge relay for WorldID
Rust
2
star
28

tx-relay

Rust
2
star
29

RussianRoulette

Solidity
1
star
30

tx-monitor

Rust
1
star
31

Easy-Kali

Python
1
star