forked from ensdomains/resolvers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
38 lines (37 loc) · 798 Bytes
/
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
const HDWalletProvider = require("@truffle/hdwallet-provider");
require('dotenv').config();
module.exports = {
networks: {
local: {
host: 'localhost',
port: 9545,
network_id: '*',
gas: 4712388
},
ropsten: {
provider: function() {
return new HDWalletProvider([process.env.ROPSTEN_KEY], "https://ropsten.infura.io/v3/58a380d3ecd545b2b5b3dad5d2b18bf0");
},
network_id: '3',
from: '0xa303ddc620aa7d1390baccc8a495508b183fab59'
}
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
gasPrice: 1
}
},
compilers: {
solc: {
version: "0.7.4",
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: process.env.ETHERSCAN_API_KEY
}
};