Proposal to update IPFS hashes of updated Tornado services
Go to file
Theo 0cff07f2e7 Change Goerli test contract to register new subdomains via it 2023-08-01 02:56:03 -07:00
data Add proposal code and tests 2023-07-28 05:43:53 -07:00
lib Add proposal code and tests 2023-07-28 05:43:53 -07:00
scripts Add proposal code and tests 2023-07-28 05:43:53 -07:00
src Change Goerli test contract to register new subdomains via it 2023-08-01 02:56:03 -07:00
test Change Goerli test contract to register new subdomains via it 2023-08-01 02:56:03 -07:00
.env.bat.example Initial commit 2023-07-25 17:39:19 +02:00
.env.example Initial commit 2023-07-25 17:39:19 +02:00
.gitignore Initial commit 2023-07-25 17:39:19 +02:00
.gitmodules Initial commit 2023-07-25 17:39:19 +02:00
.nvmrc Add proposal code and tests 2023-07-28 05:43:53 -07:00
README.md Add info about deployed contract 2023-07-31 02:12:57 -07:00
foundry.toml Initial commit 2023-07-25 17:39:19 +02:00
package.json Add proposal code and tests 2023-07-28 05:43:53 -07:00
remappings.txt Initial commit 2023-07-25 17:39:19 +02:00
tsconfig.json Add proposal code and tests 2023-07-28 05:43:53 -07:00

Proposal to update Tornado IPFS hashes in ENS

Changes / effect description

  • Change owner of ENS domains staking-rewards.contract.tornadocash.eth and contract.tornadocash.eth to Tornado Cash Governance
  • Change address on staking-rewards.contract.tornadocash.eth to new staking address (has been changed in proposal 22)
  • Update IPFS content hashes on ENS domains for docs (docs.tornadocash.eth), Classic UI (tornadocash.eth), Nova UI (nova.tornadocash.eth) and relayers UI (relayers-network.tornadocash.eth)

Requirements

Installation

git clone --recurse-submodules https://git.tornado.ws/Theo/proposal-27-update-ipfs.git
cd proposal-27-update-ipfs
npm install
npm run init

Testing

npm run test:windows

or

npm run test:linux

Contracts

Proposal deployed contract: etherscan link

Verification

Since the proposal code can be confusing because it relies on numerous specifications and EIPs, users can use scripts to verify the correctness of the data, see the output in the corresponding files, and insert the code directly into Solidity, comparing it with the existing code in the proposal (there should be no discrepancies be).

  1. Verification of the transformation of eth domains into ENS nodes:

    Script source: calculateENSNodes.ts

    Command to run: npm run calculateENS

    Result data: ensNodesDeclarations.txt

  2. Verification of the transformation of IPFS CIDs to ENS content hashes

    Script source: calculateIPFSContenthashes.ts

    Command to run: npm run calculateIPFS

    Result data: ensDomainsIPFSContenthashes.txt

  3. Verification of the equality IPFS CIDs v0 with v1 (because ENS on its interface shows v1 CIDs, but Pinata and contenthash library uses v0)

    Script source: calculateIpfsV1Cids.ts

    Command to run: npm run calculateIpfsV1Cids

    Result data: ipfsV1CIDs.txt