mirror of
https://github.com/tornadocash/tornado-deploy.git
synced 2024-11-23 10:15:33 +01:00
abi | ||
deployer@c6526c7f02 | ||
src | ||
tornado-anonymity-mining@ca446c79cd | ||
tornado-core@54a7bdcb04 | ||
.env.example | ||
.eslintrc | ||
.gitignore | ||
.gitmodules | ||
.prettierrc | ||
build.sh | ||
instances.js | ||
package.json | ||
README.md | ||
yarn.lock |
Dependencies
- node 12
- yarn
Usage
git clone --recursive https://github.com/tornadocash/tornado-deploy -b avalanche
cd tornado-deploy
cp .env.example .env
yarn
Edit instances.js
config to choose what Tornado pool you would like to deploy
When you are ready, run
yarn build
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} '