Releases: foundry-rs/starknet-foundry
Releases · foundry-rs/starknet-foundry
0.12.0
Forge
Added
- print gas usage for each test
- Support for test collector built-in in Scarb with the
--use-scarb-collectorflag. Requires at leastnightly-2023-12-04version of Scarb.
Cast
Added
--wait-timeoutto set timeout for waiting for tx on network using--waitflag (default 60s)--wait-retry-intervalto adjust the time between consecutive attempts to fetch tx from network using--waitflag (default 5s)- allow setting nonce in declare, deploy and invoke (using
--nonceand in deployment scripts) - add
get_noncefunction to cast_std --private-key-fileoption toaccount addcommand that allows to provide a path to the file holding account private key
0.11.0
Forge
Added
electcheatcode for mocking the sequencer address. Read more here.--rerun-failedoption to run tests that failed during the last run.
Changed
start_warpandstop_warpnow takeCheatTargetas the first argument instead ofContractAddress. Read more here.start_prankandstop_pranknow takeCheatTargetas the first argument instead ofContractAddress. Read more here.start_rollandstop_rollnow takeCheatTargetas the first argument instead ofContractAddress. Read more here.
PS: Credits to @bllu404 for the help with the new interfaces for cheats!
Fixed
- using unsupported
available_gasattribute now fails the specific test case instead of the whole runner
Cast
Added
- MVP for cairo deployment scripts with declare, deploy, invoke and call
0.10.2
Forge
Changed
- Bump cairo to 2.3.1
Removed
available_gasattribute, it didn't compute correctly gas usage. Contract functions execution cost would not be included.
0.10.1
Cast
Fixed
- scarb metadata in declare subcommand now takes manifest path from cli if passed instead of looking for it
0.10.0
Forge
Removed
- forking of the
Pendingblock
Added
--coloroption to control when colored output is used- when specifying
BlockId::Tag(Latest)block number of the used block will be printed - printing number of ignored and filtered out tests
Fixed
- Segment Arena Builtin crashing with
CairoResourcesNotContainedInFeeCostswhen Felt252Dict was used - Fixed issue with parsing fork cache values
Cast
Fixed
- account commands now always return valid json when
--jsonflag is passed - allow passing multiple calldata argument items without quotes
- display correct error message when account file is invalid
0.9.1
Forge
Fixed
- diagnostic paths referring to
testsfolder - caching
get_class_hash_atin forking test mode (credits to @jainkunal for catching the bug)
0.9.0
Forge
Added
#[ignore]attribute together with--ignoredandinclude-ignoredflags - read more here- support for
deploy_syscalldirectly in the test code (alternative todeploy) snforge_std::signaturemodule for performing ecdsa signatures
Changed
- updated Cairo version to 2.3.0 - compatible Scarb version is 2.3.0:
- tests in
srcfolder now have to be in a module annotated with#[cfg(test)]
- tests in
snforge_std::PrintTraitwill not convert values representing ASCII control characters to strings- separated
snforgeto subcommands:snforge test,snforge initandsnforge clean-cache.
Read more here. starknet::get_block_infonow returns correct block info in a forked block
Cast
Added
show-configsubcommand to display currently used configurationaccount deletecommand for removing accounts from the accounts file--hex-formatflag has been added
Removed
-ishort for--int-formatis removed, now have to use the full form--int-format
0.8.3
Forge
Changed
- Test from different crates are no longer run in parallel
- Test outputs are printed in non-deterministic order
Fixed
- Test output are printed in real time again
- Bug when application would not wait for tasks to terminate after execution was cancelled
0.8.3-alpha.1
v0.8.3-alpha.1 update version
0.8.2
Forge
Fixed
- incorrect caller address bug in called contracts