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
Foundry Development
35.
Environment Setup
Appendix
36.
snforge Commands
❱
36.1.
test
36.2.
init
36.3.
clean-cache
37.
Cheatcodes Reference
❱
37.1.
Cheating Globally
37.2.
CheatSpan
37.3.
caller_address
37.4.
block_number
37.5.
block_timestamp
37.6.
sequencer_address
37.7.
version
37.8.
account_contract_address
37.9.
max_fee
37.10.
signature
37.11.
transaction_hash
37.12.
chain_id
37.13.
nonce
37.14.
resource_bounds
37.15.
tip
37.16.
paymaster_data
37.17.
nonce_data_availability_mode
37.18.
fee_data_availability_mode
37.19.
account_deployment_data
37.20.
mock_call
37.21.
get_class_hash
37.22.
replace_bytecode
37.23.
l1_handler
37.24.
spy_events
37.25.
spy_messages_to_l1
37.26.
store
37.27.
load
38.
snforge Library Reference
❱
38.1.
byte_array
38.2.
declare
38.3.
contract_class
38.4.
get_call_trace
38.5.
fs
38.6.
env
38.7.
signature
39.
sncast Commands
❱
39.1.
common flags
39.2.
account
❱
39.2.1.
import
39.2.2.
create
39.2.3.
deploy
39.2.4.
delete
39.2.5.
list
39.3.
declare
39.4.
deploy
39.5.
invoke
39.6.
call
39.7.
multicall
❱
39.7.1.
new
39.7.2.
run
39.8.
show-config
39.9.
script
❱
39.9.1.
init
39.9.2.
run
39.10.
tx-status
39.11.
verify
40.
sncast Library Functions References
❱
40.1.
declare
40.2.
deploy
40.3.
invoke
40.4.
call
40.5.
get_nonce
40.6.
tx_status
40.7.
errors
41.
snfoundry.toml Reference
42.
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