-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
49 lines (45 loc) · 1.15 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
/*
@dev: Logan (Nam) Nguyen
@Course: SUNY Oswego - CSC 495 - Capstone
@Instructor: Professor Bastian Tenbergen
@Version: 1.0
@Honor: Thirdweb & Openzeppeline
*/
import { HardhatUserConfig } from 'hardhat/types';
import '@nomicfoundation/hardhat-toolbox';
import '@nomiclabs/hardhat-etherscan';
import 'dotenv/config';
/** @notice constants */
const MUMBAI_RPC_URL = process.env.MUMBAI_RPC_URL;
const POLYGON_SCAN_API_KEY = process.env.POLYGON_SCAN_API_KEY;
const GOERLI_RPC_URL = process.env.GOERLI_RPC_URL;
const SYNS_DEPLOYER_PRIVATE_KEY = process.env.SYNS_DEPLOYER_PRIVATE_KEY;
const config: HardhatUserConfig = {
defaultNetwork: 'goerli',
solidity: {
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {},
mumbai: {
url: MUMBAI_RPC_URL,
accounts: [SYNS_DEPLOYER_PRIVATE_KEY as string],
chainId: 80001,
},
goerli: {
url: GOERLI_RPC_URL,
accounts: [SYNS_DEPLOYER_PRIVATE_KEY as string],
chainId: 5,
},
},
etherscan: {
apiKey: POLYGON_SCAN_API_KEY as string,
},
};
export default config;