All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Methods to consume all gas for a given query or function selector:
givenSelectorConsumeGas(bytes4 selector_)
andgivenQueryConsumeGas(bytes memory query_)
- Add methods to enable/disable global logging:
disableLogging
/enableLogging
; mock provider is initialized to log arbitrary requests.
- Update config file to new Foundry version #12
- Comments for all code
setDefault(bytes memory response_)
method to define a default response for arbitrary requestsgivenQueryReturn(bytes memory query_, bytes memory response_)
method to define a response for a specified querygivenSelectorReturn(bytes4 selector_, bytes memory response_)
method to define a response for a specified selector (msg.sig
)- More tests
- README.md to describe the current state of your project
lib/ds-test
to2c7dbcc8586b33f358e3307a443e524490c17666
getCallData(uint256 index_)
returns an errorMockProvider__getCallData_indexOutOfBounds(uint256 index)
if an out of boundsindex_
is provided; previously it was returning an empty response
getCallData
to return logged requestsgivenQueryReturnResponse
to make the provider return a specific response for a requestsetDefaultResponse
to make the provider return a default response for any request- Issue templates for feature and bug requests
givenSelectorReturnResponse
to make the provider return a specific response for a request, without taking into consideration any given parameters. i.e., You can specify to return42
for any call tobalanceOf(address who)
without having to specify thewho
parameter; it will return42
for all calls tobalanceOf(address who)
- Upgrade
cachix/install-nix-action
fromv13
tov16
- Downgrade Solidity test version from
0.8.10
to0.8.7
since it cannot find0.8.10
- Migrate repo to work with foundry instead of dapptools