This repo is for adding/adjust and removing profiles of mStable Staking Delegates.
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
.
- Fork this repo
- 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
},
- 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
-
Commit your changes and push them to the repo.
-
Create a pull request.
- Fork this repo
- 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
},
- 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
.
-
Commit your changes and push them to the repo.
-
Create a pull request.
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.