You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
791 B

const path = require('path');
const defaults = require('./constants/config/defaults');
4 years ago
const {
DEVELOP_CHAIN_HOST, DEVELOP_CHAIN_PORT, TEST_CHAIN_HOST, TEST_CHAIN_PORT,
} = process.env;
4 years ago
module.exports = {
4 years ago
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
compilers: {
solc: {
version: '0.7.1',
},
4 years ago
},
contracts_build_directory: path.join(__dirname, 'build/'),
networks: {
develop: {
host: DEVELOP_CHAIN_HOST || defaults.develop.chainHost,
port: DEVELOP_CHAIN_PORT || defaults.develop.chainPort,
4 years ago
network_id: '*',
4 years ago
},
4 years ago
test: {
host: TEST_CHAIN_HOST || defaults.test.chainHost,
port: TEST_CHAIN_PORT || defaults.test.chainPort,
4 years ago
network_id: '*',
},
},
4 years ago
};