Releases: foundry-rs/forge-std
Releases · foundry-rs/forge-std
v1.11.0
Featured Changes
Users can then tap into the new features that Config and StdConfig enable to streamline the setup of multi-chain environments.
-
The following functions were added to
VmSafe:resolveEnvgetChainIdgetStorageAccessesbound
-
The following functions were made
view:accesseseth_getLogsgetMappingLengthgetMappingSlotAtgetNoncegetRecordedLogsgetWalletsreadCallers
-
The following functions were made
pure:contains
- feat: fork cheats by @0xrusowsky in #709
- feat(vm): getStorageAccesses by @yash-atreya in #712
- feat:
readFork*andgetStorageAccessescheatcodes by @0xrusowsky in #711 - feat!: deprecate
readForkcheats by @0xrusowsky in #714 - feat: config helper contract by @0xrusowsky in #715
- StdConfig: fix typo in writeToFile param doc by @prestoalvarez in #721
What's Changed
- docs(meta): add RELEASE_CHECKLIST.md by @DaniPopes in #702
- chore: update codeowners by @zerosnacks in #729
- chore(
ci): harden workflow by setting default permission to read only by @zerosnacks in #728 - chore(
ci): add CodeQL by @zerosnacks in #727 - chore(
ci): pin deps in workflow and adddependabotto update them weekly by @zerosnacks in #730 - chore(deps): bump crate-ci/typos from 1.36.2 to 1.36.3 by @dependabot[bot] in #736
- chore(deps): bump crate-ci/typos from 1.36.3 to 1.37.2 by @dependabot[bot] in #741
- chore(
ci): rescope permissions according to principle of least privilege by @zerosnacks in #731 - chore(
ci): move CodeQL toci.ymland make it a condition forci-successby @zerosnacks in #734
New Contributors
- @prestoalvarez made their first contribution in #721
- @dependabot[bot] made their first contribution in #736
Full Changelog: v1.10.0...v1.11.0
v1.10.0
Featured Changes
- The following functions were added to
VmSafe:getRawBlockHeaderstopRecordsetSeed- EIP-7702:
attachDelegation,signAndAttachDelegation,signDelegation - EIP-712:
eip712HashStruct,eip712HashType,eip712HashTypedData
- The following functions were made
view:randomAddress()randomUint()randomUint(uint256 min, uint256 max)
- perf(StdAssertions): avoid vm call for trivial conditions by @DaniPopes in #693
- fix: re-add fail(string) by @DaniPopes in #697
What's Changed
- add stopRecord and 7702 cross chain cheatcodes by @grandizzy in #680
- Broken forge link by @mario-eth in #685
- feat: add EIP-712 cheatcodes by @yash-atreya in #686
- feat(Vm): add
setSeed,getRawBlockHeaderby @DaniPopes in #696 - chore: fix and add typos in ci by @DaniPopes in #695
- chore(meta): add CODEOWNERS by @DaniPopes in #694
- perf(StdAssertions): avoid vm call for trivial conditions by @DaniPopes in #693
- ci: add Foundry stable, use matrixes by @DaniPopes in #698
- chore(StdAssertions): manually invert conditions by @DaniPopes in #699
- fix: re-add fail(string) by @DaniPopes in #697
- feat(Vm): include
random*view changes by @DaniPopes in #700 - feat: release 1.10.0 by @DaniPopes in #701
New Contributors
- @mario-eth made their first contribution in #685
Full Changelog: v1.9.7...v1.10.0
v1.9.7
Featured changes
- Add
ERC7540andERC7575interfaces by @hieronx in #644 - Add
StdConstantslibrary by @CodeSandwich in #654 - Add
ERC-6909interface by @n3m6 in #664 - Add new
accessList,warmSlot,coolSlot+coolcheatcodes by @grandizzy in #670 - add
interceptInitcodecheatcode by @grandizzy in #675
Other changes
- feat: update cheatcodes by @grandizzy in #673
- chore: add hoodi testnet by @StackOverflowExcept1on in #672
- chore: use named imports by @milosdjurica in #659
- feat: update cheatcodes by @StackOverflowExcept1on in #678
New Contributors
- @hieronx made their first contribution in #644
- @CodeSandwich made their first contribution in #654
- @n3m6 made their first contribution in #664
- @StackOverflowExcept1on made their first contribution in #672
Full Changelog: v1.9.6...v1.9.7
v1.9.6
Breaking Changes
- deprecated
deployMockERC721anddeployMockERC20fromStdUtils(#643)
Featured Changes
- Fixing Variable Shadowing in Solidity: uint256 Redeclaration Error by @Guayaba221 in #636
- feat: new cheatcode
assumeUnusedAddressby @xenide in #639 - OP Networks Add by @ElliotFriedman in #646
- test: remove
testFail*tests by @zerosnacks in #643
Other changes
- chore: update
Vm.solto the latest version by @zerosnacks in #647 - chore: update to
1.9.6by @zerosnacks in #648
New Contributors
- @Guayaba221 made their first contribution in #636
- @ElliotFriedman made their first contribution in #646
Full Changelog: v1.9.5...v1.9.6
v1.9.5
Featured Changes
- feat: get broadcasts by @yash-atreya in #627
- feat: mockCall overloads by @yash-atreya in #630
- fix: use
vm.getBlockTimestampforskipandrewindby @xenide in #634 - feat:
countassertion forexpectRevertby @yash-atreya in #638 - feat: count assertions for expectEmit by @yash-atreya in #640
Other changes
- test: don't expect a specific cheatcode error message by @DaniPopes in #632
- chore: update to latest cheatcodes by @grandizzy in #633
- chore: update Vm.sol by @zerosnacks in #641
- chore: bump to
v1.9.5by @grandizzy in #642
New Contributors
Full Changelog: v1.9.4...v1.9.5
v1.9.4
Featured Changes
- feat: add gas snapshot cheatcodes by @zerosnacks in #614
- feat: add additional random value cheatcodes and mocking cheatcodes by @Tudmotu in #615
- feat: add
debugTraceRecording,getScriptWallets,breakpoint, andcloneAccountcheats by @boolafish in #621 - feat: add
rememberKeyscheats by @yash-atreya in #622 - feat: add
getWalletscheatcode by @yash-atreya in #620 - fix: update snapshot cheatcodes by @zerosnacks in #613
Other changes
- Add
--fromoption to vm.py, to generate Vm.sol from json file by @Tudmotu in #619 - chore: add contribution guide and document
scripts/vm.pyby @zerosnacks in #618 - chore: add guidance on running compatibility checks locally by @zerosnacks in #623
- chore: bump to v1.9.4 by @mds1 in #625
New Contributors
- @boolafish made their first contribution in #621
Full Changelog: v1.9.3...v1.9.4
v1.9.3
Featured Changes
- feat: add
publicKeyP256,pauseTracing, andresumeTracingcheatcodes by @grandizzy in #596 - feat: add
resetGasMeteringandexpectPartialRevertcheatcodes by @grandizzy in #597 - feat:
setArbitraryStorage,copyStorage,mockFunctionandassumeNoRevertby @grandizzy in #602 - feat: add
keyExistsand default parsing methods to stdJson and stdToml by @mds1 in #605 - feat: add
getArtifactPathBy{,Deployed}Code,parseTomlType,expect{,Partial}Revert(..., address),skip(bool, string), andrandom{Bool,Bytes,Int}by @DaniPopes in #610
Other Changes
- fix: fix assume not precompile by @tynes in #594
- feat: flare mainnet/testnet rpc support by @Uttam-Singhh in #595
- chore: renaming tests to follow best practices from Foundry Book by @milosdjurica in #600
- docs: docs fix spelling issues by @nnsW3 in #609
- chore: use correct console signatures by @DaniPopes in #606
- chore: bump version 1.9.3 by @mattsse in #611
New Contributors
- @Uttam-Singhh made their first contribution in #595
- @milosdjurica made their first contribution in #600
- @nnsW3 made their first contribution in #609
Full Changelog: v1.9.2...v1.9.3
v1.9.2
Featured Changes
- fix:
logMemoryinsafeconsolenow works as expected by @Philogy in #591 - New cheats added across various PRs
- List of new cheats can be found by looking at this diff. Note that some cheats were re-organized in foundry-rs/foundry#8578, so not all cheats that show as added are new.
- PRs that added them to forge-std:
- feat: update vm interface with new cheats by @lightclient in #582
- feat: add
broadcastRawTransactioncheatcode by @zerosnacks in #587 - new cheats + v1.9.2 by @mds1 in #593
Other Changes
New Contributors
- @lightclient made their first contribution in #582
Full Changelog: v1.9.1...v1.9.2
v1.9.1
Featured Changes
- fix: add missing console logs by @DaniPopes in #577
Other Changes
Full Changelog: v1.9.0...v1.9.1
v1.9.0
Featured Changes
- feat: deprecate console2 by @DaniPopes in #573
- feat(cheatcode):
vm.promptSecretUintcheat by @DhairyaSethi in #566 - feat:
vm.randomAddressandvm.randomUintcheats by @mds1 in #572 - feat: add invariant excludeSelector helper by @grandizzy in #569
Other Changes
- chore: remove duplicate interface by @stevennevins in #560
- New chains in standard chains:
- feat: add blast goerli & blast chaindata setup by @CruzMolina in #558
- feat: add fantom to default chains by @sujithsomraaj in #568
- feat: 🎸 New Berachain V2 bArtio Testnet by @codingwithmanny in #571
- chore: bump to v1.9.0 by @mds1 in #575
New Contributors
- @CruzMolina made their first contribution in #558
- @stevennevins made their first contribution in #560
- @DhairyaSethi made their first contribution in #566
- @sujithsomraaj made their first contribution in #568
- @grandizzy made their first contribution in #569
- @codingwithmanny made their first contribution in #571
Full Changelog: v1.8.2...v1.9.0