diff --git a/package.json b/package.json index 5129146..609988b 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "migrate": "npm run migrate:kovan", "migrate:dev": "npx truffle migrate --network development --reset", "migrate:kovan": "npx truffle migrate --network kovan --reset", + "migrate:rinkeby": "npx truffle migrate --network rinkeby --reset", "migrate:mainnet": "npx truffle migrate --network mainnet", "eslint": "npx eslint --ignore-path .gitignore .", "flat": "truffle-flattener contracts/ETHMixer.sol > ETHMixer_flat.sol contracts/ERC20Mixer.sol > ERC20Mixer_flat.sol" diff --git a/truffle-config.js b/truffle-config.js index f510404..feb59fe 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -51,6 +51,15 @@ module.exports = { // timeoutBlocks: 200, skipDryRun: true }, + rinkeby: { + provider: () => new HDWalletProvider(process.env.PRIVATE_KEY, 'https://rinkeby.infura.io/v3/c7463beadf2144e68646ff049917b716'), + network_id: 4, + gas: 6000000, + gasPrice: utils.toWei('1', 'gwei'), + // confirmations: 0, + // timeoutBlocks: 200, + skipDryRun: true + }, mainnet: { provider: () => new HDWalletProvider(process.env.PRIVATE_KEY, 'http://ethereum-rpc.trustwalletapp.com'), network_id: 1,