The technical content top engineers rely on to level up.

1 min read
Foundry forge coverage Visual line coverage report with LCOV !forge coverage lcov report If you run "forge coverage" in a Foundry project, you'll get a table showing how much of your lines and...
Last updated on Oct 22, 2025
11 min read
Foundry Unit Tests This article will describe how to create unit tests in Solidity using Foundry. We will cover how to test all the state transitions that can occur in a smart contract, plus some...
Last updated on Oct 22, 2025
Storage Slots in Solidity: Storage Allocation and Low-level assembly storage operations This article examines the storage architecture of the Ethereum Smart Contracts. It explains how variables are...
Last updated on Oct 22, 2025
Understanding the Function Selector in Solidity The function selector is a 4-byte id that Solidity uses to identify functions under the hood. The function selector is how a Solidity contract knows...
Last updated on Oct 22, 2025
The RareSkills Book of Solidity Gas Optimization: 80+ Tips !solidity gas optimization TABLE OF CONTENTS The RareSkills Book of Gas Optimization Gas optimization tricks do not always work Beware of...
Last updated on Oct 22, 2025
Generate a random number with Solidity on the blockchain !Random Number Solidity Random Number Randomness is tricky on the blockchain because the blockchain is deterministic, but randomness requires...
Last updated on Oct 22, 2025
Generate Ethereum Address from Private Key Python Generate Ethereum Address from Public Key An Ethereum address is the last 20 bytes of the keccak256 of the public key. The public key algorithm is...
Last updated on Oct 22, 2025
8 min read
Governance Contract in Solidity The pattern of governance many DeFi applications follows is heavily inspired by Compound Finance’s implementation. Although, there isn’t an Ethereum Improvement...
Last updated on Oct 22, 2025
16 min read
Invariant Testing in Foundry Introduction In this article, we will discuss invariants and how to perform an invariant test on Solidity smart contracts using Foundry test suites. Invariant testing is...
Last updated on Oct 22, 2025
The initializable smart contract design pattern Initializers are how upgradeable contracts achieve the behavior of a constructor. When deploying contracts, it's common to call a constructor to...
Last updated on Oct 22, 2025
A bootcamp with a job guarantee is a bad idea Because the word "bootcamp" appears on some of our pages, we occasionally get asked if we have a job guarantee. We do not. Here are six reasons why we...
Last updated on Oct 22, 2025
8 min read
Layer 2 Calldata Gas Optimization Update for mid 2024: As of the Dencun upgrade, calldata optimization doesn't have as much of an impact since the transactions on most L2s are stored on blobs,...
Last updated on Oct 22, 2025