-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ts
144 lines (117 loc) · 2.93 KB
/
config.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* eslint-disable sort-keys */
/* eslint-disable no-process-env */
const config = {
/**
* Base URL
*/
baseUrl: process.env.NEXT_PUBLIC_URL!,
/**
* Base URL to api
*/
baseApiUrl: `${process.env.NEXT_PUBLIC_URL_API}/api/v2`!,
/**
* cUSD decimals to use in ui format
*/
cUSDDecimals: 18,
/**
* MapBox API Key
*/
mapBoxApiKey: process.env.NEXT_PUBLIC_MAPBOX_KEY!,
/**
* MapBox API style
*/
mapBoxStyle: process.env.NEXT_PUBLIC_MAPBOX_STYLE!,
/*
* Images URL
*/
imagesUrl: process.env.NEXT_PUBLIC_IMAGES_URL!,
/*
* Images Bucket
*/
imagesBucket: process.env.NEXT_PUBLIC_IMAGES_BUCKET!,
/**
* Base URL to api
*/
chainExplorer: process.env.NEXT_PUBLIC_CHAIN_EXPLORER_URL!,
/**
* MaxAge for caching claims on users browser
*/
cacheClaimsMaxAge: parseInt(process.env.NEX_PUBLIC_CACHE_CLAIMS_MAX_AGE!, 10),
/**
* Google Analytics
*/
gaId: process.env.NEXT_PUBLIC_GA,
/**
* Hubspot
*/
hubspotId: process.env.NEXT_PUBLIC_HUBSPOT,
/**
* Hubspot contact form
*/
hubspotContactFormId: process.env.NEXT_PUBLIC_HUBSPOT_CONTACT_FORM,
/**
* ReCaptcha key
*/
recaptchaKey: process.env.NEXT_PUBLIC_RECAPTCHA_KEY,
/*
* is Production
*/
isProduction: process.env.NODE_ENV === 'production',
/*
* RPC URL
*/
networkRpcUrl: process.env.NEXT_PUBLIC_NETWORK_RPC_URL,
/*
* Voting platform
*/
votingPlatformUrl: 'https://commonwealth.im/impactmarket/proposal/:id',
/*
* Wallet addresses
*/
wallets: {
btc: 'bc1qe7ksg8va9uzfu4pl9ea8zyftad94p0tgtuavk4',
celo: '0xC483Cd9FC68e58074d1D82b7a9fFdE948Db6d119',
eth: '0x4D93536aa77FE4fDD48DC7f2c228410eC49c233C'
},
/*
* Treasury address
*/
treasuryAddress: process.env.NEXT_PUBLIC_TREASURY_ADDRESS,
/**
* Subgraph URL
*/
subgraphUrl: process.env.NEXT_PUBLIC_SUBGRAPH_URL,
/**
* Chain ID
*/
chainId: parseInt(process.env.NEXT_PUBLIC_CHAIN_ID!, 10),
/**
* Number of days until a signature is expired
*/
signatureExpires: process.env.NEXT_PUBLIC_SIGNATURE_EXPIRES,
/**
* Signature message to confirm signature
*/
signatureMessage: process.env.NEXT_PUBLIC_SIGNATURE_MESSAGE,
/**
* Signature secret
*/
signatureSecret: process.env.NEXT_PUBLIC_SIGNATURE_SECRET,
/**
* Deposit Token
*/
depositToken: process.env.NEXT_PUBLIC_DEPOSIT_TOKEN,
/**
* WalletConnect project id, mandatory for WalletConnect v2
*/
walletConnectProjectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID!,
/**
* Sentry DSN
*/
sentryDSN: process.env.NEXT_PUBLIC_SENTRY_DSN,
/**
* Use testnet
*/
useTestNet: process.env.NEXT_PUBLIC_USE_TESTNET === 'true',
};
export default config;