-
Add new dependency in package.json
"aldrin-registry": "git+https://github.com/aldrin-exchange/aldrin-registry.git"
-
Install it using
yarn
We have only JSON files in this repo, so you can simply import it
import aldrinMarkets from 'aldrin-registry/src/markets.json'
import aldrinTokens from 'aldrin-registry/src/tokens.json'
{
"name": "ACA/USDC",
"address": "FigeTPjS352wNWoxdPyyDGmbGydCDf2igq4meLYP7mX",
"programId": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",
"deprecated": false
}
{
"symbol": "ACA",
"address": "8BLiujyxu5gJajWBXoZQkwSsamdeHNKWQbu1ApAao8Ps",
"name": "Acacia",
"twitterLink": "https://twitter.com/GiraffeDAO__"
}
You can find a step-by-step guide below to add your market and token to the Aldrin registry:
-
To get started, fork the current repository by clicking the Fork button in the top right-hand corner of the screen.
-
Once forked, click on src then
markets.json
this will open up the file with all the markets. In the file view screen, click on the pencil icon to edit the file in the Github editor. Update the market file by adding your market using the same format as listed above. -
Repeat step 2 but this time update the
token.json
file and add your token using the same format as listed above.
Note Only new tokens need to be added to this list. You don't need to add information about tokens that already exist in this file.
-
Make sure to only have additions, any changes that modify and delete content will not be approved.
-
Once you have added your changes, scroll down and commit your changes to your branch.
-
After successfully committing, visit the original aldrin-registry repository and click on the Pull requests tab in the header section.
-
On the pull requests screen, click on the green New pull request button to start creating your new pull request.
-
On the new page, click on compare across forks to create a pull request from your forked repository.
-
In the head repository choose your new forked branch with the changes and click on the green Create pull request button.
-
That's it! You will be able to see your changes once the pull request is approved. ✨