-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
45 lines (45 loc) · 1.17 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
// Allows us to use ES6 in our migrations and tests.
require('babel-register');
const HDWalletProvider = require("@truffle/hdwallet-provider");
require('dotenv').config();
const privateKey = process.env.WALLET_PRIVATE_KEY;
const gnosisscanAPIKey = process.env.BLOCK_SCOUT_API_KEY;
const etherScanPrivateKey = process.env.ETHERSCAN_PRIVATE_KEY;
module.exports = {
networks: {
live: {
provider: function () {
return new HDWalletProvider([privateKey], 'https://rpc.chiadochain.net')
},
network_id: 10200,
/*host: "178.25.19.88", // Random IP for example purposes (do not use)
port: 80,
network_id: 1, // Ethereum public network,
*/
},
chiado: {
provider: function() {
return new HDWalletProvider( [privateKey], "https://rpc.chiadochain.net")},
network_id: 10200,
gas: 500000,
gasPrice: 1000000000
},
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*'
}
},
compilers: {
solc: {
version: "^0.8.9"
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: etherScanPrivateKey,
gnosisscan: gnosisscanAPIKey
}
}