Coder Social home page Coder Social logo

token-list's Introduction


🚨🚨🚨This repository is EOL 🚨🚨🚨

Read below for instructions on new token metadata flow


As of June 20th, this repository will be archived and will receive no more updates. The repository will be set to read-only and the npm package will still exist at @solana/spl-token-registry.

Adding a New Token

You can use one of two tools at the time of writing:

  1. Strata Protocol Token Launchpad
  2. Token Creator Demo

All new token metadata will be added using Metaplex Fungible Token Metadata. The steps to add new Fungible Token Metadata are as follows:

  1. Use CreateMetadataV2 instruction from Metaplex token metadata to create new metadata for token.
  2. Make sure you use the correct format for the token metadata.
  3. You must have mint authority in order to create or update the metadata

The token metadata for Metaplex Metadata Schema is in the following format:

{
  "name": "TOKEN_NAME", 
  "symbol": "TOKEN_SYMBOL",
  "uri": "TOKEN_URI",
  "sellerFeeBasisPoints": 0,
  "creators": null,
  "collection": null,
  "uses": null
}

The TOKEN_URI must point to a file with the following format:

{
  "name": "TOKEN_NAME",
  "symbol": "TOKEN_SYMBOL",
  "description": "TOKEN_DESC",
  "image": "TOKEN_IMAGE_URL"
}

Where TOKEN_IMAGE_URL is the image url.

An example of the TOKEN_URI: https://token-creator-lac.vercel.app/token_metadata.json

Which resolves to:

{
  "name": "A test token",
  "symbol": "TEST",
  "description": "Fully for testing purposes only",
  "image": "https://token-creator-lac.vercel.app/token_image.png"
}

Updating Token Metadata

To update token metadata you must use createUpdateMetadataAccountV2Instruction in @metaplex-foundation/js in order to update an existing token's metadata.

While updating, you provide the same details as when creating.

Tools for Adding/Updating/Migrating

Update/migrate token metadata using Strata Protocol update token tool.

A tutorial for adding/updating metadata can be found at the Token-Creator demo.

Reading Legacy Token-list

@solana/spl-token-registry

npm GitHub license

Solana Token Registry is a package that allows application to query for list of tokens. The JSON schema for the tokens includes: chainId, address, name, decimals, symbol, logoURI (optional), tags (optional), and custom extensions metadata.

Installation

npm install @solana/spl-token-registry
yarn add @solana/spl-token-registry

Examples

Query available tokens

new TokenListProvider().resolve().then((tokens) => {
  const tokenList = tokens.filterByClusterSlug('mainnet-beta').getList();
  console.log(tokenList);
});

Render icon for token in React

import React, { useEffect, useState } from 'react';
import { TokenListProvider, TokenInfo } from '@solana/spl-token-registry';


export const Icon = (props: { mint: string }) => {
  const [tokenMap, setTokenMap] = useState<Map<string, TokenInfo>>(new Map());

  useEffect(() => {
    new TokenListProvider().resolve().then(tokens => {
      const tokenList = tokens.filterByChainId(ENV.MainnetBeta).getList();

      setTokenMap(tokenList.reduce((map, item) => {
        map.set(item.address, item);
        return map;
      },new Map()));
    });
  }, [setTokenMap]);

  const token = tokenMap.get(props.mint);
  if (!token || !token.logoURI) return null;

  return (<img src={token.logoURI} />);

Disclaimer

All claims, content, designs, algorithms, estimates, roadmaps, specifications, and performance measurements described in this project are done with the Solana Foundation's ("SF") good faith efforts. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore nothing in this project constitutes a solicitation for investment.

Any content produced by SF or developer resources that SF provides, are for educational and inspiration purposes only. SF does not encourage, induce or sanction the deployment, integration or use of any such applications (including the code comprising the Solana blockchain protocol) in violation of applicable laws or regulations and hereby prohibits any such deployment, integration or use. This includes use of any such applications by the reader (a) in violation of export control or sanctions laws of the United States or any other applicable jurisdiction, (b) if the reader is located in or ordinarily resident in a country or territory subject to comprehensive sanctions administered by the U.S. Office of Foreign Assets Control (OFAC), or (c) if the reader is or is working on behalf of a Specially Designated National (SDN) or a person subject to similar blocking or denied party prohibitions.

The reader should be aware that U.S. export control and sanctions laws prohibit U.S. persons (and other persons that are subject to such laws) from transacting with persons in certain countries and territories or that are on the SDN list. As a project based primarily on open-source software, it is possible that such sanctioned persons may nevertheless bypass prohibitions, obtain the code comprising the Solana blockchain protocol (or other project code or applications) and deploy, integrate, or otherwise use it. Accordingly, there is a risk to individuals that other persons using the Solana blockchain protocol may be sanctioned persons and that transactions with such persons would be a violation of U.S. export controls and sanctions law. This risk applies to individuals, organizations, and other ecosystem participants that deploy, integrate, or use the Solana blockchain protocol code directly (e.g., as a node operator), and individuals that transact on the Solana blockchain through light clients, third party interfaces, and/or wallet software.

token-list's People

Contributors

andbandu avatar arthurpaivat avatar bartosz-lipinski avatar certus-bot avatar cheesesoda avatar exogenesys avatar federaa avatar fiverr-coin-hunter avatar fullmoonminingco avatar gabrielhicks avatar github-actions[bot] avatar impozzible avatar keone avatar lunachoww avatar macalinao avatar mcgicworks avatar muccurly avatar numisman avatar ojshua avatar rmshea avatar shadow111 avatar sjurea avatar solanatokenmerger avatar soldev81 avatar solmergeai avatar solvent-token-utility avatar spacemandev-git avatar token-list-automerger[bot] avatar ysavchenko avatar zakimzf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

token-list's Issues

changing token name Urgent

  • I'm submitting a ...

    [ ] feature request

  • Summary

Hello

`"chainId": 101,
"address": "UgMdvGuY2HNMmCJQdY6aGty1yDxHBxm9Q9KJVefVjwJ",
"symbol": "W",
"name": "W systems",
"decimals": 2,
"logoURI": "https://raw.githubusercontent.com/WBORSA/token-list/main/assets/mainnet/UgMdvGuY2HNMmCJQdY6aGty1yDxHBxm9Q9KJVefVjwJ/W%20Coin.png",
"tags": [],
"extensions": {
"website": "https://app.w.systems/"

can you change my token name to W systems i tried many times i cant says Error: Pull request should not contain any deletions.
`

SPL Token list submission code merged incorrectly

  • I'm submitting a ...
    [ 1 ] bug report

I have merged a request for my created token with the commit id as below

[https://github.com//pull/891/commits/ce8483b4619e2c528223e81f660f58ef384dea3d](
Commit Submitted)

I forked and made a pull request to merge my token name on main chain, I have also given correct details of the coin. but my code is being merged into extension details at

[https://github.com/solana-labs/token-list/blob/b49c9aa2e15a35d2637a8dbb6d60803c4268df6c/src/tokens/solana.tokenlist.json#L13579
](Commit line Nova Token Added from Frolic team)

If possible correct my merge code so that I can see the token details on main chain wallets. It will be very helpful for me

Solapad is not exist anymore

  • I'm submitting a ...
    [x] feature request

  • Summary

The project Solapad has gone, I don't know the detail but I think it is better to mark it as something like "deprecated" or "terminated" for people who don't really know what has happened.

The other option is to delete it from the token-list, but SOLA will become an unknown token, which may cause confusion for holders, so I personally don't prefer this way.

Here is the reference:

Frequent merges with invalid coinGeckoId's

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Example: https://github.com/solana-labs/token-list/blob/main/src/tokens/solana.tokenlist.json#L3684
While the real coinGeckoId is not the value from the URL but the one listed on the coinGeckoPage as API id https://www.coingecko.com/en/coins/smartkey
--> skey-network

Suggestion: Validate PR's coinGeckoId with an automated job by querying the CoinGecko API.

Support SOL, SRM and RAY denominated token markets

  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Such markets have significant TVL, but are not listed due to lack of a spec. More tags like serumV3Sol, serumV3Srm and serumV3Ray should be added. Having it on the official list would be better than managing private records.

Screenshot of SRM denominated markets on Raydium DEX:
image

Update solana.tokenlist.json #1341

hi I add new token and I want to change the symbol from WESH to WEHO how I can do this
the problem we fine another token when this symbol WESHMOON (WESH) and our WeShare (WESH)

all of my sola token in phantom disappeared, but no one helping me

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Do a merge in solana.tokenlist.json

Please do a depletion with my
Pull requests "Update HAMS #1541" because I do not pass the "Automerge / auto-merge (pull_request_target)" check. It says you can't delete when merging, and I'm not deleting anything.

Issue adding SLYM Coin

*I submitted a Pull Request (about 6 weeks ago now) to add a new coin, logo and related info to the network.

  • bug report
    [ ] feature request
    [X] question about the decisions made in the repository
    [ ] question about how to use this project

My initial pull request was rejected. I deleted it, started the process again and believe i did everything correctly on my second attempt. The PR still hasn't been responded to, it's been 22 days since my second submission.

Is this normal? If not, how can i proceed?

Thanks in advance

Update solana.tokenlist.json #1341

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

I can't change SOLPAY logo url.

  • I'm submitting a ...
    [X ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [X ] question about how to use this project

  • Summary
    i'm trying to update the SolPay token url logo but automerge gives me error of "deleting".

can you please update the token logo url to this new one:
https://github.com/solana-labs/token-list/blob/main/assets/mainnet/zwqe1Nd4eiWyCcqdo4FgCq7LYZHdSeGKKudv6RwiAEn/logo.png

token name: SOLPAY
token: zwqe1Nd4eiWyCcqdo4FgCq7LYZHdSeGKKudv6RwiAEn

  • Other information

Could we please either delete the .vscode folder or fix the formatting of solana.tokenlist.json

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

The prettier autoformatter config in the .vscode folder results in the unwanted modification of hundreds of improperly formatted lines upon save in vscode

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Wrong logo link with Automerge

  • I'm submitting a ...
    [x ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

during the merge, the link to the logo is created with
https://raw.githubusercontent.com/solana-labs/token-list/main/assets/assets/J5gLhk6mmQ4PSoir1Ufh8JY2ytEHA93YupzYiTFVCgcL/logo.png
instead of
https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/J5gLhk6mmQ4PSoir1Ufh8JY2ytEHA93YupzYiTFVCgcL/logo.png
Logo is not displaying on the solana explorer.

How to update tokens' info?

  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    How to update data/info about a token if the automerge bot doesn't allow deletions?

Thank you

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Please check this PR #1395

add Sator_Logo.png

  • I'm submitting a ...
    Sator_Logo

  • Summary

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

COPE transactions (for the new mint) don't show up in Solana Explorer history

  • I'm submitting a ...
    [ ] bug report

  • Summary
    As I said in title. The history of COPE just show up in the tokens history but not in the main history tab.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
    New COPE Public Key: 8HGyAAB1yoM1ttS7pXjHMa3dukTFGQggnFFH3hJZgzQh

Error in an accepted Push request

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [x] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Hi there, I have made a pull request to add the "Samoyed Coin" token, and it was accepted, thank you ! However, I didn't put a direct link for the image of token, so the image does not appear in the Solana Explorer, is it possible to update the logo link in solana.tokenlist.json with this one please ? https://i.ibb.co/tLGpvNf/samo.png

Also, I don't know if it's linked but, but nothing appear on the Solana Explorer https://explorer.solana.com/address/7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU/largest?cluster=mainnet-beta

The name of the token should appear right ? Only the logo was not the good one in the PR

Thank you in advance for your help ! :)

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

PR feedback

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary
    What's the criteria for merging PRs to add tokens to your list?

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

#932

two same tokens on the bottom of list

  • I'm submitting a ...
    [ ] bug report

  • Summary
    Dear friend,
    I find that there are two same solaPAD tokens on the bottom of list, please see this link:
    https://github.com/solana-labs/token-list/blob/main/src/tokens/solana.tokenlist.json

  • Other information
    and why I found this, because I have been called to solve conflict, when I checked that issue I found that my code have been transformed and my token SBFC have been covered with two tokens both named solaPAD. Pls check this issue, thanks.

Add renBTC to list of tokens

  • I'm submitting a ...
    [ ] bug report
    [X] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Add renBTC to the list of tokens. When using renBTC to wrap bitcoins to solana it creates a token account with address CDJWUqTcYTVAKXAVXoQZFes5JUFc7owSeq7eMQcDSbo5. This address does not show up in solana explorer as renBTC.

  • Other information

Check always fails: Error: Pull request should not contain any deletions.

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary
    I'm having troublewith my Pull Request. It's set to automerge, but fails one automated test: "Get Changes" -> Error: Pull request should not contain any deletions.
    https://github.com/solana-labs/token-list/pull/1106/checks

The line is not deleted by me, it simply happens when you add a token. Git seems to thinks that the last closing bracket was deleted, but I never touched it, it was just of course moved a bit down when I added my token.
I already tried making a completely new PR, but it's the same then.
image

Another PR from me from last week merged successfully, so I think it's maybe a new bug introduced since then?

Other teams seem to have that problem, too:
https://github.com/solana-labs/token-list/pull/1183/checks?check_run_id=3706929565
https://github.com/solana-labs/token-list/pull/1371/checks?check_run_id=3763304882
https://github.com/solana-labs/token-list/pull/1363/checks?check_run_id=3761079494
...

Who approves the pull requests?

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [x] question about the decisions made in the repository
    [ ] question about how to use this project

Who approves pull request for the new token list? Is this automated? Or a real person or people approving it?

Critique: Token naming is too centralized.

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [x] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Token naming in Solana depends on an off-chain github repository, this somewhat centralize part of token creation, this can prevent people from creating tokens with the same name (personification) but can also lead to censorship. I don't know if this was already debated, but I think this could be given some thought.

Have DexLabs add tokenlist updates into their MintingLab. Zero support on Discord.

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Add duplicate check to CI

  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    If a duplicate entry makes its way into the token list, this can cause issues for projects using React where keys are no longer unique.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Automate token listing with a GitHub bot

  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Current way of manual approvals is a bottleneck, but PR reviews are necessary to ensure that others' data is not tampered with. A GitHub bot can automate this in a secure way:

  1. Use Google Forms to accept token listing data
  2. A webhook call is made to the GitHub bot when form is submitted. The bot has write permission to the repo. It writes adds a formatted object into solana.tokenlist.json. Since write format is fixed and the bot keys are hidden on a server, there's no scope of tampering.
    {
      "chainId": 101,
      "address": "CJR5HtmXzpCD8Ro28zyZyLjz1wtrCsu7bEwC4f8ZjRCD",
      "symbol": "GEKZ",
      "name": "Gekz Arena",
      "decimals": 9,
      "logoURI": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/CJR5HtmXzpCD8Ro28zyZyLjz1wtrCsu7bEwC4f8ZjRCD/logo.png",
      "tags": [],
      "extensions": {
        "website": "https://www.gekzarena.com/",
        "twitter": "https://twitter.com/gekzarena",
        "discord": "https://discord.gg/Mh29ZdQCGC"
      }

Whitelist API for Tokens

  • I'm submitting a ...
    [ ] bug report
    [X] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    If I plan on creating derivative tokens... aka stake token per epoch - this seems woefully inefficient as I am going to be posting every epoch to add tokens.
    I suggest possibly a whitelist based API - sign-up requires code review to make sure it's done in line with guidance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.