Skip to content

cowprotocol/snapshot-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoW DAO Snapshot Settings

This repository stores and tests the snapshot settings for CoW DAO.

How to update the space settings

  1. Update the json file in src/settings.json and upload it to IPFS
  2. Update the ENS snapshot text record to point to the new file (for testing this could be done on any space like cowtesting.eth, for production, this needs to happen through a governance proposal on cow.eth)
  3. Once the above transaction is successful, update the below link with your ENS domain and paste it in the browser to update the space settings: https://hub.snapshot.org/api/spaces/YOUR_ENS_DOMAIN/poke
  4. Done

Relevant docs on Snapshot

Development

The code in this repo provides tests to verify that the settings are well-formed. New changes are automatically tested with GitHub Actions.

It requires Yarn 1 (classic) to be installed.

Once any changes have been merged into main, the settings.json will be automatically uploaded and pinned to IPFS. The resultant CID can be used to inform the transaction for replacing the snapshot TXT record on the ENS domain.

Install dependencies

yarn install --frozen

Run tests

yarn test

Lint code

yarn lint

Format code

yarn fmt