From da125a2b67162743b3c8915d73f8a16d2a3b972c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 13 Jan 2022 09:02:25 +0800 Subject: [PATCH] update version of sdk --- src/chains/mainnet/cosmos.json | 2 +- src/chains/mainnet/juno.json | 2 +- src/chains/mainnet/osmosis.json | 2 +- src/chains/mainnet/regen.json | 2 +- src/chains/mainnet/stargaze.json | 3 +-- src/libs/fetch.js | 4 ++-- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/chains/mainnet/cosmos.json b/src/chains/mainnet/cosmos.json index c788c0c4..ee45ebc0 100644 --- a/src/chains/mainnet/cosmos.json +++ b/src/chains/mainnet/cosmos.json @@ -2,7 +2,7 @@ "chain_name": "cosmos", "coingecko": "cosmos", "api": ["https://cosmos.api.ping.pub", "https://cosmoshub.stakesystems.io"], - "sdk_version": "0.42.6", + "sdk_version": "0.44.3", "coin_type": "118", "min_tx_fee": "800", "addr_prefix": "cosmos", diff --git a/src/chains/mainnet/juno.json b/src/chains/mainnet/juno.json index 452f0100..008f707b 100644 --- a/src/chains/mainnet/juno.json +++ b/src/chains/mainnet/juno.json @@ -2,7 +2,7 @@ "chain_name": "juno", "coingecko": "juno-network", "api": "https://lcd-juno.itastakers.com", - "sdk_version": "0.42.4", + "sdk_version": "0.44.5", "coin_type": "118", "min_tx_fee": "3000", "addr_prefix": "juno", diff --git a/src/chains/mainnet/osmosis.json b/src/chains/mainnet/osmosis.json index 7785c6c1..a7c89873 100644 --- a/src/chains/mainnet/osmosis.json +++ b/src/chains/mainnet/osmosis.json @@ -2,7 +2,7 @@ "chain_name": "osmosis", "coingecko": "osmosis", "api": "https://lcd-osmosis.keplr.app", - "sdk_version": "0.42.5", + "sdk_version": "0.44.5", "coin_type": "118", "min_tx_fee": "800", "addr_prefix": "osmo", diff --git a/src/chains/mainnet/regen.json b/src/chains/mainnet/regen.json index 2a0e3363..4e658653 100644 --- a/src/chains/mainnet/regen.json +++ b/src/chains/mainnet/regen.json @@ -2,7 +2,7 @@ "chain_name": "regen", "coingecko": "regen", "api": "https://regen.api.ping.pub", - "sdk_version": "0.42.4", + "sdk_version": "0.44.3", "coin_type": "118", "min_tx_fee": "3000", "addr_prefix": "regen", diff --git a/src/chains/mainnet/stargaze.json b/src/chains/mainnet/stargaze.json index 6dcab050..117d1fdc 100644 --- a/src/chains/mainnet/stargaze.json +++ b/src/chains/mainnet/stargaze.json @@ -1,6 +1,5 @@ { "chain_name": "stargaze", - "coingecko": "stargaze-protocol", "api": "https://rest.stargaze.publicawesome.dev", "sdk_version": "0.44.3", "coin_type": "118", @@ -11,7 +10,7 @@ "base": "ustars", "symbol": "STARS", "exponent": "6", - "coingecko_id": "stargaze-protocol", + "coingecko_id": "stargaze", "logo": "https://dl.airtable.com/.attachments/79f2b74422c63b3fdb0310407d9cc990/5f4f1dd8/RGw3ZaVT_400x400.png" }] } \ No newline at end of file diff --git a/src/libs/fetch.js b/src/libs/fetch.js index b54ea1ed..18474303 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -326,7 +326,7 @@ export default class ChainFetch { async getAllIBCDenoms(config = null) { const sdkVersion = config ? config.sdk_version : this.config.sdk_version - if (compareVersions(sdkVersion, '0.42.4') < 0) { + if (compareVersions(sdkVersion, '0.44.2') < 0) { return this.get('/ibc/applications/transfer/v1beta1/denom_traces?pagination.limit=500', config).then(data => commonProcess(data)) } return this.get('/ibc/apps/transfer/v1/denom_traces?pagination.limit=500', config).then(data => commonProcess(data)) @@ -335,7 +335,7 @@ export default class ChainFetch { async getIBCDenomTrace(hash, config = null) { const h = hash.substring(hash.indexOf('/') + 1) const sdkVersion = config ? config.sdk_version : this.config.sdk_version - if (compareVersions(sdkVersion, '0.42.4') < 0) { + if (compareVersions(sdkVersion, '0.44.2') < 0) { return this.get('/ibc/applications/transfer/v1beta1/denom_traces/'.concat(h), config).then(data => commonProcess(data)) } return this.get('/ibc/apps/transfer/v1/denom_traces/'.concat(h), config).then(data => commonProcess(data))