-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// declare modules here | ||
|
||
export interface NftSpecification { | ||
nftCollection: string; | ||
nftId: string; | ||
} | ||
|
||
export interface RentContract { | ||
lenderAddress: string; | ||
borrowerAddress: string; | ||
startDate: Date; | ||
dueDate: Date | ||
rentalPayment: number; | ||
collateralPayoutPeriod: number; | ||
} | ||
|
||
export interface AvaliableDates { | ||
startDate: Date; | ||
endDate: Date; | ||
} | ||
|
||
export interface Listing { | ||
name: string; | ||
description: string; | ||
datesForRent: AvaliableDates[]; | ||
pricePerDay: number; | ||
collateral: number; | ||
} | ||
|
||
export interface Nft { | ||
contract?: RentContract; | ||
listing: Listing; | ||
nftSpecification: NftSpecification; | ||
} | ||
|
||
export enum AvaliabilityStatus { | ||
Avaliabile, | ||
Unavaliabile, | ||
Rented, | ||
Upcoming, | ||
} | ||
export interface Avaliability { | ||
status: AvaliabilityStatus; | ||
AvaliabiltyDate?: Date; | ||
} | ||
|
||
export interface Attribute { | ||
traitType: string, | ||
value: string, | ||
} | ||
|
||
export interface NftWithMetadata { | ||
nft: Nft; | ||
image: string; | ||
avaliability: Avaliability; | ||
attributes: Attribute[]; | ||
} |
This file was deleted.
Oops, something went wrong.