Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/near-ndc/voting-v1
Voting smart contracts for NDC v1
https://github.com/near-ndc/voting-v1
blockchain near near-protocol smart-contracts voting
Last synced: 2 months ago
JSON representation
Voting smart contracts for NDC v1
- Host: GitHub
- URL: https://github.com/near-ndc/voting-v1
- Owner: near-ndc
- License: other
- Created: 2022-10-09T19:07:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T13:52:44.000Z (9 months ago)
- Last Synced: 2024-08-01T13:36:15.570Z (5 months ago)
- Topics: blockchain, near, near-protocol, smart-contracts, voting
- Language: Rust
- Homepage:
- Size: 569 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-ccamel - near-ndc/voting-v1 - Voting smart contracts for NDC v1 (Rust)
README
# NDC v1 Smart Contracts
In NDC v1, there will be only two mechanisms to vote: simple proposal voting and elections. Both are based on stake weight.
- Details about the Framework: [near-ndc/gov](https://github.com/near-ndc/gov).
This repository provides smart contracts for NDC v1 Voting Body.
## Proposal types
| Proposal | Voting Entity | Contract |
| :------------------------------------------- | :------------ | :---------- |
| Elect house representatives | Voting Body | elections |
| Constitution ratification | Voting Body | voting body |
| Dissolve a house and call for new elections | Voting Body | voting body |
| Setup Package | Voting Body | voting body |
| Budget ratification | Voting Body | voting body |
| Veto HoM Recurrent and Big Funding Proposals | Voting Body | voting body |
| Budget | HoM | congress |
| Transfer Funds | HoM | congress |
| Funding proposal | HoM | congress |
| Veto any HoM proposal | CoA | congress |
| Reinstate representative | TC / CoA | congress |
| Investigate | TC | congress |
| Remove representative | TC | congress |In NDC v1, Voting Body can't make proposal for budget management. They can only veto budget proposals.
### General voting rules
- user can only vote for active proposals
- user can not overwrite his vote### Elections
Elections for NDC v1 Houses.
👉 [**Voting Process**](https://github.com/near-ndc/gov/blob/main/framework-v1/elections-voting.md)
### Voting Body
Voting Body is set of human verified NEAR accounts constituting NDC.
Voting mechanisms as well as Powers, Checks and Balances of the Voting Body is described in the [NDC Gov v1 Framework](https://github.com/near-ndc/gov/blob/main/framework-v1/gov-framework.md).
- Propose and approve HoM **setup package**: a request to deploy funds from the [Community Treasury](https://github.com/near-ndc/gov/blob/main/framework-v1/community-treasury.md) to HoM DAO.
- **Voting Body Veto** is a special proposal to veto other proposal made by a house. When a HoM or CoA proposal will pass it must not be executed immediately. There must be an challenge period, where a Voting Body or the TC can stop the proposal execution by successfully submitting a Veto proposal.