Skip to content

bigchickendefi/aldrin-registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aldrin-registry

How to install 📟

  1. Add new dependency in package.json

    "aldrin-registry": "git+https://github.com/aldrin-exchange/aldrin-registry.git"

  2. Install it using yarn

How to integrate in project 🌞

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'

Market format

{

"name": "ACA/USDC",

"address": "FigeTPjS352wNWoxdPyyDGmbGydCDf2igq4meLYP7mX",

"programId": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",

"deprecated": false

}

Token format

{

"symbol": "ACA",

"address": "8BLiujyxu5gJajWBXoZQkwSsamdeHNKWQbu1ApAao8Ps",

"name": "Acacia",

"twitterLink": "https://twitter.com/GiraffeDAO__"

}

Step by Step Guide to add new markets 🍀

You can find a step-by-step guide below to add your market and token to the Aldrin registry:

  1. To get started, fork the current repository by clicking the Fork button in the top right-hand corner of the screen.

  2. 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.

  3. 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.

  1. Make sure to only have additions, any changes that modify and delete content will not be approved.

  2. Once you have added your changes, scroll down and commit your changes to your branch.

  3. After successfully committing, visit the original aldrin-registry repository and click on the Pull requests tab in the header section.

  4. On the pull requests screen, click on the green New pull request button to start creating your new pull request.

  5. On the new page, click on compare across forks to create a pull request from your forked repository.

  6. In the head repository choose your new forked branch with the changes and click on the green Create pull request button.

  7. That's it! You will be able to see your changes once the pull request is approved. ✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%