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.
sncast 101
26.
Creating And Deploying Accounts
27.
Importing Accounts
28.
Declaring New Contracts
29.
Deploying New Contracts
30.
Invoking Contracts
31.
Calling Contracts
32.
Performing Multicall
33.
Cairo Deployment Scripts
34.
Inspecting Transactions
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
39.5.
clean-cache
39.6.
check-requirements
39.7.
completion
40.
Cheatcodes Reference
❱
40.1.
Cheating Globally
40.2.
CheatSpan
40.3.
caller_address
40.4.
block_number
40.5.
block_timestamp
40.6.
block_hash
40.7.
sequencer_address
40.8.
version
40.9.
account_contract_address
40.10.
max_fee
40.11.
signature
40.12.
transaction_hash
40.13.
chain_id
40.14.
nonce
40.15.
resource_bounds
40.16.
tip
40.17.
paymaster_data
40.18.
nonce_data_availability_mode
40.19.
fee_data_availability_mode
40.20.
account_deployment_data
40.21.
mock_call
40.22.
get_class_hash
40.23.
replace_bytecode
40.24.
l1_handler
40.25.
spy_events
40.26.
spy_messages_to_l1
40.27.
store
40.28.
load
40.29.
generate_random_felt
40.30.
generate_arg
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
41.8.
fuzzable
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
42.12.
completion
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
43.8.
FeeSettingsTrait
44.
snfoundry.toml Reference
45.
Scarb.toml Reference
46.
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