-
Notifications
You must be signed in to change notification settings - Fork 1
/
helper-hardhat-config.ts
27 lines (24 loc) · 1.2 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
export interface networkConfigItem {
ethUsdPriceFeed?: string
blockConfirmations?: number
}
// The square brackets around key in [key: string] indicate that key is not an actual property name,
// but rather a placeholder to represent any possible string key that could be used to access a property in the object.
// It's a syntax used in TypeScript to define an index signature.
// In other words, when you see [key: string]: networkConfigItem, it's saying that any string key can be used to
// access a property in the object, and the associated value for that key should follow the structure defined by the networkConfigItem type.
export interface networkConfigInfo {
[key: string]: networkConfigItem
}
export const networkConfig: networkConfigInfo = {
localhost: {},
hardhat: {},
// Price Feed Address, values can be obtained at https://docs.chain.link/data-feeds/price-feeds/addresses
// Default one is ETH/USD contract on Sepolia
sepolia: {
ethUsdPriceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306",
blockConfirmations: 1,
},
}
export const INITIAL_SUPPLY = "1000000000000000000000"
export const developmentChains = ["hardhat", "localhost"]