-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.js
53 lines (48 loc) · 1.86 KB
/
helper-hardhat-config.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
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
const { ethers } = require("hardhat")
const networkConfig = {
default: {
name: "hardhat",
keepersUpdateInterval: "30",
},
31337: {
name: "localhost",
ENTRY_MINIMUM_TOKENS: "1000",
subscriptionId: "6275",
vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
automationUpdateInterval: "60",
callbackGasLimit: "10000000", // 10,000,000 gas --> raised to 10mm from .5mm bc low gas caused timeout
BASE_FEE: "25000000000000000",
GAS_PRICE_LINK: "1000000000",
CHARITY_ADDRESS: "0xdD2FD4581271e230360230F9337D5c0430Bf44C0",
DAO_ADDRESS: "0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199",
},
5: {
name: "goerli",
ENTRY_MINIMUM_TOKENS: "1000",
subscriptionId: "6275",
vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
automationUpdateInterval: "60",
callbackGasLimit: "1000000", // 1,000,000 gas --> raised to 1mm from .5mm bc low gas caused timeout
BASE_FEE: "25000000000000000",
GAS_PRICE_LINK: "1000000000",
CHARITY_ADDRESS: "0x48c73191212c039E7C8c2660473dFa7D60d59B4D",
DAO_ADDRESS: "0x48c73191212c039E7C8c2660473dFa7D60d59B4D",
},
1: {
name: "mainnet",
keepersUpdateInterval: "30",
},
}
const developmentChains = ["hardhat", "localhost"]
const frontEndContractsFile = "../blotto-fe/constants/contractAddresses.json"
const frontEndAbiFile = "../blotto-fe/constants/abi.json"
const frontEndAbiTokenFile = "../blotto-fe/constants/abi-token.json"
module.exports = {
networkConfig,
developmentChains,
frontEndContractsFile,
frontEndAbiFile,
frontEndAbiTokenFile,
}