-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
40 lines (36 loc) · 1.15 KB
/
truffle.js
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
module.exports = {
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none),
gas: 120000000,
gasPrice: 1, // To cancel out gasPrice in tests.
},
main: {
provider: () => new HDWalletProvider(process.env.WALLET_KEY, `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`),
network_id: 1,
gasPrice: 50000000000, // 50 GWei
gas: 10000000,
},
kovan: {
provider: () => new HDWalletProvider(process.env.WALLET_KEY, `https://kovan.infura.io/v3/${process.env.INFURA_PROJECT_ID}`),
network_id: 42,
skipDryRun: true,
gas: 10000000,
},
ropsten: {
provider: () => new HDWalletProvider(process.env.WALLET_KEY, `https://ropsten.infura.io/v3/${process.env.INFURA_PROJECT_ID}`),
network_id: 3,
skipDryRun: true,
gas: 8000000,
},
},
// Configure your compilers
compilers: {
solc: {
version: ">=0.8 <0.9.0", // Fetch exact version from solc-bin (default: truffle's version)
docker: false,
},
},
};