-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
57 lines (53 loc) · 1.12 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
module.exports = {
// Network settings
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*", // Match any network id
gas: 5000000,
gasPrice: 20000000000
},
testnet: {
provider: () => new Web3.providers.HttpProvider("https://testnet.infura.io/v3/YOUR_PROJECT_ID"),
network_id: 4,
gas: 5000000,
gasPrice: 20000000000
},
mainnet: {
provider: () => new Web3.providers.HttpProvider("https://mainnet.infura.io/v3/YOUR_PROJECT_ID"),
network_id: 1,
gas: 5000000,
gasPrice: 20000000000
}
},
// Compiler settings
compilers: {
solc: {
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
// Migrations settings
migrations: {
deployer: {
type: "truffle-deployer",
riskFactor: 100
}
},
// Plugins settings
plugins: [
"truffle-plugin-verify",
"truffle-plugin-dashboard"
],
// API settings
api_keys: {
etherscan: "YOUR_ETHERSCAN_API_KEY",
infura: "YOUR_INFURA_PROJECT_ID"
}
};