-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
35 lines (31 loc) · 804 Bytes
/
hardhat.config.js
File metadata and controls
35 lines (31 loc) · 804 Bytes
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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
const { API_URL, PRIVATE_KEY } = process.env;
module.exports = {
defaultNetwork: "hardhat",
solidity: {
// With this you can set multiple versions of solidity
compilers: [{ version: "0.8.27", version: "0.8.0", version: "0.8.8" }],
},
networks: {
hardhat: {},
sepolia: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`],
chainId: 11155111,
},
},
namedAccounts: {
deployer: 0, // Primera cuenta como `deployer`
admin: 1, // Segunda cuenta como `admin`
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true,
},
};