Introduction
Getting Started
1.
Installation
2.
First Steps with Foundry
Projects
3.
Creating a New Project
4.
Working on an Existing Project
5.
Clone a Verified Contract on Chain
6.
Dependencies
7.
Soldeer
8.
Project Layout
ZKsync Specifics
9.
Overview
10.
Execution Overview
11.
Compilation Overview
12.
Configuration Overview
13.
Developer Guide
❱
13.1.
Nonces
14.
Limitations
❱
14.1.
General
14.2.
Compilation
14.3.
Broadcast
14.4.
Events
14.5.
Traces
14.6.
Cheatcodes
15.
Forge-ZKSync Standard Library
16.
Additional Cheatcodes
❱
16.1.
zkRegisterContract
16.2.
zkVm
16.3.
zkVmSkip
16.4.
zkUsePaymaster
16.5.
zkUseFactoryDep
17.
Gas Overview
18.
Paymaster Overview
19.
Examples
❱
19.1.
General Flow Paymaster
19.2.
Paymaster Approval Based
19.3.
Ledger
19.4.
Multisig Smart Account
Supported Commands
20.
Command List
Forge Overview
21.
Overview of Forge
22.
Tests
❱
22.1.
Writing Tests
22.2.
Cheatcodes
22.3.
Forge Standard Library
22.4.
Forge ZKsync Standard Library
22.5.
Understanding Traces
22.6.
Fork Testing
22.7.
Replaying Failures
23.
Advanced Testing
24.
Fuzz Testing
25.
Invariant Testing
26.
Differential Testing
27.
Deploying and Verifying
28.
Gas Tracking
❱
28.1.
Gas Reports
28.2.
Gas Function Snapshots
28.3.
Gas Section Snapshots
Cast Overview
29.
Overview of Cast
Anvil-ZKsync Overview
30.
Anvil-ZKsync
Not Supported
31.
Chisel
Configuration
32.
Configuring with foundry.toml
Tutorials
33.
Creating an NFT with Solmate
34.
Deterministic deployment using CREATE2
35.
Solidity Scripting
Appendix
36.
References
❱
36.1.
anvil-zksync Reference
Light
Rust
Coal
Navy
Ayu
foundry-zksync book
ZKsync Developer Guide
Zksync specific caveats for developers.