Update your fork with the original repo using Git
If you have already forked a space, you must update your repo before submitting changes.
Use the 4 commands below to sync your forked repository with the original repository.
git remote add master https://github.com/snapshot-labs/snapshot-spaces.gitgit fetch mastergit checkout mastergit merge master/master
|-- spaces|-- example|-- index.json|-- logo.png|-- space.png|-- skins (optional)|-- example.scss (optional)
Note that your path folder name will be the name that will show on the snapshot link:
https://snapshot.page/#/your-space
Example: index.json
{"name": "Your Space", // Name of your space (max 20 chars)"network": "1", // What network you are on? (if on Ethereum it is "1", for other check: https://docs.snapshot.page/networks)"symbol": "SYMBOL", // Your main token symbol"skin": "your-space", // Copy skin filename "example.scss" located at "/skins" folder and renaming it to "your-space.scss""domain": "vote.yourdomain.com", // Add your voting/governance subdomain if you have one"strategies": [ // Strategies{"name": "erc20-balance-of", // Strategy name"params": { // Strategy parameters"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", // Address of the base token"symbol": "SYMBOL", // Symbol of the base token"decimals": 18 // Decimals of the base token}}],"members": [ // List of official addresses that can post in "Core" tab of the space"0xeF8305E140ac520225DAf050e2f71d5fBcC543e7" // Core member address],"filters": { // Filters"defaultTab": "all", // The default tab for the space"minScore": 123, // Minimum balance from the base token that a user should have to show his proposal in the space (unless the address is a core address)"onlyMembers": true // Shows only core tab and core proposals"invalids": [ // List of proposals IDs (use this to remove a proposal from your space)"QmXAZP8tYwX2zZz5EzfxLZUYJt6TM9EmxY1L4qodhZ5zcZ","QmXAZV8tYwX2zZz5EzfxLZUYJt6TM9EmxY1L4qodhZ5lbL"]}}
You must add both logo.png
and space.png
images for your space with a size of 256 x 256 pixels.
The file size should not exceed 50KB
.
To create your own skin go to the /skins
folder.
Copy example.scss
change the name to what you like (prefferably your space name).
Change the colors, then make sure both the scss
file and its class name are the same.
Exampe: your file is your-space.scss
class name should be .your-space
Include your skin name in the index.json
file as: "skin": "your-space"
Save it in /skins
folder.
Example: your-space.scss
.your-space {--primary-color: #384aff;--bg-color: white;--text-color: #586069;--link-color: #111111;--heading-color: #111111;--border-color: #d1d5da;--header-bg: white;--block-bg: transparent;}
Your files should something like this:
|-- spaces|-- your-space|-- index.json|-- logo.png|-- space.png|-- skins (optional)|-- your-space.scss (optional)
Please name your PR title on the model Add SYMBOL space
It may take 1 or 2 days to get your PR reviewed, merged and appear on Snapshot.