Skip to content

Commit

Permalink
fix: Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Aug 16, 2022
1 parent c31faff commit 56a0b6e
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions src/ports/rentals/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,6 @@ export type GetRentalListingParameters = {
filterBy: RentalsListingsFilterBy | null
}

// export type RentalListingCreation = {
// network: Network
// chainId: ChainId
// /** UTC timestamp in milliseconds since epoch of the signature's expiration */
// expiration: number
// signature: string
// tokenId: string
// contractAddress: string
// rentalContractAddress: string
// nonces: string[]
// periods: PeriodCreation[]
// }

// export type PeriodCreation = {
// minDays: number
// maxDays: number
// pricePerDay: string
// }

// export enum Status {
// OPEN = "open",
// CANCELLED = "cancelled",
// EXECUTED = "executed",
// }

export enum UpdateType {
METADATA = "metadata",
RENTALS = "rentals",
Expand Down Expand Up @@ -126,50 +101,6 @@ export type NFT = {
searchIsLand: boolean
}

// export enum FilterByCategory {
// LAND = "land",
// ESTATE = "estate",
// }

// export type FilterByPeriod = {
// minDays: number
// maxDays: number
// pricePerDay?: number
// }

// export type FilterBy = {
// category?: FilterByCategory
// text?: string
// status?: Status
// periods?: FilterByPeriod
// lessor?: string
// tenant?: string
// tokenId?: string
// contractAddresses?: string[]
// network?: Network
// nftIds?: string[]
// }

// export enum SortDirection {
// ASC = "asc",
// DESC = "desc",
// }

// export enum RentalsListingsSortBy {
// /** Order by created at of the listing's metadata */
// LAND_CREATION_DATE = "land_creation_date",
// /** Order by created at of the listing */
// RENTAL_LISTING_DATE = "rental_listing_date",
// /** Order by rented at of the listing */
// RENTAL_DATE = "rented_date",
// /** Order by search text of the listing's metadata */
// NAME = "name",
// /** Order by maximum rental price per day of the listing */
// MAX_RENTAL_PRICE = "max_rental_price",
// /** Order by minimum rental price per day of the listing */
// MIN_RENTAL_PRICE = "min_rental_price",
// }

export type IndexerRental = {
/** The id of the rental in the graph (contractAddress:tokenId:timesItHasBeenRented) */
id: string
Expand Down

0 comments on commit 56a0b6e

Please sign in to comment.