-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
35 lines (33 loc) · 1.05 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
const path = require("path");
require('dotenv').config();
var HDWalletProvider = require("truffle-hdwallet-provider");
const { API_URL, MNEMONIC } = process.env;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id
gas: 6721974,
gasLimit: 26000000000
},
ropsten: {
provider:new HDWalletProvider(MNEMONIC,API_URL),
network_id: 3,
gas: 8000000
},
mainnet: {
//provider: new HDWalletProvider(secrets.mnemonic, "https://mainnet.infura.io/"),
network_id: 1,
gas: 1000000,
gasLimit: 67000000
}
},
compilers: {
solc: {
version: "0.8.0"
}
}
};