Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hychen/submoloch
The Polkadot version of MolochDAO
https://github.com/hychen/submoloch
Last synced: about 1 month ago
JSON representation
The Polkadot version of MolochDAO
- Host: GitHub
- URL: https://github.com/hychen/submoloch
- Owner: hychen
- License: apache-2.0
- Created: 2021-01-27T10:10:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-15T13:28:06.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T08:48:43.523Z (3 months ago)
- Language: Rust
- Size: 197 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SubMoloch
The [Polkadot](https://polkadot.network/) version of [MolochDao]([https://github.com/MolochVentures/moloch).
Developed for the purpose of learning, please use it at your own risk## Setup
### Installing Node.js
We require node >=12.0, if not, you can go to the nodejs website and find out how to install or upgrade.
Or we recommend that you install Node using nvm. Windows users can use nvm-windows instead.### Substrate Prerequisites
Follow the official installation steps from the Substrate Developer Hub Knowledge Base.
```
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
```
### Installing The Patract NodeWe use [Patract Node](https://github.com/patractlabs/patract) as our contract test chain.
It has some very convenient optimizations for contracts, such as reducing out-of-block time. To install Patract Node:```
$ cargo install patract-prep --git https://github.com/patractlabs/patract --locked --force
```### Run a local node
```
patract-prep --dev --execution=Native --tmp
```### Compile
```
npx redspot compile
```### Test
```
npx redspot test --no-compile
```### Deploy
```
npx redspot run scripts/submoloch.deploy.ts --no-compile
```