Skip to content

Releases: foundry-rs/forge-std

v1.11.0

08 Oct 08:14
8e40513

Choose a tag to compare

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:

    • resolveEnv
    • getChainId
    • getStorageAccesses
    • bound
  • The following functions were made view:

    • accesses
    • eth_getLogs
    • getMappingLength
    • getMappingSlotAt
    • getNonce
    • getRecordedLogs
    • getWallets
    • readCallers
  • The following functions were made pure:

    • contains

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 add dependabot to 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 to ci.yml and make it a condition for ci-success by @zerosnacks in #734

New Contributors

Full Changelog: v1.10.0...v1.11.0

v1.10.0

31 Jul 12:32
8bbcf6e

Choose a tag to compare

Featured Changes

  • The following functions were added to VmSafe:
    • getRawBlockHeader
    • stopRecord
    • setSeed
    • EIP-7702: attachDelegation, signAndAttachDelegation, signDelegation
    • EIP-712: eip712HashStruct, eip712HashType, eip712HashTypedData
  • The following functions were made view:
    • randomAddress()
    • randomUint()
    • randomUint(uint256 min, uint256 max)

What's Changed

New Contributors

Full Changelog: v1.9.7...v1.10.0

v1.9.7

28 Apr 08:12
77041d2

Choose a tag to compare

Featured changes

Other changes

New Contributors

Full Changelog: v1.9.6...v1.9.7

v1.9.6

31 Jan 13:35
3b20d60

Choose a tag to compare

Breaking Changes

  • deprecated deployMockERC721 and deployMockERC20 from StdUtils (#643)

Featured Changes

  • Fixing Variable Shadowing in Solidity: uint256 Redeclaration Error by @Guayaba221 in #636
  • feat: new cheatcode assumeUnusedAddress by @xenide in #639
  • OP Networks Add by @ElliotFriedman in #646
  • test: remove testFail* tests by @zerosnacks in #643

Other changes

New Contributors

Full Changelog: v1.9.5...v1.9.6

v1.9.5

19 Dec 16:21
b93cf4b

Choose a tag to compare

Featured Changes

Other changes

New Contributors

Full Changelog: v1.9.4...v1.9.5

v1.9.4

24 Oct 22:24
1eea5ba

Choose a tag to compare

Featured Changes

Other changes

  • Add --from option to vm.py, to generate Vm.sol from json file by @Tudmotu in #619
  • chore: add contribution guide and document scripts/vm.py by @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

Full Changelog: v1.9.3...v1.9.4

v1.9.3

26 Sep 15:24
8f24d6b

Choose a tag to compare

Featured Changes

  • feat: add publicKeyP256, pauseTracing, and resumeTracing cheatcodes by @grandizzy in #596
  • feat: add resetGasMetering and expectPartialRevert cheatcodes by @grandizzy in #597
  • feat: setArbitraryStorage, copyStorage, mockFunction and assumeNoRevert by @grandizzy in #602
  • feat: add keyExists and default parsing methods to stdJson and stdToml by @mds1 in #605
  • feat: add getArtifactPathBy{,Deployed}Code, parseTomlType, expect{,Partial}Revert(..., address), skip(bool, string), and random{Bool,Bytes,Int} by @DaniPopes in #610

Other Changes

New Contributors

Full Changelog: v1.9.2...v1.9.3

v1.9.2

05 Aug 16:27
1714bee

Choose a tag to compare

Featured Changes

  • fix: logMemory in safeconsole now 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:

Other Changes

  • fix(StdStorage): check last read slots first by @klkvr in #581

New Contributors

Full Changelog: v1.9.1...v1.9.2

v1.9.1

02 Jul 15:21
07263d1

Choose a tag to compare

Featured Changes

Other Changes

Full Changelog: v1.9.0...v1.9.1

v1.9.0

29 Jun 19:48
8948d45

Choose a tag to compare

Featured Changes

Other Changes

New Contributors

Full Changelog: v1.8.2...v1.9.0