Dxstats v1.7.1 has been released. This post describes instructions to update dxstats.eth content hash record to deploy the release by the DXdao community.
Alchemy https://alchemy.daostack.io/dao/0x519b70055af55a007110b4ff99b0ea33071c720a
Use DXdao ENS Proposal until Alchemy is back online.
Schema Name: GenericSchemeENSPublicResolver
Method: setContenthash(node bytes32, hash bytes)
Update dxstats.eth content hash to Dxstats v1.7.1
This proposal updates the dxstats.eth resolver's content hash to Dxstats v1.7.1.
Verify the Build Content Identifier (CID)
Clone the repo and checkout the release tag:
git clone https://github.com/SwaprDAO/swapr-info && cd swapr-info && git checkout v1.7.1
Using Node v16.14.0, install dependencies using Yarn in CI:
yarn install --frozen-lockfile
Build the dapp
yarn ipfs-build
Calculate the content hash to IPFS using IPFS CLI
ipfs add -rn ./build
The build CID should match QmdDY98x8RaPzifGM3xxQsetLC8pVWGb2hxLNAg669basB
Calldata to ENS Public Resolver
Method: setContenthash(node bytes32, hash bytes)
Calldata (string):
node = dxstats.eth
hash = ipfs://QmdDY98x8RaPzifGM3xxQsetLC8pVWGb2hxLNAg669basB
Obtain bytes values
The node hash value is obtained using namehash:
ethers.utils.namehash('dxstats.eth')
The content hash is obtained using content-hash:
const contentHash = require("@ensdomains/content-hash")
contentHash.fromIpfs('QmdDY98x8RaPzifGM3xxQsetLC8pVWGb2hxLNAg669basB')
Calldata (bytes):
node = 0xf81244a480db48f38b9b4685898b9af34eef3227191aa1f3d7da4544aa434897
hash = 0xe30101701220dd0ccfb092e26502be97e89e442e77fb1110a9aaaee128c1016e65759808b2b2