Set up your development environment for Story smart contracts.
foundryup
to automatically install the latest stable version of the precompiled binaries: forge, cast, anvil, and chiselforge init
. This will create a foundry.toml
and example project files in the project root. By default, forge init will also initialize a new git repository.yarn init
. (⚠️ Note: Only Yarn is compatible with the packages used in this project. Using npm
or pnpm
may result in dependency conflicts.)foundry.toml
file (located in the top directory of your project) and replace it with this:rm src/Counter.sol script/Counter.s.sol test/Counter.t.sol
package.json
. We will also install openzeppelin
and erc6551
as a dependency for the contract and test.
devDependencies
: