Skip to content

block-foundation/solidity-housing-cooperative

GitHub License devContainer


Block Foundation Logo

Blockchain Housing Cooperative Management

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

Welcome to Blockchain Housing Cooperative Management! This project aims to leverage blockchain technology to provide an efficient, transparent, and secure platform for managing housing cooperatives.

Introduction

Traditionally, housing cooperatives have faced challenges in areas such as record keeping, transparency, property ownership transfer, and fund management. Our project addresses these challenges by harnessing the power of blockchain technology. We are creating a decentralized application (DApp) that will maintain a record of all houses owned by the cooperative, track the owners of each house, and handle transactions related to these properties, all in a secure and transparent manner.

This platform will use smart contracts - self-executing contracts with the terms of the agreement directly written into code. For our project, we'll be using Solidity for Ethereum blockchain and PyTeal for Algorand blockchain. These smart contracts will handle tasks such as adding new houses to the cooperative, changing ownership, and managing funds for house purchases.

Our project will offer benefits like improved transparency, as every transaction will be recorded on the blockchain and can be audited. It will also increase efficiency, as transactions and changes of ownership can be handled within the blockchain without the need for a middleman. Lastly, it ensures higher security and trust as the blockchain ledger is immutable and every transaction can be traced and verified.

The end goal of this project is to revolutionize how housing cooperatives are managed, by bringing them into the digital age and making them more secure, efficient, and transparent. Whether you are part of a housing cooperative, interested in the potential of blockchain technology, or just curious to see how decentralized applications can be used in new and exciting ways, we invite you to join us on this journey of innovation.

Quick Start

Install

npm i

Compile

npm run compile

Contract

The contract will keep track of the houses owned by the cooperative, and it will allow new houses to be added to the cooperative's list of properties. For simplicity, each house will be represented by an address (to mimic a unique identifier), and it will be recorded along with the owner's name.

  • This contract adds houses to an array and allows the owner of a house to change the owner name. There's also an event that will be emitted when a new house is added.
  • This contract assumes that each house has a unique Ethereum address, which is used as an identifier. It also assumes that the person executing the contract (msg.sender) is the house owner. This contract might not cover your actual needs, and it's advised to get in touch with a Solidity developer who can help create a more complex contract that covers all your needs.
  • Each house has a price and can be put up for sale. Members can buy a house if it is for sale and if they send enough Ether. The Ether is then added to the previous owner's balance. Members can withdraw their funds at any time.
  • This contract assumes that the price of each house is 1 Ether and that transactions only happen between members of the cooperative.
  • This contract assumes that the price of each house is static and set when the house is added. In a real contract, you might want to allow the price to change over time or have some mechanism to determine the price dynamically.

Please be aware that smart contracts handling real-world assets can have legal implications and may require a legal framework beyond the smart contract itself to be enforceable and effective.

Development Resources

Other Repositories

Block Foundation Smart Contract Series

Solidity Teal
Template >>> >>>
Architectural Design >>> >>>
Architecture Competition >>> >>>
Housing Cooporative >>> >>>
Land Registry >>> >>>
Real-Estate Crowdfunding >>> >>>
Rent-to-Own >>> >>>
Self-Owning Building >>> >>>
Smart Home >>> >>>

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.