UNPKG

830 BPlain TextView Raw
1import { Network, OpenSeaTraitStats } from 'opensea-js/lib/types'
2
3// @ts-ignore ts error TS7016
4import Web3 from 'web3'
5
6export enum TraitType {
7 Property = 'prop',
8 Stat = 'stat',
9 Ranking = 'ranking',
10 Boost = 'boost',
11}
12
13export interface Traits {
14 [index: string]: Trait[]
15 props: Trait[]
16 stats: Trait[]
17 rankings: Trait[]
18 boosts: Trait[]
19}
20
21export interface Trait {
22 value: string | number
23 max?: string | number
24 display_type?: string
25 trait_type: string
26}
27
28export interface TraitData {
29 traits: Trait[]
30 collectionTraits: CollectionTraits
31}
32
33export interface CollectionTraits {
34 [index: string]: OpenSeaTraitStats
35}
36
37export enum PriceType {
38 Current = 'current',
39 Previous = 'previous',
40}
41
42export interface State {
43 network: Network
44}
45
46export interface ButtonEvent {
47 detail: {
48 type: string
49 }
50}