GithubHelp home page GithubHelp logo

clarity-property-rental's Introduction

Property rental

A fully fledged clarity smart contract

Use case

If you had an asset (property, device, anything) that you want to rent and you want to remove the "Trust me bro" doctrine from the equation

  1. Negotiations can begin if the contract is not signed yet, or is to be renewed (you can negotiate rent, deposit, and contract duration).
  2. After both parties agree to the very well negotiated terms they can -in human terms- sign the contract, or renew it with the update terms, but both parties have to agree to the new terms
  3. During contract duration, if renter breaches contract by not paying after the beginning of the month till a defined grace period, the owner is given the control to either renew or end contract on grounds of breach of contract, this would guarantee the rights of the owner, the owner can extend the grace period too (for example a good landlord during the corona crisis), and can waive the month's fees, but if the month ended without payment and the owner did not waive the fees, the renter would be in debt for the owner, if the owner did not request an extension of grace period nor to end contract
  4. You're a real life hero if you read all that really, I'm sorry I put you through this xD.
  5. If the contract's duration ended both parties can choose to renegotiate or if one of them wishes expire contract.
  6. Any party could request contract to be cancelled, and it would be cancelled only if both parties decide to cancel the contract.

To run tests you can use

for unit tests

npm/yarn/pnpm run test:unit

for integration tests you'll need a running local node check Running a test node from the blockstack docs.

npm/yarn/pnpm run test:integration

clarity-property-rental's People

Contributors

dependabot[bot] avatar hozzjss avatar

Stargazers

 avatar Amr Elghobary avatar

Watchers

James Cloos 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.