Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
universal truffle config
Browse files Browse the repository at this point in the history
  • Loading branch information
gluk64 committed May 12, 2019
1 parent c49387c commit 62323bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"build-common-interface": "solcjs -o bin --bin --abi commonInterfaceVariant/*.sol",
"ganache": "ganache-cli -l 7000000 -i 4 -m \"cliff flag flag fence mesh quarter coyote mechanic cash draw remain priority\" ",
"start-geth": "geth --rpc --rpcapi \"eth,net,web3,personal\" --dev --miner.gastarget 8000000 --dev.period=1",
"deploy": "yarn truffle migrate --reset --network $TRUFFLE_NETWORK",
"deploy": "yarn truffle migrate --reset --network $TRUFE_NETWORK",
"geth": "node scripts/setup-geth.js 2& yarn start-geth",
"geth-deployed": "(sleep 10 && node scripts/setup-geth.js && yarn deploy-geth)& yarn start-geth > /dev/null",
"start-parity": "parity --config dev --jsonrpc-apis all",
Expand Down
26 changes: 13 additions & 13 deletions contracts/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module.exports = {
// //network_id: "*" // match any network
// },

dev: {
network_id: 4,
universal: {
network_id: '*',
gas: 6900000,
provider: function() {
const HDWalletProvider = require("truffle-hdwallet-provider");
Expand All @@ -43,17 +43,17 @@ module.exports = {
},
},

rinkeby: {
network_id: 4,
gas: 6900000,
provider: function() {
const HDWalletProvider = require("truffle-hdwallet-provider");
//let url = `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`
let url = `${process.env.WEB3_URL}`
let mnemonic = process.env.MNEMONIC
return new HDWalletProvider(mnemonic, url)
},
},
// rinkeby: {
// network_id: 4,
// gas: 6900000,
// provider: function() {
// const HDWalletProvider = require("truffle-hdwallet-provider");
// //let url = `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`
// let url = `${process.env.WEB3_URL}`
// let mnemonic = process.env.MNEMONIC
// return new HDWalletProvider(mnemonic, url)
// },
// },

}
};
2 changes: 1 addition & 1 deletion etc/env/dev.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SENDER_ACCOUNT=52312AD6f01657413b2eaE9287f6B9ADaD93D5FE
PRIVATE_KEY=e131bc3f481277a8f73d680d9ba404cc6f959e64296e0914dded403030d4f705

WEB3_URL=http://localhost:8545
TRUFFLE_NETWORK=dev
TRUFFLE_NETWORK=universal

# Client

Expand Down

0 comments on commit 62323bc

Please sign in to comment.