update readme

This commit is contained in:
Roman Storm 2021-02-14 00:19:11 -08:00
parent a81117a4b9
commit 9c4035f15b
No known key found for this signature in database
GPG Key ID: 522F2A785F34E71F
2 changed files with 8 additions and 10 deletions

View File

@ -12,7 +12,7 @@ SALT=0x0000000000000000000000000000000000000000000000000000000047941987
PRIVATE_KEY=
PRIVATE_KEY=0x
RPC_URL=
NET_ID=42
GAS_PRICE_IN_WEI=123000000000

View File

@ -2,25 +2,23 @@
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
git clone --recursive https://github.com/tornadocash/tornado-deploy -b tornado-core
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
Edit `instances.js` config to choose what Tornado pool you would like to deploy
Note: build script will not recompile snark circuit if compilation result already exists
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.