-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
74 lines (68 loc) · 2.26 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
65
66
67
68
69
70
71
72
73
74
const HDWalletProvider = require("@truffle/hdwallet-provider");
const mnemonicOrPrivkey = process.env.MNEMONIC || process.env.PRIVKEY;
module.exports = {
networks: {
// mainnets
xdai: {
provider: () =>
new HDWalletProvider(
mnemonicOrPrivkey,
"https://xdai-rpc.mars.lab10.io"
),
network_id: 100,
gas: 8e6,
gasPrice: process.env.GAS_PRICE || 1e9, // default 1 gwei
//confirmations: 6, // (default: 0)
timeoutBlocks: 10 // (default: 50)
},
// testnets
artis_tau1: {
provider: () =>
new HDWalletProvider(
mnemonicOrPrivkey,
"https://rpc.tau1.artis.network"
),
network_id: 0x03c401,
gas: 8e6,
gasPrice: process.env.GAS_PRICE || 1e9, // default 1 gwei
//confirmations: 6, // (default: 0)
timeoutBlocks: 5 // (default: 50)
},
goerli: {
provider: () =>
new HDWalletProvider(
mnemonicOrPrivkey,
"https://goerli-rpc.mars.lab10.io"
),
network_id: 5,
gas: 8e6,
gasPrice: process.env.GAS_PRICE || 100e9, // 100 GWEI, goerli is busy!
//confirmations: 6, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
},
// dev net
ganache: {
host: "127.0.0.1",
network_id: "*",
port: 8545
}
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "0.7.6", // Fetch exact version from solc-bin (default: truffle's version)
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
}
// evmVersion: "petersburg" use default
}
}
}
};