-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.ts
84 lines (77 loc) · 2.82 KB
/
helper-hardhat-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
interface INetworkConfigItem {
name?: string
subscriptionId?: string
gasLane?: string
keepersUpdateInterval?: string
raffleEntranceFee?: string
callbackGasLimit?: string
vrfCoordinatorV2?: string,
WETH?: string,
lendingPoolAddressesProvider?: string
}
interface INetworkConfigInfo {
// [key: string | number]: INetworkConfigItem
// name: keyof typeof INetworkConfigItem
}
const DAI_WHALE = process.env.DAI_WHALE
const USDC_WHALE = process.env.USDC_WHALE
const USDT_WHALE = process.env.USDT_WHALE
const WETH_WHALE = process.env.WETH_WHALE
const WBTC_WHALE = process.env.WBTC_WHALE
const networkConfig: any = {
1: {
name: "ethereum",
// vrfCoordinatorV2: "0x6168499c0cFfCaCD319c818142124B7A15E857ab",
// raffleEntranceFee: "100000000000000000", // 0.1 ETH
// gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
// subscriptionId: process.env.CHAINLINK_SUBSCRIPTION_ID?.toString(),
// callbackGasLimit: "500000", // 500,000
// keepersUpdateInterval: "30",
daiEthPriceFeed: "0x773616E4d11A78F511299002da57A0a94577F1f4",
WETH: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
WBTC: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
DAI: "0x6b175474e89094c44da98b954eedeac495271d0f",
lendingPoolAddressesProvider: "0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5",
},
4: {
name: "rinkeby",
vrfCoordinatorV2: "0x6168499c0cFfCaCD319c818142124B7A15E857ab",
raffleEntranceFee: "100000000000000000", // 0.1 ETH
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
subscriptionId: process.env.CHAINLINK_SUBSCRIPTION_ID?.toString(),
callbackGasLimit: "500000", // 500,000
keepersUpdateInterval: "30",
WETH: "0xc778417E063141139Fce010982780140Aa0cD5Ab",
},
31337: {
name: "hardhat",
raffleEntranceFee: "100000000000000000", // 0.1 ETH
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
callbackGasLimit: "500000", // 500,000 gas
keepersUpdateInterval: "30",
}
}
const developmentChains = ["hardhat", "localhost"]
const testnetChains = ["rinkeby", "fuji", "kovan"]
const productionChains = ["avalanche", "ethereum"]
const VERIFICATION_BLOCK_CONFIRMATIONS = 3
const frontEndAbiPath = "../benzswap-ui/constants/abi.json"
const frontEndTypes = "../benzswap-ui/types"
const FRONT_END_CONSTANTS_PATH = "../benzswap-ui/constants"
export {
networkConfig,
developmentChains,
testnetChains,
productionChains,
VERIFICATION_BLOCK_CONFIRMATIONS,
INetworkConfigItem,
INetworkConfigInfo,
frontEndTypes,
frontEndAbiPath,
FRONT_END_CONSTANTS_PATH,
DAI_WHALE,
USDC_WHALE,
USDT_WHALE,
WETH_WHALE,
WBTC_WHALE,
}