Support newly created tokens on the wallet
See original GitHub issueI have gotten two reports from users who used the launchpad on stackswap.org asking for support for their token.
Token 1: Beecoin (BCON)
It looks like there are three coins with the same name on the launchpad so I will ask the user which one they will be using for their project.
Additionally they would like to see details for the derived token (I believe it is the related LP token): STSW-BCON
Token 2: parkplanb (PPB)
Token contract: SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.tokensoft-token-v4ked04n8a2
get-token-uri
response: (ok (some u"https://stackswap-launchpad.s3.amazonaws.com/36fd46f4-5b9b-4403-af43-3425e99b5d16.json"))
‘get-symbol’ response: PPB
Contents of .json
{"title":"Asset Metadata","type":"object","properties":{"name":{"type":"string","description":"parkplanb"},"description":{"type":"string","description":"Great New Token"},"image":{"type":"string","description":"http://s3-us-east-2.amazonaws.com/stackswap-launchpad/8eb7158c-c0e5-47bf-8884-9a3e8cb07928.png"},"homepage":{"type":"string","description":"https://your.homepage.com"}}}
provided logo image:
Are these responses as expected or in accordance with the standards we expect them to be in? What would be needed to get the logo’s and token tickers in the wallet?
Do we want something like, adding new tokens, to be automated or otherwise have a process to get details for new tokens added to the Hiro wallet?
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
This is not a supported workflow for the API’s token metadata indexing. Right now, the metadata is fetched as soon as the API detects a new SIP-010 contract deployment. The historical context relates to SIP-010 lacking any kind of metadata update notification mechanism.
A new SIP tackling this issue is activation-in-progress: https://github.com/stacksgov/sips/pull/72, and a new indexing service is implemented on top of this standard: https://github.com/hirosystems/token-metadata-service. It’s not yet deployed, but it’s targeted for deployment this quarter.
cc @rafaelcr who’s been leading this project.
Hey there, James from Stackswap here.
I believe the issue to be this:
As the mechanism for the Stackswap Token Launchpad is to pre-deploy these contracts before changing the metadata for the launched tokens, the only issue is to update the list from which Hiro pulls token data from. This wasn’t an issue before the big update from sometime this past summer.
I believe there are 2 solutions: