-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
52 lines (45 loc) · 1.16 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
/**
*
* @author Sawyer Cutler
* @copyright 2024 Dirt Road Development
* @license MIT
*
**/
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import dotenv from 'dotenv';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import "./tasks/distribute";
import "./tasks/generate_addresses";
dotenv.config();
const PRIVATE_KEY: string | undefined = (process.env.PRIVATE_KEY as string | undefined);
if (!PRIVATE_KEY) {
throw new Error("Private Key Not Found");
}
const config: HardhatUserConfig = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: (2 ^ 32) - 1,
},
},
},
/// Required to work with hardhat deploy and the auatomation
namedAccounts: {
deployer: 0
},
networks: {
"nebula": {
accounts: [PRIVATE_KEY],
url: "https://mainnet.skalenodes.com/v1/green-giddy-denebola"
},
"nebula-testnet": {
accounts: [PRIVATE_KEY],
url: "https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"
}
}
};
export default config;