Skip to content

v0.1.1

Compare
Choose a tag to compare
@mario-eth mario-eth released this 08 Aug 11:53
· 1 commit to release/v0.1.1 since this release

0.1.1

Description

Breaking changes

  • The remappings tag within the soldeer.toml has been renamed to foundry and a new option is available foundry-config. This option describe if you want to define the dependencies within the foundry.toml or not.
  • The dependencies have been renamed with the @ prefix in front of them. (Previously openzeppelin~.... => now @openzeppelin~....
  • The old [dependencies] tag has been renamed [sdependencies] to avoid any future collision with any possible foundry config.

In this release, I've added support to foundry.toml.

To use Soldeer with foundry, you just have to define the sdependencies tag within foundry.toml alongside with the dependencies that you want to use and within the soldeer.toml you have to enable the foundry config file overwrite.

Example of soldeer.toml to work with foundry:

[foundry]
enabled = true
foundry-config = true

Example foundry.toml

[sdependencies]
"@openzeppelin~v4.9.2" = "https://github.com/OpenZeppelin/openzeppelin-contracts/archive/refs/tags/v4.9.2.zip"
"@openzeppelin~v1.0.5" = "https://github.com/OpenZeppelin/openzeppelin-contracts/archive/refs/tags/v1.0.5.zip"
"@solady~v0.0.41" = "https://github.com/Vectorized/solady/archive/refs/tags/v0.0.41.zip"
"@uniswap-v3-periphery~v1.0.0-beta.1" = "https://github.com/Uniswap/v3-periphery/archive/refs/tags/v1.0.0-beta.1.zip"

By adding this tag to your foundry file, you will receive an warning when using forge, until this tag is officially recognized as a valid foundry.toml config. Keep an eye on https://github.com/foundry-rs/foundry/tree/master/config.