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.
Testing Smart Contracts
8.
Testing Contracts' Internals
9.
Using Cheatcodes
10.
Testing Events
11.
Testing Messages to L1
12.
Testing Workspaces
13.
Test Collection
14.
Contract Collection
15.
Gas and VM Resources Estimation
snforge Advanced Features
16.
Fork Testing
17.
Fuzz Testing
18.
Direct Storage Access
19.
Profiling
sncast Overview
20.
Outline
21.
Creating And Deploying Accounts
22.
Declaring New Contracts
23.
Deploying New Contracts
24.
Invoking Contracts
25.
Calling Contracts
26.
Performing Multicall
27.
Cairo Deployment Scripts
28.
Inspecting Transactions
29.
Fees and Versions
30.
Verifying Contracts
Foundry Development
31.
Environment Setup
Appendix
32.
snforge Commands
❱
32.1.
test
32.2.
init
32.3.
clean-cache
33.
Cheatcodes Reference
❱
33.1.
CheatSpan
33.2.
caller_address
33.3.
block_number
33.4.
block_timestamp
33.5.
sequencer_address
33.6.
version
33.7.
account_contract_address
33.8.
max_fee
33.9.
signature
33.10.
transaction_hash
33.11.
chain_id
33.12.
nonce
33.13.
resource_bounds
33.14.
tip
33.15.
paymaster_data
33.16.
nonce_data_availability_mode
33.17.
fee_data_availability_mode
33.18.
account_deployment_data
33.19.
mock_call
33.20.
get_class_hash
33.21.
replace_bytecode
33.22.
l1_handler
33.23.
spy_events
33.24.
spy_messages_to_l1
33.25.
store
33.26.
load
34.
snforge Library Reference
❱
34.1.
byte_array
34.2.
declare
34.3.
contract_class
34.4.
get_call_trace
34.5.
fs
34.6.
env
34.7.
signature
35.
sncast Commands
❱
35.1.
common flags
35.2.
account
❱
35.2.1.
add
35.2.2.
create
35.2.3.
deploy
35.2.4.
delete
35.2.5.
list
35.3.
declare
35.4.
deploy
35.5.
invoke
35.6.
call
35.7.
multicall
❱
35.7.1.
new
35.7.2.
run
35.8.
show-config
35.9.
script
❱
35.9.1.
init
35.9.2.
run
35.10.
tx-status
35.11.
verify
36.
sncast Library Functions References
❱
36.1.
declare
36.2.
deploy
36.3.
invoke
36.4.
call
36.5.
get_nonce
36.6.
tx_status
36.7.
errors
Light
Rust
Coal
Navy
Ayu
The Starknet Foundry Book
snforge clean-cache
Clean
snforge
cache directory.
-h
,
--help
Print help.