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.
Verifying Contracts
35.
Calldata Transformation
Foundry Development
36.
Environment Setup
37.
Shell snippets
Appendix
38.
snforge Commands
❱
38.1.
test
38.2.
init
38.3.
new
38.4.
clean-cache
38.5.
check-requirements
39.
Cheatcodes Reference
❱
39.1.
Cheating Globally
39.2.
CheatSpan
39.3.
caller_address
39.4.
block_number
39.5.
block_timestamp
39.6.
sequencer_address
39.7.
version
39.8.
account_contract_address
39.9.
max_fee
39.10.
signature
39.11.
transaction_hash
39.12.
chain_id
39.13.
nonce
39.14.
resource_bounds
39.15.
tip
39.16.
paymaster_data
39.17.
nonce_data_availability_mode
39.18.
fee_data_availability_mode
39.19.
account_deployment_data
39.20.
mock_call
39.21.
get_class_hash
39.22.
replace_bytecode
39.23.
l1_handler
39.24.
spy_events
39.25.
spy_messages_to_l1
39.26.
store
39.27.
load
39.28.
generate_random_felt
40.
snforge Library Reference
❱
40.1.
byte_array
40.2.
declare
40.3.
contract_class
40.4.
get_call_trace
40.5.
fs
40.6.
env
40.7.
signature
41.
sncast Commands
❱
41.1.
common flags
41.2.
account
❱
41.2.1.
import
41.2.2.
create
41.2.3.
deploy
41.2.4.
delete
41.2.5.
list
41.3.
declare
41.4.
deploy
41.5.
invoke
41.6.
call
41.7.
multicall
❱
41.7.1.
new
41.7.2.
run
41.8.
show-config
41.9.
script
❱
41.9.1.
init
41.9.2.
run
41.10.
tx-status
41.11.
verify
42.
sncast Library Reference
❱
42.1.
declare
42.2.
deploy
42.3.
invoke
42.4.
call
42.5.
get_nonce
42.6.
tx_status
42.7.
errors
43.
snfoundry.toml Reference
44.
Scarb.toml Reference
45.
Starknet Foundry Github Action
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