-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
62 lines (61 loc) · 1.81 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
import '@typechain/hardhat';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
/**
* @type import('hardhat/config').HardhatUserConfig
*/
export default {
networks: {
hardhat: {
chainId: 1337,
accounts: [
{
privateKey: "0x0000000000000000000000000000000000000000000000000000000000000001",
balance: "100000000000000000000",
},
{
privateKey: "0x0000000000000000000000000000000000000000000000000000000000000002",
balance: "100000000000000000000",
},
{
privateKey: "0x0000000000000000000000000000000000000000000000000000000000000003",
balance: "100000000000000000000",
},
{
privateKey: "0x0000000000000000000000000000000000000000000000000000000000000004",
balance: "100000000000000000000",
},
]
},
// rinkeby: {
// url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
// accounts: [`${process.env.DEPLOYER_PRIVATE_KEY}`]
// },
},
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
typechain: {
outDir: 'typechain',
target: 'ethers-v5',
alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
externalArtifacts: [
'node_modules/@openzeppelin/contracts/build/contracts/ERC20PresetMinterPauser.json',
'node_modules/@uniswap/v2-core/build/UniswapV2Factory.json',
'node_modules/@uniswap/v2-periphery/build/UniswapV2Router02.json',
'node_modules/@uniswap/v2-periphery/build/WETH9.json',
],
},
}