kodadot/nft-gallery

View on GitHub
components/bsx/Offer/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type Offer = {
  id: string
  caller: string
  expiration: string
  price: string
  status: string
  createdAt: Date
  nft: {
    id: string
    name: string
    collection: {
      id: string
      name: string
    }
  }
}

export type OfferResponse = {
  offers: Offer[]
  stats: {
    total: number
  }
}
export interface OfferStats {
  status: string
  totalCount: number
  totalPrice: string
}

export type ActiveWallets = {
  totalCount: number
}
export type StatsResponse = {
  buys: {
    totalCount: number
  }
  offerStats: OfferStats[]
  listed: {
    count: number
  }
  minted: {
    count: number
  }
  createdCollections: {
    totalCount: number
  }
  activeWallets: ActiveWallets[]
}