forked from Dexalot/contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
63 lines (54 loc) · 1.3 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
import "@nomiclabs/hardhat-waffle"
import "@nomiclabs/hardhat-etherscan"
import '@nomiclabs/hardhat-ethers'
import '@openzeppelin/hardhat-upgrades'
import '@typechain/hardhat'
import 'hardhat-contract-sizer'
import 'solidity-coverage'
import { HardhatUserConfig } from "hardhat/types";
/**
* @type import('hardhat/config').HardhatUserConfig
*/
let config: HardhatUserConfig;
config = {
networks: {
hardhat: {},
avalanche: {
url: 'http://10.110.101.1:9650/ext/bc/C/rpc',
accounts: {
// https://hardhat.org/hardhat-network/docs/reference#accounts
mnemonic: process.env.MNEMONIC ?? 'test test test test test test test test test test test junk',
path: "m/44'/60'/0'/0", // https://support.avax.network/en/articles/7004986-what-derivation-paths-does-avalanche-use
initialIndex: 0,
count: 20,
passphrase: ''
},
gas: 50000000
}
},
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200
},
outputSelection: {
"*": {
"*": [
"storageLayout"
]
}
}
}
},
contractSizer: {
alphaSort: true,
runOnCompile: false,
disambiguatePaths: false,
},
mocha: {
timeout: 600000
},
};
module.exports = config