Solidity smart contracts and tests for Alkimiya V2.1
npm install
curl -L https://foundry.paradigm.xyz | bash
foundryup
forge update
make update
forge build
forge test
forge test -vv (logs)
forge test -vvvv (call trace)
forge test --match-contract TestContractName
forge test --match-test testName
In case you run into an issue of forge
not being able to find a compatible version of solidity compiler for one of your contracts/scripts, you may want to install the solidity version manager svm
. To be able to do so, you will need to have Rust installed on your system and with it the acompanying package manager cargo
. Once that is done, to install svm
run the following command:
cargo install svm-rs
To list the available versions of solidity compiler run:
svm list
Make sure the version you need is in this list, or choose the closest one and install it:
svm install "0.7.6"
git submodule update --init --recursive
or
forge install foundry-rs/forge-std