forked from DOSNetwork/smart-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
37 lines (36 loc) · 890 Bytes
/
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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const assert = require('assert');
const infura_token = "8e609c76fce442f8a1735fbea9999747";
const mainnetInfura = `https://mainnet.infura.io/v3/${infura_token}`;
const rinkebyInfura = `https://rinkeby.infura.io/v3/${infura_token}`;
const pk = process.env.PK;
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
},
rinkeby: {
provider: () => new HDWalletProvider(pk, rinkebyInfura),
network_id: 4,
gas: 8000000
},
live: {
provider: () => new HDWalletProvider(pk, mainetInfura),
network_id: 1,
gas: 8000000
},
},
compilers: {
solc: {
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 100
},
}
}
}
};