-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
66 lines (61 loc) · 1.26 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import 'hardhat-deploy';
import env from './config';
import './tasks';
let accounts;
if (env.POLYGON_PRIVKEY) {
accounts = [env.POLYGON_PRIVKEY];
} else {
accounts = {
mnemonic: 'test test test test test test test test test test test test',
};
}
const config: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
url: env.POLYGON_NODE_URL,
blockNumber: 41_000_000,
},
},
polygon: {
url: env.POLYGON_NODE_URL,
chainId: 137,
accounts,
},
},
namedAccounts: {
deployer: 0,
registryOwner: 0,
strategist: 0,
keeper: 0,
diamondAdmin: 0,
multisig: {
default: 0,
polygon: env.MULTISIG_ADDRESS_POLYGON,
avalanche: env.MULTISIG_ADDRESS_AVALANCE,
},
feeRecipient: {
default: 0,
polygon: env.MULTISIG_ADDRESS_POLYGON,
avalanche: env.MULTISIG_ADDRESS_AVALANCE,
},
},
etherscan: {
apiKey: {
polygon: env.POLYGON_ETHERSCAN_API,
avalanche: env.AVAX_ETHERSCAN_API,
},
},
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};
export default config;