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
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
sncast Overview
23.
Outline
24.
Creating And Deploying Accounts
25.
Importing Accounts
26.
Declaring New Contracts
27.
Deploying New Contracts
28.
Invoking Contracts
29.
Calling Contracts
30.
Performing Multicall
31.
Cairo Deployment Scripts
32.
Inspecting Transactions
33.
Fees and Versions
34.
Verifying Contracts
35.
Calldata Transformation
Foundry Development
36.
Environment Setup
Appendix
37.
snforge Commands
❱
37.1.
test
37.2.
init
37.3.
clean-cache
38.
Cheatcodes Reference
❱
38.1.
Cheating Globally
38.2.
CheatSpan
38.3.
caller_address
38.4.
block_number
38.5.
block_timestamp
38.6.
sequencer_address
38.7.
version
38.8.
account_contract_address
38.9.
max_fee
38.10.
signature
38.11.
transaction_hash
38.12.
chain_id
38.13.
nonce
38.14.
resource_bounds
38.15.
tip
38.16.
paymaster_data
38.17.
nonce_data_availability_mode
38.18.
fee_data_availability_mode
38.19.
account_deployment_data
38.20.
mock_call
38.21.
get_class_hash
38.22.
replace_bytecode
38.23.
l1_handler
38.24.
spy_events
38.25.
spy_messages_to_l1
38.26.
store
38.27.
load
39.
snforge Library Reference
❱
39.1.
byte_array
39.2.
declare
39.3.
contract_class
39.4.
get_call_trace
39.5.
fs
39.6.
env
39.7.
signature
40.
sncast Commands
❱
40.1.
common flags
40.2.
account
❱
40.2.1.
import
40.2.2.
create
40.2.3.
deploy
40.2.4.
delete
40.2.5.
list
40.3.
declare
40.4.
deploy
40.5.
invoke
40.6.
call
40.7.
multicall
❱
40.7.1.
new
40.7.2.
run
40.8.
show-config
40.9.
script
❱
40.9.1.
init
40.9.2.
run
40.10.
tx-status
40.11.
verify
41.
sncast Library Reference
❱
41.1.
declare
41.2.
deploy
41.3.
invoke
41.4.
call
41.5.
get_nonce
41.6.
tx_status
41.7.
errors
42.
snfoundry.toml Reference
43.
Scarb.toml Reference
Light
Rust
Coal
Navy
Ayu
The Starknet Foundry Book
sncast
CLI Reference
common flags
account
import
create
deploy
delete
declare
deploy
invoke
call
multicall
new
run
script
init
run
show-config
tx-status