Giter Site home page Giter Site logo

carlosdp / ens-small-grants Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 11.0 1.59 MB

A reverse auction grants app intended for small grants issued by ENS DAO and its working groups. Original idea from Nouns Prop House.

License: Other

JavaScript 2.90% HTML 0.64% TypeScript 94.33% CSS 1.89% Shell 0.25%

ens-small-grants's Introduction

ENS Small Grants

This is a semi-autonomous grant application designed to help ENS DAO distribute small grants to a wider range of projects at a regular rate.

Setup

Pre-requisites:

Running the project:

  1. Open docker
  2. Start a local instance of Supabase from the config file with supabase start
  3. Rename .env.example to .env and enter the Supabase credentials from the previous step
  4. Install dependencies with yarn install
  5. Run the project with yarn dev
  6. In another terminal, run supabase functions serve rpc to serve our edge function

Creating a Round

  1. Go to the Supabase Studio UI
  2. Go to Tables -> rounds
  3. Create a new row in the rounds table
  4. Fill out the information needed, using integers in wei for token amounts and hex addresses for addresses (use 0x00 for allocation_token_address for ETH)
  5. Use the ENS name for the snapshot space as the snapshot_space_id (eg. small-grants.eth)
  6. Save the new row

Setting up Snapshot

When the proposal period is done, you need to set up the Snapshot Space for voting. This can be done with one click in the UI by going to /rounds/{round_id}/snapshot and clicking the button on that page. It will ask you to sign a message and that should create the compatible Snapshot space with all the proposals as options.

Your wallet address must be an admin on the Snapshot space specified in snapshot_space_id during the setup of the round. Your address should also be added to the adminAddressList array in the Supabase RPC function for the proposal id to get updated in the database.

You will also need the ArConnect Chrome Extension installed to upload the proposals to Arweave for Snapshot.

Architecture

For the initial implementation, the focus is on speed of deployment, while retaining independent vote audit-ability.

  • During the Proposal Stage, proposal text is stored in a Supabase database.
  • Once Proposal Stage is complete, an admin must create a Snapshot Proposal where each Grant Proposal is a "choice".
  • Once on Voting Stage, the app uses Snapshot as the source of truth for counting votes and applying different voting strategies.

License

This project is licensed under both MIT and Apache 2.0

ens-small-grants's People

Contributors

carlosdp avatar coltron-code avatar gailwilson avatar gskril avatar nftyslobo avatar tateb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ens-small-grants's Issues

Implement minimum character limit.

Issue

There was an instance of an erroneous or accidental spam proposal during the Public Good Round 1.

See: Proposal #13 or image of proposal.

Proposed Solution

To prevent similar occurrences a minimum character limit should be implemented on the text fields.

Considerations

This minimum character count will not prevent all malicious spam, but it will prevent honest erroneous proposals.

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.