update price chart/configs

This commit is contained in:
liangping 2021-11-18 16:45:28 +08:00
parent 2b0d691a10
commit bb87305e84
26 changed files with 30 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "akash-network", "chain_name": "akash-network",
"coingecko": "akash-network",
"api": "https://akash.api.ping.pub", "api": "https://akash.api.ping.pub",
"sdk_version": "0.41.3", "sdk_version": "0.41.3",
"addr_prefix": "akash", "addr_prefix": "akash",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "band-protocol", "chain_name": "band-protocol",
"coingecko": "band-protocol",
"api": "https://laozi1.bandchain.org/api", "api": "https://laozi1.bandchain.org/api",
"addr_prefix": "band", "addr_prefix": "band",
"logo": "https://dl.airtable.com/.attachments/472ae99a508e32b4439b416beddd4eb9/c5166f62/band-symbol-blue-bg.75a3ad91.svg", "logo": "https://dl.airtable.com/.attachments/472ae99a508e32b4439b416beddd4eb9/c5166f62/band-symbol-blue-bg.75a3ad91.svg",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "bitsong", "chain_name": "bitsong",
"coingecko": "bitsong",
"api": "https://lcd.explorebitsong.com", "api": "https://lcd.explorebitsong.com",
"addr_prefix": "bitsong", "addr_prefix": "bitsong",
"logo": "https://dl.airtable.com/.attachments/8016b71b69fb108f0ff33eb9af1c943f/f5fe4ef4/bitsong.svg", "logo": "https://dl.airtable.com/.attachments/8016b71b69fb108f0ff33eb9af1c943f/f5fe4ef4/bitsong.svg",

View File

@ -1,6 +1,7 @@
{ {
"chain_name": "certik", "chain_name": "certik",
"coingecko": "certik",
"api":"https://azuredragon.noopsbycertik.com", "api":"https://azuredragon.noopsbycertik.com",
"sdk_version": "0.42.9", "sdk_version": "0.42.9",
"addr_prefix": "certik", "addr_prefix": "certik",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "cosmos", "chain_name": "cosmos",
"coingecko": "cosmos",
"api":"https://cosmos.api.ping.pub", "api":"https://cosmos.api.ping.pub",
"sdk_version": "0.42.6", "sdk_version": "0.42.6",
"addr_prefix": "cosmos", "addr_prefix": "cosmos",

View File

@ -1,6 +1,7 @@
{ {
"chain_name": "crypto-com-chain", "chain_name": "crypto-com-chain",
"coingecko": "crypto-com-chain",
"api": "https://mainnet.crypto.org:1317", "api": "https://mainnet.crypto.org:1317",
"sdk_version": "0.39.2", "sdk_version": "0.39.2",
"addr_prefix": "cro", "addr_prefix": "cro",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "desmos", "chain_name": "desmos",
"coingecko": "",
"api": "https://api.mainnet.desmos.network", "api": "https://api.mainnet.desmos.network",
"sdk_version": "0.42.0", "sdk_version": "0.42.0",
"addr_prefix": "desmos", "addr_prefix": "desmos",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "e-money", "chain_name": "e-money",
"coingecko": "e-money",
"api": "https://emoney.validator.network/api", "api": "https://emoney.validator.network/api",
"addr_prefix": "emoney", "addr_prefix": "emoney",
"logo": "https://dl.airtable.com/.attachments/276e4d6de567b073a5e400240d7d83e9/9bb49806/yoR2r25W_400x400.jpg", "logo": "https://dl.airtable.com/.attachments/276e4d6de567b073a5e400240d7d83e9/9bb49806/yoR2r25W_400x400.jpg",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "injective", "chain_name": "injective",
"coingecko": "injective-protocol",
"api": "https://lcd.injective.network", "api": "https://lcd.injective.network",
"sdk_version": "0.42.4", "sdk_version": "0.42.4",
"addr_prefix": "inj", "addr_prefix": "inj",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "iris-network", "chain_name": "iris-network",
"coingecko": "iris-network",
"api": "https://iris.api.ping.pub", "api": "https://iris.api.ping.pub",
"sdk_version": "0.42.4", "sdk_version": "0.42.4",
"addr_prefix": "iaa", "addr_prefix": "iaa",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "juno", "chain_name": "juno",
"coingecko": "juno-network",
"api": "https://juno.api.ping.pub", "api": "https://juno.api.ping.pub",
"sdk_version": "0.42.4", "sdk_version": "0.42.4",
"addr_prefix": "juno", "addr_prefix": "juno",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "kava", "chain_name": "kava",
"coingecko": "kava",
"api": "https://api.data.kava.io", "api": "https://api.data.kava.io",
"sdk_version": "0.39.2", "sdk_version": "0.39.2",
"addr_prefix": "kava", "addr_prefix": "kava",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "kichain", "chain_name": "kichain",
"coingecko": "ki",
"api": "https://ki.api.ping.pub", "api": "https://ki.api.ping.pub",
"sdk_version": "0.42.10", "sdk_version": "0.42.10",
"addr_prefix": "ki", "addr_prefix": "ki",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "likecoin", "chain_name": "likecoin",
"coingecko": "likecoin",
"api": "https://mainnet-node.like.co", "api": "https://mainnet-node.like.co",
"sdk_version": "0.42.0", "sdk_version": "0.42.0",
"addr_prefix": "cosmos", "addr_prefix": "cosmos",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "okexchain", "chain_name": "okexchain",
"coingecko": "okexchain",
"api": "https://exchainrpc.okex.org/okexchain/v1", "api": "https://exchainrpc.okex.org/okexchain/v1",
"sdk_version": "0.39.2", "sdk_version": "0.39.2",
"addr_prefix": "ex", "addr_prefix": "ex",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "osmosis", "chain_name": "osmosis",
"coingecko": "osmosis",
"api": "https://lcd-osmosis.keplr.app", "api": "https://lcd-osmosis.keplr.app",
"sdk_version": "0.42.5", "sdk_version": "0.42.5",
"addr_prefix": "osmo", "addr_prefix": "osmo",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "persistence", "chain_name": "persistence",
"coingecko": "persistence",
"api": "https://rest.core.persistence.one", "api": "https://rest.core.persistence.one",
"sdk_version": "0.42.4", "sdk_version": "0.42.4",
"addr_prefix": "persistence", "addr_prefix": "persistence",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "regen", "chain_name": "regen",
"coingecko": "regen",
"api": "https://regen.api.ping.pub", "api": "https://regen.api.ping.pub",
"sdk_version": "0.42.4", "sdk_version": "0.42.4",
"addr_prefix": "regen", "addr_prefix": "regen",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "secret", "chain_name": "secret",
"coingecko": "secret",
"api": "https://api.scrt.network", "api": "https://api.scrt.network",
"sdk_version": "0.33.8", "sdk_version": "0.33.8",
"addr_prefix": "secret", "addr_prefix": "secret",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "sentinel", "chain_name": "sentinel",
"coingecko": "sentinel",
"api": "https://lcd.sentinel.co", "api": "https://lcd.sentinel.co",
"sdk_version": "0.42.6", "sdk_version": "0.42.6",
"addr_prefix": "sent", "addr_prefix": "sent",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "sifchain", "chain_name": "sifchain",
"coingecko": "sifchain",
"api": "https://api.sifchain.finance", "api": "https://api.sifchain.finance",
"sdk_version": "0.42.6", "sdk_version": "0.42.6",
"addr_prefix": "sif", "addr_prefix": "sif",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "stargaze", "chain_name": "stargaze",
"coingecko": "stargaze-protocol",
"api": "https://rest.stargaze.publicawesome.dev", "api": "https://rest.stargaze.publicawesome.dev",
"sdk_version": "0.44.3", "sdk_version": "0.44.3",
"addr_prefix": "stars", "addr_prefix": "stars",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "starname", "chain_name": "starname",
"coingecko": "starname",
"api": "https://api.iov-mainnet-ibc.iov.one", "api": "https://api.iov-mainnet-ibc.iov.one",
"sdk_version": "0.42.6", "sdk_version": "0.42.6",
"addr_prefix": "star", "addr_prefix": "star",

View File

@ -1,5 +1,6 @@
{ {
"chain_name": "terra-luna", "chain_name": "terra-luna",
"coingecko": "terra-luna",
"api": "https://fcd.terra.dev", "api": "https://fcd.terra.dev",
"sdk_version": "0.44.2", "sdk_version": "0.44.2",
"addr_prefix": "terra", "addr_prefix": "terra",

View File

@ -1,6 +1,7 @@
{ {
"chain_name": "vidulum", "chain_name": "vidulum",
"api": "https://mainnet-lcd.vidulum.app/", "coingecko": "vidulum",
"api": "https://mainnet-lcd.vidulum.app",
"sdk_version": "0.44.0", "sdk_version": "0.44.0",
"addr_prefix": "vdl", "addr_prefix": "vdl",
"logo": "/logos/VDL.png" "logo": "/logos/VDL.png"

View File

@ -355,7 +355,10 @@ export default class ChainFetch {
async getMarketChart(days = 14, coin = null) { async getMarketChart(days = 14, coin = null) {
const conf = this.getSelectedConfig() const conf = this.getSelectedConfig()
const currency = getUserCurrency() const currency = getUserCurrency()
return ChainFetch.fetch(' https://api.coingecko.com', `/api/v3/coins/${coin || conf.chain_name}/market_chart?vs_currency=${currency}&days=${days}`) if (conf.coingecko && conf.coingecko.length > 0) {
return ChainFetch.fetch(' https://api.coingecko.com', `/api/v3/coins/${coin || conf.coingecko}/market_chart?vs_currency=${currency}&days=${days}`)
}
return null
} }
// CoinMarketCap // CoinMarketCap