Skip to content

Commit

Permalink
Fixes merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbhasin committed Apr 29, 2022
2 parents eb5eb4a + ab76888 commit 72bb543
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 30 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ install :; forge install dapphub/ds-test && forge install rari-capital/solmate &
update:; forge update

# Builds
build :; forge clean && forge build --optimize --optimize-runs 1000000
build :; forge clean && forge build --optimize --optimizer-runs 1000000

# Tests
test :; forge clean && forge test --optimize --optimize-runs 1000000 -v # --ffi # enable if you need the `ffi` cheat code on HEVM
test :; forge clean && forge test --optimize --optimizer-runs 1000000 -v # --ffi # enable if you need the `ffi` cheat code on HEVM

# Generate Gas Snapshots
snapshot :; forge clean && forge snapshot --optimize --optimize-runs 1000000
snapshot :; forge clean && forge snapshot --optimize --optimizer-runs 1000000

## Pre-commit hook
precommit: snapshot
57 changes: 57 additions & 0 deletions frontend/types/nftTypes.ts
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[];
}
27 changes: 0 additions & 27 deletions frontend/types/types.d.ts

This file was deleted.

0 comments on commit 72bb543

Please sign in to comment.