Using the lightning-rod template (recommended)
We recommend using our template which comes with foundry already setup.Or setup manually
You do not need to follow these steps if you are using the lightning-rod template.
Download the inco libraries
Inco uses npm packages to provide its solidity library.Setup remappings
Create a fileremappings.txt
at the root of your contracts directory.
- left to the
=
sign, have the following namesforge-std/
ds-test/
@inco/
@openzeppelin/
- right to the
=
sign, have the path to the corresponding libraryforge-std/
should point to thesrc/
directory of your localforge-std
libraryds-test/
should point to thesrc/
directory of your localds-test
library@inco/
should point to the@inco
directory in yournode_modules
directory, and not to the@inco/lightning
or@inco/shared
directories- In the same way
@openzeppelin/
should point to the@openzeppelin
directory in yournode_modules
directory
foundry-std
and ds-test
) like so:
node_modules
sit one directory up from your contracts directory):