-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
120 lines (118 loc) · 3.71 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import "@nomiclabs/hardhat-waffle";
import "@tenderly/hardhat-tenderly";
import * as dotenv from "dotenv";
// import "hardhat-gas-reporter";
// import "hardhat-typechain";
import { HardhatUserConfig } from "hardhat/types";
// import "solidity-coverage";
import "@tenderly/hardhat-tenderly";
dotenv.config();
// const dummyPrivateKey = '1111111111111111111111111111111111111111111111111111111111111111';
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
// gasReporter: {
// currency: 'USD',
// gasPrice: 100
// },
paths: {
sources: './contracts',
tests: './test',
artifacts: "./build/artifacts",
cache: "./build/cache"
},
networks: {
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
// url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
// url: 'http://localhost:8545',
// blockNumber: 12551218
},
accounts: [
// 5 accounts with 10^14 ETH each
// Addresses:
// 0x186e446fbd41dD51Ea2213dB2d3ae18B05A05ba8
// 0x6824c889f6EbBA8Dac4Dd4289746FCFaC772Ea56
// 0xCFf94465bd20C91C86b0c41e385052e61ed49f37
// 0xEBAf3e0b7dBB0Eb41d66875Dd64d9F0F314651B3
// 0xbFe6D5155040803CeB12a73F8f3763C26dd64a92
{
privateKey: '0xf269c6517520b4435128014f9c1e50c1c498374a7f5143f035bfb32153f3adab',
balance: '1000000000000000000000000000000000000',
},
{
privateKey: '0xca3547a47684862274b476b689f951fad53219fbde79f66c9394e30f1f0b4904',
balance: '1000000000000000000000000000000000000',
},
{
privateKey: '0x4bad9ef34aa208258e3d5723700f38a7e10a6bca6af78398da61e534be792ea8',
balance: '1000000000000000000000000000000000000',
},
{
privateKey: '0xffc03a3bd5f36131164ad24616d6cde59a0cfef48235dd8b06529fc0e7d91f7c',
balance: '1000000000000000000000000000000000000',
},
{
privateKey: '0x380c430a9b8fa9cce5524626d25a942fab0f26801d30bfd41d752be9ba74bd98',
balance: '1000000000000000000000000000000000000',
},
],
allowUnlimitedContractSize: true,
blockGasLimit: 80000000,
gas: 80000000,
gasPrice: 1,
loggingEnabled: false,
},
development: {
url: 'http://127.0.0.1:8545',
gas: 12400000,
timeout: 1000000,
},
// kovan: {
// url: `https://kovan.infura.io/v3/${process.env.INFURA_KEY || "dummyKey"}`,
// gas: 8000000,
// timeout: 100000,
// accounts: [`${process.env.PRIVATE_KEYS || dummyPrivateKey}`],
// },
// kovantest: {
// // url: `https://eth-kovan.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
// url: `https://kovan.infura.io/v3/${process.env.INFURA_KEY || "dummyKey"}`,
// gas: 8000000,
// gasPrice: 10*1000000000,
// timeout: 1000000,
// accounts: [`${process.env.PRIVATE_KEYS || dummyPrivateKey}`],
// },
// goerli: {
// url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
// accounts: [`${process.env.PRIVATE_KEYS || dummyPrivateKey}`],
// timeout: 20000,
// },
// mainnet: {
// url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
// accounts: [`${process.env.PRIVATE_KEYS || dummyPrivateKey}`],
// gasPrice: 130 * 1000000000,
// timeout: 200000,
// }
},
solidity: {
compilers: [
{
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
mocha: {
timeout: 500000,
},
tenderly: {
username: "Yongkhang",
project: "pendle-finance"
}
};
export default config;