-
Notifications
You must be signed in to change notification settings - Fork 1
Contract Specification
Peter edited this page Mar 17, 2020
·
6 revisions
owner = msg.sender
struct Landlord {
address landlordAddress,
stage (pending/approve),
}
Landlord[] public Landlords;
struct House {
string houseInfo,
belongTo LandLordAddress,
uint RentFee,
uint Rent increment,
stage (pending/approve),
}
House[] public Houses;
struct Tenant {
string tenantInfo,
belongTo TenantAddress,
stage (pending/approve),
}
Tenant[] public tenants;
struct Lease {
address Landlord,
address Tenant,
address House,
date startDate,
date expiringDate,
status (L/O/E),
uint depositAmount,
...
}
Lease[] public leases;
This is where the tenant create the account and ask to be connected to a Lease.
The Landlord can create the account and the HCR will validated it.
The HCR create an Lease contract with the basic information inside. BIN, number of cosigner, BBL and address.
When Landlord create and account and submit for create the HCR will validate it.
The landlord can only edit or modify a lease because the Lease is created by the HCR. The landords can edit all informations besides BIN, number of cosigner and BBL.
- Lease will change to L stage when both Tenant and LandLord agree
- Lease is on Open when HCR create the Lease
- When there is a
- Import erc721
Copyright @2020 LeaseAtBlock