5_deploy_eth_mixer_proxy.js 482 B

1234567891011121314151617
  1. /* global artifacts */
  2. require('dotenv').config({ path: '../.env' })
  3. const ETHMixer = artifacts.require('ETHMixer')
  4. const gsnProxy = artifacts.require('GSNProxy')
  5. module.exports = function(deployer) {
  6. return deployer.then(async () => {
  7. let mixer = await ETHMixer.deployed()
  8. const proxy = await deployer.deploy(
  9. gsnProxy,
  10. mixer.address,
  11. '0x0000000000000000000000000000000000000000',
  12. )
  13. console.log('Mixer\'s proxy address ', proxy.address)
  14. })
  15. }