Giter VIP home page Giter VIP logo

block-foundation / solidity-self-owning-building Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 85 KB

Solidity Smart Contract: Self-Owning Building

Home Page: https://www.blockfoundation.io

License: Creative Commons Attribution Share Alike 4.0 International

JavaScript 5.33% Dockerfile 0.28% TypeScript 47.95% Solidity 46.43%
architecture block-foundation blockchain blockfoundation building eth ethereum hardhat real-estate smart-contract

solidity-self-owning-building's Introduction

GitHub License devContainer


Block Foundation Logo

Self-Owning Building

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

Blockchain Autonomous Building Management!

Welcome to our revolutionary project - an autonomous building management system built on the Blockchain. The project integrates a unique blend of real estate management and blockchain technology, creating an ecosystem where a building can effectively "own" itself. This concept is a stepping stone to decentralized autonomous organizations (DAOs) and a significant leap forward for blockchain applications in real estate.

Our autonomous building management system employs smart contracts to manage and oversee a building's fundamental operational aspects, including rent collection, maintenance costs, and ownership transfers. The smart contracts, which are blockchain's primary building blocks, are immutable, transparent, and verifiable pieces of code that automatically execute transactions when predefined conditions are met.

In the context of our project, these smart contracts come to life as entities managing a building. They collect rent from tenants, pay maintenance costs, and can even transfer ownership when the building is bought. We implement penalty mechanisms for late payments, ensuring all stakeholders are held accountable.

This system can have profound implications for reducing administrative overhead, increasing efficiency, and fostering a new level of transparency in the real estate sector.

Please note, this project showcases the potential of blockchain technology. As with any significant technology implementation, thorough testing is required before actual use. Blockchain and smart contract technology is complex, and mistakes can lead to severe consequences, including loss of funds. Always consult with experts when interacting with such systems.

Quick Start

Install

npm i

Compile

npm run compile

Contract

This is an example of a Solidity smart contract that represents a building that owns itself. This contract can be used to manage funds, pay for maintenance, collect rent, and sell ownership.

This contract should be deployed by sending a transaction with enough value to cover the initial price, rent, and maintenance costs. The contract includes a timestamp for the last rent payment and the last maintenance payment, and it checks that the payments are not overdue before transferring ownership or withdrawing funds. The contract also requires an extra fee for late payments.

It includes functionalities to:

  • Introduce a mechanism to penalize or evict tenants if they do not pay rent.
  • Prevent the building from falling into disrepair if the maintenance costs are not paid.
  • Handle outstanding rent payments or maintenance costs before the building can be sold.

Please note that this is still a simplified model, and real-world applications would require additional functionality and security measures. Also, the contract should be thoroughly tested before it's used in production. Always consult with a knowledgeable expert in blockchain and smart contract technology before deploying or interacting with smart contracts.

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.

solidity-self-owning-building's People

Contributors

vanvianen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.