-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
98 lines (96 loc) · 2.36 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
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
var HDWalletProvider = require("@truffle/hdwallet-provider");
var useEnv = !!process.env.MNEMONIC;
module.exports =
{
plugins:
[
"solidity-coverage",
"truffle-plugin-verify"
],
api_keys:
{
etherscan: process.env.ETHERSCAN
},
networks:
{
docker:
{
host: "iexec-geth-local",
port: 8545,
network_id: "*", // Match any network id,
gasPrice: "8000000000", // 8 Gwei
},
development:
{
provider: useEnv ? () => new HDWalletProvider(process.env.MNEMONIC, process.env.DEV_NODE || "http://localhost:8545") : undefined,
host: useEnv ? undefined : "localhost",
port: useEnv ? undefined : 8545,
network_id: "*",
gasPrice: "8000000000", // 8 Gwei
disableConfirmationListener: true,
},
mainnet:
{
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.MAINNET_NODE),
network_id: "1",
gasPrice: "100000000000", // 100 Gwei
disableConfirmationListener: true,
},
ropsten:
{
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.ROPSTEN_NODE),
network_id: "3",
gasPrice: "8000000000", // 8 Gwei
disableConfirmationListener: true,
},
rinkeby:
{
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.RINKEBY_NODE),
network_id: "4",
gasPrice: "8000000000", // 8 Gwei
disableConfirmationListener: true,
},
goerli:
{
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.GOERLI_NODE),
network_id: "5",
gasPrice: "8000000000", // 8 Gwei
disableConfirmationListener: true,
},
kovan: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.KOVAN_NODE),
network_id: "42",
gasPrice: "8000000000", // 8 Gwei
disableConfirmationListener: true,
},
viviani: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.VIVIANI_NODE),
network_id: "133",
gasPrice: "0", // 0 Gwei
gas: "6700000",
disableConfirmationListener: true,
},
bellecour: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.BELLECOUR_NODE),
network_id: "134",
gasPrice: "0", // 0 Gwei
gas: "6700000",
disableConfirmationListener: true,
}
},
compilers: {
solc: {
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
mocha:
{
enableTimeouts: false
}
};