Granola-Team / mina-on-chain-voting

Mina On-Chain Voting

Home Page:https://mina.vote

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status

Mina On-Chain Voting

On-Chain Voting is a protocol developed to help with governing the Mina L1 blockchain.

Protocol Specifications

The On-Chain Voting Protocol is designed to provide community members with a transparent and secure method of participating in the decision-making process for the Mina blockchain. The aim for this protocol is to provide stakeholders with the ability to vote on MIPs (Mina Improvement Proposals) with ease.

(Individual MIPs should be created by following the process described on the GitHub repository.)

Voting on a MIP

To cast a vote on a particular MIP, a user must send a transaction to themselves with a specially-constructed memo field. The memo field must adhere to the following convention.

For example:

To vote in favor of 'MIP1', the memo field must be populated with: 'MIP1'
Similarly, if the intent is to vote against 'MIP1', the memo field must
contain: 'no MIP1'.

The transaction amount must be 0, with the user only paying for the transaction fee.

For more details, see:

Software Development

Install Nix and direnv.

The .envrc will instruct direnv to use Nix to install the prerequisites for development on this repo.

Without Nix, you will need to install, most notably:

  • just
  • libpq
  • rustup
  • libiconv
  • llvm
  • nodejs
  • pkg-config
  • podman/Docker
  • pnpm (and issue pnpm env use --global 18)

Configure your .env file. See the .env.example.

Optionally issue just install to install yet more dependencies.

Issue just to see the possible development actions. Examine Justfile to see how they work.

For more information about Diesel and database migrations, see the official docs..

Contributing

Contributions are welcome! This project uses the C4 (Collective Code Construction Contract) process for contributions.

License

This project is licensed under the Mozilla Public License 2.0. See the LICENSE file for the full license text.

About

Mina On-Chain Voting

https://mina.vote

License:Mozilla Public License 2.0


Languages

Language:TypeScript 67.2%Language:Rust 18.3%Language:Haskell 6.9%Language:Nix 1.9%Language:JavaScript 1.6%Language:Just 1.5%Language:Shell 0.8%Language:CSS 0.7%Language:Dockerfile 0.6%Language:PLpgSQL 0.5%