Giter Site home page Giter Site logo

saas3-dao's Introduction

SaaS3 DAO

SaaS3 DAO refers to the decentralized autonomous organization (DAO), a governance body established with a full-fledged mechanism for token economics. The platform runs on the Substrate blockchain and uses two pallets: pallet-treasury and pallet-court. pallet-treasury is used for collecting funds, while pallet-court is used to resolve disputes between users of the SaaS3 oracle.

pallet-treasury

The pallet-treasury pallet is responsible for collecting and managing funds for the SaaS3 DAO platform.

pallet-court

The pallet-court pallet provides a platform for resolving disputes between users of the SaaS3 oracle. When a dispute arises, users can submit evidence to support their case. A panel of judges is then selected to review the evidence and make a ruling. If the ruling is in favor of the plaintiff, they are awarded a reward from the defendant's bond.

Building and Testing

To build the SaaS3 DAO project, run the following command:

cargo +nightly build --release

To run tests, use the following command:

cargo +nightly test

Run a testnet

1. Start relay chain

Follow the polkadot offcial doc or the following doc to run the relay chain.

Before start, you need download polkadot release or build from source yourself. You can found downloaded relay chain spec from this repo, they are in the chainspecs folder.

Start the first validator using the alice account by running the following command:

 ./target/release/polkadot \
--alice \
--validator \
--base-path /tmp/relay/alice \
--chain /path/to/saas3-dao/chainspecs/raw-local-chainspec.json \
--port 30333 \
--rpc-port 9944

Open a new terminal and start the second validator using the bob account.

./target/release/polkadot \
--bob \
--validator \
--base-path /tmp/relay/bob \
--chain /path/to/saas3-dao/chainspecs/raw-local-chainspec.json \
--port 30334 \
--rpc-port 9945

2. Prepare parachain node

Follow the polkadot official doc to reserve a parachain identifier. The spec files are in the chainspecs folder. After that, follow following steps to generate files for parachain node. Export the WebAssembly runtime for the parachain.

./target/release/saas3-dao-node export-genesis-wasm --chain chainspecs/raw-parachain-chainspec.json para-2000-wasm

Generate a parachain genesis state

./target/release/saas3-dao-node export-genesis-state --chain chainspecs/raw-parachain-chainspec.json para-2000-genesis-state

3. Start parachain node

 ./target/release/saas3-dao-node \
--alice \
--collator \
--force-authoring \
--chain chainspecs/raw-parachain-chainspec.json \
--base-path /tmp/parachain/alice \
--port 40333 \
--ws-port 8844 \
-- \
--execution wasm \
--chain chainspecs/raw-local-chainspec.json \
--port 30343 \
--ws-port 9977

4. Register with the local relay chain

Follow link connect to a local parachain to register the parachain with the local relay chain. check the Register with the local relay chain secton and follow the instructions to do the configuration.

5. Connect to parachain

Visit link here to connect to parachain.

Tutorial

Visit here

saas3-dao's People

Contributors

songtianyi avatar

Watchers

 avatar Steven Wong avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.