-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
67 lines (65 loc) · 1.56 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import 'dotenv/config';
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-ethers';
import '@nomicfoundation/hardhat-chai-matchers';
import '@nomicfoundation/hardhat-toolbox';
import '@typechain/hardhat';
import 'solidity-coverage';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import 'hardhat-contract-sizer';
import 'hardhat-dependency-compiler';
import { network } from './utils';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.18',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
fuji: {
url: network.getNodeUrl('fuji'),
accounts: network.getAccounts('fuji'),
verify: {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY_FUJI,
},
},
},
snowtrace: {
url: network.getNodeUrl('avalanche'),
accounts: network.getAccounts('avalanche'),
},
},
etherscan: {
apiKey: {
snowtrace: 'snowtrace', // apiKey is not required, just set a placeholder
},
customChains: [
{
network: 'snowtrace',
chainId: 43114,
urls: {
apiURL: 'https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan',
browserURL: 'https://avalanche.routescan.io',
},
},
],
},
namedAccounts: {
admin: 0,
user: 1,
chainlink: 2,
forwarder: 3,
forwarderSecond: 4,
},
dependencyCompiler: {
paths: ['@chainlink/contracts/src/v0.8/tests/MockV3Aggregator.sol'],
keep: true,
},
};
export default config;