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.

Give up display tokens in the faucet

See original GitHub issue

The faucet is the only place in CosmJS where we still have the BCP token tickers supported (e.g. request SHELL instead of ushell). This causes a lot of effort to get right in the faucet and it also seems to confuse testnet users trying to request the base denom.

What about removing

export interface BankTokenMeta {
  readonly denom: string;
  /**
   * The token ticker symbol, e.g. ATOM or ETH.
   */
  readonly tickerSymbol: string;
  /**
   * The number of fractional digits the token supports.
   *
   * A quantity is expressed as atomic units. 10^fractionalDigits of those
   * atomic units make up 1 token.
   *
   * E.g. in Ethereum 10^18 wei are 1 ETH and from the quantity 123000000000000000000
   * the last 18 digits are the fractional part and the rest the wole part.
   */
  readonly fractionalDigits: number;
}

from the faucet entirely and leave it up to UI applications to convert between the base denom and a display token (where the logic needs to exist anyways for all the other APIs).

So instead of

JSON=$(jq -n --arg addr $(coral keys show -a fred) '{"ticker":"COSM", "address":$addr}') \
  && curl -X POST --header "Content-Type: application/json" --data "$JSON" https://faucet.coralnet.cosmwasm.com/credit

you’d

JSON=$(jq -n --arg addr $(coral keys show -a fred) '{"denom":"ucosm", "address":$addr}') \
  && curl -X POST --header "Content-Type: application/json" --data "$JSON" https://faucet.coralnet.cosmwasm.com/credit

@ethanfrey @orkunkl

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
webmaster128commented, Sep 8, 2020

Since both of our current testsnets use CosmJS 0.22.x, we can finish this now on 0.23 or 0.24.

1reaction
willclarktechcommented, Aug 19, 2020

I guess #407 didn’t actually close this as it’s only the intermediate step.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a Crypto Faucet and How do They Work? - Shardeum
Pipeflare faucet is a platform that supports ZEC tokens. The users only have to create their account and complete one captcha every day,...
Read more >
How to get free MATIC: Use a faucet! - YouTube
A cryptocurrency faucet : is a website that gives away small amounts of crypto ... It's not a faucet, but is a way...
Read more >
Ethereum Dapp Crash Course: Make an ERC20 token faucet ...
It will give us a list of addresses loaded up with test eth. Leave this terminal window running and open a new one...
Read more >
Live Miner Token (LMT) - Crypto Faucet
Live Miner Token. Start generating LMT today to enter the world of cryptocurrencies without the need for specific hardware or technical knowledge.
Read more >
How to add Tokens to the test network Metamask?
Today we will learn how to add Test tokens or Test Faucets in Metamask Wallet. First Stage − Setup Metamask Wallet Account. Step...
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