-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
57 lines (52 loc) · 1.73 KB
/
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
/**
* This program has been developed by students from the bachelor Computer Science at Utrecht University within the Software Project course.
* © Copyright Utrecht University (Department of Information and Computing Sciences)
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import "@nomicfoundation/hardhat-toolbox";
import '@openzeppelin/hardhat-upgrades';
// Typescript support for smart contract interaction
import '@typechain/hardhat'
import '@nomiclabs/hardhat-ethers'
//.env secrets
import { config as dotEnvConfig } from "dotenv";
import { ETHERSCAN_API_KEY, POLYGONSCAN_API_KEY, MUMBAI_PRIVATE_KEY, POLYGON_PRIVATE_KEY } from './secrets';
dotEnvConfig();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
networks: {
hardhat: {
accounts: {
mnemonic: "lonely initial gold insect blue path episode kingdom fame execute ranch velvet",
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
passphrase: "",
},
allowBlocksWithSameTimestamp: true,
},
mumbai: {
url: "https://polygon-mumbai.g.alchemy.com/v2/GFsknWbazmwCAkh0yVuOs_PrhfXo_DsT",
accounts: [MUMBAI_PRIVATE_KEY()],
allowUnlimitedContractSize: true
},
polygon: {
url: "https://polygon-mainnet.g.alchemy.com/v2/VuDN-SejBHv31HJNNFLvY9fTXYA-7-rO",
accounts: [POLYGON_PRIVATE_KEY()],
allowUnlimitedContractSize: true
}
},
etherscan: {
apiKey: {
//ethereum
mainnet: ETHERSCAN_API_KEY(),
sepolia: ETHERSCAN_API_KEY(),
//polygon
polygon: POLYGONSCAN_API_KEY(),
polygonMumbai: POLYGONSCAN_API_KEY(),
}
},
};