From de1a9c0eb2b43c48e68e314c3d2c93c7ed61eeca Mon Sep 17 00:00:00 2001 From: Cyrus Cowley Date: Fri, 29 Apr 2022 11:43:34 -0700 Subject: [PATCH] Adding Nft type --- frontend/types/types.d.ts | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/frontend/types/types.d.ts b/frontend/types/types.d.ts index 81391bd..bb3f518 100644 --- a/frontend/types/types.d.ts +++ b/frontend/types/types.d.ts @@ -3,4 +3,32 @@ declare module "*.png" { const value: any; export = value; -} \ No newline at end of file +} + +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; +}