-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhardhat.config.js
More file actions
41 lines (37 loc) · 855 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
41 lines (37 loc) · 855 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
36
37
38
39
40
41
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-deploy");
const path = require("path");
require("dotenv").config({
path: path.resolve(process.cwd(), process.env.HARDHAT_NETWORK === 'bittensorLocal' ? '.env.local' : '.env'),
override: true
});
// if(!process.env.ETH_SIGN_KEY) {
// throw new Error("ETH_SIGN_KEY is not set");
// }
// if(!process.env.ETH_LP_KEY) {
// throw new Error("ETH_LP_KEY is not set");
// }
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "bittensorMainnet",
solidity: {
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
namedAccounts: {
deployer: {
default: 0,
},
},
networks: {
hardhat: {
// Default Hardhat network config
},
},
};