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