Installation
This section provides detailed instructions on how to install the Invariant protocol on Vara, including prerequisites and steps for setting up the development environment.
Prerequisites
- Rust & Cargo (rustup)
Install Rust & Cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install rust and add wasm32 target
rustup install 1.78
rustup target add wasm32-unknown-unknown --toolchain 1.78
Install wasm-opt
cargo install wasm-opt --locked
Build Protocol
Clone repository
git clone git@github.com:invariant-labs/protocol-vara.git
Build contract
chmod +x ./build.sh
./build.sh dev
Build in release mode
chmod +x ./build.sh
./build.sh
Run tests
chmod +x ./tests.sh
./tests.sh
SDK
To build SDK go to the dedicated folder SDK
Build sdk
chmod +x ./build.sh
./build.sh
Run sdk tests
chmod +x ./tests.sh
./tests.sh