tornado-deploy/README.md

29 lines
890 B
Markdown
Raw Normal View History

2020-12-15 16:10:11 +01:00
## Dependencies
1. node 12
2. yarn
## Usage
```
2021-02-14 09:19:11 +01:00
git clone --recursive https://github.com/tornadocash/tornado-deploy -b tornado-core
2020-12-15 16:10:11 +01:00
cd tornado-deploy
cp .env.example .env
2020-12-17 22:52:58 +01:00
yarn
2021-02-14 09:19:11 +01:00
```
Edit `instances.js` config to choose what Tornado pool you would like to deploy
2020-12-17 21:23:14 +01:00
2021-02-14 09:19:11 +01:00
When you are ready, run
2020-12-17 21:23:14 +01:00
2021-02-14 09:19:11 +01:00
```
2020-12-17 21:21:13 +01:00
yarn build
2020-12-15 16:10:11 +01:00
```
2020-12-17 23:29:53 +01:00
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.