Releases: defi-wonderland/smock-foundry
Releases · defi-wonderland/smock-foundry
v1.5.0
v1.4.0
What's Changed
- the mock contracts are now being formatted with
forge fmt
according to the project's configuration - updates
solc-typed-ast
version to18.1.3
- enabled mocking user-defined values and internal pure functions
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- improved support for nested structs, mappings, and multiple inherited constructors
receive
andfallback
functions are not being mocked anymore
Full Changelog: v1.2.0...v1.3.0
v1.2.0
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
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
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
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
v1.0.4
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
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