Skip to content

Workshop for coding a rental agreement as a smart contract

License

Notifications You must be signed in to change notification settings

mrenoon/RentalContract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain & Law workshop

Online playground for contract development:

Rental contract V0.1 (RentalSimple)

  • Specifications: link
  • Recommended values for deploying the contracts:
    • _tenant: the first address
    • _landlord: the second address
    • _paymentPeriod: 300 (5min)
    • _rentPerPeriod: 2000000000000000000 (2 Ethers)
  • Step 1: copy the contract code here to ethfiddle
  • Step 2: deploy with the configs above
  • Step 3: explore!
    • checkAddressBalance: input an address to check its Ether balance
    • checkContractBalance: check the balance in the contract

Rental contract V0.5 (RentalSimple2)

  • Specifications: link
  • Recommended values for deploying the contracts:
    • _authority: the first address
    • _tenant: the second address
    • _landlord: the third address
    • _paymentPeriod: 300 (5min)
    • _numberOfPeriods: 4
    • _rentPerPeriod: 2000000000000000000 (2 Ethers)
    • _depositAmount: 3000000000000000000 (3 Ethers)

Rental contract V1 (Rental)

  • Specifications: link
  • Recommended values for deploying the contracts:
    • _authority: the first address
    • _tenant: the second address
    • _landlord: the third address
    • _startDate: 0
    • _paymentPeriod: 300 (5min)
    • _numberOfPeriods: 4
    • _rentPerPeriod: 2000000000000000000 (2 Ethers)
    • _paymentDeadlineSincePeriodStart: 60 (1min)
    • _maximumLatePaymentDuration: 240 (4 min)
    • _terminationNotice: 180 (3 min)
    • _depositAmount: 3000000000000000000 (3 Ethers)

About

Workshop for coding a rental agreement as a smart contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published