Introduction
Getting Started
1.
Installation
2.
First Steps with Starknet Foundry
3.
Scarb
4.
Project Configuration
snforge Overview
5.
Running Tests
6.
Writing Tests
7.
Test Attributes
8.
Testing Smart Contracts
9.
Testing Contracts' Internals
10.
Using Cheatcodes
11.
Testing Events
12.
Testing Messages to L1
13.
Testing Workspaces
14.
Test Collection
15.
Contract Collection
❱
15.1.
Optimized Mechanism
15.2.
Old Mechanism
16.
Gas and VM Resources Estimation
17.
Coverage
snforge Advanced Features
18.
Fork Testing
19.
Fuzz Testing
20.
Conditional Compilation
21.
Direct Storage Access
22.
Profiling
23.
Backtrace
sncast Overview
24.
Outline
25.
Creating And Deploying Accounts
26.
Importing Accounts
27.
Declaring New Contracts
28.
Deploying New Contracts
29.
Invoking Contracts
30.
Calling Contracts
31.
Performing Multicall
32.
Cairo Deployment Scripts
33.
Inspecting Transactions
34.
Fees and Versions
35.
Verifying Contracts
36.
Calldata Transformation
Foundry Development
37.
Environment Setup
38.
Shell snippets
Appendix
39.
snforge Commands
❱
39.1.
test
39.2.
init
39.3.
new
39.4.
clean-cache
39.5.
check-requirements
40.
Cheatcodes Reference
❱
40.1.
Cheating Globally
40.2.
CheatSpan
40.3.
caller_address
40.4.
block_number
40.5.
block_timestamp
40.6.
sequencer_address
40.7.
version
40.8.
account_contract_address
40.9.
max_fee
40.10.
signature
40.11.
transaction_hash
40.12.
chain_id
40.13.
nonce
40.14.
resource_bounds
40.15.
tip
40.16.
paymaster_data
40.17.
nonce_data_availability_mode
40.18.
fee_data_availability_mode
40.19.
account_deployment_data
40.20.
mock_call
40.21.
get_class_hash
40.22.
replace_bytecode
40.23.
l1_handler
40.24.
spy_events
40.25.
spy_messages_to_l1
40.26.
store
40.27.
load
40.28.
generate_random_felt
41.
snforge Library Reference
❱
41.1.
byte_array
41.2.
declare
41.3.
contract_class
41.4.
get_call_trace
41.5.
fs
41.6.
env
41.7.
signature
42.
sncast Commands
❱
42.1.
common flags
42.2.
account
❱
42.2.1.
import
42.2.2.
create
42.2.3.
deploy
42.2.4.
delete
42.2.5.
list
42.3.
declare
42.4.
deploy
42.5.
invoke
42.6.
call
42.7.
multicall
❱
42.7.1.
new
42.7.2.
run
42.8.
show-config
42.9.
script
❱
42.9.1.
init
42.9.2.
run
42.10.
tx-status
42.11.
verify
43.
sncast Library Reference
❱
43.1.
declare
43.2.
deploy
43.3.
invoke
43.4.
call
43.5.
get_nonce
43.6.
tx_status
43.7.
errors
44.
snfoundry.toml Reference
45.
Scarb.toml Reference
46.
Starknet Foundry Github Action
Light
Rust
Coal
Navy
Ayu
The Starknet Foundry Book
snforge clean-cache
Clean
snforge
cache directory.
-h
,
--help
Print help.