This repository was archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
74 lines (70 loc) · 2.05 KB
/
hardhat.config.ts
File metadata and controls
74 lines (70 loc) · 2.05 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import '@nomicfoundation/hardhat-toolbox';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-ethers';
import { HardhatUserConfig } from 'hardhat/types';
import * as secrets from './secrets.json';
// use .env vars
import * as dotenv from 'dotenv';
dotenv.config();
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 1337,
initialDate: '01 Jan 1970 00:00:00 GMT', // timestamp at 0
},
testnet: {
url: `https://eth-sepolia.g.alchemy.com/v2/${secrets.alchemy.apiKey.sepolia}`,
accounts: [secrets.accounts.deployer],
},
eth: {
url: `https://eth-mainnet.g.alchemy.com/v2/${secrets.alchemy.apiKey.ethereum}`,
accounts: [secrets.accounts.deployer],
},
arb: {
url: `https://arb-mainnet.g.alchemy.com/v2/${secrets.alchemy.apiKey.arbitrum}`,
accounts: [secrets.accounts.deployer],
},
},
etherscan: {
apiKey: {
polygon: secrets?.verification?.polygonscan,
polygonMumbai: secrets?.verification?.polygonscan,
sepolia: secrets?.verification?.etherscan,
arbitrumOne: secrets?.verification?.arbiscan,
mainnet: secrets?.verification?.etherscan,
},
},
solidity: {
compilers: [
{
version: '0.8.9',
settings: {
optimizer: {
enabled: true,
runs: 20000,
},
},
},
{
version: '0.8.19',
settings: {
optimizer: {
enabled: true,
runs: 20000,
},
},
},
],
},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
},
mocha: {
timeout: 20000,
},
};
export default config;