Give up display tokens in the faucet
See original GitHub issueThe 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since both of our current testsnets use CosmJS 0.22.x, we can finish this now on 0.23 or 0.24.
I guess #407 didn’t actually close this as it’s only the intermediate step.