2022-01-27 12:51:34 +01:00
|
|
|
# Nova upgrade proposal
|
2022-01-28 17:46:46 +01:00
|
|
|
|
2022-01-27 12:51:34 +01:00
|
|
|
There is Tornado governance proposal for upgrade nova contract on Xdai chain.
|
2022-01-28 17:46:46 +01:00
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
2022-01-27 12:51:34 +01:00
|
|
|
1. Install dependencies:
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn install
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Create `.env` file with actual values from `.env.sample`.
|
|
|
|
|
|
|
|
3. Run tests:
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn test
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Run linter:
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn lint
|
|
|
|
```
|
2022-01-28 17:46:46 +01:00
|
|
|
|
2022-01-27 12:51:34 +01:00
|
|
|
## Deploy
|
2022-01-28 17:46:46 +01:00
|
|
|
|
2022-02-14 15:17:57 +01:00
|
|
|
1. Check `config.js` for actual values. Take `newNovaImpl` address from README of [repository](https://github.com/tornadocash/tornado-nova).
|
2022-01-27 12:51:34 +01:00
|
|
|
|
|
|
|
2. Run deploy:
|
|
|
|
|
|
|
|
```
|
2022-02-14 15:17:57 +01:00
|
|
|
npx hardhat run scripts/deploy.js --network mainnet
|
2022-01-27 12:51:34 +01:00
|
|
|
```
|