mirror of
				https://github.com/tornadocash/tornado-core.git
				synced 2025-11-03 15:15:29 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
require('dotenv').config({ path: '../.env' })
 | 
						|
const Mixer = artifacts.require("Mixer");
 | 
						|
const Verifier = artifacts.require("Verifier");
 | 
						|
const MiMC = artifacts.require("MiMC");
 | 
						|
 | 
						|
 | 
						|
module.exports = function(deployer) {
 | 
						|
  return deployer.then(async () => {
 | 
						|
    const { MERKLE_TREE_HEIGHT, AMOUNT, EMPTY_ELEMENT } = process.env
 | 
						|
    const verifier = await Verifier.deployed()
 | 
						|
    const miMC = MiMC.deployed()
 | 
						|
    await Mixer.link(MiMC, miMC.address)
 | 
						|
    await deployer.deploy(Mixer, verifier.address, AMOUNT, MERKLE_TREE_HEIGHT, EMPTY_ELEMENT)
 | 
						|
  })
 | 
						|
};
 |