Installation
This section provides detailed instructions on how to install the Invariant protocol on Aleph Zero, including prerequisites and steps for setting up the development environment.
Prerequisites
- Rust & Cargo (rustup)
- cargo-contract (cargo-contract)
- substrate-contracts-node (substrate-contracts-node)
Install Rust & Cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install cargo-contract
rustup component add rust-src && cargo install --force --locked cargo-contract
Install substrate-contracts-node
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git
Install wasm-bindgen
sudo apt install --locked wasm-bindgen-cli
Build Protocol
Clone repository
git clone git@github.com:invariant-labs/protocol-a0.git
Build contract
cargo contract build
Build in release mode
cargo contract build --release
Run tests
cargo test
Build SDK
Build SDK with its associated dependencies
cd sdk
./build.sh
Run e2e tests
./tests.sh