InstaContract/truffle.js

59 lines
1.2 KiB
JavaScript
Raw Normal View History

2018-10-23 07:52:31 +00:00
require('dotenv').config()
const HDWalletProvider = require('truffle-hdwallet-provider')
2019-01-27 18:37:43 +00:00
const rinkebyWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
2018-10-23 07:52:31 +00:00
const rinkebyProvider = new HDWalletProvider(
rinkebyWallet,
'https://rinkeby.infura.io/'
)
2019-01-27 18:37:43 +00:00
const ropstenWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
2018-10-23 07:52:31 +00:00
const ropstenProvider = new HDWalletProvider(
ropstenWallet,
'https://ropsten.infura.io/'
)
module.exports = {
2019-02-22 17:00:57 +00:00
plugins: [ "truffle-security" ],
2018-10-23 07:52:31 +00:00
migrations_directory: './migrations',
networks: {
test: {
host: 'localhost',
port: 9545,
network_id: '*',
gas: 6.5e6,
gasPrice: 5e9,
websockets: true
},
ropsten: {
network_id: 3,
gas: 6.5e6,
gasPrice: 5e9,
provider: () => ropstenProvider
},
rinkeby: {
network_id: 4,
gas: 6.5e6,
gasPrice: 5e9,
provider: () => rinkebyProvider
}
},
solc: {
2019-02-22 17:00:57 +00:00
version: '0.5.4',
2018-10-23 07:52:31 +00:00
optimizer: {
enabled: true,
runs: 500
}
},
mocha: {
reporter: 'mocha-multi-reporters',
useColors: true,
enableTimeouts: false,
reporterOptions: {
configFile: './mocha-smart-contracts-config.json'
}
}
}