-
Notifications
You must be signed in to change notification settings - Fork 3
/
environment.ts
46 lines (41 loc) · 1.46 KB
/
environment.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
import * as dotenv from 'dotenv'
import * as path from 'path'
import { ethers } from 'ethers'
const envSuffix = process.env.NODE_ENV === 'main' ? '' : '.test'
dotenv.config({ path: path.join(__dirname, '.env' + envSuffix) })
const DEPLOYER_PRIVATE_KEY =
process.env.DEPLOYER_PRIVATE_KEY || ethers.Wallet.createRandom().privateKey
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || ''
const ROOT_CHAIN_RPC = process.env.ROOT_CHAIN_RPC || ''
const CHILD_CHAIN_RPC = process.env.CHILD_CHAIN_RPC || ''
const STAKE_MANAGER = process.env.STAKE_MANAGER || ''
const MATIC_TOKEN = process.env.MATIC_TOKEN || ''
const MANAGER = process.env.MANAGER || ''
const INSTANT_POOL_OWNER = process.env.INSTANT_POOL_OWNER || ''
const TREASURY = process.env.TREASURY || ''
const ROOT_GAS_PRICE = process.env.ROOT_GAS_PRICE || 0
const CHILD_GAS_PRICE = process.env.CHILD_GAS_PRICE || 0
const DEFENDER_TEAM_API_KEY = process.env.DEFENDER_TEAM_API_KEY || ''
const DEFENDER_TEAM_API_SECRET_KEY =
process.env.DEFENDER_TEAM_API_SECRET_KEY || ''
const FX_ROOT = process.env.FX_ROOT || ''
const FX_CHILD = process.env.FX_CHILD || ''
const CHECKPOINT_MANAGER = process.env.CHECKPOINT_MANAGER || ''
export {
DEPLOYER_PRIVATE_KEY,
ETHERSCAN_API_KEY,
ROOT_CHAIN_RPC,
CHILD_CHAIN_RPC,
STAKE_MANAGER,
MATIC_TOKEN,
MANAGER,
INSTANT_POOL_OWNER,
TREASURY,
ROOT_GAS_PRICE,
CHILD_GAS_PRICE,
DEFENDER_TEAM_API_KEY,
DEFENDER_TEAM_API_SECRET_KEY,
FX_ROOT,
FX_CHILD,
CHECKPOINT_MANAGER,
}