-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.ts
65 lines (62 loc) · 1.96 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
const { ethers } = require("hardhat")
require("dotenv").config()
const networkConfig = {
default: {
name: "hardhat",
keepersUpdateInterval: "30",
},
31337: {
name: "localhost",
subscriptionId: "588",
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c", // 30 gwei
keepersUpdateInterval: "30",
callbackGasLimit: "500000", // 500,000 gas
jobId: "01cf7cb3ea804c9b95b08e92ff69c19b",
},
11155111: {
name: "sepolia",
subscriptionId: process.env.SUB_ID,
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c", // 30 gwei
keepersUpdateInterval: "30",
callbackGasLimit: "500000", // 500,000 gas
vrfCoordinatorV2: "0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625",
jobId: process.env.JOB_ID,
oracleAddress: process.env.ORACLE_ADDRESS,
linkTokenAddress: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
upkeepperRegistryAddress: "0xE16Df59B887e3Caa439E0b29B42bA2e7976FD8b2",
},
1: {
name: "mainnet",
keepersUpdateInterval: "30",
},
}
const developmentChains = ["hardhat", "localhost"]
const VERIFICATION_BLOCK_CONFIRMATIONS = 6
const frontEndContractsFile =
"../nextjs-smartcontract-lottery-fcc/constants/contractAddresses.json"
const frontEndAbiFile = "../nextjs-smartcontract-lottery-fcc/constants/abi.json"
const MIN_DELAY = 3600
const Voting_Delay = 1
const Voting_Period = 5
const Votes_Quorum_Fraction = 4
const NEW_STORE_VALUE = 777
const FUNC = "store"
const PROPOSE_DESCRIPTION = "Proposal #1 store 20 in the box"
const PROPOSAL_DATA = "proposals.json"
export {
networkConfig,
developmentChains,
VERIFICATION_BLOCK_CONFIRMATIONS,
frontEndContractsFile,
frontEndAbiFile,
MIN_DELAY,
Voting_Delay,
Voting_Period,
Votes_Quorum_Fraction,
FUNC,
NEW_STORE_VALUE,
PROPOSE_DESCRIPTION,
PROPOSAL_DATA,
}