forked from cerc-io/cosmos-explorer
update api version
This commit is contained in:
parent
7a3c64981c
commit
eec873c966
@ -14,5 +14,5 @@
|
|||||||
"logo": "/logos/band-protocol.svg"
|
"logo": "/logos/band-protocol.svg"
|
||||||
}],
|
}],
|
||||||
"logo": "/logos/band-protocol.svg",
|
"logo": "/logos/band-protocol.svg",
|
||||||
"sdk_version": "0.44.0"
|
"sdk_version": "0.45.0"
|
||||||
}
|
}
|
@ -8,7 +8,7 @@
|
|||||||
"coin_type": "639",
|
"coin_type": "639",
|
||||||
"min_tx_fee": "5000",
|
"min_tx_fee": "5000",
|
||||||
"logo": "/logos/bitsong.svg",
|
"logo": "/logos/bitsong.svg",
|
||||||
"sdk_version": "0.42.0",
|
"sdk_version": "0.45.0",
|
||||||
"assets": [{
|
"assets": [{
|
||||||
"base": "ubtsg",
|
"base": "ubtsg",
|
||||||
"symbol": "BTSG",
|
"symbol": "BTSG",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"api": ["https://api.mainnet.desmos.network", "https://desmos.api.ping.pub"],
|
"api": ["https://api.mainnet.desmos.network", "https://desmos.api.ping.pub"],
|
||||||
"rpc": ["https://rpc.mainnet.desmos.network:443", "https://rpc.mainnet.desmos.network:443"],
|
"rpc": ["https://rpc.mainnet.desmos.network:443", "https://rpc.mainnet.desmos.network:443"],
|
||||||
"snapshot_provider": "05d15d195cd40a1d20f937a87a63fbb3ec1a4b80@desmos.rpc.ping.pub:26656",
|
"snapshot_provider": "05d15d195cd40a1d20f937a87a63fbb3ec1a4b80@desmos.rpc.ping.pub:26656",
|
||||||
"sdk_version": "0.42.0",
|
"sdk_version": "0.45.0",
|
||||||
"coin_type": "852",
|
"coin_type": "852",
|
||||||
"min_tx_fee": "3000",
|
"min_tx_fee": "3000",
|
||||||
"addr_prefix": "desmos",
|
"addr_prefix": "desmos",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"api": "https://api.genesisl1.org",
|
"api": "https://api.genesisl1.org",
|
||||||
"rpc": [],
|
"rpc": [],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.42.4",
|
"sdk_version": "0.45.4",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "3000000000000000",
|
"min_tx_fee": "3000000000000000",
|
||||||
"addr_prefix": "genesis",
|
"addr_prefix": "genesis",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"api": "https://iris.api.ping.pub",
|
"api": "https://iris.api.ping.pub",
|
||||||
"rpc": ["http://34.82.96.8:26657","http://34.77.68.145:26657"],
|
"rpc": ["http://34.82.96.8:26657","http://34.77.68.145:26657"],
|
||||||
"snapshot_provider": "fcc1d9bc43163b20ce5163cf41a302b33f25375f@34.82.96.8:26656",
|
"snapshot_provider": "fcc1d9bc43163b20ce5163cf41a302b33f25375f@34.82.96.8:26656",
|
||||||
"sdk_version": "0.42.4",
|
"sdk_version": "0.45.4",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "40000",
|
"min_tx_fee": "40000",
|
||||||
"addr_prefix": "iaa",
|
"addr_prefix": "iaa",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"api": "https://mainnet-node.like.co",
|
"api": "https://mainnet-node.like.co",
|
||||||
"rpc": ["https://mainnet-node.like.co:443/rpc/", "https://mainnet-node.like.co:443/rpc/"],
|
"rpc": ["https://mainnet-node.like.co:443/rpc/", "https://mainnet-node.like.co:443/rpc/"],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.42.0",
|
"sdk_version": "0.45.0",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "3000",
|
"min_tx_fee": "3000",
|
||||||
"addr_prefix": "cosmos",
|
"addr_prefix": "cosmos",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"api": ["https://rizon.api.ping.pub"],
|
"api": ["https://rizon.api.ping.pub"],
|
||||||
"rpc": ["http://rizon.rpc.ping.pub:26657", "http://seed-1.mainnet.rizon.world:26657"],
|
"rpc": ["http://rizon.rpc.ping.pub:26657", "http://seed-1.mainnet.rizon.world:26657"],
|
||||||
"snapshot_provider": "66083d10fc1b79c584362dc266f87836455a9169@rizon.rpc.ping.pub:26656",
|
"snapshot_provider": "66083d10fc1b79c584362dc266f87836455a9169@rizon.rpc.ping.pub:26656",
|
||||||
"sdk_version": "v0.42.9",
|
"sdk_version": "v0.45.0",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "8000",
|
"min_tx_fee": "8000",
|
||||||
"assets": [{
|
"assets": [{
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"api": "https://lcd.sentinel.co",
|
"api": "https://lcd.sentinel.co",
|
||||||
"rpc": ["https://rpc-sentinel.keplr.app:443", "https://rpc-sentinel.keplr.app:443"],
|
"rpc": ["https://rpc-sentinel.keplr.app:443", "https://rpc-sentinel.keplr.app:443"],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.42.6",
|
"sdk_version": "0.45.6",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "8000",
|
"min_tx_fee": "8000",
|
||||||
"addr_prefix": "sent",
|
"addr_prefix": "sent",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"api":"https://azuredragon.noopsbycertik.com",
|
"api":"https://azuredragon.noopsbycertik.com",
|
||||||
"rpc": ["https://shenturpc.certikpowered.info:443", "http://3.236.161.42:26657"],
|
"rpc": ["https://shenturpc.certikpowered.info:443", "http://3.236.161.42:26657"],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.42.9",
|
"sdk_version": "0.45.0",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "8000",
|
"min_tx_fee": "8000",
|
||||||
"addr_prefix": "certik",
|
"addr_prefix": "certik",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"api": "https://api.sifchain.finance",
|
"api": "https://api.sifchain.finance",
|
||||||
"rpc": ["https://rpc.sifchain.finance:443", "https://rpc-archive.sifchain.finance:443"],
|
"rpc": ["https://rpc.sifchain.finance:443", "https://rpc-archive.sifchain.finance:443"],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.42.6",
|
"sdk_version": "0.45.0",
|
||||||
"coin_type": "118",
|
"coin_type": "118",
|
||||||
"min_tx_fee": "8000",
|
"min_tx_fee": "8000",
|
||||||
"addr_prefix": "sif",
|
"addr_prefix": "sif",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"chain_name": "stargaze",
|
"chain_name": "stargaze",
|
||||||
"api": ["https://rest.stargaze-apis.com", "https://rest.stargaze.publicawesome.dev", "https://stargaze.c29r3.xyz:443/api"],
|
"api": ["https://rest.stargaze-apis.com", "https://rest.stargaze.publicawesome.dev"],
|
||||||
"rpc": ["https://rpc.stargaze-apis.com:443", "https://rpc.stargaze.ezstaking.io:443"],
|
"rpc": ["https://rpc.stargaze-apis.com:443", "https://rpc.stargaze.ezstaking.io:443"],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.44.3",
|
"sdk_version": "0.44.3",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"api": "https://mainnet-lcd.vidulum.app",
|
"api": "https://mainnet-lcd.vidulum.app",
|
||||||
"rpc": ["https://mainnet-rpc.vidulum.app:443", "https://mainnet-rpc.vidulum.app:443"],
|
"rpc": ["https://mainnet-rpc.vidulum.app:443", "https://mainnet-rpc.vidulum.app:443"],
|
||||||
"snapshot_provider": "",
|
"snapshot_provider": "",
|
||||||
"sdk_version": "0.44.0",
|
"sdk_version": "0.45.0",
|
||||||
"coin_type": "370",
|
"coin_type": "370",
|
||||||
"min_tx_fee": "8000",
|
"min_tx_fee": "8000",
|
||||||
"addr_prefix": "vdl",
|
"addr_prefix": "vdl",
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { sha256 } from '@cosmjs/crypto'
|
||||||
|
import { toHex } from '@cosmjs/encoding'
|
||||||
import { BTable, BCardTitle, BCard } from 'bootstrap-vue'
|
import { BTable, BCardTitle, BCard } from 'bootstrap-vue'
|
||||||
import { formatTokenAmount, formatTokenDenom } from '@/libs/utils'
|
import { formatTokenAmount, formatTokenDenom } from '@/libs/utils'
|
||||||
|
|
||||||
@ -28,6 +30,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
islive: true,
|
islive: true,
|
||||||
assets: [],
|
assets: [],
|
||||||
|
denoms: {},
|
||||||
cfield: [
|
cfield: [
|
||||||
{
|
{
|
||||||
key: 'denom',
|
key: 'denom',
|
||||||
@ -41,12 +44,13 @@ export default {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
denoms() {
|
|
||||||
return this.$store.state.chains.denoms
|
|
||||||
},
|
|
||||||
},
|
|
||||||
created() {
|
created() {
|
||||||
|
this.$http.getAllIBCDenoms().then(x => {
|
||||||
|
x.denom_traces.forEach(trace => {
|
||||||
|
const hash = toHex(sha256(new TextEncoder().encode(`${trace.path}/${trace.base_denom}`)))
|
||||||
|
this.$set(this.denoms, `ibc/${hash.toUpperCase()}`, trace)
|
||||||
|
})
|
||||||
|
})
|
||||||
this.$http.getBankTotals().then(res => {
|
this.$http.getBankTotals().then(res => {
|
||||||
const toshow = res.sort()
|
const toshow = res.sort()
|
||||||
this.assets = toshow.reverse().map(x => {
|
this.assets = toshow.reverse().map(x => {
|
||||||
@ -61,11 +65,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatDenom(v) {
|
formatDenom(v) {
|
||||||
|
if (this.denoms[v]) {
|
||||||
const trace = this.denoms[v]
|
const trace = this.denoms[v]
|
||||||
if (trace) {
|
return `* ${formatTokenDenom(trace.base_denom)} (${trace.path})`
|
||||||
return `* ${formatTokenDenom(trace)}`
|
|
||||||
}
|
}
|
||||||
return formatTokenDenom(v)
|
return v
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user