Go to file
2020-12-17 15:38:30 -08:00
abi initial 2020-12-15 18:10:11 +03:00
airdrop@d3d5a4c0df init submodules 2020-12-15 18:25:56 +03:00
deployer@4dd141a398 tidy 2020-12-15 21:53:17 +03:00
src lint 2020-12-15 21:19:19 +03:00
torn-token@e65817d298 update deps 2020-12-17 12:00:08 -08:00
tornado-anonymity-mining@95f6bbfe17 update deps 2020-12-17 12:00:08 -08:00
tornado-governance@8b6474c437 update deps 2020-12-17 12:00:08 -08:00
.env.example readme 2020-12-18 01:29:53 +03:00
.eslintrc initial 2020-12-15 18:10:11 +03:00
.gitignore initial 2020-12-15 18:10:11 +03:00
.gitmodules init submodules 2020-12-15 18:25:56 +03:00
.prettierrc initial 2020-12-15 18:10:11 +03:00
build.sh fix unlink 2020-12-17 15:38:30 -08:00
package.json init submodules 2020-12-15 18:25:56 +03:00
README.md readme 2020-12-18 01:31:35 +03:00
yarn.lock initial 2020-12-15 18:10:11 +03:00

Dependencies

  1. node 12
  2. yarn
  3. zkutil (brew install rust && cargo install zkutil) (needed only for circuit compilation and setup)

Usage

git clone --recursive https://github.com/tornadocash/tornado-deploy
cd tornado-deploy
cp .env.example .env
yarn

# optionally copy production snark circuits
mkdir -p tornado-anonymity-mining/build && cp -R ~/Downloads/circuits ./tornado-anonymity-mining/build

yarn build

Note: build script will globally yarn link torn-token package

Note: build script will not recompile snark circuit if compilation result already exists

The result of the build is actions.json file, that contains everything that is needed to deploy contracts on Ethereum along with expected deploy addresses.

Reproducible build

In order to generate exactly the same actions.json the code has to be compiled in /private/tmp/tornado-deploy dir because solidity compiler includes a hash of full path to files into contact bytecode as swarm hash. If you compile in other dir this swarm hash will be different. It doesn't affect contract execution but your actions.json will have a different hash from the initiation version.

Verify addresses

cat actions.json | jq '.actions[] | {domain,expectedAddress,contract} '