infrastructure-upgrade/README.md

26 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# infrastructure-upgrade
2023-04-08 21:46:18 +03:00
The `infrastructure-upgrade` repository. This contains `relayer-registry` contracts, and is intended to upgrade Tornado infrastructure for various functionalities and goals.
2023-04-08 21:46:18 +03:00
* [Latest Contracts](./src/v2/)
* [Contract Tests](./test/)
* [Test Coverage](./coverage/)
* [Gas usage](./gas/all.md)
* [Storage Layout](./storage/)
* [Deployment Scripts](./script/)
Please note that deployments only work via Hardhat, and only with the specified configuration. It seems that Forge outputs different bytecode than Etherscan, and that Hardhat also outputs for some contracts different bytecode than Etherscan if optimizations are not disabled.
## Install
2023-04-08 21:46:18 +03:00
```bash
git clone --recurse-submodules https://git.tornado.ws/AlienTornadosaurusHex/infrastructure-upgrade
cd infrastructure-upgrade
2023-04-08 21:46:18 +03:00
yarn
forge install
yarn build
forge build
2023-04-08 21:46:18 +03:00
```
`yarn build` has to execute a script to modify a single Uniswap dependency because of a stupid version pragma, if you check it out (in `script/setup.sh`) you will just notice that it goes into the file mentioned and changes the version pragma from 0.7.0 to 0.6.12. That is all of the changes needed.