Olympus Pro contract on terra
Development
Environment Setup
- Rust v1.44.1+
wasm32-unknown-unknowntarget- Docker
-
Install
rustupvia https://rustup.rs/ -
Run the following:
- Make sure Docker is installed
Unit / Integration Tests
Each contract contains Rust unit and integration tests embedded within the contract source directories. You can run:
Compiling
After making sure tests pass, you can compile each contract with the following:
RUSTFLAGS='-C link-arg=-s'
Production
For production builds, run the following:
This performs several optimizations which can significantly reduce the final size of the contract binaries, which will be available inside the artifacts/ directory.