forked from 33-Labs/flowview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publicConfig.js
100 lines (75 loc) · 3.61 KB
/
publicConfig.js
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
const chainEnv = process.env.NEXT_PUBLIC_CHAIN_ENV
if (!chainEnv) throw "Missing NEXT_PUBLIC_CHAIN_ENV"
const accessNodeAPI = process.env.NEXT_PUBLIC_ACCESS_NODE_API
if (!accessNodeAPI) throw "Missing NEXT_PUBLIC_ACCESS_NODE_API"
const appURL = process.env.NEXT_PUBLIC_APP_URL
if (!appURL) throw "Missing NEXT_PUBLIC_APP_URL"
const walletDiscovery = process.env.NEXT_PUBLIC_WALLET_DISCOVERY
if (!walletDiscovery) throw "Missing NEXT_PUBLIC_WALLET_DISCOVERY"
const flowscanURL = process.env.NEXT_PUBLIC_FLOWSCAN_URL
if (!flowscanURL) throw "Missing NEXT_PUBLIC_FLOWSCAN_URL"
const flowTokenAddress = process.env.NEXT_PUBLIC_FLOW_TOKEN_ADDRESS
if (!flowTokenAddress) throw "Missing NEXT_PUBLIC_FLOW_TOKEN_ADDRESS"
const nftCatalogURL = process.env.NEXT_PUBLIC_NFTCATALOG_URL
if (!nftCatalogURL) throw "Missing NEXT_PUBLIC_NFTCATALOG_URL"
const nftCatalogAddress = process.env.NEXT_PUBLIC_NFTCATALOG_ADDRESS
if (!nftCatalogAddress) throw "Missing NEXT_PUBLIC_NFTCATALOG_ADDRESS"
const metadataViewsAddress = process.env.NEXT_PUBLIC_METADATAVIEWS_ADDRESS
if (!metadataViewsAddress) throw "Missing NEXT_PUBLIC_METADATAVIEWS_ADDRESS"
const nonFungibleTokenAddress = process.env.NEXT_PUBLIC_NONFUNGIBLE_TOKEN_ADDRESS
if (!nonFungibleTokenAddress) throw "Missing NEXT_PUBLIC_NONFUNGIBLE_TOKEN_ADDRESS"
const fungibleTokenAddress = process.env.NEXT_PUBLIC_FUNGIBLE_TOKEN_ADDRESS
if (!fungibleTokenAddress) throw "Missing NEXT_PUBLIC_FUNGIBLE_TOKEN_ADDRESS"
const fungibleTokenSwitchboardAddress = process.env.NEXT_PUBLIC_FUNGIBLE_TOKEN_SWITCHBOARD_ADDRESS
if (!fungibleTokenSwitchboardAddress) throw "Missing NEXT_PUBLIC_FUNGIBLE_TOKEN_SWITCHBOARD_ADDRESS"
const flowboxAddress = process.env.NEXT_PUBLIC_FLOWBOX_ADDRESS
if (!flowboxAddress) throw "Missing NEXT_PUBLIC_FLOWBOX_ADDRESS"
const accountBookmarkAddress = process.env.NEXT_PUBLIC_ACCOUNTBOOKMARK_ADDRESS
if (!accountBookmarkAddress) throw "Missing NEXT_PUBLIC_ACCOUNTBOOKMARK_ADDRESS"
const flownsURL = process.env.NEXT_PUBLIC_FLOWNS_URL
if (!flownsURL) throw "Missing NEXT_PUBLIC_FLOWNS_URL"
const findURL = process.env.NEXT_PUBLIC_FIND_URL
if (!findURL) throw "Missing NEXT_PUBLIC_FIND_URL"
const bayouURL = process.env.NEXT_PUBLIC_BAYOU_URL
if (!bayouURL) throw "Missing NEXT_PUBLIC_BAYOU_URL"
const drizzleURL = process.env.NEXT_PUBLIC_DRIZZLE_URL
if (!drizzleURL) throw "Missing NEXT_PUBLIC_DRIZZLE_URL"
const incrementURL = process.env.NEXT_PUBLIC_INCREMENT_URL
if (!incrementURL) throw "Missing NEXT_PUBLIC_INCREMENT_URL"
const linkURL = process.env.NEXT_PUBLIC_LINK_URL
if (!linkURL) throw "Missing NEXT_PUBLIC_LINK_URL"
const nftStorefrontV2Address = process.env.NEXT_PUBLIC_NFTSTOREFRONTV2_ADDRESS
if (!nftStorefrontV2Address) throw "Missing NEXT_PUBLIC_NFTSTOREFRONTV2_ADDRESS"
const hybridCustodyAddress = process.env.NEXT_PUBLIC_HYBRIDCUSTODY_ADDRESS
if (!hybridCustodyAddress) throw "Missing NEXT_PUBLIC_HYBRIDCUSTODY_ADDRESS"
const contractbrowserURL = process.env.NEXT_PUBLIC_CONTRACTBROWSER_URL
if (!contractbrowserURL) throw "Missing NEXT_PUBLIC_CONTRACTBROWSER_URL"
const findViewAddress = process.env.NEXT_PUBLIC_FINDVIEW_ADDRESS
if (!findViewAddress) throw "Missing NEXT_PUBLIC_FINDVIEW_ADDRESS"
const publicConfig = {
chainEnv,
accessNodeAPI,
appURL,
walletDiscovery,
flowscanURL,
nftCatalogURL,
flowTokenAddress,
nftCatalogAddress,
metadataViewsAddress,
nonFungibleTokenAddress,
fungibleTokenAddress,
fungibleTokenSwitchboardAddress,
flowboxAddress,
accountBookmarkAddress,
nftStorefrontV2Address,
hybridCustodyAddress,
flownsURL,
findURL,
bayouURL,
drizzleURL,
incrementURL,
linkURL,
contractbrowserURL,
findViewAddress
}
export default publicConfig