-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.ts
33 lines (28 loc) · 1.16 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
export interface networkConfigItem {
ethUsdPriceFeed?: string
blockConfirmations?: number
}
export interface networkConfigInfo {
[key: string]: networkConfigItem
}
export const networkConfig: networkConfigInfo = {
localhost: {},
hardhat: {},
// Price Feed Address, values can be obtained at https://docs.chain.link/docs/reference-contracts
// Default one is ETH/USD contract on Kovan
kovan: {
blockConfirmations: 6,
},
}
export const developmentChains = ["hardhat", "localhost"]
export const proposalsFile = "proposals.json"
// Governor Values
export const QUORUM_PERCENTAGE = 4 // Need 4% of voters to pass
export const MIN_DELAY = 3600 // 1 hour - after a vote passes, you have 1 hour before you can enact
// export const VOTING_PERIOD = 45818 // 1 week - how long the vote lasts. This is pretty long even for local tests
export const VOTING_PERIOD = 5 // blocks
export const VOTING_DELAY = 1 // 1 Block - How many blocks till a proposal vote becomes active
export const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000"
export const NEW_STORE_VALUE = 77
export const FUNC = "store"
export const PROPOSAL_DESCRIPTION = "Proposal #1 77 in the Box!"