question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support newly created tokens on the wallet

See original GitHub issue

I 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. image

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: 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:closed
  • Created 10 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
zone117xcommented, Nov 16, 2022

As the mechanism for the Stackswap Token Launchpad is to pre-deploy these contracts before changing the metadata for the launched tokens

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.

2reactions
kjchiang3commented, Nov 15, 2022

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:

  1. update the token metadata manually whenever a new token is launched from the Launchpad by keeping a separate list which Hiro can pull from
  2. refresh the token metadata source periodically so that the list can be accurately reflected at least by the end of the day/ few days/ week, whatever the time period is determined to be.
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add Your Custom Tokens in MetaMask - ConsenSys
Open your in-app browser · Go to Etherscan · Search for your custom token · Scroll down and retrieve the token's contract address...
Read more >
Why would you create a cryptocurrency token? - Cointelegraph
Create a new cryptocurrency on an existing blockchain. Another option is to create a new cryptocurrency token without first creating or modifying a...
Read more >
How do I add unsupported tokens to Freewallet?
Adding new tokens to Freewallet is an elaborate technical procedure that requires lots of time and human resources. The time frame for starting...
Read more >
Create Your Own Token In 5 Minutes | Bitbond
Step 1: Supported wallet. To be able to create tokens using Bitbond's token tool, you need first make sure that you own one...
Read more >
Tokens Import - Crypto.com Help Center
We update the list and add new tokens on a regular basis. You can add an unlisted token in the DeFi Wallet app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found