Skip to content

Latest commit

 

History

History
106 lines (61 loc) · 6.18 KB

File metadata and controls

106 lines (61 loc) · 6.18 KB

GitHub License devContainer


Block Foundation Logo

Neighbourhood Participation

Block Foundation Smart Contract Series [Solidity]


Block Foundation Brand

Contents



Report a Bug Request a Feature Ask a Question Make a Suggestion Start a Discussion

Introduction

The Neighborhood Participation smart contract, written in Solidity for the Ethereum blockchain, is designed to facilitate decision-making and participation within a neighbourhood community. It provides a decentralized platform for community members to propose initiatives, vote on them, and check their status.

In this smart contract, each community or neighborhood has a manager, typically the person who deploys the contract. This manager can invite new participants to join the community. Once an individual is invited, they can accept the invitation to join the neighborhood.

Any participant can propose a new initiative. These initiatives then can be voted upon by the community members. The voting mechanism is a simple binary vote, meaning each participant can vote either in favor (yes) or against (no) an initiative.

The contract has a quorum mechanism in place to automatically approve or reject initiatives. If the number of 'yes' votes exceeds the predefined quorum, the initiative gets approved. Similarly, if 'no' votes exceed the quorum, the initiative gets rejected.

Each initiative in the contract holds its description, the address of the initiator, the count of yes and no votes, and its current state (proposed, approved, or rejected).

Remember, while this contract provides core functionalities for community decision-making, it's only a starting point. Depending on the specific requirements, further features can be added and improvements can be made. Also, it's crucial to thoroughly test and audit any smart contract before deploying it to a live network to ensure its security and functionality.

Quick Start

Install

npm i

Compile

npm run compile

Contract


Colophon

Authors

This is an open-source project by the Block Foundation.

The Block Foundation mission is enabling architects to take back initiative and contribute in solving the mismatch in housing through blockchain technology. Therefore the Block Foundation seeks to unschackle the traditional constraints and construct middle ground between rent and the rigidity of traditional mortgages.

website: www.blockfoundation.io

Development Resources

Contributing

We'd love for you to contribute and to make this project even better than it is today! Please refer to the contribution guidelines for information.

Legal Information

Copyright

Copyright © 2023 Stichting Block Foundation. All Rights Reserved.

License

Except as otherwise noted, the content in this repository is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License, and code samples are licensed under the Apache 2.0 License.

Also see LICENSE and LICENSE-CODE.

Disclaimer

THIS SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.