Skip to content

Releases: defi-wonderland/smock-foundry

v1.5.0

01 May 11:48
5fb3b6b
Compare
Choose a tag to compare

What's Changed

  • Support for nested arrays
  • Simplified templates for internal functions
  • Added a helper to expect calls to internal functions
  • Add a helper to read internal state variables in mocks

Full Changelog: v1.4.0...v1.5.0

v1.4.0

24 Apr 16:50
ec05a57
Compare
Choose a tag to compare

What's Changed

  • the mock contracts are now being formatted with forge fmt according to the project's configuration
  • updates solc-typed-ast version to 18.1.3
  • enabled mocking user-defined values and internal pure functions

Full Changelog: v1.3.0...v1.4.0

v1.3.0

17 Apr 10:51
9b509b0
Compare
Choose a tag to compare

What's Changed

  • improved support for nested structs, mappings, and multiple inherited constructors
  • receive and fallback functions are not being mocked anymore

Full Changelog: v1.2.0...v1.3.0

v1.2.0

12 Apr 12:06
072205a
Compare
Choose a tag to compare

What's Changed

  • improved handling of abstract contracts, specifically multiple inheritance, constructor parameters and non-implemented inherited functions

Full Changelog: v1.1.0...v1.2.0

v1.1.0

08 Apr 07:05
8f41cec
Compare
Choose a tag to compare

What's Changed

  • Switched to solc-typed-ast to have granular control over the nodes
  • Changed the format of the input parameters to globs

Full Changelog: v1.0.7...v1.1.0

v1.0.7

05 Jan 13:10
15a200d
Compare
Choose a tag to compare

What's Changed

  • Clarified deployMock documentation
  • The mock contracts will have the same license as the original ones
  • Fixed an edge case when mocking virtual functions in abstract contracts

Full Changelog: v1.0.6...v1.0.7

v1.0.6

20 Dec 14:53
3241665
Compare
Choose a tag to compare

What's Changed

  • Cleaned up the templates, resulting in tidier mock contracts
  • Eliminated unused dependencies

Full Changelog: v1.0.5...v1.0.6

v1.0.5

18 Dec 12:30
ddb009d
Compare
Choose a tag to compare

What's Changed

  • Fixed mocking internal view functions #31
  • Fixed mocking internal functions without parameters #33

Full Changelog: v1.0.4...v1.0.5

v1.0.4

08 Dec 10:57
5bcf426
Compare
Choose a tag to compare

What's Changed

  • Changed the default mock directory to solidity/test/smock
  • Fixed mocking functions without returned values
  • Added support for struct arrays, array mappings and struct array mappings

Full Changelog: v1.0.3...v1.0.4

v1.0.3

05 Dec 10:54
101373b
Compare
Choose a tag to compare

What's Changed

  • The package has been renamed to Smock Foundry
  • The configuration has been simplified
  • Various improvements to the mocking logic, allowing to mock abstract contracts and complex structures such as nested mappings

Full Changelog: v1.0.2...v1.0.3