Skip to content

Commit

Permalink
Fix truffle file
Browse files Browse the repository at this point in the history
  • Loading branch information
izqui committed Feb 23, 2018
1 parent e9390fd commit 57ff719
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
4 changes: 0 additions & 4 deletions future-apps/staking/truffle-config.js

This file was deleted.

34 changes: 1 addition & 33 deletions future-apps/staking/truffle.js
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
const HDWalletProvider = require('truffle-hdwallet-provider')

const mnemonic = 'stumble story behind hurt patient ball whisper art swift tongue ice burger'

let kovanProvider, mainnetProvier = {}

if (process.env.LIVE_NETWORKS) {
kovanProvider = new HDWalletProvider(mnemonic, 'https://kovan.infura.io')
mainnetProvier = new HDWalletProvider(mnemonic, 'https://mainnet.infura.io')
}

module.exports = {
networks: {
mainnet: {
network_id: 1,
provider: mainnetProvier,
gas: 1.5e6,
gasPrice: 3000000001
},
kovan: {
network_id: 42,
provider: kovanProvider,
gas: 6.9e6,
},
rpc: {
network_id: 15,
host: 'localhost',
port: 8545,
gas: 6.9e6,
},
},
build: {},
}
module.exports = require("@aragon/os/truffle-config")

0 comments on commit 57ff719

Please sign in to comment.