1. Modules
    ❱
    1. snforge_std
    2. cheatcodes
    3. fuzzable
    4. fs
    5. env
    6. signature
    7. trace
    8. byte_array
    9. events
    10. l1_handler
    11. contract_class
    12. storage
    13. execution_info
    14. erc20
    15. message_to_l1
    16. generate_random_felt
    17. generate_arg
    18. block_hash
    19. caller_address
    20. block_number
    21. block_timestamp
    22. sequencer_address
    23. version
    24. max_fee
    25. cheatcodes::execution_info::signature
    26. transaction_hash
    27. chain_id
    28. nonce
    29. resource_bounds
    30. tip
    31. paymaster_data
    32. nonce_data_availability_mode
    33. fee_data_availability_mode
    34. account_deployment_data
    35. account_contract_address
    36. secp256k1_curve
    37. secp256r1_curve
    38. stark_curve
  2. Free functions
    ❱
    1. cheatcodes::contract_class::declare
    2. cheatcodes::contract_class::get_class_hash
    3. cheatcodes::events::spy_events
    4. cheatcodes::message_to_l1::spy_messages_to_l1
    5. cheatcodes::storage::store
    6. cheatcodes::storage::load
    7. cheatcodes::storage::map_entry_address
    8. cheatcodes::erc20::set_balance
    9. cheatcodes::test_address
    10. cheatcodes::test_selector
    11. cheatcodes::mock_call
    12. cheatcodes::start_mock_call
    13. cheatcodes::stop_mock_call
    14. cheatcodes::replace_bytecode
    15. cheatcodes::execution_info::caller_address::cheat_caller_address
    16. cheatcodes::execution_info::caller_address::start_cheat_caller_address_global
    17. cheatcodes::execution_info::caller_address::stop_cheat_caller_address
    18. cheatcodes::execution_info::caller_address::stop_cheat_caller_address_global
    19. cheatcodes::execution_info::caller_address::start_cheat_caller_address
    20. cheatcodes::execution_info::block_number::cheat_block_number
    21. cheatcodes::execution_info::block_number::start_cheat_block_number_global
    22. cheatcodes::execution_info::block_number::stop_cheat_block_number
    23. cheatcodes::execution_info::block_number::stop_cheat_block_number_global
    24. cheatcodes::execution_info::block_number::start_cheat_block_number
    25. cheatcodes::execution_info::block_timestamp::cheat_block_timestamp
    26. cheatcodes::execution_info::block_timestamp::start_cheat_block_timestamp_global
    27. cheatcodes::execution_info::block_timestamp::stop_cheat_block_timestamp
    28. cheatcodes::execution_info::block_timestamp::stop_cheat_block_timestamp_global
    29. cheatcodes::execution_info::block_timestamp::start_cheat_block_timestamp
    30. cheatcodes::execution_info::sequencer_address::cheat_sequencer_address
    31. cheatcodes::execution_info::sequencer_address::start_cheat_sequencer_address_global
    32. cheatcodes::execution_info::sequencer_address::stop_cheat_sequencer_address
    33. cheatcodes::execution_info::sequencer_address::stop_cheat_sequencer_address_global
    34. cheatcodes::execution_info::sequencer_address::start_cheat_sequencer_address
    35. cheatcodes::execution_info::version::cheat_transaction_version
    36. cheatcodes::execution_info::version::start_cheat_transaction_version_global
    37. cheatcodes::execution_info::version::stop_cheat_transaction_version
    38. cheatcodes::execution_info::version::stop_cheat_transaction_version_global
    39. cheatcodes::execution_info::version::start_cheat_transaction_version
    40. cheatcodes::execution_info::max_fee::cheat_max_fee
    41. cheatcodes::execution_info::max_fee::start_cheat_max_fee_global
    42. cheatcodes::execution_info::max_fee::stop_cheat_max_fee
    43. cheatcodes::execution_info::max_fee::stop_cheat_max_fee_global
    44. cheatcodes::execution_info::max_fee::start_cheat_max_fee
    45. cheatcodes::execution_info::signature::cheat_signature
    46. cheatcodes::execution_info::signature::start_cheat_signature_global
    47. cheatcodes::execution_info::signature::stop_cheat_signature
    48. cheatcodes::execution_info::signature::stop_cheat_signature_global
    49. cheatcodes::execution_info::signature::start_cheat_signature
    50. cheatcodes::execution_info::transaction_hash::cheat_transaction_hash
    51. cheatcodes::execution_info::transaction_hash::start_cheat_transaction_hash_global
    52. cheatcodes::execution_info::transaction_hash::stop_cheat_transaction_hash
    53. cheatcodes::execution_info::transaction_hash::stop_cheat_transaction_hash_global
    54. cheatcodes::execution_info::transaction_hash::start_cheat_transaction_hash
    55. cheatcodes::execution_info::chain_id::cheat_chain_id
    56. cheatcodes::execution_info::chain_id::start_cheat_chain_id_global
    57. cheatcodes::execution_info::chain_id::stop_cheat_chain_id
    58. cheatcodes::execution_info::chain_id::stop_cheat_chain_id_global
    59. cheatcodes::execution_info::chain_id::start_cheat_chain_id
    60. cheatcodes::execution_info::nonce::cheat_nonce
    61. cheatcodes::execution_info::nonce::start_cheat_nonce_global
    62. cheatcodes::execution_info::nonce::stop_cheat_nonce
    63. cheatcodes::execution_info::nonce::stop_cheat_nonce_global
    64. cheatcodes::execution_info::nonce::start_cheat_nonce
    65. cheatcodes::execution_info::resource_bounds::cheat_resource_bounds
    66. cheatcodes::execution_info::resource_bounds::start_cheat_resource_bounds_global
    67. cheatcodes::execution_info::resource_bounds::stop_cheat_resource_bounds
    68. cheatcodes::execution_info::resource_bounds::stop_cheat_resource_bounds_global
    69. cheatcodes::execution_info::resource_bounds::start_cheat_resource_bounds
    70. cheatcodes::execution_info::tip::cheat_tip
    71. cheatcodes::execution_info::tip::start_cheat_tip_global
    72. cheatcodes::execution_info::tip::stop_cheat_tip
    73. cheatcodes::execution_info::tip::stop_cheat_tip_global
    74. cheatcodes::execution_info::tip::start_cheat_tip
    75. cheatcodes::execution_info::paymaster_data::cheat_paymaster_data
    76. cheatcodes::execution_info::paymaster_data::start_cheat_paymaster_data_global
    77. cheatcodes::execution_info::paymaster_data::stop_cheat_paymaster_data
    78. cheatcodes::execution_info::paymaster_data::stop_cheat_paymaster_data_global
    79. cheatcodes::execution_info::paymaster_data::start_cheat_paymaster_data
    80. cheatcodes::execution_info::nonce_data_availability_mode::cheat_nonce_data_availability_mode
    81. cheatcodes::execution_info::nonce_data_availability_mode::start_cheat_nonce_data_availability_mode_global
    82. cheatcodes::execution_info::nonce_data_availability_mode::stop_cheat_nonce_data_availability_mode
    83. cheatcodes::execution_info::nonce_data_availability_mode::stop_cheat_nonce_data_availability_mode_global
    84. cheatcodes::execution_info::nonce_data_availability_mode::start_cheat_nonce_data_availability_mode
    85. cheatcodes::execution_info::fee_data_availability_mode::cheat_fee_data_availability_mode
    86. cheatcodes::execution_info::fee_data_availability_mode::start_cheat_fee_data_availability_mode_global
    87. cheatcodes::execution_info::fee_data_availability_mode::stop_cheat_fee_data_availability_mode
    88. cheatcodes::execution_info::fee_data_availability_mode::stop_cheat_fee_data_availability_mode_global
    89. cheatcodes::execution_info::fee_data_availability_mode::start_cheat_fee_data_availability_mode
    90. cheatcodes::execution_info::account_deployment_data::cheat_account_deployment_data
    91. cheatcodes::execution_info::account_deployment_data::start_cheat_account_deployment_data_global
    92. cheatcodes::execution_info::account_deployment_data::stop_cheat_account_deployment_data
    93. cheatcodes::execution_info::account_deployment_data::stop_cheat_account_deployment_data_global
    94. cheatcodes::execution_info::account_deployment_data::start_cheat_account_deployment_data
    95. cheatcodes::execution_info::account_contract_address::cheat_account_contract_address
    96. cheatcodes::execution_info::account_contract_address::start_cheat_account_contract_address_global
    97. cheatcodes::execution_info::account_contract_address::stop_cheat_account_contract_address
    98. cheatcodes::execution_info::account_contract_address::stop_cheat_account_contract_address_global
    99. cheatcodes::execution_info::account_contract_address::start_cheat_account_contract_address
    100. cheatcodes::generate_random_felt::generate_random_felt
    101. cheatcodes::block_hash::cheat_block_hash
    102. cheatcodes::block_hash::start_cheat_block_hash_global
    103. cheatcodes::block_hash::stop_cheat_block_hash
    104. cheatcodes::block_hash::stop_cheat_block_hash_global
    105. cheatcodes::block_hash::start_cheat_block_hash
    106. cheatcodes::test_selector
    107. cheatcodes::test_address
    108. cheatcodes::mock_call
    109. cheatcodes::start_mock_call
    110. cheatcodes::stop_mock_call
    111. cheatcodes::replace_bytecode
    112. cheatcodes::events::spy_events
    113. cheatcodes::contract_class::declare
    114. cheatcodes::contract_class::get_class_hash
    115. cheatcodes::storage::store
    116. cheatcodes::storage::load
    117. cheatcodes::storage::map_entry_address
    118. cheatcodes::execution_info::caller_address::cheat_caller_address
    119. cheatcodes::execution_info::caller_address::start_cheat_caller_address_global
    120. cheatcodes::execution_info::caller_address::stop_cheat_caller_address_global
    121. cheatcodes::execution_info::caller_address::start_cheat_caller_address
    122. cheatcodes::execution_info::caller_address::stop_cheat_caller_address
    123. cheatcodes::execution_info::block_number::cheat_block_number
    124. cheatcodes::execution_info::block_number::start_cheat_block_number_global
    125. cheatcodes::execution_info::block_number::stop_cheat_block_number_global
    126. cheatcodes::execution_info::block_number::start_cheat_block_number
    127. cheatcodes::execution_info::block_number::stop_cheat_block_number
    128. cheatcodes::execution_info::block_timestamp::cheat_block_timestamp
    129. cheatcodes::execution_info::block_timestamp::start_cheat_block_timestamp_global
    130. cheatcodes::execution_info::block_timestamp::stop_cheat_block_timestamp_global
    131. cheatcodes::execution_info::block_timestamp::start_cheat_block_timestamp
    132. cheatcodes::execution_info::block_timestamp::stop_cheat_block_timestamp
    133. cheatcodes::execution_info::sequencer_address::cheat_sequencer_address
    134. cheatcodes::execution_info::sequencer_address::start_cheat_sequencer_address_global
    135. cheatcodes::execution_info::sequencer_address::stop_cheat_sequencer_address_global
    136. cheatcodes::execution_info::sequencer_address::start_cheat_sequencer_address
    137. cheatcodes::execution_info::sequencer_address::stop_cheat_sequencer_address
    138. cheatcodes::execution_info::version::cheat_transaction_version
    139. cheatcodes::execution_info::version::start_cheat_transaction_version_global
    140. cheatcodes::execution_info::version::stop_cheat_transaction_version_global
    141. cheatcodes::execution_info::version::start_cheat_transaction_version
    142. cheatcodes::execution_info::version::stop_cheat_transaction_version
    143. cheatcodes::execution_info::max_fee::cheat_max_fee
    144. cheatcodes::execution_info::max_fee::start_cheat_max_fee_global
    145. cheatcodes::execution_info::max_fee::stop_cheat_max_fee_global
    146. cheatcodes::execution_info::max_fee::start_cheat_max_fee
    147. cheatcodes::execution_info::max_fee::stop_cheat_max_fee
    148. cheatcodes::execution_info::signature::cheat_signature
    149. cheatcodes::execution_info::signature::start_cheat_signature_global
    150. cheatcodes::execution_info::signature::stop_cheat_signature_global
    151. cheatcodes::execution_info::signature::start_cheat_signature
    152. cheatcodes::execution_info::signature::stop_cheat_signature
    153. cheatcodes::execution_info::transaction_hash::cheat_transaction_hash
    154. cheatcodes::execution_info::transaction_hash::start_cheat_transaction_hash_global
    155. cheatcodes::execution_info::transaction_hash::stop_cheat_transaction_hash_global
    156. cheatcodes::execution_info::transaction_hash::start_cheat_transaction_hash
    157. cheatcodes::execution_info::transaction_hash::stop_cheat_transaction_hash
    158. cheatcodes::execution_info::chain_id::cheat_chain_id
    159. cheatcodes::execution_info::chain_id::start_cheat_chain_id_global
    160. cheatcodes::execution_info::chain_id::stop_cheat_chain_id_global
    161. cheatcodes::execution_info::chain_id::start_cheat_chain_id
    162. cheatcodes::execution_info::chain_id::stop_cheat_chain_id
    163. cheatcodes::execution_info::nonce::cheat_nonce
    164. cheatcodes::execution_info::nonce::start_cheat_nonce_global
    165. cheatcodes::execution_info::nonce::stop_cheat_nonce_global
    166. cheatcodes::execution_info::nonce::start_cheat_nonce
    167. cheatcodes::execution_info::nonce::stop_cheat_nonce
    168. cheatcodes::execution_info::resource_bounds::cheat_resource_bounds
    169. cheatcodes::execution_info::resource_bounds::start_cheat_resource_bounds_global
    170. cheatcodes::execution_info::resource_bounds::stop_cheat_resource_bounds_global
    171. cheatcodes::execution_info::resource_bounds::start_cheat_resource_bounds
    172. cheatcodes::execution_info::resource_bounds::stop_cheat_resource_bounds
    173. cheatcodes::execution_info::tip::cheat_tip
    174. cheatcodes::execution_info::tip::start_cheat_tip_global
    175. cheatcodes::execution_info::tip::stop_cheat_tip_global
    176. cheatcodes::execution_info::tip::start_cheat_tip
    177. cheatcodes::execution_info::tip::stop_cheat_tip
    178. cheatcodes::execution_info::paymaster_data::cheat_paymaster_data
    179. cheatcodes::execution_info::paymaster_data::start_cheat_paymaster_data_global
    180. cheatcodes::execution_info::paymaster_data::stop_cheat_paymaster_data_global
    181. cheatcodes::execution_info::paymaster_data::start_cheat_paymaster_data
    182. cheatcodes::execution_info::paymaster_data::stop_cheat_paymaster_data
    183. cheatcodes::execution_info::nonce_data_availability_mode::cheat_nonce_data_availability_mode
    184. cheatcodes::execution_info::nonce_data_availability_mode::start_cheat_nonce_data_availability_mode_global
    185. cheatcodes::execution_info::nonce_data_availability_mode::stop_cheat_nonce_data_availability_mode_global
    186. cheatcodes::execution_info::nonce_data_availability_mode::start_cheat_nonce_data_availability_mode
    187. cheatcodes::execution_info::nonce_data_availability_mode::stop_cheat_nonce_data_availability_mode
    188. cheatcodes::execution_info::fee_data_availability_mode::cheat_fee_data_availability_mode
    189. cheatcodes::execution_info::fee_data_availability_mode::start_cheat_fee_data_availability_mode_global
    190. cheatcodes::execution_info::fee_data_availability_mode::stop_cheat_fee_data_availability_mode_global
    191. cheatcodes::execution_info::fee_data_availability_mode::start_cheat_fee_data_availability_mode
    192. cheatcodes::execution_info::fee_data_availability_mode::stop_cheat_fee_data_availability_mode
    193. cheatcodes::execution_info::account_deployment_data::cheat_account_deployment_data
    194. cheatcodes::execution_info::account_deployment_data::start_cheat_account_deployment_data_global
    195. cheatcodes::execution_info::account_deployment_data::stop_cheat_account_deployment_data_global
    196. cheatcodes::execution_info::account_deployment_data::start_cheat_account_deployment_data
    197. cheatcodes::execution_info::account_deployment_data::stop_cheat_account_deployment_data
    198. cheatcodes::execution_info::account_contract_address::cheat_account_contract_address
    199. cheatcodes::execution_info::account_contract_address::start_cheat_account_contract_address_global
    200. cheatcodes::execution_info::account_contract_address::stop_cheat_account_contract_address_global
    201. cheatcodes::execution_info::account_contract_address::start_cheat_account_contract_address
    202. cheatcodes::execution_info::account_contract_address::stop_cheat_account_contract_address
    203. cheatcodes::erc20::set_balance
    204. cheatcodes::message_to_l1::spy_messages_to_l1
    205. cheatcodes::generate_random_felt::generate_random_felt
    206. cheatcodes::generate_arg::generate_arg
    207. cheatcodes::block_hash::cheat_block_hash
    208. cheatcodes::block_hash::start_cheat_block_hash_global
    209. cheatcodes::block_hash::stop_cheat_block_hash_global
    210. cheatcodes::block_hash::start_cheat_block_hash
    211. cheatcodes::block_hash::stop_cheat_block_hash
    212. cheatcodes::generate_arg::generate_arg
    213. read_txt
    214. read_json
    215. var
    216. get_call_trace
    217. byte_array_as_felt_array
    218. try_deserialize_bytearray_error
  3. Structs
    ❱
    1. cheatcodes::contract_class::ContractClass
    2. cheatcodes::l1_handler::L1Handler
    3. cheatcodes::events::Event
    4. cheatcodes::events::EventSpy
    5. cheatcodes::message_to_l1::MessageToL1
    6. cheatcodes::message_to_l1::MessageToL1Spy
    7. cheatcodes::erc20::CustomToken
    8. cheatcodes::events::Event
    9. cheatcodes::events::EventSpy
    10. Events
    11. cheatcodes::l1_handler::L1Handler
    12. cheatcodes::contract_class::ContractClass
    13. cheatcodes::erc20::CustomToken
    14. cheatcodes::message_to_l1::MessageToL1
    15. cheatcodes::message_to_l1::MessageToL1Spy
    16. MessagesToL1
    17. File
    18. KeyPair
    19. CallTrace
    20. CallEntryPoint
  4. Enums
    ❱
    1. cheatcodes::contract_class::DeclareResult
    2. cheatcodes::erc20::Token
    3. cheatcodes::CheatSpan
    4. cheatcodes::ReplaceBytecodeError
    5. cheatcodes::CheatSpan
    6. cheatcodes::ReplaceBytecodeError
    7. cheatcodes::contract_class::DeclareResult
    8. cheatcodes::erc20::Token
    9. SignError
    10. EntryPointType
    11. CallType
    12. CallResult
    13. CallFailure
  5. Impl aliases
    ❱
    1. FuzzableU8
    2. FuzzableU16
    3. FuzzableU32
    4. FuzzableU64
    5. FuzzableU128
    6. FuzzableI8
    7. FuzzableI16
    8. FuzzableI32
    9. FuzzableI64
    10. FuzzableI128
  6. Traits
    ❱
    1. cheatcodes::contract_class::ContractClassTrait
    2. cheatcodes::contract_class::DeclareResultTrait
    3. cheatcodes::l1_handler::L1HandlerTrait
    4. cheatcodes::events::EventSpyTrait
    5. cheatcodes::events::EventSpyAssertionsTrait
    6. cheatcodes::events::EventsFilterTrait
    7. cheatcodes::events::IsEmitted
    8. cheatcodes::message_to_l1::MessageToL1SpyTrait
    9. cheatcodes::message_to_l1::MessageToL1FilterTrait
    10. cheatcodes::message_to_l1::MessageToL1SpyAssertionsTrait
    11. cheatcodes::erc20::TokenTrait
    12. cheatcodes::events::EventSpyTrait
    13. cheatcodes::events::EventsFilterTrait
    14. cheatcodes::events::EventSpyAssertionsTrait
    15. cheatcodes::events::IsEmitted
    16. cheatcodes::l1_handler::L1HandlerTrait
    17. cheatcodes::contract_class::ContractClassTrait
    18. cheatcodes::contract_class::DeclareResultTrait
    19. cheatcodes::erc20::TokenTrait
    20. cheatcodes::message_to_l1::MessageToL1SpyTrait
    21. cheatcodes::message_to_l1::MessageToL1FilterTrait
    22. cheatcodes::message_to_l1::MessageToL1SpyAssertionsTrait
    23. Fuzzable
    24. FileTrait
    25. FileParser
    26. KeyPairTrait
    27. SignerTrait
    28. VerifierTrait
  7. Impls
    ❱
    1. cheatcodes::erc20::TokenImpl
    2. cheatcodes::erc20::TokenImpl
    3. FuzzableU256
    4. FuzzableByteArray1000ASCII
    5. Secp256k1CurveKeyPairImpl
    6. Secp256k1CurveSignerImpl
    7. Secp256k1CurveVerifierImpl
    8. Secp256r1CurveKeyPairImpl
    9. Secp256r1CurveSignerImpl
    10. Secp256r1CurveVerifierImpl
    11. StarkCurveKeyPairImpl
    12. StarkCurveSignerImpl
    13. StarkCurveVerifierImpl

snforge_std - Cairo

byte_array

Fully qualified path: snforge_std::byte_array

Free functions

  • byte_array_as_felt_array

  • try_deserialize_bytearray_error