Start with Foundry
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust. It is an all-in-one solution that provides everything you need to build, test, deploy, and interact with smart contracts on the FAIR blockchain.
Prerequisites
- Install Foundry by following the instructions in the Foundry Book.
Setup Project
Create Directory
The first step is to create a new directory for your project and navigate into it. You can do this using the following commands:
mkdir fair-capp && cd fair-cappCreate Foundry Project
The second step is to create the foundry project
forge initConfigure Foundry for FAIR
Next, you need to configure Foundry to connect and work with the FAIR network. Update your foundry.toml to include the following:
[profile.default]
src = "src"
out = "out"
solc = '0.8.24'
evm_version = 'shanghai'
optimize = true
optimizer_runs = 2000
libs = ["lib"]Next Steps
Now that your project is set up, you can start building your confidential application (cApp) on FAIR! Checkout the tutorials for more examples!