-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.ts
66 lines (61 loc) · 2.29 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
export interface networkConfigItem {
name?: string
subscriptionId?: string
gasLane?: string
keepersUpdateInterval?: string
raffleEntranceFee?: string
callbackGasLimit?: string
vrfCoordinatorV2?: string
blockConfirmations?: number
assetAddress?: string
poolAddress?: string
assetName?: string
poolAddressProvider?: string
aaveTokenAddress?: string
}
export interface networkConfigInfo {
[key: number]: networkConfigItem
}
export const networkConfig: networkConfigInfo = {
31337: {
name: "localhost",
callbackGasLimit: "500000", // 500,000 gas
blockConfirmations: 1,
poolAddress: "0x794a61358D6845594F94dc1DB02A252b5b4814aD",
assetAddress: "0x5FbDB2315678afecb367f032d93F642f64180aa3",
aaveTokenAddress: "0x6ab707Aca953eDAeFBc4fD23bA73294241490620"
},
4: {
name: "rinkeby",
callbackGasLimit: "500000", // 500,000 gas
blockConfirmations: 6,
},
5: {
name: "goerli",
blockConfirmations: 6,
assetAddress: "0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49",
assetName: "TetherToken",
poolAddress: "0x368EedF3f56ad10b9bC57eed4Dac65B26Bb667f6",
aaveTokenAddress: "0x73258E6fb96ecAc8a979826d503B45803a382d68",
},
421613: {
name: "arbitrum_goerli",
blockConfirmations: 6,
assetAddress: "0xbAc565f93f3192D35E9106E67B9d5c9348bD9389",
assetName: "TetherToken",
poolAddress: "0x6Cbb4E8eC402E07fDF96DbbC6c752aCfB0eB6075",
aaveTokenAddress: "0x4c78955a00c4b2a623267eb68bec88DFCb4cb4C4",
},
1: {
name: "mainnet",
keepersUpdateInterval: "30",
},
}
export const developmentChains = ["hardhat", "localhost"]
export const DEFAULT_ASSET_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
export const DEFAULT_AAVE_TOKEN_ADDRESS = "0x73258E6fb96ecAc8a979826d503B45803a382d68"
export const DEFAULT_POOL_ADDRESS = "0x368EedF3f56ad10b9bC57eed4Dac65B26Bb667f6"
export const frontEndContractsFile1 = "../fund-me-frontend-v1/constants/contractAddresses.json"
export const frontEndAbiLocation1 = "../fund-me-frontend-v1/constants/"
export const frontEndContractsFile2 = "../promise-frontend/constants/contractAddresses.json"
export const frontEndAbiLocation2 = "../promise-frontend/constants/"