Skip to content

mstable/mStable-staking-delegates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mStable Staking Delegates

This repo is for adding/adjust and removing profiles of mStable Staking Delegates.

Setup

Skip if you just want to add/edit your profile

You need to have a Infura IPFS project. Copy and rename .env.template to .env and fill in the IPFS PROJECT_ID and PROJECT_SECRET.

How to add a new profile

  1. Fork this repo
  2. Add your profile to the /src/delegates.json file in the "delegatees" array like this:
{
    "chainId": 1, // Has to be 1 = Ethereum, required
    "address": "0x0000", // Your ethereum address, required
    "bio": "", // Short description of your profile, required
    "displayName": "", // Name that is going to appear in the UI, required
    "profileURI": "" // Your profile URI, can be twitter or something else, optional
},
  1. Optionally: Add your profile picture in the folder /src/pfp/.
  • It has to be a .jpg file
  • It has to be named <address>.jpg (case sensitive, make sure it matches the address exactly)
  • It has to be a square image, max size of 256x256
  1. Commit your changes and push them to the repo.

  2. Create a pull request.

How to edit a profile

  1. Fork this repo
  2. Edit your profile in the /src/delegates.json file in the "delegatees" array like this:
{
    "chainId": 1, // Has to be 1 = Ethereum, required
    "address": "0x0000", // Your ethereum address, required
    "bio": "", // Short description of your profile, required
    "displayName": "", // Name that is going to appear in the UI, required
    "profileURI": "" // Your profile URI, can be twitter or something else, optional
    "avatarURI": "" // Your profile picture, only delete if you want to upload a new one, otherwise keep it unchanged
},
  1. Optionally: Add a new profile picture in the folder /src/pfp/.
  • It has to be a .jpg file
  • It has to be named <address>.jpg (case sensitive, make sure it matches the address exactly)
  • It has to be a square image, max size of 256x256
  • IMPORTANT: If you want to upload a new profile picture, you have to delete avatarURI.
  1. Commit your changes and push them to the repo.

  2. Create a pull request.

What is mStable doing afterwards?

The pull request will be reviewed by the mStable team and if it's approved, it will be merged into the master branch. We will then run

yarn run exec

This will upload any profile pictures to IPFS, update the delegates.json file, and upload it to IPFS as well. The new CIDv0 will be added to src/uploads.json automatically. From there it will need to be updated in the mStable-apps repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published