Library Reference
ℹ️ Info Full documentation for the
snforgelibrary can be found here.
- declare - declares a contract using its name and returns
a
ContractClasswhich can be interacted with later - declare! - declares a contract using a module path and returns a
ContractClasswhich can be interacted with later - declare_result
- contract_class
get_call_trace- gets current test call trace (with contracts interactions included)fs- module containing functions for interacting with the filesystemenv- module containing functions for interacting with the system environmentsignature- module containing struct and trait for creatingecdsasignatures
ℹ️ Info To use cheatcodes you need to add
snforge_stdpackage as a development dependency in yourScarb.tomlusing the appropriate version.[dev-dependencies] snforge_std = "0.63.0"