https://github.com/make-software/dao-contracts
Smart Contracts for the MVPR On-Chain Governance System on Casper
https://github.com/make-software/dao-contracts
blockchain casper-network dao governance governance-dapps rust-lang smart-contracts
Last synced: about 1 year ago
JSON representation
Smart Contracts for the MVPR On-Chain Governance System on Casper
- Host: GitHub
- URL: https://github.com/make-software/dao-contracts
- Owner: make-software
- License: apache-2.0
- Created: 2022-01-21T03:26:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T13:52:42.000Z (about 2 years ago)
- Last Synced: 2025-04-03T07:21:52.822Z (about 1 year ago)
- Topics: blockchain, casper-network, dao, governance, governance-dapps, rust-lang, smart-contracts
- Language: Rust
- Homepage:
- Size: 4.3 MB
- Stars: 9
- Watchers: 11
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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
- [Usage](docs-high-level/usage.md)
- [Architecture](docs-high-level/architecture.md)
- [Adding a new contract](docs-high-level/adding_new_contract.md)
- [BDD Testing with Gherkin](docs-high-level/gherkin.md)
## Technical documentation
To generate `rustdoc` execute the following:
```bash
just rebuild-docs
```
Live version: https://make-software.github.io/dao-contracts.
## Quickstart
### Prerequisites
- `Rust` toolchain installed (see [rustup.rs](https://rustup.rs/)),
- `cargo odra` installed `cargo install --version 0.0.10 --force --locked cargo-odra`
- `wasmstrip` tool installed (see [wabt](https://github.com/WebAssembly/wabt)).
- `wasm-opt` tool installed (see [binaryen](https://github.com/WebAssembly/binaryen)).
- `just` tool installed (see [just](https://github.com/casey/just)).
- `wabt` installed (see [wabt](https://github.com/WebAssembly/wabt)).
To prepare your environment execute:
```bash
just prepare
```
### Build contracts
To build `WASM` files execute:
```bash
just build-dao-contracts
```
Contracts will be located in the `wasm/` folder.
### Run tests
To run integration tests execute:
```bash
just test
```