Requirements / Steps are performed on MacOS.
-
Foundry [Official Docs]:
curl -L https://foundry.paradigm.xyz | bash
-
Rust [Official Docs]:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
-
Yarn[Official Docs]:
npm install --global yarn
-
CMake [Official Docs]:
-
[MacOS] Install GUI: v3.7.0
-
Add it to the Application folder
-
Open terminal and run:
sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
-
-
Clone the repo with the
--recursive
flaggit clone https://github.com/filecoin-project/filecoin-solidity.git --recursive
-
Run:
cd filecoin-solidity
-
Install Solc:
- MacOS:
make install_solc_mac
- Linux:
make install_solc_linux
- MacOS:
-
Run:
make
-
Compiling / testing contracts:
forge <build/test>
-
Running all of the integration tests:
make test_integration
-
Running individual integration tests:
- see Makefile for a complete list
The following table contains information about the versions of filecoin network on which the filecoin-solidity
library has been tested on.
FVM version | Builtin actors | Pass |
---|---|---|
[email protected] | builtin_actors@dev/20230206-pre-rc.6 | ✅ |