@aladas-org/cryptocalc
Version:
Crypto Calculator
114 lines (105 loc) • 3.94 kB
JavaScript
// =========================================================================================
// =============================== const_blockchain_csr.js ===============================
// =========================================================================================
"use strict";
// cf. capitalization order on https://coinmarketcap.com/
// BUT Ethereum in First place because of the "ecosystem popularity"l
const NULL_COIN = "Null-COIN";
const CRYPTO_NET = "crypto_net";
const MAINNET = "mainnet";
const TESTNET = "testnet";
const ETHEREUM = "Ethereum";
const BITCOIN = "Bitcoin";
//const BINANCE = "Binance";
const SOLANA = "Solana";
const CARDANO = "Cardano";
const ADA_PURPOSE = "1852";
const RIPPLE = "Ripple";
const AVALANCHE = "Avalanche";
const DOGECOIN = "DogeCoin";
const TRON = "TRON";
const BITCOIN_CASH = "Bitcoin Cash";
const LITECOIN = "LiteCoin";
const DASH = "Dash";
const EOS = "EOS";
const FIRO = "Firo";
const ZCASH = "ZCASH";
// NB: [NULL_COIN] syntax means NULL_COIN const is interpreted as its value ("None")
// else it would be interpreted a the const name "NULL_COIN" 8((
const COIN_ABBREVIATIONS = {
[] : "Null-Coin",
[] : "ETH",
[] : "BTC",
// [BINANCE] : "BNB",
[] : "SOL",
[] : "ADA",
[] : "XRP",
[] : "AVAX",
[] : "DOGE",
[] : "TRX",
[] : "BCH",
[] : "LTC",
[] : "DASH",
[] : "EOS",
[] : "FIRO",
[] : "ZEC"
}; // COIN_ABBREVIATIONS
// coin_types: https://github.com/satoshilabs/slips/blob/master/slip-0044.md
const COIN_TYPES = {
[] : -1,
[] : 0,
[] : 1,
[] : 2,
[] : 3,
[] : 5,
[] : 7,
[] : 60,
[] : 128,
[] : 133,
[] : 136,
[] : 144,
[] : 145,
[] : 194,
[] : 195,
[] : 313,
[] : 434,
[] : 461,
[] : 501,
[] : 714,
[] : 966,
[] : 1729,
[] : 1815,
[] : 9000
}; // COIN_TYPES
const FAUCET_URLs = {
[] : "Null-URL",
[] : "https://mumbaifaucet.com/",
[] : "https://coinfaucet.eu/en/btc-testnet/",
// [BINANCE] : "Null-URL",
[] : "https://solfaucet.com/",
[] : "https://docs.cardano.org/cardano-testnet/tools/faucet/",
[] : "Null-URL",
[] : "Null-URL",
[] : "https://testnet-faucet.com/doge-testnet/",
[] : "Null-URL",
[] : "https://testnet-faucet.com/ltc-testnet/",
[] : "Null-URL",
[] : "Null-URL"
}; // FAUCET_URLs
const MAINNET_EXPLORER_URLs = {
[]: "Null-URL",
[]: "https://etherscan.io/address/",
[]: "https://www.blockchain.com/explorer/addresses/btc/",
// [BINANCE]: "Null-URL",
[]: "https://explorer.solana.com/address/",
[]: "https://blockchair.com/fr/cardano/address/",
[]: "https://snowtrace.io/address/",
[]: "https://dogechain.info/address/",
[]: "https://tronscan.org/#/address/",
[]: "https://livenet.xrpl.org/accounts/",
[]: "Null-URL",
[]: "https://explorer.firo.org/address/",
[]: "Null-URL",
[]: "https://live.blockcypher.com/ltc/address/",
[]: "https://explorer.dash.org/insight/address/"
}; // MAINNET_EXPLORER_URLs