forked from DefiLlama/yield-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.js
25 lines (24 loc) · 819 Bytes
/
env.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
try {
require('dotenv').config({ path: './config.env' });
} catch (e) {}
const fs = require('fs');
module.exports = {
// API keys
INFURA_CONNECTION: process.env.INFURA_CONNECTION,
ALCHEMY_CONNECTION_POLYGON: process.env.ALCHEMY_CONNECTION_POLYGON,
ALCHEMY_CONNECTION_ARBITRUM: process.env.ALCHEMY_CONNECTION_ARBITRUM,
XDAI_RPC: process.env.XDAI_RPC,
CRONOS_RPC: process.env.CRONOS_RPC,
FANTOM_RPC: process.env.FANTOM_RPC,
TVL_SPIKE_WEBHOOK: process.env.TVL_SPIKE_WEBHOOK,
NEW_YIELDS_WEBHOOK: process.env.NEW_YIELDS_WEBHOOK,
STALE_PROJECTS_WEBHOOK: process.env.STALE_PROJECTS_WEBHOOK,
// ADAPTOR LIST
ADAPTORS: JSON.stringify(
fs
.readdirSync('./src/adaptors')
.filter((el) => !el.includes('js') && el !== '.DS_Store')
),
// DB
DATABASE_URL: process.env.DATABASE_URL,
};