blockchain.trace/state-transition/block #0

Blockchain Engineering Atlas

From state transitions to verifiable protocols.

An EVM-first atlas for protocols that modify shared state and assets under public, replicated, and adversarial execution — from ledger and bytecode to markets, proofs, settlement, and operations.

01TXsigned calldatanonce · value · gas
deterministic execution
02EVMcall tracestack · memory · storage
slot 0x020x00170x0018
state root checkpoint
03L1block · root · finalityincluded → safe → finalized
L1L2EVMVERIFIEDTESTNETLOCAL ONLY
33Canonical pages
18Branches
12Statecraft milestones
0Atomic notes implemented

EVM-first, not Ethereum-only

Ethereum and the EVM form the practical spine; BNB Chain, Base, Optimism, Arbitrum, Polygon, ZK rollups, Solana, Cosmos/IBC, and Bitcoin provide explicit contrasts.

Protocol engineering, not investing

Tokens and markets appear as state, accounting, authority, incentive, and attack surfaces — never as price calls, trading advice, or real-funds opportunities.

Adversarial execution

Contracts cannot choose transaction order, trust external calls, repair every deployed mistake, or assume oracles, bridges, sequencers, frontends, and admins are neutral.

RISKEducational implementation. Not audited. Not production-ready. Do not use with real funds.
Independent protocol-engineering atlas

Shared state under adversarial execution.

Low-Level Atlas explains the machine; AI Atlas explains intelligent systems; WebAssembly AI Atlas connects portable execution and AI. This atlas owns protocol state, authority, markets, proofs, settlement, and operations.

atlas-i

Low-Level Atlas I

Machine model, C, memory, assembly, toolchains, systems, concurrency, and an operating system from scratch.

atlas-ii

Low-Level Atlas II

Applied systems built from scratch: shell, allocator, regex engine, Git, HTTP server, and database engine.

atlas-iii

Low-Level Atlas III

Sockets, protocols, WebSocket, concurrency at scale, messaging architecture, and a real-time chat.

ai-atlas

AI Atlas

Models, RAG, agents, evaluation, safety, MLOps, product engineering, and inference optimization.

wasm-ai

WebAssembly AI Atlas

Portable execution, browser inference, hardware acceleration, local-first AI, WASI components, and verified outputs.

Build order

Follow every state change to settlement.

Start with replicated state and finality, trace EVM execution and storage, design contracts and signatures, prove invariants, then compose markets, L2 settlement, cross-chain messages, zero-knowledge proofs, and operations.

Prerequisites: Production software experience, TypeScript, basic distributed-systems and cryptography vocabulary, and willingness to reason about adversarial behavior. EVM internals and protocol economics are introduced progressively.

Open Start Here
Spine project

Statecraft Protocol · v0 → v11

A local/testnet-only protocol laboratory that grows from signed escrow into assets, accounts, governance, markets, lending, L2 messaging, proofs, and production operations. Every trust boundary stays visible.

v1Planned

Asset layer

Modules
ERC-20 · permit · vesting · Merkle claims · membership
Invariant
Accounted assets equal valid minted and transferred supply.
New threat model
Non-standard tokens, fee-on-transfer, rebasing, allowance races.
Artifact
Merkle Distributor and safe asset adapter.
v2Planned

Programmable account

Modules
Batch calls · EIP-1271 · session keys · limits · recovery
Invariant
Delegated authority never exceeds its explicit scope.
New threat model
Module escalation, nonce confusion, malicious sponsorship, recovery capture.
Artifact
Modular Smart Account with a reproducible local flow.
v3Planned

Authority and governance

Modules
Roles · multisig · timelock · guardian · upgrades
Invariant
No governed action executes before its delay and authorization.
New threat model
Admin compromise, storage collision, governance capture, unsafe pause.
Artifact
Governed Treasury and immutable comparison.
v4Planned

Automated market maker

Modules
Pool · LP shares · swaps · fees · TWAP
Invariant
Adjusted reserves preserve the constant-product bound.
New threat model
Price manipulation, sandwiching, callback abuse, rounding leakage.
Artifact
Constant-Product AMM with manipulation lab.
v5Planned

Tokenized vault

Modules
Shares · previews · fees · strategy · emergency exit
Invariant
Every redeemable share maps to accounted assets under stated rounding.
New threat model
Donation and inflation attacks, loss concealment, queue insolvency.
Artifact
ERC-4626 Vault with a simulated strategy.
v7Planned

Oracle and automation layer

Modules
Feeds · staleness · deviations · circuit breakers · keepers
Invariant
Unsafe or unavailable prices fail closed and visibly.
New threat model
Stale data, decimals, sequencer downtime, fallback correlation.
Artifact
Oracle failure simulator and Verifiable Random Raffle.
v8Planned

Intent and auction execution

Modules
Signed intents · partial fills · solvers · batch settlement
Invariant
Fills respect authorization, remaining quantity, expiry, and slippage.
New threat model
Frontrunning, solver censorship, replay, surplus theft.
Artifact
Batch Intent Auction with ordering simulation.
v9Planned

L2 and cross-chain protocol

Modules
L1/L2 settlement · messages · per-chain accounting · recovery
Invariant
Each valid message changes destination state at most once.
New threat model
Finality mismatch, replay, bridge governance, partial failure.
Artifact
Cross-Chain State Mirror in a reproducible multi-chain lab.
v11Planned

Production operations

Modules
Indexer · monitors · manifests · alerts · runbooks · drills
Invariant
Derived operational state reconciles with canonical on-chain events.
New threat model
RPC disagreement, missed reorgs, stale alerts, privileged drift.
Artifact
Protocol Operations Console and incident simulation.
Open Statecraft roadmap
Intermediate protocol labs

Isolate the mechanism before integrating it.

Every project is local-only or testnet-only, names invariants and a threat model, and then feeds a Statecraft milestone.

01Signed Escrow 02Commit-Reveal Auction 03Merkle Distributor 04Modular Smart Account 05Governed Treasury 06Constant-Product AMM 07ERC-4626 Vault 08Collateralized Lending Market 09Verifiable Random Raffle 10Batch Intent Auction 11Cross-Chain State Mirror 12ZK Eligibility Registry 13Protocol Operations Console
Security status

Correctness is not the same as safety.

Every artifact distinguishes implementation, test evidence, invariant evidence, exploit history, patch status, audit status, and deployment environment.

INVARIANT-TESTED

Properties exercised

Stateful tests continuously exercise stated invariants; this is evidence, not an audit or proof of economic safety.

PRIVILEGED

Authority disclosed

Owners, multisigs, timelocks, guardians, upgrade keys, oracle operators, and sequencers remain visible.

EXPERIMENTAL

Research surface

Intents, interoperability, and proof systems carry dated status and explicit assumptions before integration.

LOCAL / TESTNET ONLY

No real funds

Every project runs on Anvil, controlled simulations, maintained testnets, or local forks with fake fixtures.

Trust map

Trustless describes a bounded property, not the whole system.

Each component relocates trust; this table is a mental model, not a claim of uniform guarantees.

ComponentWhat remains trusted
EVM contractDeployed code, compiler assumptions, and explicit rules
OracleData quality, freshness, availability, and operator model
MultisigSigner independence, threshold, key security, and coordination
TimelockDelay integrity, queued operation visibility, and exit capacity
L2 sequencerTemporary ordering, censorship resistance, and liveness
BridgeVerification model, finality, relayers or validators, and admin keys
FrontendTransactions proposed and data represented to the user
RPCAvailability, completeness, consistency, and honest responses
IndexerCorrect derivation, backfills, reconciliation, and reorg handling
GovernanceParticipation, delegation, quorum, execution, and capture resistance
Technology map

Different layers, different guarantees.

Execution, settlement, external data, derived state, and proofs solve different problems and carry different trust assumptions.

ComponentEngineering role
SolidityProtocol rules compiled to deterministic EVM bytecode.
FoundryBuilds, tests, fuzzing, invariants, scripts, local nodes, and forked state.
OpenZeppelinVersioned building blocks whose assumptions and upgrade boundaries remain reviewable.
viemTyped off-chain simulation, signing, submission, receipts, logs, and RPC interaction.
AnvilDisposable local execution with deterministic accounts and controlled failure injection.
L1Canonical settlement, data publication, and finality for the studied execution path.
L2Scalable execution with sequencer, bridge, proof, and upgrade assumptions.
OracleExternal facts whose quality, freshness, and availability contracts cannot guarantee alone.
IndexerQueryable derived state that must reconcile across reorgs and backfills.
ZK proofCompact verification of constrained computation or private witness knowledge.
00
Phase 00 · Calibrate the map

Orientation

Prerequisites, trust vocabulary, local/testnet-only policy, registries, and linear versus Statecraft-led reading paths.

Phase page
01
Phase 01 · Make state transitions explicit

Ledger and Execution

Model replicated state, finality, EVM execution, gas, storage, and modular Solidity before composing financial behavior.

Phase page
02
Phase 02 · Program assets and authority

Standards, Identity and Authority

Treat tokens, signatures, smart accounts, roles, upgrades, and governance as explicit authority systems.

Phase page
03
Phase 03 · Prove properties under attack

Correctness and Adversarial Engineering

Specify properties, fuzz state transitions, reproduce exploits, patch assumptions, and keep regression evidence.

Phase page
04
Phase 04 · Compose economic state machines

On-chain Markets and Finance

Build accounting-first AMMs, lending, vaults, oracles, stable assets, and liquidation mechanisms with economic invariants.

Phase page
05
Phase 05 · Separate execution from settlement

Execution Markets and Scaling

Study ordering markets, rollups, data availability, settlement, and cross-chain failure as one execution pipeline.

Phase page
06
Phase 06 · Verify without revealing everything

Proofs and Privacy

Build small auditable circuits and on-chain verifiers while exposing setup, privacy, replay, and constraint assumptions.

Phase page
Phase ★ · Measure and verify

Always Active

Operate typed clients, reorg-safe indexers, monitors, manifests, alerts, runbooks, and invariant reports from v0.

Phase page
Reference layer

Specifications before abstractions

The standards, networks, and tooling registries keep status, versions, trust assumptions, and change-sensitive facts explicit and reviewable.