mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-04 23:34:58 -04:00
mixer deploy WIP
This commit is contained in:
parent
19f916e6fd
commit
fb3f2425d2
10 changed files with 2143 additions and 40 deletions
15
migrations/4_deploy_mixer.js
Normal file
15
migrations/4_deploy_mixer.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
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)
|
||||
})
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue