Skip to content

make-software/dao-contracts

MVPR DAO for Casper

Reusable smart contracts for building DAOs on top of Casper.

Repository contains following modules:

  • dao provides smart contracts implementation,
  • dao-macros makes writing code easier,

General Documentation

Technical documentation

To generate rustdoc execute the following:

just rebuild-docs

Live version: https://make-software.github.io/dao-contracts.

Quickstart

Prerequisites

  • Rust toolchain installed (see rustup.rs),
  • cargo odra installed cargo install --version 0.0.10 --force --locked cargo-odra
  • wasmstrip tool installed (see wabt).
  • wasm-opt tool installed (see binaryen).
  • just tool installed (see just).
  • wabt installed (see wabt).

To prepare your environment execute:

just prepare

Build contracts

To build WASM files execute:

just build-dao-contracts

Contracts will be located in the wasm/ folder.

Run tests

To run integration tests execute:

just test