-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
64 lines (62 loc) · 1.49 KB
/
truffle-config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const HDWalletProvider = require("@truffle/hdwallet-provider");
const fs = require("fs");
const infuraKey = "7b228409b36d4a2989d11e9779a6dd5c";
const key_TESTNET = fs.readFileSync(".test.secret").toString().trim();
const key_MAINNET = fs.readFileSync(".main.secret").toString().trim();
module.exports = {
contracts_build_directory: "./abis",
networks: {
development: {
host: "127.0.0.1",
port: 8545,
gas: 6700000,
gasPrice: 80000000000, // 80
network_id: "*",
},
goerli: {
provider: () =>
new HDWalletProvider({
privateKeys: [key_TESTNET],
providerOrUrl: `wss://goerli.infura.io/ws/v3/${infuraKey}`,
}),
network_id: 5,
gas: 7500000,
confirmations: 1,
gasPrice: 100000000000, // 100
timeoutBlocks: 200,
skipDryRun: true,
},
mainnet: {
provider: () =>
new HDWalletProvider({
privateKeys: [key_MAINNET],
providerOrUrl: `wss://mainnet.infura.io/ws/v3/${infuraKey}`,
}),
network_id: 1,
gas: 5500000,
gasPrice: 75000000000, // 75
confirmations: 1,
timeoutBlocks: 400,
skipDryRun: true,
},
},
mocha: {},
plugins: ["truffle-plugin-verify"],
api_keys: {
etherscan: "DE3V68DDU5KKG9VGM65BNECUPKEH7Q6A6G",
},
compilers: {
solc: {
version: "0.8",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
db: {
enabled: false,
},
};