update api version

This commit is contained in:
liangping 2022-05-06 08:59:20 +08:00
parent 7a3c64981c
commit eec873c966
13 changed files with 25 additions and 21 deletions

View File

@ -14,5 +14,5 @@
"logo": "/logos/band-protocol.svg"
}],
"logo": "/logos/band-protocol.svg",
"sdk_version": "0.44.0"
"sdk_version": "0.45.0"
}

View File

@ -8,7 +8,7 @@
"coin_type": "639",
"min_tx_fee": "5000",
"logo": "/logos/bitsong.svg",
"sdk_version": "0.42.0",
"sdk_version": "0.45.0",
"assets": [{
"base": "ubtsg",
"symbol": "BTSG",

View File

@ -4,7 +4,7 @@
"api": ["https://api.mainnet.desmos.network", "https://desmos.api.ping.pub"],
"rpc": ["https://rpc.mainnet.desmos.network:443", "https://rpc.mainnet.desmos.network:443"],
"snapshot_provider": "05d15d195cd40a1d20f937a87a63fbb3ec1a4b80@desmos.rpc.ping.pub:26656",
"sdk_version": "0.42.0",
"sdk_version": "0.45.0",
"coin_type": "852",
"min_tx_fee": "3000",
"addr_prefix": "desmos",

View File

@ -4,7 +4,7 @@
"api": "https://api.genesisl1.org",
"rpc": [],
"snapshot_provider": "",
"sdk_version": "0.42.4",
"sdk_version": "0.45.4",
"coin_type": "118",
"min_tx_fee": "3000000000000000",
"addr_prefix": "genesis",

View File

@ -3,7 +3,7 @@
"api": "https://iris.api.ping.pub",
"rpc": ["http://34.82.96.8:26657","http://34.77.68.145:26657"],
"snapshot_provider": "fcc1d9bc43163b20ce5163cf41a302b33f25375f@34.82.96.8:26656",
"sdk_version": "0.42.4",
"sdk_version": "0.45.4",
"coin_type": "118",
"min_tx_fee": "40000",
"addr_prefix": "iaa",

View File

@ -4,7 +4,7 @@
"api": "https://mainnet-node.like.co",
"rpc": ["https://mainnet-node.like.co:443/rpc/", "https://mainnet-node.like.co:443/rpc/"],
"snapshot_provider": "",
"sdk_version": "0.42.0",
"sdk_version": "0.45.0",
"coin_type": "118",
"min_tx_fee": "3000",
"addr_prefix": "cosmos",

View File

@ -3,7 +3,7 @@
"api": ["https://rizon.api.ping.pub"],
"rpc": ["http://rizon.rpc.ping.pub:26657", "http://seed-1.mainnet.rizon.world:26657"],
"snapshot_provider": "66083d10fc1b79c584362dc266f87836455a9169@rizon.rpc.ping.pub:26656",
"sdk_version": "v0.42.9",
"sdk_version": "v0.45.0",
"coin_type": "118",
"min_tx_fee": "8000",
"assets": [{

View File

@ -3,7 +3,7 @@
"api": "https://lcd.sentinel.co",
"rpc": ["https://rpc-sentinel.keplr.app:443", "https://rpc-sentinel.keplr.app:443"],
"snapshot_provider": "",
"sdk_version": "0.42.6",
"sdk_version": "0.45.6",
"coin_type": "118",
"min_tx_fee": "8000",
"addr_prefix": "sent",

View File

@ -4,7 +4,7 @@
"api":"https://azuredragon.noopsbycertik.com",
"rpc": ["https://shenturpc.certikpowered.info:443", "http://3.236.161.42:26657"],
"snapshot_provider": "",
"sdk_version": "0.42.9",
"sdk_version": "0.45.0",
"coin_type": "118",
"min_tx_fee": "8000",
"addr_prefix": "certik",

View File

@ -3,7 +3,7 @@
"api": "https://api.sifchain.finance",
"rpc": ["https://rpc.sifchain.finance:443", "https://rpc-archive.sifchain.finance:443"],
"snapshot_provider": "",
"sdk_version": "0.42.6",
"sdk_version": "0.45.0",
"coin_type": "118",
"min_tx_fee": "8000",
"addr_prefix": "sif",

View File

@ -1,6 +1,6 @@
{
"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"],
"snapshot_provider": "",
"sdk_version": "0.44.3",

View File

@ -4,7 +4,7 @@
"api": "https://mainnet-lcd.vidulum.app",
"rpc": ["https://mainnet-rpc.vidulum.app:443", "https://mainnet-rpc.vidulum.app:443"],
"snapshot_provider": "",
"sdk_version": "0.44.0",
"sdk_version": "0.45.0",
"coin_type": "370",
"min_tx_fee": "8000",
"addr_prefix": "vdl",

View File

@ -15,6 +15,8 @@
</template>
<script>
import { sha256 } from '@cosmjs/crypto'
import { toHex } from '@cosmjs/encoding'
import { BTable, BCardTitle, BCard } from 'bootstrap-vue'
import { formatTokenAmount, formatTokenDenom } from '@/libs/utils'
@ -28,6 +30,7 @@ export default {
return {
islive: true,
assets: [],
denoms: {},
cfield: [
{
key: 'denom',
@ -41,12 +44,13 @@ export default {
],
}
},
computed: {
denoms() {
return this.$store.state.chains.denoms
},
},
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 => {
const toshow = res.sort()
this.assets = toshow.reverse().map(x => {
@ -61,11 +65,11 @@ export default {
},
methods: {
formatDenom(v) {
const trace = this.denoms[v]
if (trace) {
return `* ${formatTokenDenom(trace)}`
if (this.denoms[v]) {
const trace = this.denoms[v]
return `* ${formatTokenDenom(trace.base_denom)} (${trace.path})`
}
return formatTokenDenom(v)
return v
},
},
}