This repo contains a the Margined Protocol a decentralized perpetual contract protocol on the Terra Blockchain.
- Rust v1.44.1+
wasm32-unknown-unknown
target- Docker
-
Install
rustup
via https://rustup.rs/ -
Run the following:
rustup default stable
rustup target add wasm32-unknown-unknown
- Make sure Docker is installed
Each contract contains Rust unit and integration tests embedded within the contract source directories. You can run:
cargo unit-test
cargo integration-test
Clone this repository and build the source code:
git clone [email protected]:margined-protocol/mrgnd-perpetuals.git
cd mrgnd-perpetuals
cargo build