Skip to content

Commit

Permalink
Merge branch 'GrantStenger:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbhasin authored Apr 29, 2022
2 parents f4d6d3e + d77a136 commit 75ad9fb
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion frontend/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,32 @@
declare module "*.png" {
const value: any;
export = value;
}
}

export interface RentContract {
lenderAddress: string;
borrowerAddress: string;
nftCollection: string;
nftId: string;
startDate: Date;
dueDate: Date
rentalPayment: number;
collateral: number;
collateralPayoutPeriod: number;
}

export interface AvaliableDates {
startDate: Date;
endDate: Date;
}

export interface Listing {
nftListingName: string;
nftListingDescription: string;
datesForRent: AvaliableDates[];
}

export interface Nft {
contract?: RentContract;
listing: Listing;
}

0 comments on commit 75ad9fb

Please sign in to comment.