Skip to content

carletex/quadratic-diplomacy

Repository files navigation

Quadratic diplomacy (event-driven)

A decentralized & effective way of distributing rewards to workstream contributors.

Preview

This build uses events for storing members, votes, elections and minimizes on-chain storage.

Built with 🏗 Scaffold-ETH as a Moonshot collective project.

🏄‍♂️ Quick start

Prerequisites: Node plus Yarn and Git

1. Clone repository

git clone https://github.com/carletex/quadratic-diplomacy.git

2. Install and start your 👷‍ Hardhat chain:

cd quadratic-diplomacy
yarn install
yarn chain

3. In a second terminal window, start your 📱 frontend:

cd quadratic-diplomacy
yarn start

Copy your local burner wallet address (top right)

4. Deploy your contract:

In packages/hardhat/deploy/00_deploy_your_contract.js paste your wallet address:

const TO_ADDRESS = "YOUR_FRONTEND_ADDRESS";

You can also tweak the script (add test data, etc)

In a third terminal window, run:

cd quadratic-diplomacy
yarn deploy

📱 Open http://localhost:3000 to see the app

📚 Documentation

Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io