mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
76 lines
1.6 KiB
JavaScript
76 lines
1.6 KiB
JavaScript
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/'
|
|
)
|
|
|
|
const kovanWallet =
|
|
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat'
|
|
const kovanProvider = new HDWalletProvider(
|
|
kovanWallet,
|
|
'https://kovan.infura.io/'
|
|
)
|
|
|
|
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 = {
|
|
plugins: ['truffle-security'],
|
|
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
|
|
},
|
|
kovan: {
|
|
network_id: 42,
|
|
gas: 6.5e6,
|
|
gasPrice: 5e9,
|
|
provider: () => kovanProvider
|
|
},
|
|
rinkeby: {
|
|
network_id: 4,
|
|
gas: 6.5e6,
|
|
gasPrice: 5e9,
|
|
provider: () => rinkebyProvider
|
|
}
|
|
},
|
|
compilers: {
|
|
solc: {
|
|
version: '^0.5.2',
|
|
settings: {
|
|
optimizer: {
|
|
enabled: false,
|
|
runs: 500
|
|
}
|
|
}
|
|
}
|
|
},
|
|
mocha: {
|
|
reporter: 'mocha-multi-reporters',
|
|
useColors: true,
|
|
enableTimeouts: false,
|
|
reporterOptions: {
|
|
configFile: './mocha-smart-contracts-config.json'
|
|
}
|
|
}
|
|
}
|