forked from DefiLlama/yield-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.js
24 lines (23 loc) · 735 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
try {
require('dotenv').config({ path: './config.env' });
} catch (e) {}
const fs = require('fs');
module.exports = {
// API keys
ETHERSCAN: process.env.ETHERSCAN,
FANTOMSCAN: process.env.FANTOMSCAN,
POLYGONSCAN: process.env.POLYGONSCAN,
SNOWTRACE: process.env.SNOWTRACE,
ARBISCAN: process.env.ARBISCAN,
OPTIMISM: process.env.OPTIMISM,
INFURA_CONNECTION: process.env.INFURA_CONNECTION,
ALCHEMY_CONNECTION_POLYGON: process.env.ALCHEMY_CONNECTION_POLYGON,
ALCHEMY_CONNECTION_ARBITRUM: process.env.ALCHEMY_CONNECTION_ARBITRUM,
XDAI: process.env.XDAI,
// ADAPTOR LIST
ADAPTORS: JSON.stringify(
fs
.readdirSync('./src/adaptors')
.filter((el) => !el.includes('js') && el !== '.DS_Store')
),
};