1. Introduction
  2. Getting Started
  3. 1. Installation
  4. 2. First Steps with Starknet Foundry
  5. 3. Scarb
  6. 4. Project Configuration
  7. snforge Overview
  8. 5. Running Tests
  9. 6. Writing Tests
  10. 7. Test Attributes
  11. 8. Testing Smart Contracts
  12. 9. Testing Contracts' Internals
  13. 10. Using Cheatcodes
  14. 11. Testing Events
  15. 12. Testing Messages to L1
  16. 13. Testing Workspaces
  17. 14. Test Collection
  18. 15. Contract Collection
    ❱
    1. 15.1. Optimized Mechanism
    2. 15.2. Old Mechanism
  19. 16. Gas and VM Resources Estimation
  20. 17. Coverage
  21. snforge Advanced Features
  22. 18. Fork Testing
  23. 19. Fuzz Testing
  24. 20. Conditional Compilation
  25. 21. Direct Storage Access
  26. 22. Profiling
  27. 23. Debugging
  28. sncast Overview
  29. 24. Outline
  30. 25. sncast 101
  31. 26. Creating And Deploying Accounts
  32. 27. Importing Accounts
  33. 28. Declaring New Contracts
  34. 29. Deploying New Contracts
  35. 30. Invoking Contracts
  36. 31. Calling Contracts
  37. 32. Performing Multicall
  38. 33. Cairo Deployment Scripts
  39. 34. Inspecting Transactions
  40. 35. Verifying Contracts
  41. 36. Calldata Transformation
  42. Foundry Development
  43. 37. Environment Setup
  44. 38. Shell snippets
  45. Appendix
  46. 39. snforge Commands
    ❱
    1. 39.1. test
    2. 39.2. init
    3. 39.3. new
    4. 39.4. clean
    5. 39.5. clean-cache
    6. 39.6. check-requirements
    7. 39.7. completion
  47. 40. Cheatcodes Reference
    ❱
    1. 40.1. Cheating Globally
    2. 40.2. CheatSpan
    3. 40.3. caller_address
    4. 40.4. block_number
    5. 40.5. block_timestamp
    6. 40.6. block_hash
    7. 40.7. sequencer_address
    8. 40.8. version
    9. 40.9. account_contract_address
    10. 40.10. max_fee
    11. 40.11. signature
    12. 40.12. transaction_hash
    13. 40.13. chain_id
    14. 40.14. nonce
    15. 40.15. resource_bounds
    16. 40.16. tip
    17. 40.17. paymaster_data
    18. 40.18. nonce_data_availability_mode
    19. 40.19. fee_data_availability_mode
    20. 40.20. account_deployment_data
    21. 40.21. mock_call
    22. 40.22. get_class_hash
    23. 40.23. replace_bytecode
    24. 40.24. l1_handler
    25. 40.25. spy_events
    26. 40.26. spy_messages_to_l1
    27. 40.27. store
    28. 40.28. load
    29. 40.29. generate_random_felt
    30. 40.30. generate_arg
    31. 40.31. set_balance
    32. 40.32. Token
  48. 41. snforge Library Reference
    ❱
    1. 41.1. byte_array
    2. 41.2. declare
    3. 41.3. contract_class
    4. 41.4. get_call_trace
    5. 41.5. fs
    6. 41.6. env
    7. 41.7. signature
    8. 41.8. fuzzable
  49. 42. sncast Commands
    ❱
    1. 42.1. common flags
    2. 42.2. account
      ❱
      1. 42.2.1. import
      2. 42.2.2. create
      3. 42.2.3. deploy
      4. 42.2.4. delete
      5. 42.2.5. list
    3. 42.3. declare
    4. 42.4. deploy
    5. 42.5. invoke
    6. 42.6. call
    7. 42.7. multicall
      ❱
      1. 42.7.1. new
      2. 42.7.2. run
    8. 42.8. show-config
    9. 42.9. script
      ❱
      1. 42.9.1. init
      2. 42.9.2. run
    10. 42.10. tx-status
    11. 42.11. verify
    12. 42.12. completion
  50. 43. sncast Library Reference
    ❱
    1. 43.1. declare
    2. 43.2. deploy
    3. 43.3. invoke
    4. 43.4. call
    5. 43.5. get_nonce
    6. 43.6. tx_status
    7. 43.7. errors
    8. 43.8. FeeSettingsTrait
  51. 44. snfoundry.toml Reference
  52. 45. Scarb.toml Reference
  53. 46. Starknet Foundry Github Action

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