bitsongofficial / bitsongjs

A series of useful Javascript libraries for BitSong
Apache License 2.0
4 stars 2 forks source link

Create @bitsongjs/fantoken package #49

Open DavideSegullo opened 1 year ago

DavideSegullo commented 1 year ago

We should create a package to generate the fantoken metadata. Currently on sinfonia-ui we use files saved on github for configurations related to fantokens, I would suggest moving them to IPFS.

This would allow different applications to easily access the fantoken information.

For example we can move this piece of data from assetlists to IPFS:

{
  "logos": {
    "png": "https://raw.githubusercontent.com/bitsongofficial/assetlists/main/logos/adam.jpeg"
  },
  "name": "Adam Clay",
  "symbol": "CLAY",
  "coinLookup": [
    {
      "viewDenom": "CLAY",
      "chainDenom": "clay",
      "fantokenDenom": "ft2D8E7041556CE93E1EFD66C07C45D551A6AAAE09",
      "chainToViewConversionFactor": 0.000001
    }
  ],
  "ibc": {
    "osmosis": {
      "sourceChannelId": "channel-73",
      "destChannelId": "channel-0",
      "destDenom": "ibc/7ABF696369EFB3387DF22B6A24204459FE5EFD010220E8E5618DC49DB877047B",
      "sourceDenom": "ubtsg"
    }
  },
  "routes": {
    "poolID": "751"
  },
  "ibcEnabled": true,
  "fantoken": true,
  "socials": {
    "mailchimpID": "deaadbfbd5",
    "links": [
      {
        "type": "facebook",
        "url": "https://www.facebook.com/adamclaymusic"
      },
      {
        "type": "instagram",
        "url": "https://www.instagram.com/adamclayreal"
      },
      {
        "type": "twitter",
        "url": "https://twitter.com/adamclaymusic"
      },
      {
        "type": "spotify",
        "url": "https://open.spotify.com/artist/19jXtZ3WctjL00MMVqYrv8?si=Q_TJsXqORs6WSkQIV4F9DQ&nd=1"
      },
      {
        "type": "website",
        "url": "https://www.adamclay.com/"
      },
      {
        "type": "youtube",
        "url": "https://www.youtube.com/channel/UCwnnlm9IXX6L4YjFSJN2GLA"
      }
    ]
  },
  "media": {
    "hero": "https://raw.githubusercontent.com/bitsongofficial/assetlists/main/fantokens/adam-clay/media/adam-clay-hero.png"
  },
  "airdrop": {
    "url": "https://bitsong.io/airdrop/"
  },
  "whitepaper": {
    "url": "https://bitsong.io/fantokens/adam-clay"
  },
  "metadata": {
    "tags": [
      "artist"
    ]
  }
}