-
-
Notifications
You must be signed in to change notification settings - Fork 363
/
constants.ts
100 lines (83 loc) · 3.12 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import defineApolloConfig, {
toApolloEndpoint,
} from './config/defineApolloConfig'
export const ksmHubDenyList = [
'EZwaNLfEwAMYcEdbp7uKYFCjnsn43S85pm6BumT5UwvZQvB', // SubstraTee minter, broken IPFS
'Eipd9P7j9XC7voYxYgAoyE6wwt8BmpLDNC89RAU2cf6Qtrk', // No metadata
]
export const dotHubDenyList = [
'128qRiVjxU3TuT37tg7AX99zwqfPtj2t4nDKUv9Dvi5wzxuF', // RMRK test
'155HWw3J9jyYphMm5is4vp9Bzj7ZRRd6HEzCPdWd8cq97KfT', // Very old unreacheable IPFS
'16aWyT5Xa2wogTARQxk8LnQqi5nquy3Xrc4YcgJrmjEWrduq', // Market Manipulation
]
export const IPFS_KODADOT_IMAGE_PLACEHOLDER
= 'bafkreidchqftqyioy6q776xmtwj62wk3qdgrqlsdsl7gv27qkecgzfbe2i'
export const MIN_CAROUSEL_NFT = 3
export const PER_PAGE = 20
export const SHOW_SCROLL_TOP_BUTTON_HEIGHT = 350
export const DETAIL_TIMEOUT = 5000
export const MAX_UPLOADED_FILE_SIZE = 30
export const INFINITE_SCROLL_CONTAINER_ID = 'infinite-scroll-container'
export const INFINITE_SCROLL_ITEM_CLASS_NAME = 'infinite-scroll-item'
export const URLS = {
koda: {
pinata: 'https://kodadot.mypinata.cloud/ipfs/',
directUpload: 'https://direct-upload.kodadot.workers.dev/',
estuary: 'https://pinning.kodadot.workers.dev/',
nftStorage: 'https://ipos.kodadot.workers.dev/',
keywise: 'https://keywise.kodadot.workers.dev/',
netlify: 'https://beta.kodadot.xyz/.netlify/functions/',
seoCard: 'https://og-image-green-seven.vercel.app/',
rubick: 'https://squid.subsquid.io/rubick/graphql',
marck: 'https://ksm.gql.api.kodadot.xyz/',
stick: 'https://ahk.gql.api.kodadot.xyz/',
speck: 'https://ahp.gql.api.kodadot.xyz/',
polkassembly: 'https://squid.subsquid.io/polkadot-polkassembly/graphql',
replicate: 'https://replicate.kodadot.workers.dev/',
search: 'https://polysearch.w.kodadot.xyz',
baseUrl: 'https://kodadot.xyz',
newsletter: 'https://newsletter.w.kodadot.xyz',
counter: 'https://counter.kodadot.workers.dev',
frame: 'https://frame.kodadot.workers.dev/gallery',
},
providers: {
coingecko: 'https://api.coingecko.com/api/v3',
kodaprice: 'https://price.kodadot.workers.dev/',
ramp: 'https://ramp.network/buy/',
cloudflare: 'https://cloudflare-ipfs.com/ipfs/',
pinata: 'https://api.pinata.cloud/',
},
}
export const apolloClientConfig = {
...defineApolloConfig(),
subsquid: toApolloEndpoint(process.env.SUBSQUID_ENDPOINT || URLS.koda.rubick),
rmrk2: toApolloEndpoint(URLS.koda.marck),
ahk: toApolloEndpoint(URLS.koda.stick),
ahp: toApolloEndpoint(URLS.koda.speck),
polkassembly: toApolloEndpoint(URLS.koda.polkassembly),
}
export const NFT_SQUID_SORT_CONDITION_LIST: string[] = [
'blockNumber_DESC',
'blockNumber_ASC',
'updatedAt_DESC',
'updatedAt_ASC',
'price_ASC',
'price_DESC',
]
export const NFT_SQUID_SORT_CONDITION_LIST_FOR_MOONRIVER: string[] = [
'blockNumber_DESC',
'blockNumber_ASC',
'updatedAt_DESC',
'updatedAt_ASC',
'sn_ASC',
]
export const NFT_SQUID_SORT_COLLECTIONS: string[] = [
'blockNumber_DESC',
'blockNumber_ASC',
'updatedAt_DESC',
'updatedAt_ASC',
'supply_DESC',
'supply_ASC',
]
export const MIN_OFFER_PRICE = 0.01
export const EXTERNAL_LINK_WHITELIST = ['*.kodadot.xyz']