- Introduction
- Getting Started
- 1. Installation
- 2. First Steps with Starknet Foundry
- 3. Scarb
- 4. Project Configuration
- 5. snforge 0.48.0 Migration Guide
- snforge Overview
- 6. Running Tests
- 7. Writing Tests
- 8. Test Attributes
- 9. Testing Smart Contracts
- 10. Testing Contracts' Internals
- 11. Using Cheatcodes
- 12. Testing Events
- 13. Testing Messages to L1
- 14. Testing Workspaces
- 15. Test Collection
- 16. Contract Collection
❱
- 16.1. Optimized Mechanism
- 16.2. Old Mechanism
- 17. Gas and VM Resources Estimation
- 18. Coverage
- snforge Advanced Features
- 19. Fork Testing
- 20. Fuzz Testing
- 21. Conditional Compilation
- 22. Direct Storage Access
- 23. Profiling
- 24. Debugging
- 25. Oracles
- sncast Overview
- 26. Outline
- 27. sncast 101
- 28. Creating And Deploying Accounts
- 29. Importing Accounts
- 30. Declaring New Contracts
- 31. Deploying New Contracts
- 32. Invoking Contracts
- 33. Calling Contracts
- 34. Performing Multicall
- 35. Cairo Deployment Scripts
- 36. Inspecting Transactions
- 37. Verifying Contracts
- 38. Calldata Transformation
- 39. Block Explorers
- Foundry Development
- 40. Environment Setup
- 41. Shell snippets
- Appendix
- 42. snforge Commands
❱
- 42.1. test
- 42.2. init
- 42.3. new
- 42.4. clean
- 42.5. clean-cache
- 42.6. check-requirements
- 42.7. completions
- 43. Cheatcodes Reference
❱
- 43.1. Cheating Globally
- 43.2. CheatSpan
- 43.3. caller_address
- 43.4. block_number
- 43.5. block_timestamp
- 43.6. block_hash
- 43.7. sequencer_address
- 43.8. version
- 43.9. account_contract_address
- 43.10. max_fee
- 43.11. signature
- 43.12. transaction_hash
- 43.13. chain_id
- 43.14. nonce
- 43.15. resource_bounds
- 43.16. tip
- 43.17. paymaster_data
- 43.18. nonce_data_availability_mode
- 43.19. fee_data_availability_mode
- 43.20. account_deployment_data
- 43.21. mock_call
- 43.22. get_class_hash
- 43.23. replace_bytecode
- 43.24. l1_handler
- 43.25. spy_events
- 43.26. spy_messages_to_l1
- 43.27. store
- 43.28. load
- 43.29. generate_random_felt
- 43.30. generate_arg
- 43.31. set_balance
- 43.32. Token
- 43.33. interact_with_state
- 44. snforge Library Reference
❱
- 44.1. byte_array
- 44.2. declare
- 44.3. contract_class
- 44.4. get_call_trace
- 44.5. fs
❱
- 44.5.1. file format rules
- 44.5.2. File
- 44.5.3. FileParser
- 44.5.4. read_txt
- 44.5.5. read_json
- 44.6. env
- 44.7. signature
- 44.8. fuzzable
- 45. sncast Commands
❱
- 45.1. common flags
- 45.2. account
❱
- 45.2.1. import
- 45.2.2. create
- 45.2.3. deploy
- 45.2.4. delete
- 45.2.5. list
- 45.3. declare
- 45.4. deploy
- 45.5. invoke
- 45.6. call
- 45.7. multicall
❱
- 45.7.1. new
- 45.7.2. run
- 45.8. show-config
- 45.9. script
❱
- 45.9.1. init
- 45.9.2. run
- 45.10. tx-status
- 45.11. verify
- 45.12. completions
- 45.13. utils
❱
- 45.13.1. serialize
- 45.13.2. class-hash
- 46. sncast Library Reference
❱
- 46.1. declare
- 46.2. deploy
- 46.3. invoke
- 46.4. call
- 46.5. get_nonce
- 46.6. tx_status
- 46.7. errors
- 46.8. FeeSettingsTrait
- 47. snfoundry.toml Reference
- 48. Scarb.toml Reference
- 49. Starknet Foundry Github Action