Skip to content

Alkimiya V2.1 core smart contracts

Notifications You must be signed in to change notification settings

Alkimiya/V2.1-contracts

Repository files navigation

Silica v2.1

Solidity smart contracts and tests for Alkimiya V2.1

Getting Started

Install Depenendcies

npm install

Install Foundry

curl -L https://foundry.paradigm.xyz | bash

Update Foundry

foundryup

Install Forge dependencies

forge update

Update Rust, Foundry, and Forge dependencies

make update

Compile Contracts

forge build

Testing

Unit Tests (Foundry)

forge test
forge test -vv (logs)
forge test -vvvv (call trace)
forge test --match-contract TestContractName
forge test --match-test testName

Troubleshooting

Incompatible Solidity Versions

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"

Dependancies Not Found

git submodule update --init --recursive

or

forge install foundry-rs/forge-std

About

Alkimiya V2.1 core smart contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published