UNPKG

@gnosis.pm/conditional-tokens-contracts

Version:

Collection of smart contracts for the conditional tokens

77 lines (73 loc) 1.63 kB
const config = { networks: { mainnet: { host: "localhost", port: 8545, network_id: "1" }, ropsten: { host: "localhost", port: 8545, network_id: "3" }, kovan: { host: "localhost", port: 8545, network_id: "42" }, rinkeby: { host: "localhost", port: 8545, network_id: "4" }, xdai: { host: "localhost", port: 8545, network_id: "100" }, local: { host: "localhost", port: 8545, network_id: "*" } }, mocha: { enableTimeouts: false, grep: process.env.TEST_GREP, reporter: "eth-gas-reporter", reporterOptions: { currency: "USD", excludeContracts: ["Migrations"] } }, compilers: { solc: { version: "0.5.10", settings: { optimizer: { enabled: true } } } } }; try { require("chai/register-should"); require("chai").use(require("chai-as-promised")); } catch (e) { // eslint-disable-next-line no-console console.log("Skip setting up testing utilities"); } try { const _ = require("lodash"); _.merge(config, require("./truffle-local")); } catch (e) { if (e.code === "MODULE_NOT_FOUND" && e.message.includes("truffle-local")) { // eslint-disable-next-line no-console console.log("No local truffle config found. Using all defaults..."); } else { // eslint-disable-next-line no-console console.warn("Tried processing local config but got error:", e); } } module.exports = config;