diff --git a/.env.example b/.env.example index cc43f55..98d2703 100644 --- a/.env.example +++ b/.env.example @@ -12,7 +12,7 @@ SALT=0x0000000000000000000000000000000000000000000000000000000047941987 -PRIVATE_KEY= +PRIVATE_KEY=0x RPC_URL= NET_ID=42 GAS_PRICE_IN_WEI=123000000000 diff --git a/README.md b/README.md index 979cb3a..6de1315 100644 --- a/README.md +++ b/README.md @@ -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.