smart-contract/truffle.js

76 lines
1.6 KiB
JavaScript
Raw Permalink Normal View History

2019-03-11 12:30:45 +00:00
require('dotenv').config()
const HDWalletProvider = require('truffle-hdwallet-provider')
const rinkebyWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
const rinkebyProvider = new HDWalletProvider(
rinkebyWallet,
'https://rinkeby.infura.io/'
)
2019-04-06 12:49:08 +00:00
const kovanWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
const kovanProvider = new HDWalletProvider(
kovanWallet,
'https://kovan.infura.io/'
)
2019-03-11 12:30:45 +00:00
const ropstenWallet =
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
const ropstenProvider = new HDWalletProvider(
ropstenWallet,
'https://ropsten.infura.io/'
)
module.exports = {
2019-04-06 12:49:08 +00:00
plugins: ['truffle-security'],
2019-03-11 12:30:45 +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
},
2019-04-06 12:49:08 +00:00
kovan: {
network_id: 42,
gas: 6.5e6,
gasPrice: 5e9,
provider: () => kovanProvider
},
2019-03-11 12:30:45 +00:00
rinkeby: {
network_id: 4,
gas: 6.5e6,
gasPrice: 5e9,
provider: () => rinkebyProvider
}
},
2019-04-06 12:49:08 +00:00
compilers: {
solc: {
version: '^0.5.2',
settings: {
optimizer: {
enabled: false,
runs: 500
}
}
2019-03-11 12:30:45 +00:00
}
},
mocha: {
reporter: 'mocha-multi-reporters',
useColors: true,
enableTimeouts: false,
reporterOptions: {
configFile: './mocha-smart-contracts-config.json'
}
}
}