Skip to content

Commit

Permalink
Adding Nft type
Browse files Browse the repository at this point in the history
  • Loading branch information
cyficowley committed Apr 29, 2022
1 parent 7a5a79e commit de1a9c0
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 de1a9c0

Please sign in to comment.