* update truffle to 5.0.14 * fix setup to test with solc-nightly * switch to npx in script/test.sh * please the linter * rename build to prepack * move download of nightly build to a compile script * make compile script executable
34 lines
614 B
JavaScript
34 lines
614 B
JavaScript
require('chai/register-should');
|
|
|
|
const solcStable = {
|
|
version: '0.5.7',
|
|
};
|
|
|
|
const solcNightly = {
|
|
version: 'nightly',
|
|
docker: true,
|
|
};
|
|
|
|
const useSolcNightly = process.env.SOLC_NIGHTLY === 'true';
|
|
|
|
module.exports = {
|
|
networks: {
|
|
development: {
|
|
host: 'localhost',
|
|
port: 8545,
|
|
network_id: '*', // eslint-disable-line camelcase
|
|
},
|
|
coverage: {
|
|
host: 'localhost',
|
|
network_id: '*', // eslint-disable-line camelcase
|
|
port: 8555,
|
|
gas: 0xfffffffffff,
|
|
gasPrice: 0x01,
|
|
},
|
|
},
|
|
|
|
compilers: {
|
|
solc: useSolcNightly ? solcNightly : solcStable,
|
|
},
|
|
};
|